Compatibility matrix
What works with what, and how sure we are, as of 0.1.7. Everything here is tested against synthetic fixtures, fakes and embedded servers, and nothing has yet been verified against live provider accounts. A cell only moves up when there is evidence for it.
| Status | Means |
|---|---|
| contract-tested | Covered by tests against fixtures written from the public API documentation, fake binaries or synthetic upstreams. |
| implemented | The code is there and exercised indirectly, but has no dedicated test. |
| live-verified | A recorded run against the real service, with date, version and script. So far only the reverse proxies below. |
| blocked | Needs something external before it can be verified: credentials, a login or a binary. |
| unsupported | Deliberately not provided. |
When translation to a provider starts failing in practice, Settings → Diagnostics shows the degraded paths, circuit breakers and protocol changes Harbor Pilot observed.


The same matrix, with the test that backs each cell, is in docs/COMPATIBILITY.md.
Protocols your tools can speak
| Protocol | Not streaming | Streaming | Tools | Parallel tools | Streamed tool arguments | Structured output | Reasoning settings | Images |
|---|---|---|---|---|---|---|---|---|
| Anthropic Messages | contract-tested | contract-tested | contract-tested | contract-tested | contract-tested | not translatable to other providers | contract-tested | implemented |
| OpenAI Chat Completions | contract-tested | contract-tested | contract-tested | contract-tested | contract-tested | implemented | implemented | implemented |
| OpenAI Responses | contract-tested | contract-tested | contract-tested | implemented | contract-tested | implemented | implemented | implemented |
Gemini generateContent | implemented | contract-tested | contract-tested | implemented | n/a (calls arrive whole) | implemented | implemented | implemented |
| Model listing | contract-tested |
Endpoints are listed in Gateway endpoints.
Translation between protocols
Each pair is checked for system and developer prompts, text, tool definitions, tool choice, tool calls and results, streamed tool arguments, finish reasons, usage categories, errors and cancellation. Signed or encrypted reasoning only crosses within its own protocol family; for every other pair it is downgraded according to policy.
| Your tool speaks ↓ / provider speaks → | Anthropic | OpenAI Chat | OpenAI Responses | Gemini | OpenAI-compatible | Local (Ollama and others) |
|---|---|---|---|---|---|---|
| Anthropic Messages | contract-tested | contract-tested | contract-tested | contract-tested | contract-tested | contract-tested (OpenAI-compatible endpoint) |
| OpenAI Chat | contract-tested | contract-tested | contract-tested | contract-tested | contract-tested | contract-tested (OpenAI-compatible endpoint) |
| OpenAI Responses | contract-tested | contract-tested | contract-tested | contract-tested | contract-tested | contract-tested (OpenAI-compatible endpoint) |
| Gemini | contract-tested | contract-tested | contract-tested | contract-tested | contract-tested | contract-tested (OpenAI-compatible endpoint) |
Reasoning settings
Claude Code sends adaptive thinking (thinking: {type: "adaptive"}) with a top-level output_config.effort. Other providers have their own reasoning parameters, so a model's reasoning option decides how these settings are written for its upstream (see Providers). Without the option, only an explicit level is translated as before, and adaptive thinking and output_config reach only Anthropic models.
| Style | Provider types | What the provider receives | Status |
|---|---|---|---|
anthropic_thinking | Anthropic | Adaptive thinking unchanged; a level becomes a thinking budget | contract-tested |
openai_reasoning_effort | OpenAI, OpenAI-compatible, local | reasoning_effort | contract-tested |
openai_responses_reasoning | OpenAI | reasoning.effort | contract-tested |
openrouter_reasoning | OpenAI-compatible | A reasoning object with an effort, a token budget, or enabled | contract-tested |
deepseek_thinking | OpenAI-compatible | thinking on or off, plus reasoning_effort | contract-tested |
gemini_thinking_config | Gemini | A thinking budget (-1 lets the model decide) | contract-tested |
none | all | Nothing | contract-tested |
None of these is verified against the live services yet. Anthropic's server-side context editing (context_management) has no equivalent elsewhere and is always dropped, with a recorded loss.
System messages inside the conversation
On the models it documents for this feature, the Anthropic Messages API accepts {"role": "system", ...} entries inside messages[]: operator instructions added later in a conversation without changing the top-level system prompt. Claude Code sends them on models that support them. Harbor Pilot accepts them on /v1/messages. When the plan sends the request to an Anthropic model that the public documentation lists as not supporting them (Claude Sonnet 5, and models from before the Claude 5 generation other than Claude Opus 4.8), the entry is sent as user text in place and recorded as an approximate loss. Any other model gets the entry unchanged, including models Harbor Pilot doesn't know. Where an entry may appear is left to the provider, which answers 400 for a misplaced one.
| Provider speaks | What the provider receives | Status |
|---|---|---|
| Anthropic | The entry unchanged and in place, including clear_at and output_config | contract-tested (synthetic upstream and demo) |
| Anthropic, on a model without support | User text in place (approximate loss). clear_at and output_config are left out | contract-tested (synthetic upstream) |
| OpenAI Chat, OpenAI-compatible, OpenAI Responses | A system message in place. An entry that only changes settings (empty content) is left out | contract-tested |
| Gemini | User text in place, since Gemini has a single system instruction before the conversation (recorded as an approximate loss) | contract-tested |
| Claude Code bridge | User text in place (approximate loss) | contract-tested (request builder) |
| Codex bridge | Not carried | implemented |
clear_at and output_config have no equivalent outside Anthropic. They are dropped, and each drop is recorded as a loss. In the other direction, a later system or developer message from an OpenAI client reaches Anthropic as user text, because the target model might not accept the role.
Prompt-cache breakpoints
Anthropic accepts at most four cache_control breakpoints per request, and their lifetimes must not increase from tools to system to messages: a one-hour breakpoint can't follow a five-minute one. Harbor Pilot checks the request it sends, because merging or dropping blocks on the way can break a request your tool sent correctly.
| Provider | What the provider receives | Status |
|---|---|---|
| Anthropic | Your breakpoints unchanged when they follow the rules. Over four: the last four are kept, since the last one covers the most. A one-hour breakpoint after a five-minute one becomes five minutes. Each change is recorded as a loss | contract-tested (synthetic upstream) |
| Claude Code bridge | The CLI's own breakpoints instead of yours (recorded as an approximate loss), with your cache lifetime: one hour if any of your breakpoints asks for it or you set none, five minutes if all of yours ask for five. Cache reads and writes show on the request | contract-tested |
| Codex bridge | Not applicable: the conversation is sent as text | implemented |
CLI bridges
The bridges serve subscription accounts through the vendors' own CLIs. They take Harbor Pilot's internal request form, so a tool speaking any protocol can reach them.
| Through the gateway | The bridge itself | Live | |
|---|---|---|---|
| Claude Code bridge | contract-tested from Anthropic Messages; implemented from the other protocols | contract-tested against the real claude 2.1.318 binary with a synthetic upstream, including failover when a subscription window is used up | blocked: needs a real subscription sign-in |
| Codex bridge | implemented | contract-tested against a fake binary that emits the documented codex exec --json events; its tool restrictions and per-run profile were checked against the real codex 0.166.0 without a model call | blocked: needs a ChatGPT sign-in |
What a bridge can and cannot carry is in Known limitations.
Coding tools
| Tool | Speaks | What setup writes | harbor-pilot harness | Live |
|---|---|---|---|---|
| Claude Code | Anthropic Messages | settings.json: base URL, model, and an apiKeyHelper that reads the token file; the token as CLAUDE_CODE_OAUTH_TOKEN instead to see usage in /usage and the status line | contract-tested; request shape contract-tested against 2.1.318, including system messages inside the conversation; usage headers contract-tested, and how 2.1.323 shows them observed against a synthetic server | pending |
| Codex | OpenAI Responses | config.toml: a [model_providers.<id>] entry | contract-tested | blocked: binary not installed |
| OpenCode | OpenAI-compatible or Anthropic | opencode.json provider options | contract-tested | blocked: binary not installed |
| Pi | OpenAI-compatible or Anthropic | models.json | contract-tested | blocked: binary not installed |
| SDKs and API clients | any of the four | base URL and bearer token | n/a | contract-tested with a plain client |
Recognising which tool sent a request is a guess from its headers, not proof.
Providers
| Provider | Kind | Sign-in | Quota from | Status |
|---|---|---|---|---|
| Anthropic API | HTTP | API key | response headers, Admin API | contract-tested; live: blocked (credentials) |
| OpenAI API (Chat and Responses) | HTTP | API key | response headers, Admin API | contract-tested; live: blocked |
| Gemini API | HTTP | API key | Cloud Quotas | implemented, quota adapter contract-tested; live: blocked |
| OpenAI-compatible (OpenRouter, DeepSeek, xAI, Together, Moonshot and others) | HTTP | API key | balance endpoints | contract-tested; live: blocked |
| Ollama, vLLM, llama.cpp, LM Studio | local HTTP (OpenAI-compatible) | none or key | none | contract-tested (synthetic); live: not run |
| Claude subscription | Claude Code bridge | setup token per account | the CLI's rate-limit events (5-hour and 7-day windows) | see CLI bridges |
| ChatGPT subscription | Codex bridge | per-account Codex sign-in | codex_subscription quota tracker | see CLI bridges |
| Replaying a subscription token directly, or impersonating a vendor client | unsupported, by design |
Any HTTP provider's model can carry upstream request fields: fields from a short allowlist per provider type, and a typed provider pin on OpenAI-compatible providers only (D-046). CLI bridge providers refuse them. The pin follows the documented router options; Harbor Pilot does not check them against a live router, so a router that changes its schema needs a matching change here.
Quota tracking
| Adapter | Tier | Status |
|---|---|---|
anthropic_admin, openai_admin, gemini_gcp, xai | official | contract-tested (fixtures) |
together, deepseek, moonshot, openrouter | official | contract-tested (fixtures) |
claude_subscription, codex_subscription | unofficial, opt-in | contract-tested (fixtures); in-app sign-in guards tested |
cursor, github_copilot, nexos, zai_coding_plan, minimax_coding_plan | per adapter | contract-tested (fixtures) |
generic_http | official (your own mapping) | contract-tested (local fake) |
claude_code_statusline | reported by the client | registered; no ingestion endpoint yet |
Rate limits in provider responses (anthropic-ratelimit-*, x-ratelimit-*) are read as requests pass through: contract-tested. None of the adapters has been verified against a live account.
Reverse proxies
Each configuration in Behind a reverse proxy was run by scripts/proxy-check.sh against the real proxy: streaming, a quiet 75-second stream, a 2-minute unstreamed reply and a 20 MiB request through a stand-in backend that answers like the gateway, and sign-in through the proxy to the real demo.
| Proxy | Status |
|---|---|
| nginx | live-verified (2026-11-06, nginx 1.29.8) |
| Apache httpd | live-verified (2026-11-06, httpd 2.4.69) |
| Caddy | live-verified (2026-11-06, Caddy 2.11.9) |
| Traefik | live-verified (2026-11-06, Traefik 3.7.17) |
| HAProxy | live-verified (2026-11-06, HAProxy 3.2.26) |
| Cloudflare Tunnel | documented from Cloudflare's limits; not run |