Skip to content
DeerFlow

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/v1 Endpoint: /v1/chat/completions
Every snippet below follows your choice.

Set it up

  1. Install DeerFlow and copy the example config

    Shell
    git clone https://github.com/bytedance/deer-flow
    cd deer-flow
    cp config.example.yaml config.yaml
    cd backend && uv sync
  2. Add Shannon under models

    In config.yaml, replace the models: list (or add to it). $SHANNON_API_KEY is read from the environment.

    config.yaml
    models:
      - 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
  3. Run it

    make dev starts the web app and gateway. The embedded Python client runs the same agent without the services.

    Python
    from deerflow.client import DeerFlowClient
    
    client = DeerFlowClient(config_path="config.yaml")
    print(client.chat("Name three colours a cat can be.", thread_id="cats"))
    DeerFlow embedded client on shannon-coder-1: a chat answer, then a write_file run that saves hello.txt in the thread workspace
    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 idContext windowMax outputImage 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, memory and summarization sections 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

  1. Set title.model_name and summarization.model_name to a cheaper model to keep side requests small.
  2. DeerFlowClient(..., subagent_enabled=False) keeps a run to the lead agent.
  3. Use context_window to match the model; DeerFlow budgets prompts with it.

Troubleshooting

SymptomCauseFix
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.

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