Python SDK
Install and use the silvanexum package — a typed, pydantic-based client for Python 3.9+.
silvanexum is the official Python client. It targets Python ≥ 3.9, returns
fully typed pydantic v2 models, and mirrors the
TypeScript SDK's resource surface and naming (snake_case methods). All models are
generated from the API's Zod contracts. A few surfaces differ slightly — e.g.
agents.get returns the AgentView directly, and identity binding lives on the
web app rather than the Python client.
The client is synchronous today (built on httpx). An async client is on
the roadmap.
Install
Construct the client
It's also a context manager, which closes the underlying HTTP connection pool:
Errors
Every failure raises a subclass of SilvanexumError carrying status, code,
body, and request_id.
sx.agents
sx.agents.versions — signed M01 versions
sx.runs
sx.templates (M11)
Template endpoints are part of the M11 P0 spec and may be planned (not yet
live) on your deployment — see the API reference.
sx.connectors
sx.marketplace, sx.wallet, sx.suites, sx.keys, sx.models, sx.team
sx.budgets, sx.spending — Agent FinOps
A "block" budget rejects an over-budget run or mesh hop with 402 server-side.
Models are importable for type hints: from silvanexum import models →
models.AgentView, models.ExecutionView, etc.