Quickstart
First AI call in 2 minutes.
Anoman is an OpenAI-compatible drop-in. Change base_url and api_key — nothing else.
1
Get your API key
Sign up and create a key
Go to app.anoman.io, create an account, and generate an API key from the dashboard. Keys start with anm-sk-.
2
Install SDK (optional)
Or use your existing OpenAI SDK
pip install anoman-ai3
Make your first call
Chat completion
from anoman import AnomanClient
client = AnomanClient(api_key="anm-sk-...")
response = client.chat.completions.create(
model="claude-sonnet-4-6",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)4
Inspect the response
Every response includes guardrail + routing metadata
The _anoman block is appended to every completion response. It contains guardrail scores, routing decision, cache status, and actual cost.
{
"id": "chatcmpl-...",
"object": "chat.completion",
"choices": [{
"message": { "role": "assistant", "content": "Hello! How can I help?" }
}],
"usage": { "prompt_tokens": 9, "completion_tokens": 7 },
"_anoman": {
"guardrails": { "injection": { "status": "pass", "score": 0.02 } },
"routing": { "mode": "realtime", "region": "id" },
"cache": { "hit": false },
"cost_usd": "0.000041"
}
}Connect an agent
Works with every AI agent — one env var
export ANTHROPIC_BASE_URL=https://api.anoman.io/anthropic
export ANTHROPIC_API_KEY=anm-sk-...
claude # All calls routed through Anoman guardrailsFull list of supported agents: Platform / Integrations →