Busca en todas las páginas de la documentación
9 pages in this section.
Explains the architecture pattern of designing agent logic that never hardcodes a provider, so OpenRouter (or any gateway) becomes a swappable model backend.
A first end-to-end setup connecting a simple agent loop to OpenRouter with fallback enabled, production headers, and host-side stop conditions.
Recipes for pointing popular agent frameworks at OpenRouter as their model backend with a shared config pattern and production caveats.
Covers handling 429s and transient errors with exponential backoff, jitter, and fallback tuned for OpenRouter-backed production agents.
Ten practices for reliability, cost control, and observability when OpenRouter backs a production agent, with an extended ops checklist.