OpenAI compatible API. Attested gateway. Public status.

Agent Setup For TrustedRouter

Base URLs, env vars, smoke tests, and model aliases for coding agents.

Verify gateway
1 URLbase_url migration
100smodels and routes
0prompt logs by default

Agent setup

OpenAI compatible

Use this when a coding agent needs to switch a project to TrustedRouter without changing the app architecture.

export TRUSTEDROUTER_API_KEY="sk-tr-v1-..."
export OPENAI_API_KEY="$TRUSTEDROUTER_API_KEY"
export OPENAI_BASE_URL="https://api.trustedrouter.com/v1"
# Anthropic SDKs use the non-/v1 base URL.
export ANTHROPIC_API_KEY="$TRUSTEDROUTER_API_KEY"
export ANTHROPIC_BASE_URL="https://api.trustedrouter.com"

Already integrated against api.quillrouter.com? It stays a permanent working alias — no migration needed. Both hostnames terminate inside the same attested gateway.

Smoke test

before editing code
curl https://api.trustedrouter.com/v1/chat/completions \
  -H "Authorization: Bearer $TRUSTEDROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "trustedrouter/zdr",
    "messages": [{"role": "user", "content": "Reply with PONG only."}],
    "max_tokens": 4
  }'

The response should contain PONG. Use this check before moving evals or production traffic.

Model aliases

recommended
  • trustedrouter/zdr: zero-data-retention routes first. Good default for legal and sensitive work.
  • trustedrouter/e2e: end-to-end encrypted route pool, currently centered on confidential providers.
  • trustedrouter/auto: broad provider fallback when availability matters more than the strictest privacy filter.
  • trustedrouter/cheap: low-cost paid route pool for cost-sensitive tests.

Agent prompt

copy
Migrate this project to TrustedRouter.
Use base_url "https://api.trustedrouter.com/v1".
Read the API key from TRUSTEDROUTER_API_KEY.
Use trustedrouter/zdr by default unless the user asks for broad fallback.
Run a PONG smoke test before editing app code.

Useful references

Agents should read the compact context first, then use the full context when choosing models or providers.

Sign in

Choose a sign in method.