Use GitHub Copilot CLI with Shannon
Run GitHub Copilot CLI on Shannon models with its bring-your-own-key variables; no GitHub sign-in is needed.
- Tested Nov 7, 2026
- OpenAI Chat Completions
- About 2 min
About GitHub Copilot CLI
GitHub Copilot CLI is GitHub's agent for the terminal: it reads and edits files, runs commands and works with GitHub repositories. Its bring-your-own-key mode sends model requests to any OpenAI-compatible endpoint instead of Copilot's own models, and then needs no GitHub sign-in. With Shannon it runs on Shannon models.
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
-
Install Copilot CLI
Shellnpm install -g @github/copilot -
Set the bring-your-own-key variables
With
COPILOT_PROVIDER_BASE_URLset, Copilot CLI sends every request to that endpoint and does not ask for a GitHub login. Tell it the model's limits, or it assumes 128,000 prompt tokens.Shellexport COPILOT_PROVIDER_BASE_URL=https://api.shannon-ai.com/v1 export COPILOT_PROVIDER_TYPE=openai export COPILOT_PROVIDER_API_KEY=YOUR_API_KEY export COPILOT_MODEL=Kimi-K3-uncensored-NVFP4 export COPILOT_PROVIDER_MAX_PROMPT_TOKENS=1022976 export COPILOT_PROVIDER_MAX_OUTPUT_TOKENS=262144 -
Run Copilot
copilotopens a session;copilot -pruns one task.--allow-alllets it use tools, paths and URLs without asking.Shellcopilot -p "Run the tests, fix what fails, then run them again." --allow-all
A real run on GitHub Copilot CLI 1.0.107 without a GitHub login: six tool steps, all tests passing.
Check that it works
Send: /model
You should see: The Shannon id from COPILOT_MODEL.
Models that fit GitHub Copilot CLI
Every id below meets what GitHub Copilot CLI 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
GitHub Copilot CLI asks for these values. They follow the model you picked.
| Setting | Value | Why |
|---|---|---|
COPILOT_PROVIDER_MAX_PROMPT_TOKENS | 1022976 | The model's window; the default for unknown models is 128,000. |
COPILOT_PROVIDER_MAX_OUTPUT_TOKENS | 262144 | The longest answer. |
Good to know
- Copilot CLI's docs also describe
~/.copilot/providers.json, where models are named<provider>/<id>and/modelswitches between them; the variables above are what we tested. - Bring-your-own-key changes the agent's chat and tool requests. GitHub features such as the GitHub MCP server still need a GitHub login, or are off in offline mode.
COPILOT_OFFLINE=truealso turns off telemetry, web tools and auto-update; it requiresCOPILOT_PROVIDER_BASE_URL.- GitHub's docs also describe a
~/.copilot/providers.jsonfile for providers; we tested the environment variables. - Set
COPILOT_PROVIDER_VISION=trueonly for a model with image input; otherwise images from tools are not sent.
Tips
--excluded-tools taskhides the subagent tool so a run makes one request at a time.copilot --resume=<id>continues a run; the id is printed at the end.copilot help environmentlists every variable, includingCOPILOT_PROVIDER_WIRE_API=responsesfor the Responses API.- Our two-bug test took five requests and about 76,000 input tokens.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| Copilot asks you to log in | COPILOT_PROVIDER_BASE_URL is not set in this shell. | Export the variables before starting copilot. |
404 Not Found | The base URL lacks /v1. | Use https://api.shannon-ai.com/v1. |
| Context errors on long sessions | Copilot assumed a bigger window than the model has. | Set COPILOT_PROVIDER_MAX_PROMPT_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
Can GitHub Copilot CLI use Shannon models?
Yes, with its bring-your-own-key variables pointing at https://api.shannon-ai.com/v1.
Do I need a Copilot subscription?
Not for bring-your-own-key requests; we ran it without any GitHub login.