ratchet-authz-crewai
CrewAI adapter for Ratchet —
plugs the Ratchet authorization broker
into CrewAI's @on(InterceptionPoint.PRE_TOOL_CALL) hook. No
monkey-patching of CrewAI itself; a hijacked model still can't exceed what
was explicitly delegated to it.
Install
pip install ratchet-authz-crewai
Minimal usage
from ratchet_core import Broker, Ed25519WorkloadIdentity, tool_name_caveat
from ratchet_crewai import register_ratchet_hook
broker = Broker()
primary = Ed25519WorkloadIdentity("primary-agent")
token = broker.issue(
human_identity="alice@example.com",
primary_identity=primary,
caveats=[tool_name_caveat("web_search")],
)
register_ratchet_hook(
broker,
token_resolver=lambda ctx: token,
identity_resolver=lambda ctx: primary,
)
Full runnable example and architecture diagram: https://github.com/1manideep/ratchet/blob/main/examples/crewai_example.py
Metadata
Release files for ratchet-authz-crewai 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ratchet_authz_crewai-0.1.0.tar.gz | 2.8 kB | Without provenance | Details for ratchet_authz_crewai-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ratchet_authz_crewai-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ratchet_authz_crewai-0.1.0-py3-none-any.whl |
Total release size: 6.3 kB
Release files / ratchet_authz_crewai-0.1.0.tar.gz
| Download URL | ratchet_authz_crewai-0.1.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a100013547dca025633b2857e1c47b6087bdbf7372629a5e5c58c137bf51456b
|
|
BLAKE2b-256 checksum How to use checksums |
bbdc54dcfdee14bd50570a0eb097f3ab3e826e8839a711cb1b4af476de8a9ca5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / ratchet_authz_crewai-0.1.0-py3-none-any.whl
| Download URL | ratchet_authz_crewai-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c2e27869371748ed7009780ebb9dee332979153cf0bca421d417364f57f7599c
|
|
BLAKE2b-256 checksum How to use checksums |
d9c842a07c63ace8dcbce1e49d35f1eec1397acc5bff90d25a201696277e57b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for ratchet-authz-crewai 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.