# Hosted proxy (/docs/proxy)



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](/docs/typescript) or the [Python SDK](/docs/python). Learn
more about the product at [tawaguard.com](https://tawaguard.com).

<Callout type="warn" title="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.
</Callout>

## Start here [#start-here]

<Cards>
  <Card title="Quickstart" href="/docs/proxy/quickstart" description="Create a token, set the base URL and send a scanned request." />

  <Card title="Verified models" href="/docs/proxy/verified-models" description="175 models tested through the proxy. 172 passed every check. Search, filter and sort the full table." />

  <Card title="Allowed providers" href="/docs/proxy/routing/allowed-providers" description="Pick which providers an app can reach: OpenAI, Anthropic, Mistral, Groq, DeepSeek, xAI, Together, OpenRouter or your own endpoint." />

  <Card title="OpenRouter" href="/docs/proxy/routing/openrouter" description="One entry, hundreds of models. Switch models by changing the model field." />

  <Card title="Claude Code and Codex" href="/docs/proxy/integrations" description="Set one environment variable and scan a coding agent's traffic." />

  <Card title="Error codes" href="/docs/proxy/reference/error-codes" description="Every status and code the proxy returns, in the provider's own error format." />
</Cards>

## How it works [#how-it-works]

```text
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](https://tawaguard.com/#pricing).

## Choose where requests go [#choose-where-requests-go]

The app decides which providers its proxy may reach: its
[allowed providers](/docs/proxy/routing/allowed-providers). Each request then
picks one of them in one of three ways.

| Method                                                         | How                                                 | Use it when                                                  |
| -------------------------------------------------------------- | --------------------------------------------------- | ------------------------------------------------------------ |
| [Name in the URL](/docs/proxy/routing/per-request)             | `https://proxy.tawaguard.com/<token>/openrouter/v1` | One base URL per provider.                                   |
| [Header](/docs/proxy/routing/per-request#choose-with-a-header) | `x-tawa-upstream: openrouter`                       | The client keeps one URL and switches provider per request.  |
| [`/auto` and a default](/docs/proxy/routing/auto-endpoint)     | `https://proxy.tawaguard.com/<token>/auto/v1`       | One 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 [#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](/docs/proxy/routing/allowed-providers).

### Per-request choice [#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](/docs/proxy/routing/per-request).

### The `/auto` endpoint [#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](/docs/proxy/routing/auto-endpoint).

### OpenRouter and provider limits [#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](/docs/proxy/routing/openrouter) and
[OpenRouter provider limits](/docs/proxy/routing/openrouter-provider-limits).

## Verified models [#verified-models]

<Callout type="info" title="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](/docs/proxy/verified-models) table to search by vendor, see
  which models accept images, and read why 3 did not pass.
</Callout>

"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 [#what-is-scanned]

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

| Stage         | What it covers                            | Default |
| ------------- | ----------------------------------------- | ------- |
| `prompt`      | The newest user message in the request    | On      |
| `tool-output` | The newest tool results in the request    | On      |
| `tool-call`   | Tool calls the model asks your app to run | On      |
| `response`    | Text the model returns                    | Off     |

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](/docs/proxy/reference/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](/docs/proxy/configure/scanning-and-blocking).

## What to know before you go live [#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 [#frequently-asked-questions]

<Faq
  items="[
  {
    question: &#x22;What is the Tawa Guard hosted proxy?&#x22;,
    answer: &#x22;A hosted service at proxy.tawaguard.com that sits between your app and an LLM provider. You change the provider base URL, and every request is scanned for prompt injection and other attacks before it is forwarded. No SDK code and no software to run.&#x22;,
  },
  {
    question: &#x22;Which providers and models does it work with?&#x22;,
    answer: &#x22;OpenAI, Anthropic, Mistral, Groq, DeepSeek, xAI, Together AI and OpenRouter, plus your own HTTPS endpoint. Through OpenRouter it reaches hundreds of models. 175 models were tested and 172 passed every check; the Verified models page lists them.&#x22;,
  },
  {
    question: &#x22;Does the proxy store or change my provider key?&#x22;,
    answer: &#x22;No. Your OpenAI, Anthropic or OpenRouter key is sent with each request and forwarded to the provider. Tawa Guard does not store or log it.&#x22;,
  },
  {
    question: &#x22;Does the proxy change the model I request?&#x22;,
    answer: &#x22;No. The model in your request is the model the provider is asked to use. If you ask for an OpenRouter routing model such as openrouter/auto or openrouter/free, or send your own fallback list, OpenRouter picks the model.&#x22;,
  },
  {
    question: &#x22;How do I choose a provider for each request?&#x22;,
    answer: &#x22;Name the provider in the URL, for example /<token>/openrouter/v1, or send the x-tawa-upstream header. With the /auto/v1 endpoint, the header picks the provider and the app's default provider is used when the header is absent. The header wins over the URL.&#x22;,
  },
  {
    question: &#x22;Will the proxy block requests right away?&#x22;,
    answer: &#x22;No. A new app starts in Monitoring, which scans and forwards everything and blocks nothing. Switch the app to Blocking when you are ready.&#x22;,
  },
  {
    question: &#x22;How quickly do settings changes take effect?&#x22;,
    answer: &#x22;Within about 20 seconds. Revoking or expiring a proxy token takes effect in about the same time.&#x22;,
  },
  {
    question: &#x22;Where can I try it?&#x22;,
    answer: &#x22;Create an app at tawaguard.com, create a proxy token under API keys, and follow the quickstart.&#x22;,
  },
]"
/>

<GetStarted content="proxy-overview" />
