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
- Deepreasoning — A high-performance LLM inference API and Chat UI that integrates DeepSeek R1's CoT reasoning traces with Anthr 5.4k ★
- 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 ★
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
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
Token Proxy
Local AI API gateway for OpenAI / Gemini / Anthropic. Runs on your machine, keeps tokens counted (SQLite), off
DuckAI2API
OpenAI / Anthropic / Responses API server for Duck.ai — free GPT-5.6 Luna reasoning, real SSE streaming, Claud
Free Claude Code Nix
Free Claude Code packaged for NixOS - Anthropic-compatible local proxy fronting Claude Code with any model bac
Micro Agent CLI
🏆 Ultralight AI Coding Agent 2026 — Blazing CLI, Tiny Codebase, Full Power Free
Related Agents
LLM Orchestrator
Use this agent for LLM integration work — prompt engineering, multi-provider abstraction (OpenRouter, Gemini,
Chat Tracker
Read job-related conversations from WhatsApp Web and LinkedIn messaging by driving the user's logged-in Chrome
AI Frontend Engineer
AI Frontend Engineer who builds beautiful, performant, accessible UIs for AI-powered products including chat i