Skip to content
Junie CLI

Coding agents

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/v1 Endpoint: /v1/chat/completions
Every snippet below follows your choice.

Set it up

  1. Export your API key

    The profile refers to it as ${SHANNON_API_KEY}, so it stays out of the file.

    Shell
    export SHANNON_API_KEY=YOUR_API_KEY
  2. Write a model profile

    Junie reads profiles from ~/.junie/models/*.json (or .junie/models/ in a project); the file name is the profile id. baseUrl is 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
    }
  3. Start Junie on the profile

    Custom profiles take the custom: prefix. In a running session, /model lists them in the Custom tab.

    Shell
    junie --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 idContext windowMax outputImage 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.

SettingValueWhy
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 fasterModel block, Junie uses the same model for its helper tasks (summaries, classification). Add "fasterModel": { "id": "<id>" } to give them another Shannon model.
  • apiType can also be OpenAIResponses (https://api.shannon-ai.com/v1/responses) or Anthropic (https://api.shannon-ai.com/v1/messages); each needs its full endpoint in baseUrl.
  • A profile in a project's .junie/models/ can be committed; keep the key as ${SHANNON_API_KEY} there.

Tips

  1. Junie reads project guidelines from .junie/AGENTS.md, or from AGENTS.md in the project root; ~/.junie/AGENTS.md holds rules for all your projects.
  2. Set JUNIE_MODEL=custom:shannon in your shell profile to start on Shannon without --model; a flag on the command line still takes priority.
  3. Shift+Tab cycles between the default, plan and debug modes; /plan turns plan mode on and off.
  4. /stats (also /usage or /cost) shows the session's token use next to your all-time totals.
  5. junie --resume picks up the last session, and /history searches earlier sessions to resume one.

Troubleshooting

SymptomCauseFix
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}.

Choose your language

All languages are equal. Pick the one you want to browse in.

Europe

Middle East & North Africa

South Asia

Southeast Asia

East Asia

Central Asia & Caucasus

Africa

Oceania

Constructed & Classical