Skip to main content
Glama

AXIOM Gate — Proof-Carrying AI Agent Tool Firewall

AXIOM Gate MCP server quality score on Glama

Give AI agents real tools without trusting them with your keys, filesystem, or bank account.

AXIOM Gate live terminal demo

AXIOM Gate sits between any untrusted LLM (Claude Desktop, Cursor, VS Code, Antigravity, OpenAI, Anthropic, LangChain, Vercel AI) and your production actions. Instead of relying on probabilistic prompt guardrails, every tool call passes through 6 deterministic, fail-closed cryptographic locks in under 4 ms — backed by a frozen < 2,000 LoC Proof-Carrying Code checker (axiom-tcb), a fuel-metered pure-Rust Wasm32-WASI sandbox (wasmi), and a zero-secret host credential broker.

Open-Core License: MIT / Apache-2.0 Core (Permanent) + Source-Available Commercial Pro Packs — the verification runtime, frozen TCB, CLI, MCP server, SDKs, Studio, and Core 4 tools are MIT / Apache-2.0 forever ($0).


Zero-Compile Install (30 Seconds)

macOS & Linux (SHA-256 verified release binary):

curl -fsSL https://github.com/Impius-Lab/axiom-gate/releases/latest/download/install.sh | sh

Windows PowerShell (SHA-256 verified release binary):

irm https://github.com/Impius-Lab/axiom-gate/releases/latest/download/install.ps1 | iex

Homebrew (macOS / Linux) or npx (Node 18.18+):

brew install impius-lab/tap/axiom-gate
# or run directly via npm without global install:
npx -y axiom-gate --version

15-Second Independent TCB Audit (from source):

cargo test -p axiom-tcb
# Verifies frozen < 2,000 LoC (1,969 total src lines, 1,764 code LoC), 0 unsafe, 0 external deps

Related MCP server: DROS-VajraClaw

Runtime vs. Authoring Split (Zero Z3 at Runtime!)

Phase

Commands

Requires Z3?

External Network?

Production Runtime & Verification

axiom-gate verify, run, mcp-serve, pack verify-license, audit verify, audit export, studio

No (Zero Z3!)

No (100% Offline)

Tool Authoring & Policy Signing

axiom-gate sign, axiom-gate init (when compiling fresh .axiom sources)

Yes (SMT proofs at sign time)

No (100% Offline)

Every production machine, CI/CD verifier, and developer MCP host executes pre-verified, Ed25519-signed Proof-Carrying Code bundles through the frozen < 2,000 LoC axiom-tcb proof checker in < 250 us with zero Z3 binary installed.


Why AXIOM Gate?

Guarantee

Prompt Guardrails

Docker Containers

Python Wrappers

AXIOM Gate

Prompt-injection immunity

Probabilistic text filter

OS container only

Mutable runtime regex/AST

Deterministic 6-lock boundary

Per-call boundary latency

200–1,500 ms

150–900 ms cold start

5–40 ms

< 4 ms Wasm + < 250 us TCB

API key & secret isolation

Visible to agent env

Visible inside container

Shared host heap memory

Host-only TLS 1.3 route broker

Business-logic ceilings

Natural-language rules

No logic visibility

Ad-hoc unit tests

Z3-proven postconditions + PCC

Trusted Computing Base

Billions of parameters

Linux kernel + containerd

CPython + dependency tree

1,969 total src lines (1,764 code LoC), 0 unsafe, 0 external deps

Compliance audit trail

Unverified logs

Container stdout

Mutable application logs

BLAKE3 hash-chained Ed25519 receipts


The 6-Lock Fail-Closed Architecture

