Perseus Ledger
Perseus resolves. Vault remembers. Ledger proves.
Run it: docker pull ghcr.io/perseus-computing-llc/ledger:latest · Docs
Perseus Ledger is the verifiable event and provenance layer for autonomous systems. It records what happened, under what authority and evidence, and whether the history can be independently verified.
It is deliberately not an AI-spend dashboard. Ledger provides an append-only, hash-chained record that ties activity to its actor, boundary, evidence, configuration, action, result, and optional resource allocation. It works independently with any agent runtime, application, internal tool, or offline deployment.
What Ledger establishes
For each recorded event, the stable ledger captures the operational facts already available to the system:
- Actor and boundary — organization, workspace, user/agent, and task type
- Execution configuration — provider, model, and event metadata
- Action and result — the event itself plus its immutable record hash
- Resource allocation — optional token and cost attribution
- Evidence linkage — external references and retained checkpoints where supplied
- Integrity — an append-only cryptographic hash chain that can be verified independently
The current ingestion contract is deliberately stable during the product transition: ledger_agent, the ledger CLI, /v1/usage, existing database paths, and deployed integrations remain supported compatibility surfaces. Stripe is an optional settlement adapter, not the product boundary.
Why it matters
AI systems need more than observability. They need a defensible answer to:
What did the system know, what did it do, under which model and policy, what did it consume, and can we prove it later?
Perseus Ledger provides the evidentiary layer for that answer. It can work beside any agent framework, application, internal tool, offline environment, or federated deployment.
DoD and regulated-data relevance
- AI assurance: reconstruct a recommendation from the configuration, sources, actions, and evidence available when it was made.
- Program and cost-data curation: preserve source-to-output lineage, validation flags, analyst adjudications, and reproducible audit trails.
- Autonomous / distributed operations: retain a verifiable record of agent state, tool activity, and resource allocation for post-operation review.
- Governance: keep the human approval, correction, and policy context associated with consequential automated activity.
This is a product and architecture position, not a claim of handling CUI or satisfying a particular compliance regime.
Perseus Computing product family
| Product | Question it answers |
|---|---|
| Perseus | What verified workspace state should be available before an agent acts? |
| Perseus Vault | What durable, time-valid knowledge did the system have? |
| Perseus Ledger | What happened, under what authority and evidence, and can we prove it? |
Each product is useful on its own and integrates through documented, runtime-neutral contracts. Ledger does not require Perseus, Vault, or any specific agent runtime.
For the governance bridge between durable memory decisions, recall posture, and hash-only Ledger evidence, see Memory governance and Ledger provenance. For a copy-pasteable local setup, see Local Perseus + Vault + Ledger integration.
Quick start: record a verifiable event
pip install perseus-ledger
ledger demo
# → opens the local Ledger console on http://localhost:8420
Container image
The canonical GHCR image is ghcr.io/perseus-computing-llc/ledger:
docker pull ghcr.io/perseus-computing-llc/ledger:latest
docker run --rm -p 8420:8420 ghcr.io/perseus-computing-llc/ledger:latest
The perseus-ledger package, ledger CLI, and LEDGER_* environment variables
are the canonical interfaces.
MCP server
ledger mcp serves a curated 5-tool MCP surface (record / query / verify /
receipt / health) over stdio so agents can meter themselves:
pip install perseus-ledger
claude mcp add ledger -- ledger mcp
See docs/mcp.md for the tool table, action-provenance contract, remote mode, and the official-registry listing.
from ledger_agent import Meter
ledger = Meter(org="Acme Autonomous Systems")
ledger.track(
provider="anthropic",
model="claude-opus-4-8",
task_type="evidence_review",
workspace="mission-analysis",
input_tokens=8200,
output_tokens=2400,
)
This writes an immutable event into the local SQLite-backed hash chain. Existing hosted ingestion continues to use POST /v1/usage; refer to the API reference for the compatibility contract.
Integrity verification
Ledger integrity is not a marketing assertion. It is checked from the recorded chain and can be exposed through the existing admin verification endpoint in a controlled deployment.
- Ledger integrity
- Continuous attestation — admission vs. runtime evidence; attestation blocks; mechanical vs. reasoning provenance
- Evidence receipts — task-scoped, machine-readable views of hash-chained events
- API reference
- Schema
- Reconciliation — optional provider-cost and Stripe settlement reconciliation
Transition principles
- Runtime-neutral by design. Ledger integrates with any agent runtime or application through its SDK and HTTP contracts; no Perseus product is required.
- No broken integrations. Legacy package names, CLI commands, state paths,
/v1routes, deployed domains, and keys remain supported until a separately announced migration. - No billing-first story. Resource allocation, billing, and Stripe reconciliation remain optional adapters beneath the ledger.
- Evidence before claims. The product must only claim provenance fields it actually records and can verify.
License
MIT — see LICENSE. © Perseus Computing LLC.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file perseus_ledger-1.2.4.tar.gz.
File metadata
- Download URL: perseus_ledger-1.2.4.tar.gz
- Upload date:
- Size: 398.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53f5b0b8c2c7f789552bcf443d4e30dc5fd7eb3c78a8762ee98d22d1a31286a5
|
|
| MD5 |
fa835e52570d64a6c1455f23338d0010
|
|
| BLAKE2b-256 |
dae3746a445bb182cb75e9ba151f3f37cf6ae1ef360f222dc63638606aa2d9e1
|
Provenance
The following attestation bundles were made for perseus_ledger-1.2.4.tar.gz:
Publisher:
release.yml on Perseus-Computing-LLC/ledger
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
perseus_ledger-1.2.4.tar.gz -
Subject digest:
53f5b0b8c2c7f789552bcf443d4e30dc5fd7eb3c78a8762ee98d22d1a31286a5 - Sigstore transparency entry: 2411877798
- Sigstore integration time:
-
Permalink:
Perseus-Computing-LLC/ledger@3b6f0d5d17febffd2dd1a59e54d0ee05043e8c29 -
Branch / Tag:
refs/tags/v1.2.4 - Owner: https://github.com/Perseus-Computing-LLC
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3b6f0d5d17febffd2dd1a59e54d0ee05043e8c29 -
Trigger Event:
push
-
Statement type:
File details
Details for the file perseus_ledger-1.2.4-py3-none-any.whl.
File metadata
- Download URL: perseus_ledger-1.2.4-py3-none-any.whl
- Upload date:
- Size: 191.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acae02a140356271503d9c9c55972b74556f576f0854aed32156f3860ecba57c
|
|
| MD5 |
7c28b036877762a1218d28b32a66ec05
|
|
| BLAKE2b-256 |
cf97d60ca1c1deb9ef0258f78cdf6a45e4ff358e7d92b74b82717be69aa1aa69
|
Provenance
The following attestation bundles were made for perseus_ledger-1.2.4-py3-none-any.whl:
Publisher:
release.yml on Perseus-Computing-LLC/ledger
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
perseus_ledger-1.2.4-py3-none-any.whl -
Subject digest:
acae02a140356271503d9c9c55972b74556f576f0854aed32156f3860ecba57c - Sigstore transparency entry: 2411877868
- Sigstore integration time:
-
Permalink:
Perseus-Computing-LLC/ledger@3b6f0d5d17febffd2dd1a59e54d0ee05043e8c29 -
Branch / Tag:
refs/tags/v1.2.4 - Owner: https://github.com/Perseus-Computing-LLC
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3b6f0d5d17febffd2dd1a59e54d0ee05043e8c29 -
Trigger Event:
push
-
Statement type: