Skip to content

Install the CLI

The StratoNext CLI provides commands to manage your projects, tasks, environments, agents, and approvals from the terminal. It is the recommended approach if you are comfortable on the command line, want to automate workflows, or want to connect a local AI agent.

The CLI is distributed on PyPI as stratonext. Install it with uv:

Terminal window
uv tool install stratonext

or with pip:

Terminal window
pip install stratonext

Verify the installation:

Terminal window
stratonext --help

Authenticate with a browser-based OAuth2 login:

Terminal window
stratonext login

The CLI prints a URL. Open it in your browser to complete the login; tokens are cached in ~/.stratonext/credentials. Verify who you are logged in as:

Terminal window
stratonext whoami

The CLI refreshes the token on its own. Run stratonext login again only when it asks you to.

stratonext login is the interactive path and acts as you. For CI/CD, scheduled automation, or any host without a browser, the CLI can instead authenticate with a machine credential: a standalone one from Settings → Machine credentials, or an External agent’s. There is no login step: set the credential in that process’s environment.

Terminal window
export STRATONEXT_AUTH_API_CLIENT_ID="mcc_..." # or an External agent's agtc_... id
export STRATONEXT_AUTH_API_CLIENT_SECRET="..."

In that mode it draws short-lived environment credentials from StratoNext rather than needing cloud keys of its own. Running as a machine is for hosts with nobody at the keyboard. It is not a way for a person to reach a cloud account: signed in as yourself, you use your own cloud credentials. See Operating modes.

  • Install the agent skill to drive StratoNext from Claude Code, Codex, or any coding agent. This is the recommended path: it covers every command.
  • Connect an MCP host if you would rather give the agent a smaller, work-focused set of typed tools instead of the full command surface.
  • Connect an Account to unlock resource discovery and delegated operations.