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.
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 - ✓ Use
trustedrouter/euwith the EU regional API for Europe-focused routing - ✓ Use
trustedrouter/socratesfor the rolling advisor preset, ortrustedrouter/socrates-1.1for the pinned current version - ✓ Use
trustedrouter/iris-1.0,trustedrouter/prometheus-1.0, ortrustedrouter/zeus-1.0for versioned Synth presets - ✓ Use
trustedrouter/iris-code-1.0,trustedrouter/prometheus-code-1.0, ortrustedrouter/zeus-code-1.0for code-tuned Synth presets - ✓ Add
provider.data_collection = "deny"for zero-retention routing
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, Hermes, Cursor, or any OpenAI-compatible client at TrustedRouter.
Open →MCP server
Let agents inspect live models, pricing, provider posture, credits, docs, and quick test messages.
Open →Agent skill
Help Codex, Claude Code, Hermes, and other agents choose models using speed, cost, AI IQ, privacy, context length, and prompt-cache fit.
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 →Synth
Run Iris, Prometheus, Zeus, and code-tuned Synth presets inside the attested gateway.
Open →Socrates
Run the advisor preset, or configure the generic advisor primitive directly.
Open →x402 stablecoin funding
Let agents add prepaid credits automatically without changing the prompt path.
Open →EU routing
Use the Europe West attested gateway and the EU-focused model alias.
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
- /docs/mcp — MCP tools for live catalog, credits, docs, and test-chat lookups
- Agent skill — model advisor for Codex, Claude Code, Hermes, and other agents
- trustedrouter-model-advisor — source repo and raw playbook for agent installation
- Socrates — advisor orchestration guide
- /docs/synth — Synth model panel guide
- GitHub — source + issues
- OpenAI-compatible API — SDK migration surface
- Latency benchmarks — measured provider data