Tawa docs

Hosted proxy

Scan every OpenAI, Anthropic and OpenRouter request by changing one base URL. Choose providers per app or per request, with 172 models verified.

The Tawa Guard hosted proxy sits between your app or tool and the model provider. You change the provider base URL to a Tawa Guard URL that carries a proxy token. Every request is scanned on the way through for prompt injection and other attacks, then forwarded to the provider you chose. There is no SDK to add and no software to run.

Use it when you cannot or do not want to add SDK calls: a CLI agent, a third-party tool that accepts a base URL, or an app you would rather not touch. If you prefer to call the scanner from code, see the TypeScript SDK or the Python SDK. Learn more about the product at tawaguard.com.

Beta

The hosted proxy is in beta. Every effort has been taken to ensure it works as described, but some features or LLMs may not work seamlessly.

Start here

How it works

your app or tool
      │  base URL = https://proxy.tawaguard.com/<token>/<provider>/v1
      ▼
Tawa Guard proxy ── scans the request, tool results, tool calls and (optionally) the reply
      │
      ▼
the provider you chose: OpenAI, Anthropic, OpenRouter, ...

The proxy removes the token and the provider name from the path and forwards the rest unchanged, so your client keeps calling /chat/completions, /responses or /v1/messages as usual. Your provider key travels with the request and is never stored.

A proxy token belongs to one app and one environment. Scans are made as that app and count against your plan. See Plans and pricing.

Choose where requests go

The app decides which providers its proxy may reach: its allowed providers. Each request then picks one of them in one of three ways.

MethodHowUse it when
Name in the URLhttps://proxy.tawaguard.com/<token>/openrouter/v1One base URL per provider.
Headerx-tawa-upstream: openrouterThe client keeps one URL and switches provider per request.
/auto and a defaulthttps://proxy.tawaguard.com/<token>/auto/v1One URL for everything, with a default provider for the app.

A request can only choose between providers on the app's list. It can never supply an address of its own.

Allowed providers

Each app has a list of providers its proxy may send requests to. A request to a provider that is not on the list is refused. A new app allows OpenAI and Anthropic. Add OpenRouter, Mistral, Groq, DeepSeek, xAI or Together with a tick, or add your own HTTPS endpoint. Step by step: Allowed providers.

Per-request choice

The provider can be named in the URL or in the x-tawa-upstream header. When both are present, the header wins. Nothing in the request body, the model name or the key is consulted. See Choose a provider per request.

The /auto endpoint

/auto/v1 is one base URL that serves every allowed provider. The proxy picks the provider from x-tawa-upstream, or from the app's Default provider when the header is absent. See The /auto endpoint.

OpenRouter and provider limits

OpenRouter gives you hundreds of models through one entry, and you switch models by changing the model field. OpenRouter then routes each request to one of several hosting providers. You can limit which hosting providers are used: only allow a list, never use a list, or require providers that do not collect or train on prompts. A client can narrow these limits but never widen them. See OpenRouter and OpenRouter provider limits.

Verified models

172 of 175 models passed every check

Each model was sent a plain message, a system prompt, a request with tools, a tool result and a streamed tool call through the proxy. See the Verified models table to search by vendor, see which models accept images, and read why 3 did not pass.

"Passed" means the proxy read the request and the response correctly at every stage and forwarded them unchanged. It is a check of format handling, not a measure of detection quality.

What is scanned

Each token has a list of stages. The first three are on by default.

StageWhat it coversDefault
promptThe newest user message in the requestOn
tool-outputThe newest tool results in the requestOn
tool-callTool calls the model asks your app to runOn
responseText the model returnsOff

Only the newest content of a request is scanned, so the cost of a request stays flat as a conversation grows. Reasoning text from a model is not scanned. Requests to provider endpoints other than chat completions, responses and messages are forwarded without scanning; see Paths and limits.

What happens to a flagged request depends on two settings of the app: the mode (Monitoring forwards everything, Blocking stops requests with a blocking decision) and the fallback (what the proxy does when a scan cannot be completed). A new app starts in Monitoring. See Scanning and blocking.

What to know before you go live

  • The proxy never changes the model you ask for. If you ask for a model, that is the model the provider is asked to use.
  • The exceptions are ones you choose: an OpenRouter routing model such as openrouter/auto or openrouter/free, or your own fallback list, lets OpenRouter pick the model.
  • Provider limits can be narrowed by a client but not widened.
  • An entry with provider limits needs an uncompressed JSON body. Otherwise the proxy returns tawa_provider_policy_unenforceable.
  • Custom endpoints must use HTTPS and a public address. Private addresses are rejected with tawa_upstream_blocked.
  • A provider that is not named, or not on the list, returns 400 with tawa_upstream_unresolved.
  • One entry serves only the paths of its API format.
  • Changes to an app's settings reach the proxy in about 20 seconds.
  • Your provider key passes through to the provider. Tawa Guard does not store it.

Frequently asked questions

On this page