flowchart LR
    LLM["Untrusted AI Agent<br/>(MCP / Python / TS SDK)"] --> L1["Lock 1: Ed25519 Signed Policy<br/>& Offline Pro License (E0730/E0734)"]
    L1 --> L2["Lock 2: Frozen &lt;2,000 LoC TCB<br/>LF Proof & Cap Check (E0711/E0302)"]
    L2 --> L3["Lock 3: BLAKE3 Digest Pin<br/>Policy == Manifest == BinWire (E0731)"]
    L3 --> L4["Lock 4: Strict JSON Schema,<br/>Anti-Cap Spoof & Rate Limit (E0732/E0733)"]
    L4 --> L5["Lock 5: Fuel-Metered Wasm32-WASI,<br/>Z3 Contracts, FS Jail & TLS 1.3 Secret Broker"]
    L5 --> L6["Lock 6: BLAKE3 Hash-Chained<br/>Ed25519 Audit Receipt (audit_ledger.jsonl)"]
  1. Lock 1 — Signed Policy & Offline License (E0730, E0734): Verifies the RFC 8785 canonical gate.policy.json Ed25519 signature against your organization keyring and verifies offline GATE-PRO-V1 licenses for commercial Pro Packs.

  2. Lock 2 — Frozen < 2,000 LoC Proof Checker (E0711, E0302): crates/axiom-tcb verifies the Edinburgh LF Proof-Carrying Code bundle (.pcc.json) and Ed25519 Human Trust Manifest (.trust.jsonld), proving observed capabilities are a strict subset of allowed capabilities — with zero Z3, zero LLVM, zero parser, and zero unsafe code inside the TCB.

  3. Lock 3 — Cryptographic Artifact Hash Pin (E0731): Enforces policy.module_blake3 == manifest.module_hash == BLAKE3(BinWire) so the compiled Wasm module executed at runtime is bit-identical to the verified source.

  4. Lock 4 — Strict Schema, Anti-Cap<...> / Anti-Pin Spoofing, Host State & Rate Limiting (E0732, E0733): Unforgeable Cap<"..."> capability handles, Ed25519-signed pinned_args (financial ceilings, allowlisted endpoints, journals), and jailed host_state_args (mutable risk counters read fresh from host files) are stripped from the LLM-facing schema and injected solely by the Rust host; spoofed capability/pinned arguments and excess per-minute calls fail closed before Wasm execution.

  5. Lock 5 — Fuel-Metered Wasm32-WASI, Z3 Invariants & Zero-Secret Host Broker (E0201, E0712, E0726, E0727):

    • Executes pure .axiom tools inside pure-Rust wasmi linear memory with deterministic fuel metering.

    • Enforces Z3-proven business contracts (refund caps, leverage/drawdown kill-switches, script extension bans, outbound secret blocks).

    • Enforces canonicalized filesystem jails (blocking ../, rooted paths, symlinks, and Windows NTFS junctions).

    • Enforces exact (scheme, method, host:port, path_prefix) HTTP/HTTPS route allowlists, private/link-local/metadata SSRF IP blocking (169.254.169.254, RFC 1918, loopback, IPv6-mapped IPv4), redirect-escape rejection, and host-only TLS 1.3 secret header injection (credentials never enter Wasm memory, tool output, or audit logs).

  6. Lock 6 — Tamper-Evident Audit Ledger (audit_ledger.jsonl): Every allowed or blocked tool invocation appends a BLAKE3 hash-chained, Ed25519-signed AuditReceipt verifiable offline and exportable to standalone HTML or JSON compliance reports.


Quickstart (axiom-gate)

# 1. Verify a pre-signed policy + frozen TCB certificate bundle offline (Zero Z3!)
axiom-gate verify \
  --policy ./projects/axiom_gate/policies/secret_safe_reader.gate.policy.json \
  --json

# 2. Execute a signed tool through all 6 locks and append a signed receipt
axiom-gate run \
  --policy ./projects/axiom_gate/policies/secret_safe_reader.gate.policy.json \
  --args '{"path":"orders_sample.txt","max_chars":2048}' \
  --ledger ./audit_ledger.jsonl \
  --json

# 3. Run all 10 live adversarial prompt-injection & policy attacks
axiom-gate arena --json

# 4. Verify the BLAKE3 + Ed25519 audit chain offline and export a compliance report
axiom-gate audit verify --ledger ./audit_ledger.jsonl --json
axiom-gate audit export --ledger ./audit_ledger.jsonl --out ./compliance_report.html

# 5. (Optional, requires Z3) Scaffold & sign a fresh org workspace from source
axiom-gate init ./my-agent-gate

Connect MCP Clients (Claude, Cursor, VS Code, Antigravity)

Generate a ready-to-paste client configuration automatically:

axiom-gate mcp-config --client claude      --policy-dir ./projects/axiom_gate/policies --ledger ./audit_ledger.jsonl
axiom-gate mcp-config --client cursor      --policy-dir ./projects/axiom_gate/policies
axiom-gate mcp-config --client vscode      --policy-dir ./projects/axiom_gate/policies
axiom-gate mcp-config --client antigravity --policy-dir ./projects/axiom_gate/policies

Example claude_desktop_config.json / .cursor/mcp.json:

{
  "mcpServers": {
    "axiom-gate": {
      "command": "axiom-gate",
      "args": [
        "mcp-serve",
        "--transport", "stdio",
        "--policy-dir", "./projects/axiom_gate/policies",
        "--ledger", "./audit_ledger.jsonl"
      ],
      "env": {
        "STRIPE_API_KEY": "sk_live_kept_strictly_on_host"
      }
    }
  }
}

