- Complete observability of agent steps, tool use, and LLM interactions
- Built-in reliability with fallbacks, retries, and load balancing
- Access to 1600+ LLMs through the same OpenAI-compatible interface
- Zero code changes to existing agent logic
Strands Agents Documentation
Learn more about Strands Agents
Quick Start
1
Install packages
2
Add provider in Model Catalog
Go to Model Catalog → Add Provider. Select your provider (OpenAI, Anthropic, etc.), enter API keys, and name it (e.g.,
openai-prod).Your provider slug is @openai-prod.3
Get Portkey API Key
Create an API key at app.portkey.ai/api-keys.Pro tip: Attach a default config for fallbacks and routing—applies automatically.
4
Configure Strands
How It Works
The integration uses Strands’client_args parameter to route requests through Portkey:
Production Features
Observability
All agent interactions are automatically logged:
Reliability
Enable fallbacks, retries, and load balancing via Configs. Attach to your API key or pass inline:Conditional Routing
Route based on metadata, input, or custom logic
Switching Providers
Change the provider to use different models:Supported Providers
1600+ models from OpenAI, Anthropic, Google, Mistral, and more
Guardrails
Add input/output validation for safe agent behavior:Guardrails Guide
PII detection, content filtering, and custom rules
Enterprise Governance
Set up centralized control for Strands Agents across your organization.1
Add Provider with Budget
Go to Model Catalog → Add Provider. Set budget limits and rate limits.
2
Create Config
Go to Configs:
3
Create Team API Keys
Go to API Keys. Create keys per team, attach configs.
4
Distribute to Teams
Teams use their Portkey API key—no raw provider keys needed:
- Rotate provider keys without code changes
- Per-team budgets and rate limits
- Centralized usage analytics
- Instant access revocation
Troubleshooting
Import errors
Import errors
Ensure all packages are installed:
Authentication errors
Authentication errors
Test your Portkey API key:
Rate limiting despite fallbacks
Rate limiting despite fallbacks
Ensure fallbacks include rate limit codes:
Missing traces/logs
Missing traces/logs
Verify
base_url is set:FAQ
Can I use Portkey with existing Strands apps?
Can I use Portkey with existing Strands apps?
Yes. Update your model initialization—agent code stays unchanged.
Does Portkey work with all Strands features?
Does Portkey work with all Strands features?
Yes. Tool use, multi-agent systems, and all features work.
Can I track multiple agents in a workflow?
Can I track multiple agents in a workflow?
Use a consistent
trace_id across agents to see the full workflow in one trace.Can I use my own API keys?
Can I use my own API keys?
Yes. Portkey stores your provider keys securely. Rotate keys without code changes.

