Documentation

Only the address your code sends requests to changes. Here's how TokenHawk processes each one, and the four pillars that structure the product.

How a request is processed

1

Request received

Your agent sends its request to the TokenHawk URL, exactly as it would to OpenAI or another provider.

2

Access control

Governance

IP whitelist, model whitelist, kill switch and time windows are checked before anything else — the policies you've set on this key.

3

Content protection

Security

Throughput is capped and 20+ guardrails scan the messages to mask or block sensitive data.

4

Optimization

Optimization

Semantic cache, system prompt and history compression, deduplicated tools — within your tier's monthly quota.

5

Forwarded to the LLM provider

The optimized request is sent to the provider you designated (OpenAI, Anthropic, Gemini, Mistral), using your own keys.

6

Response and logging

Compliance

The response returns to your agent while usage and any blocks are logged, ready for your compliance reviews.

The four pillars

Technical guides

Interactive API reference (Swagger)
Get started for free →