Loading...
Loading...
Run the restored Claude Code agent runtime with GitHub Models or Copilot providers for local AI coding workflows
npx skill4agent add aradotso/claude-code-skills claude-code-restored-runtimeSkill by ara.so — Claude Code Skills collection.
claude-code-revghgit clone https://github.com/oboard/claude-code-rev.git
cd claude-code-rev
bun installbun run version
bun run dev --helpGH_TOKENGITHUB_TOKENgh auth tokengh auth loginexport GITHUB_TOKEN="ghp_your_token_here".envGITHUB_TOKEN=ghp_your_token_herebun run devbun run dev --settings '{"provider":"github-models"}'bun run dev --settings '{"provider":"github-models"}' --model "openai/gpt-4.1"bun run dev --settings '{"provider":"github-copilot"}'bun run dev --settings '{"provider":"github-copilot"}' --model "claude-opus-4.6"| Command | Description |
|---|---|
| Open interactive provider picker |
| Show current provider and environment overrides |
| Switch directly to GitHub Copilot |
| Switch directly to GitHub Models |
| Command | Description |
|---|---|
| Open model picker for current provider |
bun run dev --help # Show full command tree
bun run version # Print restored versionclaude-sonnet-4.6claude-opus-4.6claude-haiku-4.5claude-sonnet-4.5claude-opus-4.5claude-sonnet-4/responsesopenai/gpt-4.1openai/gpt-4ometa-llama/Llama-3.3-70B-Instruct# Inline settings override
bun run dev --settings '{"provider":"github-copilot","autoSave":true}'# Force GitHub Models provider via env
export CLAUDE_CODE_PROVIDER="github-models"
bun run dev# Start with GitHub Models
bun run dev --settings '{"provider":"github-models"}'
# Inside CLI, switch to Copilot
/provider github-copilot
# Pick a specific model
/model
# (select claude-opus-4.6 from picker)import { GitHubModelsProvider } from './providers/github-models';
const provider = new GitHubModelsProvider({
apiKey: process.env.GITHUB_TOKEN,
model: 'openai/gpt-4.1',
});
const response = await provider.chat({
messages: [
{ role: 'user', content: 'Explain this function' },
],
});
console.log(response.content);import { GitHubCopilotProvider } from './providers/github-copilot';
const copilot = new GitHubCopilotProvider({
token: process.env.GITHUB_TOKEN,
model: 'claude-sonnet-4.6',
});
const result = await copilot.complete({
prompt: 'Write a binary search in Rust',
maxTokens: 500,
});import { bootstrap } from './cli/bootstrap';
async function main() {
await bootstrap({
provider: process.env.CLAUDE_CODE_PROVIDER || 'github-models',
model: process.env.CLAUDE_CODE_MODEL,
autoSave: true,
});
}
main().catch(console.error);# Start session
bun run dev
# Switch provider mid-session
/provider
# Select github-copilot from picker
# Verify active provider
/provider info#!/bin/bash
export GITHUB_TOKEN=$(gh auth token)
bun run dev \
--settings '{"provider":"github-copilot"}' \
--model "claude-opus-4.6"// Automatic fallback if primary provider fails
const providers = [
new GitHubCopilotProvider({ token: process.env.GITHUB_TOKEN }),
new GitHubModelsProvider({ apiKey: process.env.GH_TOKEN }),
];
for (const provider of providers) {
try {
return await provider.chat(messages);
} catch (err) {
console.warn(`Provider ${provider.name} failed:`, err);
}
}
throw new Error('All providers failed');bun installbun --version # Must be 1.3.5+
bun upgrade
bun install --force# Verify token presence
gh auth status
# Re-authenticate
gh auth login
# Or manually set token
export GITHUB_TOKEN="ghp_..."# Use /model picker instead of manual entry
bun run dev --settings '{"provider":"github-copilot"}'
# Then run: /model/responsesbun run dev \
--settings '{"provider":"github-copilot"}' \
--model "claude-sonnet-4.6"# Enable debug logging
DEBUG=* bun run dev
# Check for MCP tool catalog errors
# Report specific tool failures to repo issuesbun run devbun run dev --help
# Shows full command tree from restored bootstrap// In your test suite
import { switchProvider } from './cli/commands/provider';
await switchProvider('github-copilot');
const info = await getProviderInfo();
assert(info.active === 'github-copilot');cli/bootstrap.tsproviders/github-models.tsproviders/github-copilot.tsmcp/chrome-mcp.tsmcp/computer-use-mcp.ts/responses/provider info/model