Probing native protocol error shapes on /v1/messages and /v1/responses A developer at Kantro probed the gateway's four less-common native endpoints — /v1/messages, /v1/messages/count_tokens, /v1/responses and /v1/responses/compact — and found each returns its provider's native 401 error envelope rather than a translated schema. The Anthropic paths return type: "error" with authentication_error, while the OpenAI paths return invalid_request_error with param and code fields, which the developer notes matters because official SDKs parse error envelopes differently before retry logic runs. The check covered only unauthenticated 401s and the documented route surface; streaming SSE parity on 200 responses was not tested. Most LLM proxies advertise "OpenAI-compatible" endpoints and stop at /v1/chat/completions . That works fine for a single chat call, then breaks the moment you point Claude Code or the Codex CLI at the proxy. Claude Code expects Anthropic's /v1/messages and /v1/messages/count tokens shapes including type: "error" envelopes on 401s , and newer OpenAI clients call /v1/responses and /v1/responses/compact . On Kantro https://kantro.dev , we kept the native endpoints separate instead of translating everything through a single schema. I wanted to verify whether unauthenticated error envelopes and route coverage actually stay native on the live edge, so I probed the four less-common endpoints directly against kantro.dev : for ep in /v1/messages /v1/messages/count tokens /v1/responses /v1/responses/compact; do echo "=== $ep ===" curl -sS -w "\nHTTP:%{http code}\n" -X POST "https://kantro.dev$ep" \ -H "Content-Type: application/json" -d '{}' done Here is what came back: === /v1/messages === {"type":"error","error":{"type":"authentication error","message":"Invalid Kantro API key. Check your Bearer token or generate a key: https://kantro.dev/app/keys"}} HTTP:401 === /v1/messages/count tokens === {"type":"error","error":{"type":"authentication error","message":"Invalid Kantro API key. Check your Bearer token or generate a key: https://kantro.dev/app/keys"}} HTTP:401 === /v1/responses === {"error":{"message":"Invalid Kantro API key. Check your Bearer token or generate a key: https://kantro.dev/app/keys","type":"invalid request error","param":null,"code":"invalid api key"}} HTTP:401 === /v1/responses/compact === {"error":{"message":"Invalid Kantro API key. Check your Bearer token or generate a key: https://kantro.dev/app/keys","type":"invalid request error","param":null,"code":"invalid api key"}} HTTP:401 Both Anthropic paths return Anthropic's authentication error wrapper, while both OpenAI paths return OpenAI's invalid request error shape with param and code . That matters because official SDKs parse the error envelope differently before they even reach your retry logic. If a gateway returns an OpenAI error JSON on /v1/messages , the Anthropic SDK's error parser falls back to an untyped error. Checking the OpenAPI spec https://kantro.dev/openapi.json also turned up /v1/key , /v1/keys , and /v1/keys/{hash} alongside /v1/models for inspecting per-key spend limits and rotating keys programmatically. On the CLI side, npx kantro-setup writes keys to ~/.config/kantro/key or reads KANTRO API KEY and prints file diffs before editing local tool configs instead of dropping keys into a repo .env . This only checks the unauthenticated 401 envelope and documented route surface. I did not run a streaming SSE diff against upstream Anthropic or OpenAI in this pass, so header and chunk parity on 200 responses still needs a keyed run to verify directly.