@r-33/route33-copilot
v0.2.0
Published
Interactive wizard that configures GitHub Copilot CLI to run on Route 33 inference.
Readme
@r-33/route33-copilot
Interactive wizard that configures GitHub Copilot CLI to run on Route 33 inference.
Usage
npx route33-copilotCopilot CLI starts automatically when the wizard finishes.
What the wizard does
- Welcomes you and explains what will change.
- Asks which Route 33 API key to use — keys you pasted before are remembered (in
~/.config/route33-copilot-setup/keys.json) with a local name you choose (e.g. "personal", "work-org") and offered again; you can always add a new one. - Lets you pick one model from the live catalog (
GET /v1/models) — the pick is verified with an OpenAI-compatible chat completion request against the live API. - Writes a BYOK provider entry to
~/.copilot/providers.json(a timestamped backup of your previous providers is written next to it). Your existing providers and models are preserved — only theroute33entries are replaced. - Sets the default model via
copilot config model route33/<model>(when copilot is on PATH). - Starts Copilot CLI — the wizard launches
copilotinteractively and exits with its status code.
What gets written
{
"providers": [
{
"name": "route33",
"type": "openai",
"baseUrl": "https://api.route33.ai/v1",
"apiKey": "sk-r33-…",
"wireApi": "completions"
}
],
"models": [
{
"id": "anthropic/claude-sonnet-5-5",
"provider": "route33",
"wireModel": "anthropic/claude-sonnet-5-5",
"maxPromptTokens": 200000
}
]
}Undo / restore
cp ~/.copilot/providers.backup-<timestamp>.json ~/.copilot/providers.jsonRequirements
- Node.js >= 18
- A Route 33 API key (
sk-r33-…) - GitHub Copilot CLI (
npm install -g @github/copilot)
Develop
pnpm --filter @r-33/route33-copilot build
pnpm --filter @r-33/route33-copilot test
pnpm --filter @r-33/route33-copilot type:check
pnpm --filter @r-33/route33-copilot lint