Use Cline with Shannon
Choose the OpenAI Compatible provider in Cline, paste Shannon's base URL and key, and Cline plans, edits and runs commands on Shannon models.
- Tested Nov 7, 2026
- OpenAI Chat Completions
- About 2 min
About Cline
Cline is an open-source autonomous coding agent for VS Code, JetBrains and the terminal. It plans a task, then reads and edits files, runs commands and uses the browser, asking you to approve each step. Its OpenAI Compatible provider points it at Shannon.
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
-
Pick the OpenAI Compatible provider
In VS Code, open the Cline panel. On first start choose Bring my own API key; later, use the gear in the panel. Set API Provider to OpenAI Compatible and fill in Base URL and API Key. Model ID then turns into a list of Shannon models; pick one, or type the id.
Cline settingsAPI Provider: OpenAI Compatible Base URL: https://api.shannon-ai.com/v1 API Key: YOUR_API_KEY Model ID: Kimi-K3-uncensored-NVFP4
A real setup on Cline 4.1.26 in VS Code: the OpenAI Compatible provider pointing at Shannon. -
Set the model's window
Open the collapsed Model Configuration section under the provider fields and set Context Window Size and Max Output Tokens, so Cline knows when to compact (its default window is 128000). Supports Images is on by default: leave it on only for models that read images.
Model ConfigurationContext Window Size: 1022976 Max Output Tokens: 262144
Model Configuration on Cline 4.1.26, filled in for the Shannon model. -
Or set it up from the terminal
The Cline CLI stores the same provider with one command, then runs tasks headless (
-yapproves tool calls).Shellcline auth -p openai -b https://api.shannon-ai.com/v1 -k YOUR_API_KEY -m Kimi-K3-uncensored-NVFP4 cline -y "Run the tests and fix what fails."
A real run on the Cline CLI 3.0.74 with the OpenAI Compatible provider.
Check that it works
Send: List the files in this project and say what each one does.
You should see: Cline lists the files with its tools and explains them.
Models that fit Cline
Every id below meets what Cline 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
Cline asks for these values. They follow the model you picked.
| Setting | Value | Why |
|---|---|---|
Context Window Size | 1022976 | The model's window. |
Max Output Tokens | 262144 | The longest answer. |
Good to know
- Cline's agent needs tool calls; every model in the picker has them.
- In the CLI, the provider id
openaiis Cline's OpenAI Compatible provider (it printsopenai-compatible). - Cline sends a request for every step of a task. Every model,
shannon-coder-1included, is billed in tokens from your API credit, so a long task costs what it reads and writes.
Tips
- Use Plan mode to agree on the approach before Act mode starts changing files; each mode can have its own model.
- Set the context window in the provider settings to the model's number, so Cline compacts at the right time.
- Cline 4.1 auto-approves reads and edits by default; narrow it under Auto-approve above the input box if you want to confirm each edit.
- Add a
.clinerulesfile to the project with your conventions; Cline reads it at the start of every task.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
404 Not Found | The Base URL lacks /v1, or has it twice. | Use https://api.shannon-ai.com/v1. |
| Cline compacts too early or too late | The context window was left at Cline's default (128000). | Set Context Window Size to the model's window. Select the number and type over it: clearing the field puts the default back. |
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 Cline work with Shannon?
Yes, through Cline's OpenAI Compatible provider with the base URL https://api.shannon-ai.com/v1.
Can I use the Anthropic provider instead?
Yes: tick Use custom base URL in Cline's Anthropic provider and enter https://api.shannon-ai.com.