OpenRung
A free, privacy-first relay network that helps you reach the open internet. Open source and nonprofit-run.
One local, account-less security policy for the files that steer AI coding agents: skills, MCP servers, hooks, context files and permissions.
SecurityGitHub @DevXordOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
Repository information has not been collected yet.
No updates detected yet. GitHub releases will appear here.
One security policy for the files that steer your AI coding agents: skills, MCP servers, hooks, context files and permissions. Local, no account, runs nothing it finds.
Loading the full README.
Read the full README ↗One local, account-less security policy for the files that steer your AI coding agents: skills, MCP servers, hooks, context files and permissions.
A sibling of depcurfew: depcurfew guards the packages that people and agents install, agentcurfew guards the files that steer the agent. Documentation: agentcurfew.github.io.
AI coding agents (Claude Code, Cursor, Codex CLI, Gemini CLI, Copilot in VS Code, Windsurf, Cline) read files from your repository and your machine that decide how they behave: SKILL.md files with bundled scripts, MCP server configs, hooks, context files such as AGENTS.md and CLAUDE.md, and permission settings. Whoever can change those files can steer the agent, so they are a supply chain of their own.
agentcurfew:
statusLine, apiKeyHelper, headersHelper), settings that redirect the agent or bring code into it (env such as ANTHROPIC_BASE_URL, plugin marketplaces, Gemini CLI's context.fileName) and the scripts of the project that hooks run (scan --inventory);npx MCP servers and hooks, plain-HTTP MCP endpoints, secrets in configs, dangerous hooks, auto-run on open, permission bypasses, API traffic sent to another host, plugin marketplaces, instructions fetched at run time, persistence instructions and more (scan);agentcurfew.lock, the scripts hooks run included, so CI fails when one changes (lock, verify);agentcurfew.policy.json: allowed skill sources and MCP servers, pinned versions, exceptions with a reason and an end date (init, policy);Every fact about an agent (paths, formats, precedence) comes from its official docs or source code, with the address and the date, in the knowledge base.
npm install --save-dev agentcurfew
# or, without installing
npx agentcurfew@1 scan
It needs Node.js 20 or later. The command is agentcurfew.
In a project with a release-age delay (min-release-age in .npmrc, as depcurfew apply writes it), npx agentcurfew@<version> fails with ETARGET until that version is older than the delay, and min-release-age-exclude does not help, since npx and npm exec ignore it. Install agentcurfew as a dev dependency and run it from node_modules/.bin, or use the GitHub Action below, which installs it outside the project.
agentcurfew scan # exit code 1 on a finding at level high or above, or a file it could not read
agentcurfew scan --fail-on medium --json
agentcurfew scan --sarif > agentcurfew.sarif # for GitHub Code Scanning
agentcurfew lock # write agentcurfew.lock; commit it
agentcurfew verify # in CI: exit code 1 when anything changed since the lock
agentcurfew init # write agentcurfew.policy.json from what the project has now
agentcurfew doctor # find files and settings that agents ignore
agentcurfew explain hidden-unicode # what a rule finds and how to fix it
Run agentcurfew for the common commands, and agentcurfew help <command> for the options and examples of one. --user also reads your home directory and machine settings. JSON and SARIF output are described in docs/cli-json.md.
A clean scan means that none of the rules' patterns was found, not that the configuration is safe: see what agentcurfew does not find.
agentcurfew mcp serves read-only tools to an agent over MCP (stdio): check_skill and check_mcp_config before something is installed, scan_project and explain_rule. It reads only its own folder, folders given with --root and the roots the client shares.
agentcurfew init --hook adds a PreToolUse hook to .claude/settings.json (for Bash, PowerShell, Monitor, Write, Edit and NotebookEdit), next to depcurfew's hook if there is one. Writes to the files that steer agents ask first, and are denied when the new text has a finding at high or above or breaks the policy; npx skills add and claude mcp add are denied outside the policy, and so are writes that switch off depcurfew's or its own hook. The hook never allows anything by itself. See docs/mcp.md.
This is the beginning of the README. Read the rest at the original. Read the full README ↗