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

@agentapprove/opencode

v0.1.5

Published

Agent Approve plugin for OpenCode - approve or deny AI agent tool calls from your iPhone and Apple Watch

Readme

@agentapprove/opencode

Agent Approve plugin for OpenCode. Approve or deny AI agent tool calls from your iPhone and Apple Watch.

Why Agent Approve?

  • Visibility -- see what your OpenCode agent is doing in real time from your mobile device
  • Centralized policy -- define your default stance (allow, deny, or ask) and manage custom allowlists and denylists for tools, parameters, and commands
  • Mobile approval -- when human approval is required, review and respond from your iPhone or Apple Watch with a tap

You decide the rules. Agent Approve enforces them.

Important

  • A valid Agent Approve subscription is required to use this plugin.
  • You must download the iOS app, run npx agentapprove, and pair your device.
  • This plugin is currently pre-launch software. Public App Store availability is not open yet.
  • If a valid token is not configured, permission checks are denied and setup guidance is printed locally.

How it works

This plugin hooks into OpenCode's event system to enforce your approval policy:

  • permission.ask -- evaluates each tool call against your policy and blocks until allowed/denied
  • tool.execute.before / tool.execute.after -- logs tool lifecycle events
  • chat.message -- logs user prompt activity
  • event / experimental.session.compacting -- logs session lifecycle and compaction events

Install

  1. Download Agent Approve from the App Store and start your 7-day free trial
  2. Run the installer on each machine where you use OpenCode:
npx agentapprove

The installer handles pairing, token setup, and OpenCode plugin activation. Select OpenCode when prompted for which agents to configure.

  1. Restart OpenCode to load the plugin

That's it. Tool calls will now be evaluated against your policy, and approval requests will appear on your paired device when needed.

Manual setup (advanced)

If you already have Agent Approve configured and just need to add the OpenCode plugin, add @agentapprove/opencode to your OpenCode config:

~/.config/opencode/opencode.json

{
  "plugin": [
    "@agentapprove/opencode"
  ]
}

OpenCode automatically installs npm plugins listed in the plugin array at startup. Restart OpenCode to activate.

Configuration

Plugin behavior is configured through Agent Approve environment settings in:

~/.agentapprove/env

| Setting | Default | Description | |---------|---------|-------------| | AGENTAPPROVE_TIMEOUT | 300 | Seconds to wait for an approval response | | AGENTAPPROVE_FAIL_BEHAVIOR | ask | Default policy when API is unreachable: allow, deny, or ask | | AGENTAPPROVE_PRIVACY | full | What tool data is stored in event logs: minimal, summary, or full | | AGENTAPPROVE_DEBUG | false | Write debug logs to ~/.agentapprove/hook-debug.log | | AGENTAPPROVE_AGENT_NAME / AGENTAPPROVE_OPENCODE_NAME | OpenCode | Display name for this agent | | AGENTAPPROVE_E2E_ENABLED | false | Enable end-to-end encryption for non-approval event content |

Requirements

  • OpenCode runtime
  • Agent Approve iOS app and active subscription ($9.99/month or $99/year, 7-day free trial)

Supported agents

Agent Approve works with OpenCode, OpenClaw, Claude Code, Cursor, Gemini CLI, VS Code Agent, Copilot CLI, OpenAI Codex (coming soon), and more. Run npx agentapprove to configure multiple agents at once.

Links