Skip to content

Install & sign in to the CLI

The CLI is called agent-platform. It needs Node.js 20 or newer.

  1. Install it. The package is published to GitHub Packages, so tell npm where @srikanth-cmd packages live (one time), then install globally:

    Terminal window
    npm config set @srikanth-cmd:registry https://npm.pkg.github.com
    npm install -g @srikanth-cmd/agent-platform-cli

    GitHub Packages needs a GitHub token with read:packages; add it once with npm config set //npm.pkg.github.com/:_authToken <token>. Keep this token out of any folder you deploy.

  2. 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
  3. Check it works:

    Terminal window
    agent-platform list
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.

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.