karta-runtime is the Python SDK. It embeds an agent
in your own Python process or serves it over HTTP. It is also the engine behind
the karta CLI’s karta dev, which bootstraps it for you.
Install
The two entry points
Karta
The orchestrator. Detects your harness, discovers agents, and sends/streams
turns.
Session
A multi-turn handle with participants and agent handoff.
Three lines to a response
.claude/ or
CLAUDE.md means Claude Code, .opencode/ means OpenCode, .deepagents/
means DeepAgents, .goose/ means Goose, and .codex/config.toml means Codex CLI.
Sync and async, send and stream
Every send has four shapes - sync/async x accumulated/streamed:Serve over HTTP
Run your agent behind the HTTP API locally with the CLI - the same session API production serves:Where to go
Karta reference
Constructor, properties, and every method.
Hooks & policies
React to lifecycle events; gate messages with policies.

