OpenAI compatible API. Attested gateway. Public status.
Docs — Quickstart, SDKs, and API Reference
Point any OpenAI-compatible SDK at TrustedRouter with one base_url change. Guides, Python / TypeScript / Swift SDKs, and the OpenAI-compatible API reference.
1 URLbase_url migration
100smodels and routes
0prompt logs by default
Quickstart: one base_url change.
- ✓ OpenAI-compatible — point any OpenAI/Anthropic SDK at TrustedRouter
- ✓ Read your key from
TRUSTEDROUTER_API_KEY - ✓ Use
trustedrouter/autofor provider failover - ✓ Add
provider.data_collection = "deny"for zero-retention routing
Drop-inTypeScript
const client = new OpenAI({
apiKey: process.env.TRUSTEDROUTER_API_KEY,
baseURL: "https://api.trustedrouter.com/v1"
})
const r = await client.chat.completions.create({
model: "trustedrouter/auto",
messages: [{ role: "user", content: "Hello" }]
})
Guides
Agent setup
Point Codex, Claude Code, Cursor, or any OpenAI-compatible client at TrustedRouter.
Open →Migrate from OpenRouter
Swap one base_url and keep your existing calls working.
Open →Evals
Run eval suites across providers through one API.
Open →Sign in with TrustedRouter
Let your users bring their own account and credits.
Open →vs OpenRouter
How TrustedRouter compares to closed routers.
Open →Security & attestation
How the attested gateway and trust record work.
Open →SDKs
API reference
OpenAI-compatible endpoints
Base URL https://api.trustedrouter.com/v1. Authenticate with a Bearer sk-tr-… key.
POST /v1/chat/completionsPOST /v1/responsesPOST /v1/embeddingsGET /v1/models
Agent-readable docs
Point your coding agent at the machine-readable docs for the full surface:
- /docs/llms.txt — concise index
- /docs/llms-full.txt — full context
- GitHub — source + issues