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, which Morph serves at/v1/responses. Point Codex at Morph directly: