Skip to main content
Use Python 3.10 or newer and a Brello project ingestion key. Configure your provider credentials separately.

Install the SDK

From the root of the Python SDK checkout, install brello-sdk into your application’s environment. The package imports as brello.
Keep your application’s openai, anthropic, or google-genai dependency. Set your project key on the server:
The SDK sends events to https://api.brello.app/v1 by default. If you run Brello yourself, set your self-hosted API URL.

Wrap your client

Reuse one Brello instance per process. For async code, wrap AsyncOpenAI() or AsyncAnthropic(), or use client.aio on a wrapped Google client. See the Google guide for credentials and request examples.

Verify the connection

Make a provider call with the wrapped client, or finish consuming a stream. If your test script exits immediately afterward, call brello.flush() from sync code or await brello.aflush() from async code. In Brello, open your project’s Settings and look for Connected under SDK activity. The status appears after the worker stores an event. See the OpenAI guide, Anthropic guide, Google guide, or configuration and delivery for examples.