Skip to main content

Requirements

  • Python 3.10 or higher
  • Agent Diff backend running (locally or remote)

Installation

Configuration

Both the client and code executors use the same environment variables. Set them once and everything works automatically.
Set these once in your shell or .env file:
Then both client and executors auto-configure:

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:
  1. Explicit parameters passed to constructor
  2. Environment variables (AGENT_DIFF_BASE_URL, AGENT_DIFF_API_KEY)
  3. 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