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/v1Endpoint:/v1/chat/completions - Every snippet below follows your choice.
Set it up
-
Install cn
Shellnpm install -g @continuedev/cli -
Add Shannon to config.yaml
Put this in
~/.continue/config.yaml.provider: openaiwithapiBasereaches any OpenAI-compatible server;capabilities: [tool_use]is what lets the agent call tools with a model Continue does not know.~/.continue/config.yamlname: 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 -
Put the key in ~/.continue/.env
${{ secrets.SHANNON_API_KEY }}is read from this file, so the key stays out ofconfig.yaml.~/.continue/.envSHANNON_API_KEY=YOUR_API_KEY -
Run cn
cnopens a session.cn -pprints one answer and exits;--autoallows every tool without asking.Shellcn -p --auto --config ~/.continue/config.yaml "Run the tests, fix what fails, then run them again."
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 id | Context window | Max output | Image 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.
| Setting | Value | Why |
|---|---|---|
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.yamlis read by the Continue extension for VS Code and JetBrains. - Our two-bug test took nine requests; with
shannon-coder-1each is billed in tokens from API credit.
Tips
--readonlystarts in plan mode with read-only tools, which is a safe way to ask about a repository.--allow,--askand--excludeset tool permissions per run, for example--exclude Bash.--silentstrips<think>blocks from-poutput, and--format jsongives a machine-readable answer.- List several Shannon ids under
modelsand switch between them in a session.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
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.