Or serve over Streamable HTTP (localhost-only with Bearer authentication):

axiom-gate mcp-serve \
  --policy-dir ./projects/axiom_gate/policies \
  --transport http \
  --addr 127.0.0.1:8787 \
  --bearer-token "replace-with-strong-local-token" \
  --ledger ./audit_ledger.jsonl

Tool Packs & Open-Core Pricing (MIT Forever Core + Pro Packs)

Tool / Tier

Pack & License

Least-Privilege Capabilities

Key Z3-Proven / Sandbox Invariants

secret_safe_reader

Core Free (MIT OR Apache-2.0, $0 forever)

fs.read, clock (no write, no net)

Strips API keys, bearer tokens, private key headers, emails, and 16-digit cards; str_len(ret) <= max_chars; jailed allow_dirs.

capped_refund_guard

Core Free (MIT OR Apache-2.0, $0 forever)

net.http, fs.read, fs.write, clock

amount_cents == 0 || amount_cents > max_refund_cents => Err(1001) before any HTTPS request; host-pinned ceiling/URL, Stripe application/x-www-form-urlencoded body, and host secret injection.

allowlisted_webhook_sender

Core Free (MIT OR Apache-2.0, $0 forever)

net.http, io, clock (no fs)

Blocks outbound messages containing credential markers (Err(1004)); exact webhook route allowlist + SSRF private-IP block.

jailed_report_writer

Core Free (MIT OR Apache-2.0, $0 forever)

fs.write, clock (no net, no read)

Permits only .md, .txt, .json, .csv (Err(1006) on .ps1/.sh/.bat/.exe/.env); blocks secrets (Err(1004)) and host-pinned size overflows (Err(1005)).

github_devops_guard

Pro Pack B (pro_github, $49 one-time, Individual Perpetual v1.x)

fs.read, net.http, clock (no fs.write)

Structurally read-only repo access; host-injected GITHUB_TOKEN; blocks empty/oversized (Err(3002)) or secret-bearing (Err(3003)) comments.

csv_pii_reader

Pro Pack C (pro_csv, $49 one-time, Individual Perpetual v1.x)

fs.read, clock (no write, no net)

Row-capped (Err(4001)) and byte-capped (Err(4002)) analytical CSV slicer with deterministic per-row PII and credential redaction.

quant_order_guard

Pro Pack A (pro_quant, $79 one-time, Individual Perpetual v1.x)

net.http, fs.read, fs.write, clock

OMS / exchange signer-proxy Z3 risk kill-switch: host-pinned notional cap (Err(2001)), leverage cap (Err(2002)), host-ledger daily drawdown cutoff (Err(2003)), strict buy/sell side (Err(2004)), keeping wallet keys strictly off Wasm.

Commercial Bundles & Team Licensing

  • Pro All-Access Bundle (pro_all, $129 one-time): Unlocks all 3 Pro Packs (pro_quant, pro_github, pro_csv) under an Individual Perpetual v1.x license (1 developer).

  • Team / Org Annual License (team_org, $299/yr): Unlocks all 3 Pro Packs for up to 10 developers, shared CI/CD runners, and compliance export workflows.

  • Enterprise Custom: Custom seat counts, private authority keys, custom formally verified .axiom tool packs, and invoice billing — email 2aghous94@gmail.com.

