Skip to main content
Use the Dome SDK as the single client for gateway-backed MCP tool calls, LLM model calls, audit reads, and optional in-process Cedar checks. Authentication, act-as encoding, activity correlation, and typed error decoding live in the SDK so agent code stays small.

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 enable client.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: