Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

ibl.ai

Platform CLI

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.

PyPI Python 3.11+ License: Proprietary

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.


Prerequisites

  • Python 3.11+
  • uv (recommended) or pip

Install

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 iblai

Using pip:

pip install iblai

Verify installation

iblai --version

Configuration

Set 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.

Quickstart

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:

  1. Create a new AI mentor with a random name
  2. Open a chat session
  3. Send your prompt and stream the response

Using an existing mentor or session

# 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"

API Reference

The full breadth of API endpoints is available at ibl.ai/api.

License

Proprietary -- ibl.ai

About

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.

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages