Quickstart
The Paygent CLI is a command line interface for the Paygent API. It scans a codebase for AI provider calls that should be metered, then creates the agents, pricing, customers, and subscriptions to bill them.
Prerequisites
- Node.js and npm available on your machine.
- A Paygent account.
Install
Or run without installing:
Authenticate
This opens a browser, signs you in, and stores credentials on this machine. Confirm with:
Scan Your Codebase
Copy the plan straight to your clipboard and paste it into your coding assistant:
Create Your First Agent
Define what you meter:
Price it:
Add a customer and turn the agent on:
An agent that is not enabled rejects usage. This is the most common reason a first event disappears.
See Usage
Common Options
--outputsets the format:table,json,yaml, orcsv.--orgacts on a specific organization.--profileselects a saved configuration profile.--timeoutsets the HTTP timeout.
