CLI

CLI commands

Install, inspect, pair, update, disable, remove, or restore Agent Approve.

Run npx agentapprove help to confirm the commands supported by the version installed on your computer. Running npx agentapprove with no command opens the installation wizard.

CommandPurpose
npx agentapprove installInstall or update integrations and settings.
npx agentapprove pairLink a new iOS device or repair end-to-end encryption pairing.
npx agentapprove refreshCreate a new token while reusing the current pairing context.
npx agentapprove statusShow the current configuration.
npx agentapprove profilesManage Agent Approve across Hermes profiles.
npx agentapprove init-repoAdd the GitHub Copilot CLI hook file to the current repository.
npx agentapprove disableTemporarily disable installed hooks.
npx agentapprove enableRe-enable disabled hooks.
npx agentapprove uninstallRemove hooks and plugins but keep local Agent Approve state.
npx agentapprove purgeRemove hooks and plugins and delete local Agent Approve state.
npx agentapprove restoreRestore the original integration configuration from backup.

purge removes more than uninstall and asks for confirmation. Read each prompt before continuing, especially when end-to-end encryption keys are present.

Install or change settings

Run npx agentapprove install when you want to add an integration, update installed hooks or plugins, or change the computer's security mode, offline fallback, privacy level, encryption choice, retention, or debug logging.

The installer shows the current configuration before replacing it. Keep the current pairing when you only want to update hooks.

Pair compared with refresh

  • pair links another iOS device or repairs encryption pairing. It lets you choose a current key, a backup key, or a new key.
  • refresh creates a new access token while reusing the current encryption pairing.

Use refresh for an expired token. Use pair when the device or encryption key also needs attention.

Most security and privacy choices are interactive so the installer can explain their consequences before changing the installation.

For a request that does not reach your phone, start with Trace a request with the hook debug log.

Go out and grab a coffee

We'll ping you if your agents need you. Try Agent Approve free for 7 days.