Personal and autonomous agents
Use DeerFlow with Shannon
Add Shannon to DeerFlow's config.yaml as a langchain_openai:ChatOpenAI model with base_url, and the lead agent runs on Shannon models.
- Tested Nov 7, 2026
- OpenAI Chat Completions
- About 6 min
About DeerFlow
DeerFlow is ByteDance's open-source agent harness, built on LangGraph, for deep research, coding and other long tasks. A lead agent plans, uses tools in a sandbox and can hand parts of the work to subagents. Models are LangChain classes named in config.yaml, so ChatOpenAI with a base URL runs DeerFlow on Shannon models.
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 DeerFlow and copy the example config
Shellgit clone https://github.com/bytedance/deer-flow cd deer-flow cp config.example.yaml config.yaml cd backend && uv sync -
Add Shannon under models
In
config.yaml, replace themodels:list (or add to it).$SHANNON_API_KEYis read from the environment.config.yamlmodels: - name: Kimi-K3-uncensored-NVFP4 display_name: Kimi-K3-uncensored-NVFP4 use: langchain_openai:ChatOpenAI model: Kimi-K3-uncensored-NVFP4 api_key: $SHANNON_API_KEY base_url: https://api.shannon-ai.com/v1 max_tokens: 8192 context_window: 1022976 supports_vision: true -
Run it
make devstarts the web app and gateway. The embedded Python client runs the same agent without the services.Pythonfrom deerflow.client import DeerFlowClient client = DeerFlowClient(config_path="config.yaml") print(client.chat("Name three colours a cat can be.", thread_id="cats"))
A real run on DeerFlow (git 2bd60d1) through the embedded client: a chat turn and a tool call.
Check that it works
Send: Name three colours a cat can be.
You should see: One short answer from the Shannon model.
Models that fit DeerFlow
Every id below meets what DeerFlow 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 |
Good to know
- DeerFlow also asks the model for chat titles, follow-up suggestions, memory updates and summaries. Each is a separate request; the
title,suggestions,memoryandsummarizationsections turn them off. - Subagents can run in parallel (
subagent_runtime.max_running, 3 by default), each sending its own requests. - Host shell commands are off by default (
sandbox.allow_host_bash: false); file tools still work in the sandbox.
Tips
- Set
title.model_nameandsummarization.model_nameto a cheaper model to keep side requests small. DeerFlowClient(..., subagent_enabled=False)keeps a run to the lead agent.- Use
context_windowto match the model; DeerFlow budgets prompts with it.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
404 Not Found | base_url lacks /v1. | Use https://api.shannon-ai.com/v1. |
401 | $SHANNON_API_KEY was not set when DeerFlow started. | Export it, or put it in DeerFlow's .env. |
| "The configured LLM provider rejected the request because the account is out of quota…" | DeerFlow's wording for a 429 from the API, for example when shannon-coder-1's call allowance is used up. | Wait for the allowance to reset, or use a model counted in tokens. |
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 DeerFlow work with Shannon?
Yes, through langchain_openai:ChatOpenAI with base_url: https://api.shannon-ai.com/v1.
Can I use Shannon for research tasks?
Yes, but DeerFlow's web search tools need their own search API keys.