Authentication
The CLI talks to two services. Dashboard commands use a browser session; usage-tracking commands use an API key.
paygent login
Authenticate and store credentials for this machine.
Opens a browser, signs you in, and saves the credential at mode 0600.
For CI, authenticate without a browser:
Usage-tracking commands (usage send, agent ensure, customer ensure) need an API key, never a session token:
Both credentials can be stored at once. Signing in with an API key does not sign you out of the dashboard.
paygent whoami
Show the account the stored credentials belong to.
paygent logout
Remove stored credentials from this machine.
