Skip to main content
Morph serves its open models on both the OpenAI and Anthropic wire formats (see Endpoints). You need a Morph API key.

Claude Code

Claude Code speaks the Anthropic Messages API, which Morph serves natively at /v1/messages. It’s the same two-env-var setup as any Anthropic-compatible provider. ANTHROPIC_MODEL remaps sonnet/opus, ANTHROPIC_SMALL_FAST_MODEL remaps haiku (background tasks like titles and summaries).
Or persist it in ~/.claude/settings.json:
For per-task routing across several models in one session (a cheap model for background work, a bigger one for edits), use Claude Code Router (ccr code) with a morph provider pointed at https://api.morphllm.com/v1/chat/completions.

Codex

Codex speaks only the OpenAI Responses API, which Morph serves at /v1/responses. Point Codex at Morph directly:
Or add Morph’s fast edits as a tool. Keep your current Codex model and install the morph CLI + skills, which give Codex Fast Apply edits at 10,500+ tok/s and WarpGrep search:
Model IDs and context windows are on the Open Source Models page; per-token rates are on the pricing page.