Python SDK and CLI for interacting with the ibl.ai platform. Create AI mentors, manage chat sessions, and access the full suite of platform APIs.
Note: This repository contains the SDK and CLI for the ibl.ai platform. Access to the platform requires a valid API key. To get started, reach out to our team at ibl.ai/contact. The full breadth of API endpoints is available at ibl.ai/api.
- Python 3.11+
- uv (recommended) or pip
Using uv (recommended):
# Install uv if you don't have it
curl -LsSf https://astral.sh/uv/install.sh | sh
# Install iblai
uv pip install iblaiUsing pip:
pip install iblaiiblai --versionSet the following environment variables:
| Variable | Description | Default |
|---|---|---|
IBLAI_PLATFORM |
Your platform (tenant) identifier | required |
IBLAI_PLATFORM_KEY |
Your platform API key | required |
IBLAI_USERNAME |
Your username | required |
IBLAI_DOMAIN |
Platform domain | iblai.app |
export IBLAI_PLATFORM="your-platform"
export IBLAI_PLATFORM_KEY="your-api-key"
export IBLAI_USERNAME="your-username"The IBLAI_DOMAIN variable defaults to iblai.app and typically does not need to be changed unless you are running a self-hosted instance.
The included quickstart.py demonstrates how to create an AI mentor, start a chat session, and interact with it via WebSocket.
python quickstart.py "Explain quantum computing"This will:
- Create a new AI mentor with a random name
- Open a chat session
- Send your prompt and stream the response
# Use an existing mentor (creates a new session)
export IBLAI_MENTOR_ID="your-mentor-unique-id"
python quickstart.py "What is machine learning?"
# Continue an existing session
export IBLAI_MENTOR_ID="your-mentor-unique-id"
export IBLAI_SESSION_ID="your-session-id"
python quickstart.py "Tell me more"The full breadth of API endpoints is available at ibl.ai/api.
Proprietary -- ibl.ai