Use Kheish from Python
This is the shortest honest path from a running daemon to one completed SDK-backed run. If the daemon is not already working, start with Run Kheish first. This page documents the Python package from the separatekheish-sdks project. The daemon remains the source of truth for sessions and runs.
What you need first
- one running
kheish-daemon - Python with
pip - one reachable daemon base URL
- one bearer token only if your daemon requires control-plane auth
http://127.0.0.1:4000 is enough and no token is needed.
For the Docker quickstart, export the daemon token first:
1. Install the SDK
2. Run one SDK-backed response
Pick one fresh session id first so reruns stay clean:responses_basic.py example from the sibling kheish-sdks repository, but keeps the first success inline.
If your daemon is not using an OpenAI route, the simplest first-success adjustment is to remove route=... and let the daemon default route apply.
3. Verify the run from the daemon
If you built the daemon binary on the host:- one durable session named by
$SDK_SESSION_ID - at least one completed run
- at least one input event created by the SDK call
What this quickstart proves
You are not only talking to a model. You are proving that:- application code can target the daemon directly
- the daemon still owns the session and run lifecycle
- SDK callers and daemon CLI inspection work against the same durable state
Next steps
Once the basic SDK path works, the next useful lanes are:- Overview for the product model
- Sessions and runs for the daemon execution model
- Approvals and questions for blocked and resumable flows
- Webhook quickstart for the first external ingress path
kheish-sdks repository also includes:
responses_basic.pyhuman_in_the_loop.pysession_persona_reply_targets.pyexternal_connector_fixed_session.py
