Skip to content
Continue CLI

Coding agents

Use Continue CLI with Shannon

Describe Shannon as an openai-provider model in ~/.continue/config.yaml and run cn on Shannon models, in a session or headless.

  • Tested Nov 7, 2026
  • OpenAI Chat Completions
  • About 3 min

About Continue CLI

Continue CLI, started as cn, is the terminal agent from the team behind the Continue IDE extension. It reads and edits files and runs commands, interactively or headless with -p for scripts and CI. It shares the config.yaml format with the Continue extension, so one Shannon entry serves both.

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. Install cn

    Shell
    npm install -g @continuedev/cli
  2. Add Shannon to config.yaml

    Put this in ~/.continue/config.yaml. provider: openai with apiBase reaches any OpenAI-compatible server; capabilities: [tool_use] is what lets the agent call tools with a model Continue does not know.

    ~/.continue/config.yaml
    name: Shannon
    version: 1.0.0
    schema: v1
    
    models:
      - name: Kimi-K3-uncensored-NVFP4
        provider: openai
        model: Kimi-K3-uncensored-NVFP4
        apiBase: https://api.shannon-ai.com/v1
        apiKey: ${{ secrets.SHANNON_API_KEY }}
        roles: [chat, edit, apply]
        capabilities: [tool_use, image_input]
        defaultCompletionOptions:
          contextLength: 1022976
          maxTokens: 262144
  3. Put the key in ~/.continue/.env

    ${{ secrets.SHANNON_API_KEY }} is read from this file, so the key stays out of config.yaml.

    ~/.continue/.env
    SHANNON_API_KEY=YOUR_API_KEY
  4. Run cn

    cn opens a session. cn -p prints one answer and exits; --auto allows every tool without asking.

    Shell
    cn -p --auto --config ~/.continue/config.yaml "Run the tests, fix what fails, then run them again."
    Continue CLI cn in headless mode on the Shannon model shannon-coder-1: it reports both cat_feeder.py fixes and the tests pass
    A real run on Continue CLI 1.5.47 with the config above: both bugs fixed, all tests passing.

Check that it works

Send: What does this project do?

You should see: cn reads your files and answers with the Shannon model from config.yaml.

Models that fit Continue CLI

Every id below meets what Continue 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
shannon-coder-1 131,072 65,536 No
Kimi-K3.1-Pro-uncensored-NVFP4 1,022,976 262,144 Yes
Kimi-K3-uncensored-3BIT-REAP 225,280 225,280 Yes
shannon-3 196,608 65,536 Yes

Model settings

Continue CLI asks for these values. They follow the model you picked.

SettingValueWhy
contextLength 1022976 The model's window.
maxTokens 262144 The longest answer.

Good to know

  • Without capabilities: [tool_use], Continue may treat the model as one without tools, and agent mode cannot run commands or edit files.
  • The same config.yaml is read by the Continue extension for VS Code and JetBrains.
  • Our two-bug test took nine requests; with shannon-coder-1 each is billed in tokens from API credit.

Tips

  1. --readonly starts in plan mode with read-only tools, which is a safe way to ask about a repository.
  2. --allow, --ask and --exclude set tool permissions per run, for example --exclude Bash.
  3. --silent strips <think> blocks from -p output, and --format json gives a machine-readable answer.
  4. List several Shannon ids under models and switch between them in a session.

Troubleshooting

SymptomCauseFix
401 The secret was not found, so no key was sent. Check the name in ${{ secrets.SHANNON_API_KEY }} matches the line in ~/.continue/.env.
404 Not Found apiBase lacks /v1. Use https://api.shannon-ai.com/v1.
The agent describes changes but never makes them tool_use is missing from capabilities. Add capabilities: [tool_use] to the model.
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 the Continue CLI work with Shannon?

Yes, with a model of provider: openai and apiBase: https://api.shannon-ai.com/v1 in config.yaml.

Does this also set up the Continue extension?

Yes, the extension reads the same ~/.continue/config.yaml.

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