Python SDK
pip install dome-sdk — gateway-first Client and AsyncClient, framework adapters, optional local policy sync.What the SDK does
The client wraps the Dome data plane and presents one surface per concern.When to use the SDK
- Gateway calls from agent code. The default. The SDK authenticates, encodes act-as, surfaces typed errors, and correlates activity. No infrastructure to deploy alongside the service.
- In-process Cedar checks. Call
client.start_policy_sync()to enableclient.check()/client.evaluate()against a synced bundle. Microsecond decisions, fail-closed when no bundle is loaded. - External MCP traffic. Route through the gateway directly. Agents that don’t run Python use the gateway over MCP without an SDK.
Lifecycle
Next steps
Python Client first. Adapters and Develop cover frameworks and credentials:- Python reference for Client, gateway calls, and act-as
- Adapters for LangChain and other frameworks
- Develop for runtime credentials and Gateway endpoints
- Examples for governed agent patterns