Live Infrastructure Across Europe • Portugal • Finland • Bulgaria
Digital Frontier
Docs
//flynn

Using Flynn with coding agents

Settings for Claude Code and other coding agents on each Flynn model

Docs are being migrated. These are the getting-started guides. Product names have been updated to DigitalFrontier, but the SDK, CLI and config identifiers in code samples still reference their current names — we publish the surface that actually exists rather than a renamed one. The full API reference is being moved to its own documentation site.

Coding agents such as Claude Code work with Flynn without changes to the agent. Point the agent at Flynn, choose a model, and tell the agent how large that model's context window is, so it compacts the conversation before the window is full.

Claude Code

Claude Code talks to Flynn through the Anthropic-compatible /v1/messages endpoint, at the bare origin https://api.flynn.digitalfrontier.so (no /v1). The recommended model for coding is qwen3.8-27b-awq-int4:

export ANTHROPIC_BASE_URL=https://api.flynn.digitalfrontier.so
export ANTHROPIC_AUTH_TOKEN="$FLYNN_API_KEY"

export ANTHROPIC_MODEL=qwen3.8-27b-awq-int4
export ANTHROPIC_DEFAULT_OPUS_MODEL=$ANTHROPIC_MODEL
export ANTHROPIC_DEFAULT_SONNET_MODEL=$ANTHROPIC_MODEL
export ANTHROPIC_DEFAULT_HAIKU_MODEL=$ANTHROPIC_MODEL
export CLAUDE_CODE_SUBAGENT_MODEL=$ANTHROPIC_MODEL

export CLAUDE_CODE_MAX_CONTEXT_TOKENS=262144
export CLAUDE_CODE_MAX_OUTPUT_TOKENS=16000
export CLAUDE_CODE_AUTO_COMPACT_WINDOW=230000
export CLAUDE_CODE_DISABLE_1M_CONTEXT=1
export API_TIMEOUT_MS=360000
export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1

claude

Set the same model id in ANTHROPIC_MODEL, the three ANTHROPIC_DEFAULT_*_MODEL variables and CLAUDE_CODE_SUBAGENT_MODEL, so every Claude Code tier and every subagent uses the model you chose.

Settings for each model

Use these three values for the model you choose. The other settings are the same for every model.

Model id (ANTHROPIC_MODEL)CLAUDE_CODE_MAX_CONTEXT_TOKENSCLAUDE_CODE_MAX_OUTPUT_TOKENSCLAUDE_CODE_AUTO_COMPACT_WINDOWNotes
qwen3.8-27b-awq-int426214416000230000Recommended for coding. Thinking is off through /v1/messages.
gemma-4-26b-a4b-it26214416000230000
gpt-oss-20b-mxfp413107216000112000Its reasoning counts against the output tokens.
qwen3-coder-30b-a3b-instruct1120008000100000
flynn (router)1120008000100000The router can send a request to its smallest model, so size Claude Code for that one.

For every model:

  • CLAUDE_CODE_DISABLE_1M_CONTEXT=1: no Flynn model has a 1M-token window.
  • API_TIMEOUT_MS=360000: allows six minutes for a long response.
  • CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1: turns off Claude Code's telemetry, error reporting and update checks.

How Flynn handles agent requests

  • Output length. Flynn passes max_tokens through. If the prompt plus max_tokens would not fit in the model's context window, Flynn lowers max_tokens to fit. If fewer than 1024 output tokens would remain, it refuses the request with 400. Compacting the conversation fixes it.
  • Server-side tools. Anthropic server-side tools, such as bash and web_search, are dropped from the request. Tools that the agent runs itself work as usual.
  • Thinking. The thinking parameter is dropped, and MAX_THINKING_TOKENS has no effect.

Other coding agents

Agents that speak the OpenAI API use https://api.flynn.digitalfrontier.so/v1 (with /v1) as the base URL and $FLYNN_API_KEY as the API key. Set the agent's model to one of the ids above, its context window to the model's CLAUDE_CODE_MAX_CONTEXT_TOKENS value, and its maximum output to the model's CLAUDE_CODE_MAX_OUTPUT_TOKENS value.

GET /v1/models lists the models available to your key, with each model's context_window in .flynn.details. See the API reference.