Set up Respan
Set up Respan
- Sign up — Create an account at platform.respan.ai
- Create an API key — Generate one on the API keys page
- Add credits or a provider key — Add credits on the Credits page or connect your own provider key on the Integrations page
Use AI
Use AI
Add the Docs MCP to your AI coding tool to get help building with Respan. No API key needed.
This integration is for the Respan gateway.
What is OpenAI Agents SDK?
The OpenAI Agents SDK is a lightweight framework for building multi-agent workflows. Route all agent LLM calls through the Respan gateway for centralized API key management, cost tracking, and load balancing.Example projects
Example projects
Quickstart
Step 1: Install packages
Step 2: Set environment variables
OPENAI_API_KEY needed — the gateway handles authentication.
Step 3: Point the SDK to the Respan gateway
Step 4: Verify
Open the Logs page to see your gateway requests.Examples
Switch models
Change themodel parameter to use different providers through the same gateway.
Multi-agent handoff
Multiple agents with handoff routing, all proxied through the gateway.Prompts
Use Respan prompt management to serve prompts from the platform. Pass prompt configuration viaModelSettings.extra_body.
Use
schema_version: 2 for all new integrations. Prompt messages are the base layer, request messages are appended after.| Pattern | Method | When to use |
|---|---|---|
extra_body.prompt | Direct | Simplest — prompt only |
extra_body.respan_params.prompt | Nested | Need customer_identifier or other Respan params |
X-Data-Respan-Params header | Base64 | When extra_body is unavailable |
Respan parameters
Pass Respan-specific parameters viaextra_body.
Looking for tracing integration? See Tracing > OpenAI Agents SDK.