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

@idevelopers/agentlock

v0.1.8

Published

Local permission firewall, policy checks, and audit guardrails for AI coding agents.

Readme

AgentLock

Stop AI coding agents from touching secrets, running unsafe commands, or overusing MCP tools without explicit policy.

AgentLock is a local MCP server plus Claude Code and Codex plugin packaging. It gives each agent task a permission capsule for files, shell commands, secret reads, network egress, MCP tools, and actions that require approval.

Install

Install the MCP server directly from npm in Claude Code:

claude mcp add agentlock -- npx -y @idevelopers/agentlock

Or install the Claude Code plugin from the public installer marketplace:

/plugin marketplace add https://github.com/manish-1988/agentlock-installer
/plugin install agentlock@agentlock-marketplace

For local source development from this private repository:

npm install
npm run build
node dist/index.js

Polar handles paid licenses; npm distributes the runtime package. The public installer repository contains only plugin metadata and points Claude/Codex at npx -y @idevelopers/agentlock.

First Useful Run

Start with a free local scan before giving an agent a broad task:

1. Run agentlock_scan_environment.
2. Generate a starter policy with agentlock_generate_policy.
3. Save it as agentlock.policy.json.
4. Use Pro checks before secret reads, deploys, package publishes, git pushes,
   network egress, or broad MCP tool calls.

The free path surfaces risky files and agent-accessible configuration without printing secret values.

When Free Becomes Pro

Upgrade when a scan becomes active enforcement:

  • check file, command, network, and MCP actions before they run
  • execute shell commands through policy with shell:false
  • require approval for publish, deploy, secret, and destructive actions
  • keep a redacted local audit log for sensitive agent work
  • prepare shared signed policies for future team usage

Free scanner and policy-generator responses include an upgrade block when they find a risk surface or produce a policy that is ready for enforcement.

Free, Pro, Team

Free is the local AgentLock scanner and starter policy generator. The source repository remains private; the public installer repository only contains plugin metadata that points to the public npm runtime.

| Capability | Free | Pro | Team | | --- | --- | --- | --- | | Local AI-agent/MCP risk scan | Yes | Yes | Yes | | Starter policy generation | Yes | Yes | Yes | | Action checks against policy | No | Yes | Yes | | Guarded command execution | No | Yes | Yes | | Redacted local audit log | No | Yes | Yes | | Shared policies, signed bundles, seats | No | No | Yes |

Pro is priced at INR 1,599/dev/month or INR 15,999/dev/year. Team is priced at INR 8,499/team/month with seats.

Buy AgentLock Pro or Team from the live Polar checkout: https://buy.polar.sh/polar_cl_exvU3F3ZTpiDvwBXIRqrMf30T1kBTsLxyx26B4SCkUz

Policy

Create agentlock.policy.json in your repo. Start from agentlock.policy.example.json or call agentlock_generate_policy.

{
  "version": 1,
  "defaultCapsule": "default",
  "capsules": [
    {
      "id": "default",
      "allowedFiles": ["**"],
      "deniedFiles": [".env", ".env.*", "~/.aws/**", "~/.ssh/**"],
      "allowedCommands": ["npm test", "npm run", "git status", "git diff"],
      "deniedCommands": ["rm", "sudo", "npm publish", "git push"],
      "approvalRequired": ["secret-read", "package-publish", "git-push"]
    }
  ]
}

For smoke tests or nonstandard filenames, point AgentLock at a specific policy:

export AGENTLOCK_POLICY=agentlock.policy.example.json

Tools

  • agentlock_scan_environment: free local risk scan for secret-adjacent files and agent/MCP config.
  • agentlock_generate_policy: free starter permission capsule generator.
  • agentlock_check_action: Pro policy decision for file, command, network, and MCP actions.
  • agentlock_run_guarded_command: Pro command runner using child_process.spawn with shell:false.
  • agentlock_audit_log: Pro redacted local audit log.
  • agentlock_activate_license: store and verify a Polar license key.

Public Support

The source repository is private. Public installation metadata, support, and issues live at:

https://github.com/manish-1988/agentlock-installer

License Activation

AgentLock uses Polar license keys and caches successful validation in ~/.agentlock/license.json with a 72-hour offline grace window for Pro and Team licenses.

For sandbox checks, set both values:

export POLAR_ENVIRONMENT=sandbox
export POLAR_ORGANIZATION_ID="your_sandbox_org_id"
export AGENTLOCK_CHECKOUT_URL="your_sandbox_checkout_url"

Then call agentlock_activate_license with the Polar license key. By default the activation label is agentlock-local; override it with AGENTLOCK_ACTIVATION_LABEL if you want a more specific device label in Polar.

Security

AgentLock runs locally and does not upload files or secrets to an AgentLock server. The scanner reports file presence and risky surfaces, not secret values. Reports, command output tails, and audit entries are redacted.

Guarded commands run with shell:false and a sanitized environment that strips secret-like variables. Treat agentlock.policy.json like a CI or firewall file: review it before trusting an agent task.

Development

npm install
npm run build
npx vitest run
npm pack --dry-run

The package binary is agentlock, mapped to dist/index.js.