Skip to content

Junie CLI

This documentation is provided for informational purposes only and demonstrates how to configure and use our API with third-party AI chat interfaces. Any third-party software, websites, or services mentioned are not operated, controlled, or endorsed by us.

Junie Cli

An LLM-agnostic coding agent built for real-world development — by JetBrains.

Junie is an AI coding agent that lives in your terminal, integrates with your IDE and CI/CD pipelines, and helps you ship code faster. Give it a task in natural language — fix a bug, implement a feature, review a PR — and Junie handles the rest. Like your real coding buddy.

Junie CLI Key Features:

  • AI coding agent in terminal
  • Multi-model (OpenAI, Anthropic, etc.)
  • Real-time interactive tasks
  • Deep codebase understanding
  • Plan mode (safe preview)
  • Command execution & automation
  • CI/CD & Git integration
  • Extensible (custom commands, MCP)

Install Junie CLI

CLI - Node.js

Windows users may be unable to run scripts because of digital signature requirements. Please run the following command:
Windows PowerShell:

Terminal window
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned -Force

Firstly, install the newest LTS version of Node.js, and then use npm to install it globally in the terminal:

Terminal window
npm install -g @jetbrains/junie
CLI - Native Install

macOS, Linux:

Terminal window
curl -fsSL https://junie.jetbrains.com/install.sh | bash

Windows PowerShell:

Terminal window
powershell -NoProfile -ExecutionPolicy Bypass -Command "iex (irm 'https://junie.jetbrains.com/install.ps1')"

Configure Junie CLI

Edit or create routerlink.json file

On macOS & Linux: ~/.junie/models/routerlink.json

On Windows: C:\Users\<USERNAME>\.junie\models\routerlink.json

Make sure to replace <ROUTERLINK_API_KEY> with your API key from RouterLink. When replacing it, do not keep the angle brackets < and >.

{
"baseUrl": "https://router-link.world3.ai/api/v1/chat/completions",
"id": "claude-sonnet-4-6",
"apiKey": "<ROUTERLINK_API_KEY>",
"apiType": "OpenAICompletion",
"primaryModel": {
"id": "claude-sonnet-4-6"
},
"fasterModel": {
"id": "claude-sonnet-4-6"
}
}

You can replace the “id” field with any model that is compatible with the OpenAI format:

Image

First launch

Windows users may encounter issues running the software due to missing VC runtime libraries. Please download and install this software.

Navigate to the root directory of the project where you want to use Junie CLI and run :

Terminal window
junie --model custom:routerlink

Now you can use Junie.

Img V3 0211e C835aa62 4811 4e79 A296 A417d062a0hu

💡 Quick Examples

Terminal window
junie
> Build a web dashboard that shows open issues, recent commits, and CI status for this repository
Terminal window
junie
> Review the current changes in this branch and highlight potential bugs, performance issues, and missing tests
Terminal window
junie
> Fix the failing tests in the auth module and add a regression test

See the full documentation and supported features on the official documentation page.

🐙 GitHub integration

To set up a GitHub Action to let Junie respond to issues, PRs, and CI failures automatically, simply run this command inside the agent:

Terminal window
/install-github-action

See the full cookbook: Junie on GitHub.