Install & sign in to the CLI
The CLI is called agent-platform. It needs Node.js 20 or newer.
-
Install it. The package is published to GitHub Packages, so tell npm where
@srikanth-cmdpackages live (one time), then install globally:Terminal window npm config set @srikanth-cmd:registry https://npm.pkg.github.comnpm install -g @srikanth-cmd/agent-platform-cliGitHub Packages needs a GitHub token with
read:packages; add it once withnpm config set //npm.pkg.github.com/:_authToken <token>. Keep this token out of any folder you deploy. -
Run
init. It asks for the platform URL and an API token (create one in the dashboard under API Tokens), checks them, and saves both to~/.agent-platform/config.json:Terminal window agent-platform init -
Check it works:
Terminal window agent-platform list
Configuration
Section titled “Configuration”| Setting | Where |
|---|---|
| Platform URL | apiUrl in ~/.agent-platform/config.json, or AGENT_PLATFORM_API_URL |
| API token | token in the same file, or AGENT_PLATFORM_TOKEN |
Environment variables win over the file, which is handy in CI.
Log in and sign up from the terminal
Section titled “Log in and sign up from the terminal”agent-platform signup and agent-platform login also exist. Deploys still require an API token from init, so every
deployment is registered to your account and the token can be revoked at any time.
Full command list: CLI reference.