Quickstart
Junie CLI is the agentic coding tool by JetBrains that provides an interactive terminal interface for developers to review, write, and modify code.
Supported operating systems
Junie CLI is available on Linux, macOS, and Windows.
Step 1: Install Junie CLI
In the terminal or command prompt of your choice, run:
To verify the installation:
Step 2: Start Junie in your project
Navigate to the root directory of the project where you want to use Junie CLI and run junie:
Step 3: Authenticate
On the Junie welcome screen, select one of the available authentication options:
Log in with your JetBrains Account
Use Junie CLI as part of your subscription plan with JetBrains. When selecting this option, you'll be redirected to the JetBrains Junie login page in your browser.
Use
JUNIE_API_KEYRun Junie CLI with usage-based billing. When selecting this option, you'll be prompted to provide an access token. To generate your
JUNIE_API_KEYaccess token, go to junie.jetbrains.com/cli.Use your own API keys or OAuth tokens from Anthropic, OpenAI, Google, or other third-party LLM providers. Junie CLI uses these API keys to send requests to LLMs directly without requiring a JetBrains AI subscription.
BYOK can be used on its own or together with JetBrains Account authorization or Junie API key. If a model is available through both the BYOK API key and JetBrains AI subscription, the requests are billed to your BYOK provider directly.
Step 4: Type your prompt
Type the prompt in the interactive CLI, for example:
Use @ to attach a file or folder from the current project to the request context. To see the list of available slash commands and use them, type /.
Non-interactive (headless) mode
You can run Junie CLI in headless mode, that is, programmatically without interactive UI, in CI/CD environments and build pipelines.
To add Junie to your CI/CD script:
The junie command takes options and environment variables.
For more information and examples, see Headless mode.