Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

herald-run

Python client for Herald, the human-in-the-loop inbox for agents: send messages, ask for approvals, run tasks, and move files and secrets. Python 3.11+. The import name is herald.

pip install --pre herald-run

Authentication

Create a token in Herald under Settings → Connections, or run npx @herald-run/cli login. Pass it as api_key, or set HERALD_API_KEY (or HERALD_TOKEN). HERALD_URL selects another server. Never commit tokens.

Content is always end-to-end encrypted; tokens without a key are refused. Use a connection token (hdr_<auth>.<seed>.<fingerprint>, from herald login or Settings → Connections): the client encrypts and decrypts content itself and sends only hdr_<auth>; records it cannot decrypt or verify, including anything unsealed, come back with locked or unverified set and no content. Download files by passing the attachment (it carries the file key) to download(); SyncHerald behaves the same.

One-minute example

import asyncio
from herald import Herald

async def main():
    async with Herald() as herald:
        await herald.send(title="Build passed", body="Preview is ready.")
        answer = await herald.ask_action(
            title="Deploy to production?",
            actions=[{"id": "approve", "label": "Approve", "values": {}}, {"id": "reject", "label": "Reject", "values": {}}],
            timeout=600,
        )
        print(answer.action_id)

asyncio.run(main())

Without asyncio, use SyncHerald, which has the same methods: SyncHerald().send(title="Hi"). Failures raise HeraldError with status, code, message_id and retry_after. Methods are snake_case and return Pydantic models (.wire() gives the JSON). Documentation: herald.run/docs/python; API reference: herald.run/docs/api. MIT licensed.

Metadata

Release files for herald-run 0.3.0b4

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

Source distribution (sdist)

Source distribution for herald-run 0.3.0b4
File Size Uploaded
herald_run-0.3.0b4.tar.gz 42.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for herald-run 0.3.0b4
File Interpreter ABI Platform
herald_run-0.3.0b4-py3-none-any.whl Python 3 none any Details

Total release size: 75.2 kB

Release files / herald_run-0.3.0b4.tar.gz

Download URL herald_run-0.3.0b4.tar.gz
Size 42.4 kB
Tags Source
SHA-256 checksum
How to use checksums
85f10eeb34378792cf404eb6faa55a0365a9766e289857ddbdaf6d4237511c83
BLAKE2b-256 checksum
How to use checksums
b60661827509b0f3ed014bc74f54a8f2befdf08b7220c79e3d7529c25eb2b91f
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 Oct 16, 2026.

Transparency log

Release files / herald_run-0.3.0b4-py3-none-any.whl

Download URL herald_run-0.3.0b4-py3-none-any.whl
Size 32.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
474c5b6b86685923f8cc44554d9ca8811655acc2ed2da99345b82bec096d4cca
BLAKE2b-256 checksum
How to use checksums
b81227f69d8e21d2c97f77c3e06161d19c80b6ce0980b32188003ceffac01f2f
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 Oct 16, 2026.

Transparency log
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