askalf

Bring Your Own Model — AI skill for Claude Code

AI community

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

[![CI](https://github.com/askalf/bring-your-own-model/actions/workflows/ci.yml/badge.svg)](https://github.com/askalf/bring-your-own-model/actions/workflows/ci.yml) [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/askalf/bring-your-own-model/badge)](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