Directories
¶
| Path | Synopsis |
|---|---|
|
Package ca manages the certificate authority used to terminate TLS for intercepted hosts.
|
Package ca manages the certificate authority used to terminate TLS for intercepted hosts. |
|
Package codex authenticates against the OpenAI Codex (ChatGPT subscription) backend and speaks its Responses API.
|
Package codex authenticates against the OpenAI Codex (ChatGPT subscription) backend and speaks its Responses API. |
|
Package config holds the on-disk configuration for the proxy along with the defaults that make it usable with no configuration at all.
|
Package config holds the on-disk configuration for the proxy along with the defaults that make it usable with no configuration at all. |
|
Package httplog logs every HTTP request the proxy makes or serves.
|
Package httplog logs every HTTP request the proxy makes or serves. |
|
Package logx is a tiny leveled logger so the proxy stays dependency-free for something as small as printing lines.
|
Package logx is a tiny leveled logger so the proxy stays dependency-free for something as small as printing lines. |
|
Package proxy exposes the router through the two entry points a client can reach it by: an HTTP CONNECT proxy that terminates TLS for the intercepted hosts, and a direct TLS listener presenting the intercepted host's name.
|
Package proxy exposes the router through the two entry points a client can reach it by: an HTTP CONNECT proxy that terminates TLS for the intercepted hosts, and a direct TLS listener presenting the intercepted host's name. |
|
Package resolve is the proxy's own DNS client.
|
Package resolve is the proxy's own DNS client. |
|
Package router serves the Anthropic API surface: it forwards traffic to the real API untouched, extends the advertised model list, and answers requests for the added models from their own provider.
|
Package router serves the Anthropic API surface: it forwards traffic to the real API untouched, extends the advertised model list, and answers requests for the added models from their own provider. |
|
Package tokenize provides the token estimate the proxy answers /v1/messages/count_tokens with for models that have no upstream counting endpoint.
|
Package tokenize provides the token estimate the proxy answers /v1/messages/count_tokens with for models that have no upstream counting endpoint. |
|
Package translate converts between the Anthropic Messages API that Claude Code speaks and the OpenAI Responses API exposed by the Codex backend.
|
Package translate converts between the Anthropic Messages API that Claude Code speaks and the OpenAI Responses API exposed by the Codex backend. |
Click to show internal directories.
Click to hide internal directories.