Custodian Codex Guard
Policy guard for Codex CLI. Evaluates every coding-agent action (read, write, execute, network, package, approval) before execution — fail-closed, evidence- preserving, and independent of the model or approval backend.
Watch the demo: Custodian Codex Guard: A Safety Layer for AI Coding Agents.
Install
Custodian Codex Guard 0.1.2 supports Linux and macOS with Python 3.11 through 3.13. Windows is not supported by this release because it depends on Custodian Kernel 0.4.1. Windows support is planned with Custodian Kernel 0.4.2.
python -m pip install custodian-codex-guard
custodian-codex setup
custodian-codex doctor
Requires custodian-kernel (installed automatically as a dependency).
Users do not need to activate or manage a virtual environment when Custodian
is installed through its managed installer.
Run setup from any directory. The installed package carries the Codex plugin files it needs; a source checkout is not required.
Gate behavior
Custodian's gate mode is an operator preference, shared by supported harnesses. Inspect it with:
custodian gates status
open permits matching policy rules to auto-pass all action classes.
Notifications may be enabled to show those passes or disabled to avoid routine
messages. protect requires approval for configured high-risk classes.
Decisions continue to produce value-free evidence in the Custodian ledger.
The guard evaluates routed tool calls before Codex's own approval decision. It supplements Codex's sandbox and permissions; it does not replace operating system isolation or govern tools that are not routed through the installed hook/MCP boundary.
Remove
python -m pip uninstall custodian-codex-guard
Uninstalling the package does not delete ~/.custodian, receipts, approvals,
gate preferences, policies, or vault data. To remove the Codex hook first:
custodian-codex hook-uninstall
Security
Report vulnerabilities privately using the instructions in SECURITY.md. Do not include credentials, vault contents, or private receipts in a public issue.
- Documentation: https://getcustodian.xyz/docs
- Source: https://github.com/KeyArgo/custodian-codex-guard
- Package: https://pypi.org/project/custodian-codex-guard/
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 custodian_codex_guard-0.1.2.tar.gz.
File metadata
- Download URL: custodian_codex_guard-0.1.2.tar.gz
- Upload date:
- Size: 48.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9eaf52b84285b4d5dcabb1ae31faf6f6fd7759160658256795fdf5213dd7834f
|
|
| MD5 |
478a5987fac57d70a627ca514a396694
|
|
| BLAKE2b-256 |
b7559d5a84f6b22bfacd0260f453698e0799dc9894ac09677658f0bdc103c5de
|
File details
Details for the file custodian_codex_guard-0.1.2-py3-none-any.whl.
File metadata
- Download URL: custodian_codex_guard-0.1.2-py3-none-any.whl
- Upload date:
- Size: 49.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b679387caba3675be468603e3bc905e1602821777182820488dfa7928a9ca7e
|
|
| MD5 |
258580a9d6fe57174d9fbb33121e4061
|
|
| BLAKE2b-256 |
23ca1651e2cf32b94359784fa835ed9e62269be668a0fd86aad99918d9520c82
|