Junie Help

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:

    curl -fsSL https://junie.jetbrains.com/install.sh | bash
    powershell -NoProfile -ExecutionPolicy Bypass -Command "iex (irm 'https://junie.jetbrains.com/install.ps1')"
    brew tap jetbrains/junie brew update brew install junie

    To verify the installation:

    junie --version

    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:

    cd /path/to/your/project
    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_KEY

      Run Junie CLI with usage-based billing. When selecting this option, you'll be prompted to provide an access token. To generate your JUNIE_API_KEY access token, go to junie.jetbrains.com/cli.

    • Bring Your Own Key (BYOK)

      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:

    > give me an overview of this codebase

    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 /.

    Learn more about using Junie in the terminal

    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:

    # Install Junie CLI curl -fsSL https://junie.jetbrains.com/install.sh | bash # Authenticate and use Junie junie --auth="$JUNIE_API_KEY" "Review and fix any code quality issues in the latest commit"

    The junie command takes options and environment variables.

    For more information and examples, see Headless mode.

    Other scenarios

    14 March 2026