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/v1Endpoint:/v1/chat/completions - Every snippet below follows your choice.
Set it up
-
Export your API key
settings.jsonreads it as${SHANNON_API_KEY}.Shellexport SHANNON_API_KEY=YOUR_API_KEY -
Add Shannon as a custom model
Add this entry to the
customModelsarray 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 } ] } -
Pick the model and run
In
droid, run/modeland choose Shannon under Custom Models.droid execnames itcustom:+ display name (spaces as dashes) + its index in the array:Shelldroid 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 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
Factory Droid asks for these values. They follow the model you picked.
| Setting | Value | Why |
|---|---|---|
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
maxContextLimitis larger. Raise Default compaction token limit in/settingsto use more of the window. generic-chat-completion-apimodels get no images unlessnoImageSupportisfalse.- Factory benchmarks only OpenAI and Anthropic models on their official APIs. Prompt caching through the generic provider is not guaranteed by Droid.
Tips
- Droid reads
AGENTS.md(andCLAUDE.md) from the current folder up to the git root; defaults for all your projects go in~/.factory/. Shift+Tabswitches between Normal and Spec Mode, which plans before editing;Ctrl+Lcycles the autonomy level from Off to High.droid execis read-only by default; add--auto low(ormedium,high) to let it edit files and run commands.- Press
!on an empty input for bash mode, which runs commands in your shell without the model;@searches for files to attach. /contextshows how much of the window the session uses, and/compressmoves to a new session with a summary.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| "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.