Skip to main content

Sovereign Agent

The executable textbook for Zero-Employee Organizations.

CI PyPI Python 3.14+ License: Apache-2.0

Sovereign Agent 1.x is a small Python reference implementation for learning how an outcome becomes governed work performed by accountable actors. Production organizations graduate to Zero Employee.

Install and run with uv

uv is the supported way to install and run sovereign-agent. Try it without installing anything permanent:

uvx sovereign-agent@latest doctor
uvx sovereign-agent@latest demo store --mode simulated --root /tmp/first-shift

(@latest makes uv refresh its cached tool environment, so you always get the current release.)

Or install the CLI onto your PATH:

uv tool install sovereign-agent
sovereign-agent doctor

(Plain pip install sovereign-agent still works in any Python 3.14 environment if you prefer it.)

The 1.x API intentionally replaces the v0.7 fleet framework. To keep using that framework: uvx "sovereign-agent<1".

Educational development install

Python 3.14 is required; uv provides it automatically.

uv sync
uv run sovereign-agent doctor

Expected result:

Sovereign Agent doctor
  Python:   3.14.x OK
  Pydantic: 2.x OK
  Network:  not required
  Tokens:   not required
  Providers:
    scripted available (streaming)
    claude   missing executable
    ...
Ready for the offline curriculum. Live providers are optional.

Chapter 0 is runnable as a manually dispatched store shift (no Pulse):

uv run sovereign-agent demo store --mode simulated

After the core book, run the six advanced mechanisms with no provider, credential, or network:

uv run sovereign-agent mechanisms --root /tmp/sovereign-agent-mechanisms

This demonstrates four-plane isolation policy, durable condition scheduling, recoverable context compaction, session-incarnation fencing, bounded tool discovery, and provenance-bearing hybrid memory. See book/ADVANCED_MECHANISMS.md.

See book/ch00_first_shift and book/ch03_actor_is_not_a_model.

Product vocabulary

Thing Canonical word
Package and CLI sovereign-agent
Control loop supervisor
Installed OS hosting service
Proactive wake pulse
Liveness proof heartbeat (records the runtime was alive; never creates work)
Intelligence CLI provider
Governed identity actor

An actor is not a model. Every provider receives the same governed assignment envelope and must emit a valid terminal event and write the exact ActorReport. A zero exit without both is a failed receipt. Cursor's --workspace is directory selection, not sandboxing; isolation belongs to Sovereign Agent's disposable workspace.

Provider subprocesses receive only base process variables plus documented credential allowlists: Claude (ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN, CLAUDE_CODE_OAUTH_TOKEN), Codex (CODEX_API_KEY), and Cursor (CURSOR_API_KEY). Other parent secrets are not forwarded.

Unit 1 gates

uv run python -m pytest -q
uv run python scripts/verify_runtime_dependencies.py
uv run python scripts/verify_source_budget.py
uv run sovereign-agent --help
uv run sovereign-agent doctor

See the educational reset ruling and v0.7 migration guide.

Project resources

Metadata

Release files for sovereign-agent 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sovereign-agent 1.4.0
File Size Uploaded Provenance
sovereign_agent-1.4.0.tar.gz 218.7 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for sovereign-agent 1.4.0
File Interpreter ABI Platform
sovereign_agent-1.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 352.3 kB

Release files / sovereign_agent-1.4.0.tar.gz

Download URL sovereign_agent-1.4.0.tar.gz
Size 218.7 kB
Tags Source
SHA-256 checksum
How to use checksums
de6397aabe98c066a5227961c6551372df411da6252a22d50708bc5e924ff6c9
BLAKE2b-256 checksum
How to use checksums
d79fe2aa0be48db1a990d1cef9141a9aa885ea9859c99e5f0d3d1a9a6f6ad8f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 5, 2026.

Transparency log

Release files / sovereign_agent-1.4.0-py3-none-any.whl

Download URL sovereign_agent-1.4.0-py3-none-any.whl
Size 133.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e2f9ef97fd269cf9d8b2868c8b45d8a714eb74caed2c1895dee4bc9401e625c
BLAKE2b-256 checksum
How to use checksums
51405a36b3d0911a97fdc28ff77892eaa65b0e290b220b2273d509c055e564fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 5, 2026.

Transparency log

Security for sovereign-agent 1.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sovereign_agent-1.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page