Skip to main content
Glama

monaa-guard

CI Passing Release v0.1.0 License Apache-2.0 Pure Safe Rust 100% BYOK

Stop Claude Code, Cursor & Antigravity from burning $20 reading node_modules, leaking .env, or drifting mid-build. Cut local MCP token bloat 40%–65% free forever—or unlock 17.8x KV-cache compression in the cloud.

monaa-guard demo: blocking .env leaks, rm -rf, and cutting token bills 17.8x


1-Line Install

curl -fsSL https://raw.githubusercontent.com/monaa-research/monaa-guard/main/install.sh | sh

Or paste this repo URL directly into Cursor / Claude Code / Antigravity chat:

Install and set up https://github.com/monaa-research/monaa-guard in this project using install.sh, wrap our MCP servers with monaa-guard proxy, and run monaa-guard doctor.

What happens in ~10 seconds:

  1. Downloads the SHA-256 verified Rust binary (v0.1.0) for macOS or Linux (x86_64 / arm64, zero Python dependencies).

  2. Wires .mcp.json to proxy MCP tools through monaa-guard—your LLM API keys stay 100% on your machine (0 keys transmitted).

  3. Blocks .env reads, rm -rf, symlink escapes, and reverse-engineering attempts in 27 µs locally before any tool executes.

monaa-guard init "Real-time invoice schema validator CLI"  # Create SPEC.md, TASKS.md, SKILL.md, & .mcp.json
monaa-guard savings                                        # Print your token savings card + share badge
monaa-guard doctor                                         # Benchmark local latency (<50 us) & key custody

Related MCP server: aperion-shield

Before vs. After (Real Audited Billing Proof)

On 190.37M+ audited input tokens, deterministic prompt/prefix alignment drops billed input cost from $22.31 -> $1.25 ($0.1172 -> $0.0066 per 1M tokens, 17.8x cheaper):

What Changes

Unprotected Coding Agent

monaa-guard Free Local (Apache-2.0)

monaa-guard + 17.8x Cloud Trial

Token Bloat (node_modules, target/, loops)

Full raw dump into context

40%–65% smaller locally (unlimited, free forever)

Stacks 17.8x KV-cache alignment on top

Bill on 190.37M Tokens ($0.1172 -> $0.0066/1M)

$22.31 uncached bill

$7.81 – $13.39 (40%–65% cut locally)

$1.25 verified cached rate (17.8x drop)

.env Leaks & rm -rf Mistakes

Depends on prompt luck

Blocked in 27 µs deterministically before run

Blocked + signed execution audit trail

Mid-Build Tool / Schema Drift

Silent tool/schema changes

Shared SPEC.md + monaa-guard.toml lock

Strict post-handshake schema pinning

LLM API Key Custody

Depends on proxy

100% local (0 keys leave host)

100% BYOK (0 keys leave host) — hashes only

Audited DeepSeek billing proof: $0.1172 down to $0.0066 per 1M tokens across 190.37M+ tokens

Track Every Dollar Locally (monaa-guard savings)

+----------------------------------------------------------------------+
| monaa-guard // Free Local Token Compactor & 27 us Wire Shield        |
+----------------------------------------------------------------------+
| Responses Compacted : 142                                            |
| Tokens Saved Local  : 1,840,200                                      |
| Payload Reduction   : 54%                                            |
| Bloat / Loops Cut   : 9,410 bloat lines · 312 echoes                 |
| Est. Local Savings  : $0.22                                          |
| Extra Cloud Waiting : $20.35 (17.8x KV-Cache Multiplier)             |
+----------------------------------------------------------------------+

Start Your Free 7-Day 17.8x Cloud Trial

The local token compactor & 27 µs firewall stay free and unlimited forever (zero daily caps, zero credit card). When you want the 17.8x cloud KV-cache compression, strict schema pinning, and Day-1 priority on the upcoming MONAA Native AI Model:

monaa-guard trial <you@company.com> --github <your_github_username>

Or claim your pass visually at monaa.tech/guard!

  • No wasted clock: Your 7 full days begin only on your first cloud request—claiming early burns zero time.

  • No surprise lockouts: After Day 7, monaa-guard cleanly keeps your unlimited free local compactor & 27 µs shield active.

  • Launch pricing when you upgrade (through Dec 31, 2026): ₹9 for 30 days in India (manual UPI/card, strictly no AutoPay) -> ₹999 / 30d; or $3.90 Month 1 globally -> $30/mo ($306/yr).


Connect Any IDE or Terminal Agent

  • Claude Code:

    claude mcp add guarded-tools -- monaa-guard proxy --upstream "npx -y @modelcontextprotocol/server-filesystem ."
  • Cursor / VS Code / Antigravity (.mcp.json):

    {"mcpServers":{"guarded-tools":{"command":"monaa-guard","args":["proxy","--upstream","npx -y @modelcontextprotocol/server-filesystem ."]}}}
  • Agent guides: See AGENTS.md and CLAUDE.md. Built in Pure Safe Rust (#![forbid(unsafe_code)], #![deny(clippy::unwrap_used)], #![deny(clippy::expect_used)]).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      MCP server that vets LLM-emitted shell commands BEFORE execution — detects rm -rf nested deep in chains, package-manager glob removal (apt remove 'nvidia'), dd/mkfs filesystem destruction, chmod 777 / chown -R privilege blast, network-exfil via curl | bash, chained shutdown/reboot, git destructive ops. 30 detection rules across 8 families. Sub-second, local, free, MCP-native.
      3
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Local guardrails for AI coding agents. Checks each tool call from Claude Code, Cursor, Codex and MCP servers, and stops or asks before destructive ones run (DROP TABLE, rm -rf, force-push, unscoped UPDATE/DELETE). Free, runs on your machine, source-available under the Elastic License 2.0.
      16
      13
      Elastic 2.0
    • A
      license
      A
      quality
      A
      maintenance
      Dependency-free, locally sandboxed MCP stdio server. Tools run as WASM inside a capability-based WASI sandbox (wasmtime); every tools/call is attested with cost/policy and signed manifests fail-closed.
      3
      137 PyPI
      48
      Business Source 1.1
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables MCP-compatible clients and autonomous agents to dynamically compress long-horizon context by pruning verbose tool outputs, HTML boilerplate, and semantic redundancy by 40-70%. It reduces token burn and latency through deterministic, zero-dependency processing.
      -