Use goose with Shannon
Describe Shannon in a custom provider file and goose runs its developer tools and extensions on Shannon models.
- Tested Nov 7, 2026
- OpenAI Chat Completions
- About 3 min
About goose
goose is an open-source agent, first built at Block, that runs in the terminal and as a desktop app. It works through extensions (MCP servers), with a built-in developer extension for shell commands and file edits. With Shannon it uses a custom OpenAI-compatible provider, so every extension and recipe runs on a Shannon model.
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
-
Add Shannon as a custom provider
Create
~/.config/goose/custom_providers/shannon.json. As in goose's own example,base_urlis the full chat completions URL.context_limittells goose when to summarise.~/.config/goose/custom_providers/shannon.json{ "name": "shannon", "engine": "openai", "display_name": "Shannon", "description": "Shannon API", "api_key_env": "SHANNON_API_KEY", "base_url": "https://api.shannon-ai.com/v1/chat/completions", "models": [ { "name": "Kimi-K3-uncensored-NVFP4", "context_limit": 1022976 } ], "supports_streaming": true, "requires_auth": true } -
Export the key and start goose
api_key_envnames the variable goose reads the key from.goose sessionopens a chat;goose run -truns one task and exits.Shellexport SHANNON_API_KEY=YOUR_API_KEY goose session --provider shannon --model Kimi-K3-uncensored-NVFP4 -
Or run one task
--with-builtin developergives goose its shell and edit tools for the run.Shellgoose run --provider shannon --model Kimi-K3-uncensored-NVFP4 --with-builtin developer \ -t "Run the tests, fix what fails, then run them again."
A real run on goose 1.57.0: two edits in one turn, all three tests passing.
Check that it works
Send: What files are in this folder?
You should see: goose calls its shell tool and lists them; the banner shows shannon <id>.
Models that fit goose
Every id below meets what goose 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 |
shannon-coder-1 | 131,072 | 65,536 | No |
Kimi-K3.1-Pro-uncensored-NVFP4 | 1,022,976 | 262,144 | Yes |
Kimi-K3-uncensored-3BIT-REAP | 225,280 | 225,280 | Yes |
shannon-3 | 196,608 | 65,536 | Yes |
Model settings
goose asks for these values. They follow the model you picked.
| Setting | Value | Why |
|---|---|---|
context_limit | 1022976 | The model's window; GOOSE_CONTEXT_LIMIT overrides it. |
Good to know
- goose names each new session with a separate model request in the background.
GOOSE_DISABLE_SESSION_NAMING=trueskips it. - On a server without a desktop keyring, set
GOOSE_DISABLE_KEYRING=1; goose then keeps secrets in a file and readsapi_key_envfrom the shell. - goose can call several tools in one turn; in our test it made both edits in a single reply.
Tips
- Set
GOOSE_PROVIDER=shannonandGOOSE_MODEL=<id>to skip the flags on every run. GOOSE_MAX_CONCURRENT_SUBAGENTScaps how many subagents run at once (5 by default); each one sends its own requests.goose run --no-sessionkeeps scripted runs out of your session history.- Add more ids under
modelsto switch between them in a session or the desktop app.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
401 with "No api key passed in" | The key is not in the variable that api_key_env names, or it was placed in config.yaml, which goose ignores for keys. | Export SHANNON_API_KEY in the shell that starts goose. |
404 Not Found | base_url lacks /v1/chat/completions. | Use https://api.shannon-ai.com/v1/chat/completions. |
| "Provider not found" | --provider does not match the file's name. | Use the name from the JSON file, here shannon. |
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 goose work with Shannon?
Yes, as a custom provider with engine: openai. We ran a full edit-and-test task through goose's developer extension.
Can the goose desktop app use it?
Yes: the desktop app reads the same custom_providers folder, and can store the key in the keychain.