heso
The compliance layer for AI agents. Wrap an agent and every action it takes — LLM call, tool call, payment, account change, delete — is gated against your policy (allow / block / redact / require-approval), routed to a human when a decision is risky, PII-redacted before signing, and signed into an offline-verifiable Action Receipt appended to a BLAKE3-chained audit log.
You hold the signing keys. heso's cloud can verify and mirror receipts but can never forge one — so anyone (a customer, an auditor, a court) can check exactly what your agent did, and that it was authorized, without trusting heso at all.
- Site · heso.ca
- Docs · heso.ca/docs
- Verify a receipt (no account) · heso.ca/verify
pip install heso # or: uv add heso
First receipt in 60 seconds
heso demo
heso demo scaffolds a project, mints one allowed and one redacted receipt through
the real engine, verifies both offline, and prints how to re-verify them yourself.
No cloud account, no key ceremony — a dev key is generated for you (strict custody
is opt-in for production).
The CLI:
| command | what it does |
|---|---|
heso init [dir] |
scaffold heso.toml + policy, mint your operator identity in-process |
heso demo [dir] |
mint + verify your first receipts end to end |
heso verify <path|hash> |
re-run the hash + signature math locally, print the verdict (zero network) |
heso show <hash> |
pretty-print a stored receipt |
Gate an agent
Every decorated call is gated before its body runs — a blocked or approval-pending action raises, so the side effect can never fire ungated.
import heso
heso.init()
@heso.tool
def search(query: str) -> list[str]:
...
@heso.destructive # verb=delete → matched against policy
def delete_account(account_id: str) -> None:
...
@heso.tool(redact=["api_key"]) # PII stripped before the receipt is signed
def call_vendor(api_key: str, payload: dict) -> dict:
...
Policy lives in a heso.toml the SDK reads at gate time — allow the safe lanes,
require_approval the risky ones. Edit it freely; it's the single source of policy
truth.
Human approval (L1)
When a rule says require_approval, the action suspends instead of running.
A human approver co-signs it (in the heso console or via your own webhook), and the
receipt is upgraded to L1 — proving an authorized human approved this specific
action, not just that the operator allowed the lane.
from heso import gated, resume
gate = gated(charge_card, amount=5000) # suspends if policy requires approval
if gate.status is heso.SUSPENDED:
... # notify approver; park the work
else:
result = gate.run()
Framework adapters
Drop-in wrappers over the same gate core — no rewrite:
import heso
heso.claude_agent # Anthropic Claude Agent SDK
heso.openai_agents # OpenAI Agents SDK
heso.langgraph # LangGraph / LangChain
heso.crewai # CrewAI
heso.pydantic_ai # Pydantic AI
heso.mcp # Model Context Protocol tools
There's also heso-mcp, an MCP server so an agent can gate and verify through heso
directly.
Verify anywhere
Receipts verify offline with heso fully removed from the loop — the hash and
signature math is open and the format is specified in
action-receipt.md. Hand a receipt to anyone
and they can confirm it's untampered and see who signed it.
heso verify ./receipt.json
# → Valid · L1 (operator + human approver)
Trust model
heso proves an action was authorized under policy, and at L1 that an authorized human approved or blocked it. It does not prove the action's outcome was truthful — that's unprovable from the artifact. Trust grades are L0 (operator) and L1 (operator + human approver).
Proprietary. See heso.ca for licensing and the hosted console.
Metadata
Release files for heso 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| heso-0.5.1-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details for heso-0.5.1-cp310-abi3-win_amd64.whl |
| heso-0.5.1-cp310-abi3-manylinux_2_28_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.28+ x86-64 | Details for heso-0.5.1-cp310-abi3-manylinux_2_28_x86_64.whl |
| heso-0.5.1-cp310-abi3-manylinux_2_28_aarch64.whl | CPython 3.10 | abi3 | Linux glibc 2.28+ ARM64 | Details for heso-0.5.1-cp310-abi3-manylinux_2_28_aarch64.whl |
| heso-0.5.1-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details for heso-0.5.1-cp310-abi3-macosx_11_0_arm64.whl |
| heso-0.5.1-cp310-abi3-macosx_10_12_x86_64.whl | CPython 3.10 | abi3 | macOS 10.12+ x86-64 | Details for heso-0.5.1-cp310-abi3-macosx_10_12_x86_64.whl |
Total release size: 9.9 MB
Release files / heso-0.5.1-cp310-abi3-win_amd64.whl
| Download URL | heso-0.5.1-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
46ce9d22c48c226ecd1133eb6290f95116f3bf810b636ca105bcd8e2c2fd282b
|
|
BLAKE2b-256 checksum How to use checksums |
709205bdc44645e139f2cc18089eafdb8dd13a1b95717156dff9eb06adb65da7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Jun 26, 2026.
Transparency logRelease files / heso-0.5.1-cp310-abi3-manylinux_2_28_x86_64.whl
| Download URL | heso-0.5.1-cp310-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
768509c86f31f64c7ae54f76e3457c47a93fa899e9272850a83314240973a423
|
|
BLAKE2b-256 checksum How to use checksums |
84ad9ba78bd036051d52b8c42dad13f16064e72d7e23b5c5c5d58a6a349daa25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Jun 26, 2026.
Transparency logRelease files / heso-0.5.1-cp310-abi3-manylinux_2_28_aarch64.whl
| Download URL | heso-0.5.1-cp310-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
3d8b8b11b3ff9543f17a323aca71ace753dc25eaee43a962d83995b61098e62d
|
|
BLAKE2b-256 checksum How to use checksums |
b1fc55f8783c668798377ea75e2412f2d547f660b0b72ed889c3b13606183f72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Jun 26, 2026.
Transparency logRelease files / heso-0.5.1-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | heso-0.5.1-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
dd17358caebaa9838462a6e1e8fbe479406551886b54fb6bf78e5b4cb7127c2e
|
|
BLAKE2b-256 checksum How to use checksums |
b8a0140fa67d5c38a1e823053115ecc066aefd106f0a6e3e78a180c6654da957
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Jun 26, 2026.
Transparency logRelease files / heso-0.5.1-cp310-abi3-macosx_10_12_x86_64.whl
| Download URL | heso-0.5.1-cp310-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.10 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
103f25cac19c71dac9ef7517a044c704121321f2aa0094c9e59ddeb88ec151ab
|
|
BLAKE2b-256 checksum How to use checksums |
525bd0e64792b05d28b80042a80bda883b11cd1544d21cf74acb3214b88e5085
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Jun 26, 2026.
Transparency logSecurity for heso 0.5.1
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 5 files in this release have been uploaded with provenance metadata.
Attestation for heso-0.5.1-cp310-abi3-win_amd64.whl
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 Jun 26, 2026.
Transparency logA 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.