A restored Claude Code source tree (TypeScript) that is runnable locally via Bun. It provides a multi-provider CLI with GitHub Models and Copilot-backed endpoints, plus documented run/install commands.
Collecting history — the radar snapshots this repo daily. The trend line appears after 3 days of data (1 so far).
What it is
Runnable ClaudeCode source code restored from source maps and missing modules. It aims to be a usable, runnable restored workspace rather than the original upstream state.
How it works
The restored CLI runs through a bootstrap path and provides a multi-provider runtime. Providers currently supported:
github-models: OpenAI-compatible GitHub Models endpointgithub-copilot: Copilot-backed endpoint for Claude models Authentication lookup order:- provider-specific env var
GH_TOKENGITHUB_TOKENgh auth token
Getting started
Requirements:
- Bun 1.3.5 or newer
- Node.js 24 or newer
Install dependencies:
bun install
Run the restored CLI:
bun run dev
Print the restored version:
bun run version
Log in with GitHub CLI if needed:
gh auth login
Use GitHub Models with the restored Claude Code runtime:
bun run dev --settings '{"provider":"github-models"}'
Specify a GitHub Models model:
bun run dev --settings '{"provider":"github-models"}' --model "openai/gpt-4.1"
Use GitHub Copilot with the restored Claude Code runtime:
bun run dev --settings '{"provider":"github-copilot"}'
Interactive provider switching:
/provider
Common commands:
/providerto open provider picker/provider infoto show current provider and environment overrides/provider github-copilotto switch provider/modelto continue model selection for the active provider Switch to a Copilot Claude model:
bun run dev --settings '{"provider":"github-copilot"}' --model "claude-opus-4.6"
Copilot models validated with Claude Code runtime:
claude-sonnet-4.6claude-opus-4.6claude-haiku-4.5claude-sonnet-4.5claude-opus-4.5claude-sonnet-4Current limitations:- Copilot-hosted Claude models run through the existing Claude Code agent/runtime path.
- Copilot-hosted GPT/Grok models not fully wired yet due to needing Copilot's
/responsesAPI instead of the current chat/messages path.
中文说明
(同上,中文版本提供相同信息,包含运行方式与 Provider 支持说明)






