AXIOM Gate
AXIOM Gate is a proof-carrying AI agent tool firewall that exposes seven policy-guarded tools for safe filesystem, HTTP, financial, GitHub, CSV, and trading actions.
Read jailed files with automatic API-key/token/card/email redaction (
secret_safe_reader).Issue bounded refunds with a host-pinned Z3 financial ceiling and Stripe route allowlist (
capped_refund_guard).Send Slack webhook alerts only to allowlisted routes, with payload limits and secret scanning (
allowlisted_webhook_sender).Read jailed CSV datasets with row/character caps and PII/credential redaction (
csv_pii_reader).Post GitHub issue/PR comments with size bounds, credential scanning, and redacted repo context (
github_devops_guard).Write jailed markdown/text/JSON/CSV reports while blocking scripts, secrets, and size overflows (
jailed_report_writer).Enforce OMS/exchange risk limits for symbol, side, notional, leverage, and daily drawdown while keeping wallet keys off-Wasm (
quant_order_guard).Run calls through signed policies, a frozen TCB, a Wasm sandbox, host-only secret injection, and BLAKE3/Ed25519 audit receipts.
Host-pinned Stripe refund calls with Z3-proven refund ceilings; the capped_refund_guard tool sends application/x-www-form-urlencoded HTTPS requests to Stripe with the API secret injected host-side, never entering Wasm memory or audit logs.
AXIOM Gate — Proof-Carrying AI Agent Tool Firewall
Give AI agents real tools without trusting them with your keys, filesystem, or bank account.
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 | shWindows PowerShell (SHA-256 verified release binary):
irm https://github.com/Impius-Lab/axiom-gate/releases/latest/download/install.ps1 | iexHomebrew (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 --version15-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 depsRelated MCP server: DROS-VajraClaw
Runtime vs. Authoring Split (Zero Z3 at Runtime!)
Phase | Commands | Requires Z3? | External Network? |
Production Runtime & Verification |
| No (Zero Z3!) | No (100% Offline) |
Tool Authoring & Policy Signing |
| 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 |
|
|
|
|
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 |
|
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 <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)"]Lock 1 — Signed Policy & Offline License (
E0730,E0734): Verifies the RFC 8785 canonicalgate.policy.jsonEd25519 signature against your organization keyring and verifies offlineGATE-PRO-V1licenses for commercial Pro Packs.Lock 2 — Frozen
< 2,000LoC Proof Checker (E0711,E0302):crates/axiom-tcbverifies 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 zerounsafecode inside the TCB.Lock 3 — Cryptographic Artifact Hash Pin (
E0731): Enforcespolicy.module_blake3 == manifest.module_hash == BLAKE3(BinWire)so the compiled Wasm module executed at runtime is bit-identical to the verified source.Lock 4 — Strict Schema, Anti-
Cap<...>/ Anti-Pin Spoofing, Host State & Rate Limiting (E0732,E0733): UnforgeableCap<"...">capability handles, Ed25519-signedpinned_args(financial ceilings, allowlisted endpoints, journals), and jailedhost_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.Lock 5 — Fuel-Metered Wasm32-WASI, Z3 Invariants & Zero-Secret Host Broker (
E0201,E0712,E0726,E0727):Executes pure
.axiomtools inside pure-Rustwasmilinear 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).
Lock 6 — Tamper-Evident Audit Ledger (
audit_ledger.jsonl): Every allowed or blocked tool invocation appends a BLAKE3 hash-chained, Ed25519-signedAuditReceiptverifiable 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-gateConnect 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/policiesExample 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.jsonlTool Packs & Open-Core Pricing (MIT Forever Core + Pro Packs)
Tool / Tier | Pack & License | Least-Privilege Capabilities | Key Z3-Proven / Sandbox Invariants |
| Core Free ( |
| Strips API keys, bearer tokens, private key headers, emails, and 16-digit cards; |
| Core Free ( |
|
|
| Core Free ( |
| Blocks outbound messages containing credential markers ( |
| Core Free ( |
| Permits only |
| Pro Pack B ( |
| Structurally read-only repo access; host-injected |
| Pro Pack C ( |
| Row-capped ( |
| Pro Pack A ( |
| OMS / exchange signer-proxy Z3 risk kill-switch: host-pinned notional cap ( |
Commercial Bundles & Team Licensing
Pro All-Access Bundle (
pro_all,$129one-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
.axiomtool packs, and invoice billing — email2aghous94@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>" --jsonSee 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 8790Cloudflare 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 8788Independent 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-onlyFor security architecture, threat model, and coordinated disclosure instructions, see SECURITY.md.
Available Tools
7 toolsallowlisted_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
Scored across 7 tools
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.
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.
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.
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
Related MCP Connectors
Real-time MCP & A2A prompt-injection, jailbreak, and tool-schema poisoning firewall for AI agents.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Secure Linux sandboxes for AI agents, as MCP tools.
Pure-Rust MCP wire firewall & local token compactor blocking .env leaks in 27us
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceA local, fail-closed firewall for MCP tool calls that enforces least-privilege policies and human approval between AI agents and stdio MCP servers.24 npm100MIT
- FlicenseCqualityBmaintenanceDeterministic <1µs in-band execution governance gateway and W3C DID security guardrail for AI Agent MCP tool calls.116-
- AlicenseNot gradedqualityNot gradedmaintenanceEnables real-time injection fuzzing, exfiltration canary detection, least-privilege tool sandboxing, and cryptographic audit proofs for untrusted prompts, RAG context, and agent actions over MCP.MIT
- AlicenseAqualityBmaintenanceEnables running AI coding agents and MCP servers inside an OS-level least-privilege sandbox that hides credentials and blocks network access by default, with tool firewalling, rug-pull protection, audit logging, and boundary verification.82AGPL 3.0