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

@agentapps/cli

v0.3.0

Published

Agent Apps CLI — run and exercise Agent Apps locally from a workspace

Readme

@agentapps/cli

The command line of Agent Apps: install apps, configure and sign them in, call their tools, connect an agent platform such as Claude Code, and run the Station that makes all of it work.

The CLI is a client of one Station. Every command talks to the Station at cli.stationUrl; nothing runs an app inside the command. A tool called from the terminal and the same tool called from Claude Code take the same path, under the same Policy.

Installation

npm install -g @agentapps/cli
# or run it without installing
npx @agentapps/cli

Installed, the command is agentapps. Never use npx agentapps: the unscoped agentapps package on npm is an unrelated project.

Quick start

Start a Station, install an app under a name of your choice (the alias) and call one of its tools:

$ agentapps station start
  ✓ Station running in the background at http://localhost:4100
$ agentapps install app.hello hello
$ agentapps hello tool greet name:World

With no arguments, agentapps opens an interactive mode that takes the same commands and keeps a history. If the Station is not running, a command says so and how to start it; the interactive mode offers to start it for you.

Connect the agent platform you use:

$ agentapps connect claude-code

agentapps help lists every command.

The Station the CLI talks to

| Command | What it does | |---|---| | station start | stop | restart | status | Control the Station this workspace starts, in the background. | | station use <url> | Point the CLI at another Station. | | station login | logout | Store or remove the CLI's API Key for that Station. | | station apps | Apps available on the Station. | | station apps add <source\|app-id> | Make an app available (Station Operator). | | station apps remove <app-id> | Stop offering an app (Station Operator). |

For the Station this workspace started, the CLI needs no login. For any other, create an API Key there (agentapps key create <name> <userId> role:<role>) and store it with station login. A key has one of three roles: station-operator runs the Station and decides which apps it offers, workspace-owner installs apps and manages keys and Policies in its Workspace, and workspace-member (the default) uses what is installed.

Apps and Installations

| Command | What it does | |---|---| | apps [query] | Apps available to install. | | install <app-id> <alias> | Install an app. | | installations | Your Installations and their status. | | status <alias> | One Installation's status. | | rename <alias> <newAlias> | Change an alias. | | uninstall <alias> | Remove an Installation and its secrets. | | config <app-id> [KEY:value...] | An app's system secrets, shared by its Installations (an OAuth client id). | | config <alias> [KEY:value...] | One Installation's secrets (its API key). | | config <app-id\|alias> unset <KEY> | Remove a secret. | | <alias> auth | Sign an Installation in. | | <alias> tools | Its tools. | | <alias> tool <name> [args...] | Call a tool. |

config <app-id> with no values shows the app's setup instructions, when it declares them. They include the redirect URI to register with the service: the Station supplies it, from its publicUrl, and it is never a secret you type.

Tool arguments

Named arguments or one JSON payload, never both.

$ agentapps gmail tool send-message to:[email protected] subject:"Hello there" body:"Some text"
$ agentapps gmail tool send-message '{"to":"[email protected]","subject":"Hello there"}'
$ echo '{"to":"[email protected]"}' | agentapps gmail tool send-message -
  • key:value for values without spaces; key:"value with spaces" otherwise.
  • A value starting with { or [ is parsed as JSON: labels:["a","b"].

Output

  • The default is a human-readable view: tables, key-value blocks and labeled sections.
  • --json and --yaml print the raw result in that format.
  • --raw prints the tool result as it is (the default when stdout is not a terminal).
  • Logs and progress go to stderr, so stdout stays clean to pipe.

Global options

| Option | Description | |---|---| | --config <path> | Path to an explicit agentapps.json. | | --cwd <dir> | Working directory. | | --json, --yaml, --raw | Output format. | | --manual-code | Type the OAuth code by hand. | | --public-url <url> | Public URL of the Station that serve and station start launch. | | --yes, -y | Skip confirmation prompts. | | --verbose, -v | Show extra detail, such as tool schemas. | | --help, -h | Show help. |

Workspace configuration

The CLI reads agentapps.json from the working directory or the nearest parent that has one. When there is none it uses your home workspace, ~/.agentapps/workspace/agentapps.json, created on first use with the catalog's apps and these settings:

{
  "station": { "id": "stn_…", "host": "127.0.0.1", "port": 4100, "publicUrl": "http://localhost:4100" },
  "cli": { "stationUrl": "http://localhost:4100" },
  "workspace": { "id": "ws_…" },
  "apps": [{ "source": "npm:@agentapps/app.hello" }, { "source": "./apps/my-app" }]
}
  • station describes the Station this workspace starts. It does not start without an id and a publicUrl, the address others reach it at, which OAuth redirect URIs are built from.
  • cli.stationUrl is the Station the CLI connects to. On one machine it is the same address.
  • workspace.id names the Workspace that Station's Installations, keys and Policies belong to.
  • apps lists the apps the Station offers: an npm package or a local directory with an agentapp.json. station apps add and station apps remove edit it.

Local state

A Station keeps everything next to its agentapps.json. In a project, add both directories to .gitignore.

| Path | What it holds | |---|---| | .agentapps/ | The Station's state (Installations, API Keys, Policies), its log, and the Data Store: what apps store, their files and Volume. | | .secrets/ | The Secret Store (apps' system secrets, Installations' tokens) and the CLI's own keys for Stations and agent platforms. |

Set secrets with agentapps config, never by editing those files.

Development

pnpm install
pnpm build
pnpm vitest run packages/cli