Skip to main content

Installation

Python

Install using pip:
Or with poetry:

Requirements

  • Python 3.9+
  • httpx for async HTTP requests
  • openai or anthropic (optional, for Agent class)

Configuration

Environment Variables

Set your API key as an environment variable:

Using .env Files

Create a .env file in your project root:
Load it in your code:

Direct Configuration

Or pass the API key directly:

Verify Installation

Test that everything works:
Expected output: