Skip to content
GitHub Copilot CLI

Coding agents

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/v1 Endpoint: /v1/chat/completions
Every snippet below follows your choice.

Set it up

  1. Install Copilot CLI

    Shell
    npm install -g @github/copilot
  2. Set the bring-your-own-key variables

    With COPILOT_PROVIDER_BASE_URL set, 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.

    Shell
    export 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
  3. Run Copilot

    copilot opens a session; copilot -p runs one task. --allow-all lets it use tools, paths and URLs without asking.

    Shell
    copilot -p "Run the tests, fix what fails, then run them again." --allow-all
    GitHub Copilot CLI in bring-your-own-key mode on shannon-coder-1: shell, read and edit steps, then both cat_feeder.py fixes
    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 idContext windowMax outputImage 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.

SettingValueWhy
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 /model switches 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=true also turns off telemetry, web tools and auto-update; it requires COPILOT_PROVIDER_BASE_URL.
  • GitHub's docs also describe a ~/.copilot/providers.json file for providers; we tested the environment variables.
  • Set COPILOT_PROVIDER_VISION=true only for a model with image input; otherwise images from tools are not sent.

Tips

  1. --excluded-tools task hides the subagent tool so a run makes one request at a time.
  2. copilot --resume=<id> continues a run; the id is printed at the end.
  3. copilot help environment lists every variable, including COPILOT_PROVIDER_WIRE_API=responses for the Responses API.
  4. Our two-bug test took five requests and about 76,000 input tokens.

Troubleshooting

SymptomCauseFix
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.

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