For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DiscordPlatform
DocumentationIntegrationsAPI referenceSDKsChangelog
DocumentationIntegrationsAPI referenceSDKsChangelog
    • Overview
  • Tracing
  • Gateway
      • OpenAI Agents
      • Claude Agent SDK
      • Vercel AI SDK
      • Pydantic AI
      • CrewAI
      • Haystack
      • LangChain
      • LangGraph
      • Langflow
      • LlamaIndex
      • AutoGen
      • DSPy
      • Google ADK
      • Smolagents
      • Strands Agents
      • AgentSpec
      • Guardrails
      • Agno
      • MCP
      • BeeAI
      • Pipecat
      • Superagent
  • Others
  • Migrating
    • Braintrust
    • Portkey
    • Langfuse
LogoLogo
DiscordPlatform
On this page
  • Setup
  • Switch models
GatewayAgent Frameworks

Strands Agents (gateway)

Was this page helpful?
Previous

AgentSpec (gateway)

Next
Built with

Route Strands Agents’ underlying LLM calls through the Respan gateway to use 250+ models from different providers. Only your RESPAN_API_KEY is needed for the gateway request path; no separate provider credentials are required in the client.

Setup

1

Install packages

$pip install respan-ai respan-instrumentation-strands-agents "strands-agents[openai]"
2

Set environment variables

$export RESPAN_API_KEY="YOUR_RESPAN_API_KEY"

No provider credentials are needed in your application; the Respan gateway handles provider authentication.

3

Point Strands Agents to the Respan gateway

Use the OpenAI-compatible model adapter pointing at the Respan gateway.

1import os
2from strands import Agent
3from strands.models.openai import OpenAIModel
4
5model = OpenAIModel(
6 model_id="gpt-4.1-nano",
7 client_args={
8 "api_key": os.environ["RESPAN_API_KEY"],
9 "base_url": "https://api.respan.ai/api",
10 },
11)
12
13agent = Agent(model=model)
14print(agent("What is the capital of France?"))

Switch models

Change the model_id parameter on OpenAIModel to use 250+ models from different providers through the same gateway.

1OpenAIModel(model_id="claude-sonnet-4-5-20250929", client_args={"api_key": ..., "base_url": "https://api.respan.ai/api"})
2OpenAIModel(model_id="gemini-2.5-flash", client_args={"api_key": ..., "base_url": "https://api.respan.ai/api"})

See the full model list.