[LIVE] [hughescr/utraque] 1 endpoint(s)
ChatGPT
API Proxy/ChatGPT
2,201 characters
Status: [LIVE]
Endpoints found:
https://code.claude.com/docs/en/llm
https://chatgpt.com/backend-api/codex`
https://platform.claude.com/docs/en/api/errors
Source: https://github.com/hughescr/utraque
# utraque
A local HTTP proxy that lets one Claude Code session use a Claude Max
subscription for Anthropic models, a ChatGPT/Codex subscription for OpenAI GPT
models, and a prepaid DeepSeek API balance side by side.
*One communicant, both subscriptions.*
## What it is
`utraque` is a local HTTP proxy you point Claude Code at. It routes by model
name: pick an Anthropic model and the request goes to `api.anthropic.com`
billed against your Claude Max subscription; pick an OpenAI GPT model
(bare aliases `sol`, `terra`, `luna`, `astra`) and the request goes to OpenAI billed
against your ChatGPT/Codex subscription; pick `deepseek-flash` or
`deepseek-v4-pro` and the request uses your prepaid DeepSeek API key. All three
backends are addressed by their own model names inside one Claude Code session.
## Status
**The subscription legs are implemented and verified against the real
backends.** A `sol`
request returned a real OpenAI answer billed to the Codex subscription, and a
Claude request streamed a correct Anthropic SSE sequence, through one proxy in
one session. The DeepSeek leg is covered by hermetic contract tests; it has not
yet been included in the live-backend tripwire.
- **Anthropic leg.** A transparent passthrough: the request, including Claude
Code's own OAuth credential, is forwarded byte-for-byte. The transport is
transparent; one *client-side* behaviour is not, which is why
`_CLAUDE_CODE_ASSUME_FIRST_PARTY_BASE_URL=1` is required — see *Install & run*.
- **Codex/GPT leg.** A GPT model reaches the Codex backend and streams back as
Anthropic-shaped SSE — or as a single `MessagesResponse` when the client sends
`stream:false` — billed against your Codex subscription. `GET /v1/models`
serves the merged picker catalog, and `POST /v1/messages/count_tokens` is
answered locally for GPT-routed models with the real o200k_base tokenizer
(compiled in; nothing is downloaded), counting the request as it would go
upstream — see *Token counts and