Custodian is a provider-neutral policy and evidence kernel for AI agents. It evaluates proposed actions against rules you own, routes consequential work to an operator when needed, and records each decision in a tamper-evident ledger.
The kernel is not tied to one model or harness. Codex Guard brings it into OpenAI Codex. Hermes Guard brings it into Hermes Agent. Talaria builds a richer Hermes control experience on top.
Custodian uses the same decision boundary for:
- filesystem reads and writes;
- shell commands and package changes;
- network destinations and credentials;
- production and destructive operations;
- spending and other money-shaped actions;
- personal data, prompt injection, retry loops, and attempts to modify Custodian itself.
Each action receives a verdict, authority band, reason, and authenticated receipt. Receipts store bounded metadata rather than prompts, credentials, or tool results.
Version 0.4.2 is available as a GitHub release.
Install from PyPI:
pipx install custodian-kernel
custodian doctor
custodianThe bare custodian command opens the operator menu. It can create a
workspace, inspect policy, manage gates, show evidence, and list guarded tools
without requiring you to memorize every subcommand.
On Linux distributions that enforce PEP 668, use pipx or a virtual
environment. Do not use --break-system-packages.
The repository also includes install-custodian.py, an atomic managed
installer for machines where an application-style runtime is preferable:
python install-custodian.pyIt creates a private runtime and exposes the Custodian commands without writing packages into the operating system's Python environment.
| Environment | Package | Operator command |
|---|---|---|
| Kernel and Paladin only | custodian-kernel |
custodian |
| OpenAI Codex | custodian-codex-guard |
custodian-codex setup |
| Hermes enforcement only | custodian-hermes-guard |
custodian-hermes setup |
| Complete Hermes experience | custodian-talaria |
talaria setup |
Integration packages depend on the kernel. The kernel does not import a harness adapter.
agent proposes an action
|
v
mandatory guards inspect tool, arguments, scope, and policy
|
+-- autonomous --> execute within the harness boundary
|
+-- ask --> wait for an exact, authenticated operator approval
|
+-- block --> stop with a reason
|
v
append a value-free, hash-chained receipt
An approval is not a reusable "yes." It is single-use, expires, and binds the tool, action class, arguments, workspace, requester, and policy version. A changed action requires a new decision.
A fresh installation starts in open monitoring mode with visible notices. That lets an operator observe real workloads before closing gates:
custodian gates status
custodian gates protect
custodian gates open
custodian gates notifications quietOpen mode permits configured actions while retaining receipts. Protected mode requires approval for configured consequential classes. Gate rules can target a harness, tool, workspace, or action class.
custodian doctor
custodian health --format json
custodian console
custodian gates status
custodian adapters list
custodian-verifycustodian console is the live operator view for pending approvals, hard
blocks, gate policy, filesystem scopes, and receipt visibility. Hard blocks
are not pending approvals. They identify actions that violated a boundary,
such as declaring a home directory or filesystem root as the workspace.
The kernel distribution currently includes Paladin, an encrypted vault and
credential broker. Agents use a reference such as paladin://github_token
instead of receiving the value in a prompt or configuration file.
Grants restrict which requester and authority band may resolve each entry. Paladin can also limit a credential to approved hosts. Vault values never belong in Custodian receipts.
paladin init
paladin list
paladin audit verifyThe code maintains a strict import boundary between Custodian and Paladin even though they ship in the same distribution today.
Custodian keeps personal control-plane state under ~/.custodian. Workspaces
keep their own policy and state in the directory you select. Paladin stores
vault and audit data under ~/.paladin.
Package upgrades and normal uninstall operations preserve this data. Preview removal before applying it:
custodian uninstall --dry-run
custodian uninstall --yesCustodian is defense in depth, not an operating-system sandbox. Its guarantees depend on the harness routing actions through the installed enforcement boundary and on protecting operator state from the agent.
Custodian is alpha software and has not received a third-party security audit. Read SECURITY.md before using it for consequential work.
The 0.4.2 release has passed more than 3,000 source tests, clean-wheel installation, strict artifact validation, reproducible-build checks, and independent qualification on Linux and Windows. macOS qualification remains pending.