Bring Your Own Model — AI skill for Claude Code
Run Claude Code on any OpenAI or OpenAI-compatible model — a tiny, dependency-free local bridge that translates the Anthropic Messages API to and from OpenAI (Responses + Chat Completions).
How to install Bring Your Own Model
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open askalf/bring-your-own-model and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Bring Your Own Model does
Run Claude Code on any OpenAI or OpenAI-compatible model — a tiny, dependency-free local bridge that translates the Anthropic Messages API to and from OpenAI (Responses + Chat Completions).
Alternatives in AI
- Cumora — Where agent teams gather 3.2k ★
- WindsurfAPI — Turn Windsurf / Devin Desktop's 100+ AI models (Claude, GPT, Gemini, DeepSeek, Kimi, GLM, SWE) into OpenAI-, A 3k ★
- Vllm Mlx — High-performance OpenAI and Anthropic compatible LLM inference server for Apple Silicon 1.5k ★
README
bring-your-own-model — run Claude Code on any model
[](https://github.com/askalf/bring-your-own-model/actions/workflows/ci.yml) [](https://scorecard.dev/viewer/?uri=github.com/askalf/bring-your-own-model)
**Archived — August 2026.** This bridge works as documented, and the code stays up to read. But it is a finished experiment, not a maintained product: no further releases are planned. The routing layers we do maintain are [dario](https://github.com/askalf/dario) (your Claude subscription behind one local endpoint) and [hybrid](https://github.com/askalf/hybrid) (local-first model routing).
Claude Code speaks one wire protocol: the Anthropic Messages API. This is a tiny local proxy that translates that protocol **to and from OpenAI** (the Responses API and Chat Completions), so you can point Claude Code at GPT-5.6 Sol, gpt-4o, or any OpenAI-compatible endpoint — and drive the full agentic harness with a different model underneath.
Tools, streaming, reasoning, the whole loop. Claude Code never knows.
Zero runtime dependencies — just Node's built-in `http` and two pure translator modules. The whole thing is a few hundred lines you can read.
The demo is GPT-5.6 Sol reading a failing test, reasoning about *why* it fails, and fixing its own code — live inside Claude Code, over the OpenAI wire:
**[▶ Watch the demo](demo/cc-sol-live-cap.mp4)** — `demo/cc-sol-live-cap.mp4`
Quickstart
npm install
npm run build
# your OpenAI key (or any OpenAI-compatible provider's)
export OPENAI_API_KEY=sk-...
# start the bridge, forcing every request to gpt-5.6-sol
node dist/cli.js --model gpt-5.6-sol --port 8788
Then point Claude Code at it — in a separate shell:
export ANTHROPIC_BASE_URL=http://localhost:8788
export ANTHROPIC_API_KEY=any-placeholder
claud
Related Skills
Codex Model Router
Codex 多模型路由:在 Codex Desktop 使用 Claude、第三方 API 和自定义模型。Local LLM proxy for OpenAI Responses / Chat Completions &
GPT Cc
Local Python gateway that lets Claude Code run on OpenAI Chat Completions-compatible models or a locally authe
Multimodal Vision Skill
One image-recognition engine for any AI agent — 3 protocols (OpenAI Chat/Responses, Anthropic Messages), multi
Wechat Acp
Bridge WeChat chat messages to any ACP-compatible AI agent (Claude, Codex, Copilot, Qwen, Gemini, OpenCode and
GPT Web UI
Local Anthropic Messages to OpenAI Responses gateway with a web dashboard, per-key quotas, and Claude Code sup
Swift Agent Session
A tiny, dependency-free reader for terminal AI coding-agent session transcripts — maps an agent's on-disk sess
Related Agents
Grok Agent 01
ONLY job: find free or freemium AI token/API plans (OpenAI-compatible, Anthropic, Google, open routers, studen
AI Saglayici Uzmani
Anthropic Messages API ve OpenAI Codex App Server entegrasyonunun uzmanı — akış, araç döngüsü, hata/yeniden de
Lmstudio Local
A locally-hosted model served through LM Studio's OpenAI-compatible API,