TheStreamCode

Copilot Byok Switcher — AI skill for Claude Code

AI community

Your own provider models inside the GitHub Copilot CLI model picker, without persisting credentials.

How to install Copilot Byok Switcher

This entry records only its repository, not the path inside it, so there is no exact command to give. Open TheStreamCode/copilot-byok-switcher and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Copilot Byok Switcher does

Your own provider models inside the GitHub Copilot CLI model picker, without persisting credentials.

Alternatives in AI

  • Claude Code Switch — One-command model switcher for Claude Code (Only for Anthropic API) 655 ★
  • Late CLI — High-performance AI agent for long-horizon tasks and local models 442 ★
  • Cplt — Sandbox for AI coding agents 114 ★

README

Copilot BYOK Switcher

Your own provider models inside the GitHub Copilot CLI `/model` picker

[![CI](https://github.com/TheStreamCode/copilot-byok-switcher/actions/workflows/ci.yml/badge.svg)](https://github.com/TheStreamCode/copilot-byok-switcher/actions/workflows/ci.yml) [![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![npm](https://img.shields.io/npm/v/copilot-byok-switcher)](https://www.npmjs.com/package/copilot-byok-switcher)

Copilot BYOK Switcher adds your own provider models to the GitHub Copilot CLI `/model` picker, in the same session as the GitHub models. Pick an Anthropic, OpenAI, DeepSeek, Qwen, GLM, Kimi or other provider model and the session talks straight to that provider with your key, while GitHub authentication and every other Copilot feature keep working. The picker is filled by live discovery from each configured provider. This is an independent, unofficial project and is not affiliated with GitHub.

Install

Install the CLI from the npm registry:

npm install -g copilot-byok-switcher

Quick start

# 1. Store a key for each provider you own (prompted, never echoed)
copilot-byok keys set openai
copilot-byok keys set anthropic

# 2. See what is active
copilot-byok --list-providers

# 3. Start Copilot
copilot-byok

Open `/model` inside the session and pick one of your models. Arguments after `--` go to Copilot unchanged:

copilot-byok -- -p "fix the failing test" --allow-all-tools

Features

  • Your provider models appear in the Copilot CLI /model picker next to GitHub's, in the same session.
  • Use as many providers per session as you configure.
  • GitHub models stay available while BYOK is active, and models can be switched with /model without restarting.
  • Live discovery: each configured provider is asked what it serves at startup, with a remembered list as the fallback when a request fails.
  • Zero AI credits for BYOK turns; you pay your provider directly.
  • Credentials