All commercial licenses are issued as zero-telemetry, offline-verifiable Ed25519 GATE-PRO-V1 tokens and backed by our 14-day technical-failure refund guarantee (https://axiom-gate-site.weight-space-engineering.workers.dev/refunds):

axiom-gate pack verify-license --token "GATE-PRO-V1.<payload_b64url>.<sig_b64url>" --json

See COMMERCIAL-PRO-LICENSE.md for the full "MIT Forever" Core Pledge and commercial license terms.


Python & TypeScript SDKs

Python SDK (OpenAI, Anthropic & LangChain Adapters)

from axiom_gate import AxiomGateClient, to_openai_tools

with AxiomGateClient(
    policy_dir="./projects/axiom_gate/policies",
    ledger_path="./audit_ledger.jsonl",
) as gate:
    # Export tool schemas with unforgeable Cap<...> parameters stripped automatically
    openai_tools = to_openai_tools(gate)

    # Execute through all 6 locks and inspect the signed AuditReceipt
    result = gate.call(
        "secret_safe_reader",
        path="orders_sample.txt",
        max_chars=2048,
    )
    assert result.ok, f"Blocked ({result.diagnostic_code}): {result.reason}"
    print("Verified receipt hash:", result.receipt_hash)

TypeScript SDK (Node 18.18+, Vercel AI SDK & OpenAI Adapters)

import { AxiomGate, asVercelAiTools } from "axiom-gate";

const gate = await AxiomGate.connect({
  policyDir: "./projects/axiom_gate/policies",
  ledgerPath: "./audit_ledger.jsonl",
});

try {
  // Plug directly into Vercel AI SDK or OpenAI tool definitions
  const tools = await asVercelAiTools(gate);

  const res = await gate.callTool<string>("secret_safe_reader", {
    path: "orders_sample.txt",
    max_chars: 2048,
  });

  console.log(res.ok ? res.data : res.diagnosticCode);
} finally {
  await gate.close();
}

Local Gate Studio & Product Site

Local Gate Studio (Offline Desktop Web Console)

Inspect your Tool Vault, compose & Ed25519-sign policies, run the live 10-vector Attack Arena, verify your BLAKE3 audit ledger, and generate MCP configs on 127.0.0.1:

# Build the React Studio UI once (optional; API works standalone too)
cd projects/axiom_gate/web/studio && npm ci && npm run build && cd ../../../..

# Launch Local Gate Studio at http://127.0.0.1:8790
axiom-gate studio \
  --policy-dir ./projects/axiom_gate/policies \
  --ledger ./audit_ledger.jsonl \
  --port 8790

Cloudflare Workers Product Site & Whop Offline License Minter

projects/axiom_gate/web/site contains the static marketing + interactive 6-Lock / Attack Playground SPA and the Cloudflare Worker (worker/src/license.ts) that verifies Whop webhooks and mints byte-for-byte Rust-compatible GATE-PRO-V1 Ed25519 tokens:

cd projects/axiom_gate/web/site
npm ci
npm run typecheck
npm test
npm run build
npx wrangler dev --ip 127.0.0.1 --port 8788

Independent Verification & Transparency Audit

Every tool's transitive use import graph, least-privilege capabilities, typed-hole absence, and Safe-Rust compliance can be audited locally in one command:

python projects/axiom_gate/scripts/export_public_repo.py --verify-only

For security architecture, threat model, and coordinated disclosure instructions, see SECURITY.md.

Available Tools

7 tools
allowlisted_webhook_senderB

Send outbound operational alerts strictly to allowlisted Slack webhooks with host-pinned payload ceiling and pre-flight secret scanning

Inputs: channel (required), message (required), webhook_url (required).

capped_refund_guardC

Issue bounded customer refunds with host-pinned Z3 financial ceiling, Stripe form-encoded route allowlist, and jailed audit journal

Inputs: order_id (required), amount_cents (required).

csv_pii_readerC

Read jailed CSV datasets with Z3-proven row/character caps and automatic email, card, and API key PII redaction

Inputs: csv_path (required), max_rows (required), max_chars (required).

github_devops_guardC

Post GitHub issue/PR comments guarded by host-pinned size bounds, credential scanning, and redacted jailed repo context

Inputs: api_url (required), issue_num (required), comment_body (required), repo_file_path (required).

jailed_report_writerB

Write markdown, text, JSON, or CSV reports inside a jailed output directory with host-pinned size ceiling while blocking scripts and credential leaks

Inputs: content (required), output_path (required).

quant_order_guardC

OMS / exchange signer-proxy risk guard enforcing host-pinned notional cap, leverage ceiling, and host-ledger daily drawdown kill-switch over TLS 1.3

Inputs: symbol (required), side_code (required), leverage_bps (required), notional_usd_cents (required).

secret_safe_readerC

Read files from a jailed directory with automatic API key, token, card, and email PII redaction

Inputs: path (required), max_chars (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 7 tools

    Disambiguation4/5

    Each tool targets a distinct domain: Slack webhooks, refunds, CSV reads, GitHub comments, report writing, quant orders, and general jailed file reads. The main overlap is between csv_pii_reader and secret_safe_reader, since both read jailed files with PII redaction; the CSV-specific caps help distinguish them, but an agent could still hesitate over which reader to use.

    Naming Consistency5/5

    All tool names use consistent snake_case and follow a predictable descriptive pattern of qualifier/domain plus role noun (sender, guard, reader, writer). The convention is uniform throughout the set.

    Tool Count5/5

    Seven tools is a well-scoped set for a security gate server, with each tool representing a distinct guarded operation. There is no obvious padding or missing core operation at the count level.

    Completeness4/5

    The surface covers the main guarded actions: outbound alerts, refunds, GitHub comments, quant orders, report writing, and safe file/CSV reading. Minor gaps exist around inspecting audit journals, allowlists, or gate status, but agents can work around them for the primary workflows.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers