Skip to content
Factory Droid

Coding agents

Use Factory Droid with Shannon

Add Shannon to customModels in ~/.factory/settings.json with the generic Chat Completions provider and pick it under Custom Models in /model.

  • From the Factory Droid docs, Nov 7, 2026
  • OpenAI Chat Completions
  • About 3 min

About Factory Droid

Factory Droid is a coding agent that runs in the terminal, in the Factory desktop app, and headless in scripts and CI through droid exec. It plans and edits code, runs commands under autonomy levels you set, and can hand parts of a task to custom droids. As a custom model in settings.json, Shannon drives Droid in the CLI and the desktop app.

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. Export your API key

    settings.json reads it as ${SHANNON_API_KEY}.

    Shell
    export SHANNON_API_KEY=YOUR_API_KEY
  2. Add Shannon as a custom model

    Add this entry to the customModels array in ~/.factory/settings.json. In the CLI the same form is under /settings → Custom models → Add model; in the desktop app under Settings → Custom Models.

    ~/.factory/settings.json
    {
      "customModels": [
        {
          "model": "Kimi-K3-uncensored-NVFP4",
          "displayName": "Shannon",
          "baseUrl": "https://api.shannon-ai.com/v1",
          "apiKey": "${SHANNON_API_KEY}",
          "provider": "generic-chat-completion-api",
          "maxContextLimit": 760832,
          "maxOutputTokens": 262144,
          "noImageSupport": false
        }
      ]
    }
  3. Pick the model and run

    In droid, run /model and choose Shannon under Custom Models. droid exec names it custom: + display name (spaces as dashes) + its index in the array:

    Shell
    droid exec --model "custom:Shannon-0" "Explain what this repository does."

Check that it works

Send: Explain what this repository does.

You should see: Droid reads the files with its tools and answers with the Shannon model.

Models that fit Factory Droid

Every id below meets what Factory Droid 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

Model settings

Factory Droid asks for these values. They follow the model you picked.

SettingValueWhy
maxContextLimit 760832 Factory asks for the window minus maxOutputTokens.
maxOutputTokens 262144 The longest answer.

Good to know

  • The key stays on your machine. Custom models work in the Droid CLI and desktop app, not in Factory's web or mobile apps.
  • Droid compacts at its compaction limit (250,000 tokens by default) even when maxContextLimit is larger. Raise Default compaction token limit in /settings to use more of the window.
  • generic-chat-completion-api models get no images unless noImageSupport is false.
  • Factory benchmarks only OpenAI and Anthropic models on their official APIs. Prompt caching through the generic provider is not guaranteed by Droid.

Tips

  1. Droid reads AGENTS.md (and CLAUDE.md) from the current folder up to the git root; defaults for all your projects go in ~/.factory/.
  2. Shift+Tab switches between Normal and Spec Mode, which plans before editing; Ctrl+L cycles the autonomy level from Off to High.
  3. droid exec is read-only by default; add --auto low (or medium, high) to let it edit files and run commands.
  4. Press ! on an empty input for bash mode, which runs commands in your shell without the model; @ searches for files to attach.
  5. /context shows how much of the window the session uses, and /compress moves to a new session with a summary.

Troubleshooting

SymptomCauseFix
"Invalid provider" A typo in provider. Use exactly generic-chat-completion-api.
The model is missing from /model The JSON in settings.json does not parse, or a required field is missing. Check the syntax; Droid picks up the file again on save.
droid exec cannot find the model The custom: name or index does not match the entry. Use custom: + display name with dashes + its 0-based position, e.g. custom:Shannon-0.
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 Factory Droid work with Shannon?

Yes, as a custom model with provider generic-chat-completion-api and baseUrl https://api.shannon-ai.com/v1.

Can I use the Anthropic format instead?

Yes: set provider to anthropic and baseUrl to https://api.shannon-ai.com.

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