Paths and limits
The provider paths the Tawa Guard proxy scans or forwards, and its default request, rate and body limits.
Paths the proxy serves
Scanned, on POST only:
| API | Paths |
|---|---|
| OpenAI format | /v1/chat/completions, /v1/responses |
| Anthropic format | /v1/messages |
The form without /v1 is accepted too. Each entry serves the paths of its own
format: OpenAI-format entries, which include OpenRouter and the other built-in
providers except Anthropic, serve the OpenAI paths, and Anthropic-format entries
serve /v1/messages.
Forwarded without scanning:
| Format | Paths under /v1/ |
|---|---|
| OpenAI | models, embeddings, moderations, audio, images, files, batches, fine_tuning |
| Anthropic | models, messages/count_tokens, messages/batches, files |
Any other path returns 404 with the code tawa_path_not_proxied. That includes
GET requests to /v1/responses.
Limits
These are the proxy's defaults. They sit well above normal traffic and exist to stop one token or one source from affecting others.
| Limit | Default | When exceeded |
|---|---|---|
| Requests in flight per token | 256 | 429 |
| Sustained request rate per token | 50 per second, burst of 100 | 429 with Retry-After |
| Invalid token attempts per source address | 30 per minute | 429 with Retry-After: 60 |
| Requests in flight across the proxy | 20,000 | 503 with Retry-After: 1 |
| Scanned request body | 32 MiB | 413 |
| Unscanned request body | 64 MiB | The request fails |
| Non-streaming response buffered for scanning | 16 MiB | Handled by Fallback |
A streaming response counts as in flight until the stream ends.
An entry with provider limits reads the request body, so the body must be uncompressed JSON within the scanned body limit.
Region
The proxy runs in the UK (London). Requests from other regions cross the network to it, and then on to the provider. Plan for that when you measure latency.
Routing rules
The exact rules the Tawa Guard proxy uses to turn a request into a provider call: URL forms, header precedence, entry names, formats and address checks.
Error codes
Every status and code the Tawa Guard proxy returns, with the OpenAI and Anthropic error shapes, the meaning of each code and the headers it can set.