Install

September 3, 2026 ยท View on GitHub

Sponsio is a pure-Python package with zero required dependencies. The core engine installs in seconds.

pip install --pre sponsio

--pre is required: the 0.2 line is a pre-release, and plain pip install sponsio resolves to the last stable (0.1.1), which predates the cloud console, the evidence lane, and the current CLI.

Verify:

sponsio --version
sponsio doctor

Choosing extras

Extras are optional dependency bundles. Pick what matches your stack; none of them are required to run contracts.

ExtraWhat it installsWhen to pick it
sponsio[yaml]pyyamlLoading contracts from sponsio.yaml
sponsio[llm]provider SDKs (OpenAI, Anthropic, Gemini)sponsio scan --llm and sto judge calls
sponsio[otel]OpenTelemetry exportersStreaming traces to your observability stack
sponsio[langgraph]langgraph, langchain-coreLangGraph integration
sponsio[claude-agent]claude-agent-sdkClaude Agent SDK integration
sponsio[openai]openaiOpenAI SDK integration
sponsio[crewai]crewaiCrewAI integration
sponsio[google-adk]google-adkGoogle ADK integration
sponsio[vercel-ai]vercel-aiVercel AI SDK (Python) integration
sponsio[mcp]mcpMCP proxy integration
sponsio[all]everything aboveKitchen-sink install
pip install --pre "sponsio[all]"

Python support

Python 3.10 and newer. Older versions are not tested.

TypeScript

The TypeScript deterministic engine ships separately:

npm install @sponsio/sdk@alpha

See TypeScript integrations for framework bindings. The Python and TS engines share the same LTL core. They produce identical block/allow decisions over the same trace.


Provider credentials

Sponsio reads API keys from environment variables only. No config file, no keyring.

ProviderEnv var
OpenAIOPENAI_API_KEY (optional: OPENAI_BASE_URL for Ollama, OpenRouter, DeepSeek, Together, Groq, vLLM, Azure)
AnthropicANTHROPIC_API_KEY
GeminiGEMINI_API_KEY or GOOGLE_API_KEY

sponsio scan --llm auto-detects the provider from whichever env var is set. Specify --provider to override.


Verifying the install

sponsio doctor

Runs a battery of checks: config is valid, framework is detected, provider credentials are reachable, atoms referenced in contracts are registered. Exits non-zero if anything fails.

sponsio demo --scenario wire --fast

Replays a packaged unsafe-agent trajectory locally, no API key, no framework SDK. Sponsio blocks an unverified wire transfer mid-flow. If you see the block, install is working.


Next