Protoverta

Protoverta

One request, any provider. Protoverta converts requests, responses and streams between OpenAI Chat Completions, Anthropic Messages and OpenAI Responses, as a Python library or a local gateway.

pip install protoverta
Nine routes

Every direction between the three APIs, for JSON and streaming: text, images, PDFs, function tools and output formats.

Using the library
Strict, never invented

A field that cannot keep its meaning is rejected with a clear error. Reasoning, token counts and history are never fabricated.

Compatibility guides
Local gateway

One command puts any provider behind the endpoint your client already speaks, on 127.0.0.1 only.

Running the gateway
Smart retries

Transient provider errors are retried by class; deterministic ones are reported at once. Output is never sent twice.

Retries
Streams you can trust

Framing and lifecycle are validated, keep-alives prevent idle timeouts and deadlines bound every request.

Provider profiles, shared budgets and retry boundaries
Zero dependencies

Pure Python 3.11+, fully typed public API, attested releases with SHA-256 checksums.

Python API

Routes

From ↓ · To →

Chat Completions

Anthropic Messages

Responses

Chat Completions

native

translated

translated

Anthropic Messages

translated

native

translated

Responses

translated

translated

native

Native routes forward payloads unchanged while validating stream framing and lifecycle. Translated routes cover the portable subset; see the compatibility guides for each feature’s exact contract.

Using Codex CLI or Claude Code?

You do not need to configure the gateway yourself. The launchers install and run Protoverta for you:

CodexApter

OpenAI Codex CLI with Responses, Chat Completions or Messages providers. Command: codex-ca.

https://github.com/HaianCao/CodexApter
ClaudApter

Claude Code with Messages, Chat Completions or Responses providers. Command: claude-ca.

https://github.com/HaianCao/ClaudApter