Skip to main content

Python SDK

SDKs are per-pack. This page covers the shared core every per-pack client is built on (kitefrost-core, installed automatically as a dependency) - auth, transport, and the resources common to every pack. For pack-specific resources (characters, continuity, dialogue, encounters, sessions, …), see your pack’s own quickstart and API reference.

Installation

SDKs are per-pack - there is no single kitefrost package. Install the one for your pack, e.g.:
See SDKs overview for the exact package name per pack, or your pack’s own quickstart for a working example.

Quick Start

The client is synchronous - calls block and return directly, no async/await.

Shared Core Resources

Available as client.core.<resource> on every per-pack client.

Health

Auth

Projects

API Keys

Billing

Events

Context

BYOK (Bring Your Own Key)

Webhooks

Error Handling

All exceptions inherit from kitefrost_core.KiteFrostError and expose .message, .status_code, and .feedback_id.
There is no automatic retry beyond a one-shot re-auth on a 401. On RateLimited, back off yourself using .retry_after (seconds, may be None):
See Telemetry & Privacy for what feedback_id is and how to use it.

Source

The core is at sdk/python/packages/core/ and per-pack clients at sdk/python/packages/<pack>/ in the main repository.