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).
~/.claude/settings.json:
ccr code) with a morph provider pointed at https://api.morphllm.com/v1/chat/completions.
Codex
Codex speaks only the OpenAI Responses API; thewire_api = "chat" path was removed in February 2026, and Morph’s chat models serve Chat Completions and Messages, not Responses. Two ways to run Morph:
Front Morph with a Responses gateway. Put LiteLLM (or any Responses-compatible router) in front of api.morphllm.com and point Codex’s base_url at the gateway:
edit_file backed by morph-v3-fast at 10,500+ tok/s (no gateway):