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.
Introduction to Junie CLI
Section titled “Introduction to 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:
npm install -g @jetbrains/junieCLI - Native Install
macOS, Linux:
curl -fsSL https://junie.jetbrains.com/install.sh | bashWindows PowerShell:
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:

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 :
junie --model custom:routerlinkNow you can use Junie.

💡 Quick Examples
Build a new project
Section titled “Build a new project”junie> Build a web dashboard that shows open issues, recent commits, and CI status for this repositoryAnalyze a project
Section titled “Analyze a project”junie> Review the current changes in this branch and highlight potential bugs, performance issues, and missing testsFix bugs
Section titled “Fix bugs”junie> Fix the failing tests in the auth module and add a regression testSee 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:
/install-github-actionSee the full cookbook: Junie on GitHub.

