Charavyuha: Open-Source Security Runtime for AI Agents

Charavyuha open-source AI agent security runtime diagram

AI agent security just got a new open-source option. Quaspar has released Charavyuha, a runtime that sits between an agent and its tools and controls what the agent can access, which actions it can take, and how it recovers when something goes wrong.

The project is in public beta as version 0.11.0b1, under the Apache 2.0 license. It needs Python 3.11 or newer and installs with python -m pip install quaspar-shield-core==0.11.0b1.

One boundary between agents and tools

Charavyuha puts a single enforcement boundary in front of tool use. Each request is signed by the agent using its enrolled key. The runtime verifies the identity, the mission and policy, replay and budget limits, and asks for a human approval when the rules demand one. It records the outcome as a signed journal entry, and the tool executes only once all of that has passed.

The idea behind this design is that security is applied at the moment of execution. A prompt can tell an agent what to avoid, but a boundary decides what actually happens.

What Charavyuha enforces

The runtime covers eight areas.

  • Agent identity. Every agent and sender holds an enrolled key and signs with it. A key that is unknown or has been revoked gets nothing executed.
  • Per-call checks. A call is matched to a pinned schema, a resource, a destination and a policy version, and each carries a nonce that works once, which blocks replays.
  • Missions. The host signs a contract that limits one workflow. Delegated child missions stay inside whatever their parent was allowed.
  • Credential brokering. Provider secrets stay with the host rather than the agent. On Linux, if bubblewrap is absent, the isolation step refuses to proceed.
  • Data Passport. Results marked as classified carry a stamp, and a mediated call that would send them somewhere with lower clearance is rejected.
  • Human approvals. Sensitive tools, and exceptions written into policy, wait for a reviewer to sign off on that precise request.
  • Journals. Each decision is written to a signed log with checkpoints, which can be verified and reconciled later.
  • Containment. If a credential is exposed, a deny rule stays in force until a reviewer releases it with a signature.

Two of these matter for teams running multi-step agents. Restricted delegation means a sub-agent can’t be handed more power than the agent that started it. And the approval signature is tied to one exact request, so an approval for one action can’t be reused for another.

Where it works today

The beta has limits, and Quaspar states them plainly. This is a local, single-host release. Credential and MCP isolation work only on a supported non-root Linux setup that has bubblewrap and unprivileged user namespaces, and native worker isolation adds its own host requirements. Windows and macOS users get no comparable isolation.

Developers carry part of the load too: permissions must be configured by hand, and protected operations have to be sent through the boundary. Anything that bypasses the boundary isn’t covered.

A portable inbox demo runs on any operating system, though protected execution is Linux-only. A five-minute quickstart covers setup.

Framework support

Charavyuha works with Python and with MCP. Support for LangGraph and the OpenAI Agents SDK installs as optional extras, so teams using those frameworks can add the runtime without changing their agent code from scratch.

For developers, the practical question is how much of an existing agent stack can be routed through the boundary. A runtime that checks identity, policy, replay, budget and approval on every call is only as strong as the share of calls that pass through it.

What to watch in the beta

The single-host restriction is the main constraint for now. Teams running agents across several machines will have to wait for a release that goes beyond one host, and Quaspar hasn’t given a date. Anyone testing the beta on macOS or Windows should treat the isolation guarantees as absent and use the demo only for evaluation.

Even so, the feature list covers ground that many agent frameworks leave to the developer: signed identities, replay protection, brokered credentials and an auditable journal. Teams evaluating AI agent security tooling can try the Linux setup first, since that is where the full set of protections applies.

Source: Quaspar

Written by

Saksham Bhargava

Saksham Bhargava runs Alteroid and has been writing about consumer technology for over five years, covering iPhone, Android, Windows, AI tools and gaming. With an MCA and six years of hands-on web development experience, he tests the features he writes about on his own devices and focuses on clear, practical guides that solve real problems. Away from the screen, he enjoys travelling to places most tourists skip.