Skip to main content

Install

The client is intentionally minimal: it uses only the Python standard library (urllib), so installing it pulls no third-party dependencies into your project. Python 3.9+.

Quickstart

All three constructor arguments fall back to environment variables (KAIREON_BASE_URL, KAIREON_API_KEY, KAIREON_TENANT_ID). base_url defaults to https://playground.kaireonai.com. The client raises ValueError if the API key or tenant ID is missing. Auth is sent as the standard X-API-Key + X-Tenant-Id headers.

API methods

Errors surface as KaireonError, which carries .status and .body from the server response:

openapi-generator-cli recipe

For languages other than Python — or for the CRUD endpoints not wrapped by the kaireonai package — generate a client straight from the platform’s OpenAPI spec, served at /api/openapi.json:

Calling the hosted MCP endpoint from Python

KaireonAI exposes a hosted MCP endpoint at POST /api/v1/mcp — stateless JSON-RPC 2.0 over HTTP (no SSE). You can drive it with nothing but the standard library, reusing the same X-API-Key / X-Tenant-Id headers:
The endpoint supports initialize, ping, tools/list, and tools/call. The authenticated tenant is forced into every call, and mutating operations are routed through the governed approval flow rather than writing directly. See the MCP Server Reference for the full tool surface.

Distribution status

The client lives in the kaireonai/sdks repository at sdks/python/ (package name kaireonai, version 0.1.0). Publishing the artifact to PyPI requires operator authorization (PyPI credentials); until that lands, install from source: