Python SDK
Official Python SDK for the BimpeAI Agent Console API.
bimpeai is the official Python client for the BimpeAI Agent Console API. It ships a synchronous client and an asynchronous one that share the same surface, with request and response types modelled in Pydantic and HTTP handled by httpx. Requires Python 3.10 or newer.
The only runtime dependencies are httpx, pydantic v2, and typing-extensions.
Install
pip install bimpeaiuv add bimpeaiQuickstart
from bimpeai import BimpeAI
client = BimpeAI(api_key="sk_...")
for agent in client.agents.list(limit=50):
print(agent.id, agent.name)The async client mirrors it. Construct AsyncBimpeAI, await each call, and use async for to walk a list.
import asyncio
from bimpeai import AsyncBimpeAI
async def main() -> None:
async with AsyncBimpeAI(api_key="sk_...") as client:
page = await client.agents.list(limit=50)
async for agent in page:
print(agent.id, agent.name)
asyncio.run(main())Authentication
Pass your team API key when you construct the client. The SDK sends it as Authorization: Bearer <key>; keys are prefixed sk_. The key is required, and constructing a client with an empty key raises UserError before any request goes out. The SDK does not read the key from the environment, so if you keep it in a variable like BIMPEAI_API_KEY, read it yourself and pass it in.
import os
client = BimpeAI(api_key=os.environ["BIMPEAI_API_KEY"])A scope-restricted key works the same way. A call that falls outside the key's scope comes back as PermissionDeniedError.