Use Trae with Shannon
Add Shannon through Trae's Custom Model option with the OpenAI Chat Completions format, the /v1 URL and a Shannon model ID.
- From the Trae docs, Nov 7, 2026
- OpenAI Chat Completions
- About 3 min
About Trae
Trae is an AI code editor with an IDE mode, where you work alongside the AI, and a SOLO mode, where the AI leads the task. Its agent reads the project, edits files and runs commands, and you can build custom agents with their own prompts, tools and MCP servers. With a custom model, Trae's chat runs on the Shannon model you add.
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
-
Open Add Model
In the IDE or Agent window, go to Settings → Models, click Add Model and select Custom Model.
-
Fill in the connection
Set API Format to OpenAI Chat Completions. Leave Full URL off and enter the base URL in Custom Request URL; Trae appends the path. Enter the Model ID, a Display Name and your API Key.
Custom ModelAPI Format: OpenAI Chat Completions Custom Request URL: https://api.shannon-ai.com/v1 (Full URL off) Model ID: Kimi-K3-uncensored-NVFP4 Display Name: Kimi-K3-uncensored-NVFP4 API Key: YOUR_API_KEY -
Set the window and add
Under Advanced Settings, leave Model Series on Default, set Context Window (Token), and turn on Image Input Support only for models that read images. Click Add Model; Trae checks the key with a call to the API before saving.
Context Window (Token)Input: 760832 Output: 262144 -
Pick it in chat
Click the model name in the lower-right corner of the chat input box and select the Shannon model.
Check that it works
Send: What does this project do?
You should see: Trae answers with the Shannon model shown in the chat input box.
Models that fit Trae
Every id below meets what Trae 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
Trae asks for these values. They follow the model you picked.
| Setting | Value | Why |
|---|---|---|
Context Window (Token): input | 760832 | The window minus the output limit. |
Context Window (Token): output | 262144 | The longest answer. |
Good to know
- The Model Series presets (GPT-5, Gemini-3, Deepseek-4) change prompts, parameters and protocol fields for those families; keep Default for Shannon ids.
- Left empty, Context Window (Token) falls to Trae's built-in values for unknown models, which can be far below the model's window.
- For the Anthropic format, choose Anthropic Messages and enter
https://api.shannon-ai.comwith Full URL off.
Tips
- Put project rules in
.trae/rules/; each rule can apply always, to matching files, when the agent finds it relevant, or only when you mention it with@Rule. - Rules for every project go in Settings > Rules & Memories, where you can also let Trae read the
AGENTS.mdorCLAUDE.mdin the project root. - In the custom model's Advanced Settings, Tool Call Rounds caps how many tool calls the model makes in one task.
- Add MCP servers in Settings > MCP, or per project in
.trae/mcp.jsononce Project MCP is on. - Type
@in the chat input and click Create Agent to build a custom agent with its own prompt, tools and MCP servers.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| Add Model fails with an error from the API | Full URL is on while the URL ends at /v1, or the reverse. | With Full URL off use https://api.shannon-ai.com/v1; with it on use https://api.shannon-ai.com/v1/chat/completions. |
| The model is not in the chat model list | It is disabled in the model management panel. | Enable it under Settings → Models. |
| Images are not read | Image Input Support is off, or the model has no vision. | Turn it on for a model that reads images. |
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 Trae work with Shannon?
Yes, through Add Model → Custom Model with the OpenAI Chat Completions format and https://api.shannon-ai.com/v1.
Does Trae check the key?
Yes. Add Model calls the API first and shows the error and logs if the call fails.