Command-line client
Sign in, register an agent and inspect account access using the repository CLI.
The CLI is supplied by this repository; no public npm installer is advertised. From the repository root:
pnpm agentsub login
pnpm agentsub init
pnpm agentsub --json whoami
pnpm agentsub --json balance
pnpm agentsub --json catalog
pnpm agentsub --json access YOUR_OFFER_ID
pnpm agentsub --json history
login opens the configured OAuth flow and stores its credential locally. logout removes the saved credential. init registers the authenticated agent; registration does not create paid credits or grant access to every merchant.
AGENTSUB_API_URL selects the gateway (default https://api.agentsub.dev). AGENTSUB_TOKEN explicitly supplies a token instead of the saved credential. Keep tokens out of source control and logs. Tokens expire; sign in again when authorization is no longer valid.
pnpm agentsub mcp starts the local stdio MCP server with the same credentials. Supported commands are login, logout, init, whoami, balance, catalog, access, history and mcp. Use pnpm agentsub --help for the current interface. Stdio does not run the remote HTTP OAuth discovery flow.
OAuth · MCP · API reference.
