npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

agent-permission

v0.1.7

Published

Public CLI for Agent Permission checks and agent workspace installation.

Downloads

992

Readme

Agent Permission CLI

Give AI agents a permission gate before they touch external URLs.

Quickstart

For one personal Codex setup that works across repositories:

npx -y agent-permission@latest install --adapter codex
node "$HOME/.config/agent-permission/agent-permission.mjs" config set api-key <YOUR_API_KEY>
node "$HOME/.config/agent-permission/agent-permission.mjs" config doctor

install --adapter codex defaults to user scope, writes personal Codex instructions under your Agent Permission config directory, and installs a reusable runner there. The install output prints the exact runner command for your machine.

For a repository-owned instruction block:

npx -y agent-permission@latest install --adapter auto --scope project

This adds an Agent Permission block to the local agent instruction file, such as AGENTS.md, CLAUDE.md, or agent-permission.chatgpt.md, depending on the selected adapter. It also writes a tiny project-local runner at .agent-permission/agent-permission.mjs so repeated checks do not need npm registry access.

To install instructions and configure live checks in one step:

npx -y agent-permission@latest install --adapter codex --api-key <YOUR_API_KEY>

To force a project-local Codex install instead:

npx -y agent-permission@latest install --adapter codex --scope project

Add an API key when you want live checks from the command line, CI, or agent runs:

node "$HOME/.config/agent-permission/agent-permission.mjs" config set api-key <YOUR_API_KEY>
node "$HOME/.config/agent-permission/agent-permission.mjs" check https://example.com/blog-post --action summarize --exit-code

What the Agent Runs

After install, project instructions tell compatible agents to run:

node <installed-runner-path> check <url> --action <crawl|summarize|extract|train|transact|post> --exit-code

If the runner is missing, the installed instructions tell the agent to stop and ask you to repair the installation once:

npx -y agent-permission@latest install --adapter codex --scope user

If the API key is missing, the generated instructions tell the agent to stop and ask you to run the exact config set api-key command for that installed runner. The generated preflight block does not tell agents to run npx ... check during a URL request, so repeated checks do not need registry access or unpinned-code approval.

Commands

agent-permission check <url> --action <crawl|summarize|extract|train|transact|post>
agent-permission batch --file checks.json
agent-permission verify-receipt --file receipt.json
agent-permission install --adapter auto|codex|claude|chatgpt|openclaw [--scope project|user] [--api-key <key>]
agent-permission config set api-key <key>
agent-permission config doctor

Use --json for machine-readable output and --exit-code to map decisions to process status:

  • 0: allow
  • 2: escalate
  • 3: deny
  • 1: CLI or API error

Environment

AGENT_PERMISSION_API_KEY=<key>
AGENT_PERMISSION_API_URL=<url>
AGENT_PERMISSION_DEFAULT_MODE=strict

Agent Permission evaluates URL access signals from robots.txt, llms.txt, and OpenTerms, then returns a signed receipt for auditability.