Charavyuha: open-source security runtime for AI agents
Quaspar released Charavyuha as an open-source security runtime built for AI agents. The project puts control at the point of execution so operators can limit what agents can access, which actions they may perform, and how recovery proceeds when something goes wrong. The release is version 0.11.0b1 under the Apache 2.0 license and requires Python 3.11 or newer. Install with python -m pip install quaspar-shield-core==0.11.0b1.
This beta runs on a single host locally. Protected credential and MCP isolation need a supported non-root Linux environment with bubblewrap and unprivileged user namespaces. Windows and macOS do not receive an equivalent isolation boundary. Developers must explicitly configure permissions and route protected operations through the enforcement boundary.
Architecture: one boundary between agents and tools
Charavyuha places a single enforcement boundary between AI agents and the tools they call. The agent signs every request with its enrolled key. The boundary checks identity and signature, mission and policy, replay and budget, and issues a signed journal entry for each authorized action.
An authorized tool runs only after every check passes. The system does not execute unverified or revoked identities.
Cryptographic agent identity and tool authorization
Each agent and sender signs with an enrolled key. Unknown or revoked identities do not run. Tool authorization and replay protection happen on every call: the system checks against a pinned schema, resource, destination and policy version, using a one-time nonce to prevent reuse.
Mission contracts and restricted delegation bind one workflow per host-signed contract. Child missions can never exceed their parent's limits.
Credential brokering keeps provider credentials under host control. On Linux, required credential isolation fails closed unless bubblewrap is available. Mediated calls that attempt to move classified tool results to a lower clearance are refused by the Data Passport feature.
Signed approvals and security journals
Sensitive tools and policy-defined exceptions require a reviewer's signature for the exact request. Decisions record in a signed, checkpointed journal that can be verified and reconciled later.
If a credential becomes exposed, a persistent deny rule triggers. Only a reviewer's signed release can lift that rule and restore access.
Integrations with common stacks
Charavyuha installs as an optional extra for LangGraph and the OpenAI Agents SDK. Python developers can add MCP support. The runtime works with existing stacks without forcing a complete rewrite.
Getting started takes about five minutes. A portable inbox demo runs on any operating system, while protected execution requires Linux.