Use Junie CLI with Shannon
Describe Shannon in a JSON model profile in ~/.junie/models and start Junie with --model custom:shannon.
- From the Junie CLI docs, Nov 7, 2026
- OpenAI Chat Completions
- About 3 min
About Junie CLI
Junie CLI is JetBrains' coding agent for the terminal. It reviews, writes and changes code in your project, runs commands and tests, and has plan and debug modes, MCP servers and custom slash commands. A custom model profile points it at Shannon, so the whole agent loop runs on the Shannon model you name.
What you need
- A Shannon API key
- Keys & usage
- Base URL
-
https://api.shannon-ai.com/v1Endpoint:/v1/chat/completions - Every snippet below follows your choice.
Set it up
-
Export your API key
The profile refers to it as
${SHANNON_API_KEY}, so it stays out of the file.Shellexport SHANNON_API_KEY=YOUR_API_KEY -
Write a model profile
Junie reads profiles from
~/.junie/models/*.json(or.junie/models/in a project); the file name is the profile id.baseUrlis the full endpoint: Junie does not add a path to it.~/.junie/models/shannon.json{ "baseUrl": "https://api.shannon-ai.com/v1/chat/completions", "id": "Kimi-K3-uncensored-NVFP4", "displayName": "Kimi-K3-uncensored-NVFP4", "providerName": "Shannon", "apiType": "OpenAICompletion", "apiKey": "${SHANNON_API_KEY}", "maxContextLength": 1022976 } -
Start Junie on the profile
Custom profiles take the
custom:prefix. In a running session,/modellists them in the Custom tab.Shelljunie --model custom:shannon
Check that it works
Send: Run the tests and fix what fails.
You should see: Junie reads the project, runs the tests with its tools and edits the failing code.
Models that fit Junie CLI
Every id below meets what Junie CLI needs. The first one is the default in the snippets.
| Model id | Context window | Max output | Image input |
|---|---|---|---|
Kimi-K3-uncensored-NVFP4 | 1,022,976 | 262,144 | Yes |
Kimi-K3.1-Pro-uncensored-NVFP4 | 1,022,976 | 262,144 | Yes |
MiMo-V2.6-Pro-uncensored-NVFP4 | 1,022,976 | 131,072 | Yes |
Kimi-K3-uncensored-3BIT-REAP | 225,280 | 225,280 | Yes |
shannon-3 | 196,608 | 65,536 | Yes |
Model settings
Junie CLI asks for these values. They follow the model you picked.
| Setting | Value | Why |
|---|---|---|
maxContextLength | 1022976 | The model's context window. |
Good to know
- Requests go straight to Shannon with your key. Junie's headless-mode page also asks for a Junie auth token; check whether your setup needs one with a custom model.
- Without a
fasterModelblock, Junie uses the same model for its helper tasks (summaries, classification). Add"fasterModel": { "id": "<id>" }to give them another Shannon model. apiTypecan also beOpenAIResponses(https://api.shannon-ai.com/v1/responses) orAnthropic(https://api.shannon-ai.com/v1/messages); each needs its full endpoint inbaseUrl.- A profile in a project's
.junie/models/can be committed; keep the key as${SHANNON_API_KEY}there.
Tips
- Junie reads project guidelines from
.junie/AGENTS.md, or fromAGENTS.mdin the project root;~/.junie/AGENTS.mdholds rules for all your projects. - Set
JUNIE_MODEL=custom:shannonin your shell profile to start on Shannon without--model; a flag on the command line still takes priority. Shift+Tabcycles between the default, plan and debug modes;/planturns plan mode on and off./stats(also/usageor/cost) shows the session's token use next to your all-time totals.junie --resumepicks up the last session, and/historysearches earlier sessions to resume one.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| The profile fails to load and names a missing variable | SHANNON_API_KEY is not set in the shell that starts Junie. | Export it, or put the key in apiKey directly. |
404 or 405 from the API | baseUrl ends at /v1; Junie uses it as the complete URL. | Use https://api.shannon-ai.com/v1/chat/completions. |
custom:shannon is not found | The file is not in ~/.junie/models/ or .junie/models/, or has another name. | The id after custom: is the file name without .json. |
401 Unauthorized | The key is missing, mistyped or rotated. | Copy the key again from Keys & usage; it starts with sk-. |
context_length_exceeded / "prompt is too long" | The conversation is longer than the model's window. | Start a new chat, let the tool compact it, or pick a model with a larger window. |
insufficient_quota | Your balance cannot pay for the request. | Top up or change plan; the request is not retried by itself. |
Questions
Does Junie CLI work with Shannon?
Yes, through a custom model profile with apiType OpenAICompletion and baseUrl https://api.shannon-ai.com/v1/chat/completions.
Can I share the profile with my team?
Yes: put it in the project's .junie/models/ folder and reference the key as ${SHANNON_API_KEY}.