Requirements
- Python 3.10 or higher
- Agent Diff backend running (locally or remote)
Installation
Configuration
Environment Variables (Recommended)
Set these once in your shell or.env file:
Explicit Configuration
You can also pass values directly:Sign up at agentdiff.dev to get your API key for the hosted version.
Configuration Priority
The SDK resolves configuration in this order:- Explicit parameters passed to constructor
- Environment variables (
AGENT_DIFF_BASE_URL,AGENT_DIFF_API_KEY) - Defaults (
http://localhost:8000, no API key)
Verify Installation
Next Steps
Basic Usage
Learn the core SDK operations
OpenAI Agents
Integrate with OpenAI Agents SDK