Python SDK
The Python wrapper is async-first, easy to drop into services and notebooks, and maps cleanly onto the runtime event stream.
Install
Stream a prompt
`AutohandSDK` works best inside an async context manager so startup and teardown stay tidy.
Respond to permission requests
Parse typed events
Raw events are dictionaries, but you can upgrade known ones into typed models when you want stricter handling.
Activate skills
The Python wrapper can point at installed skills or local `SKILL.md` files.
Configuration notes
- `startup_check=True` is useful when you want fast feedback if the CLI process does not come up cleanly.
- Known camelCase fields are mirrored with snake_case aliases on incoming event dictionaries.
- Provider configuration still lives in the CLI config file for the CLI-backed Python SDK.
Next steps
- Open [Handle approvals and user input](/docs/agent-sdk/io/approvals.html) for the full review loop.
- Open [Python API](/docs/agent-sdk/python-api.html) for reference details.