Phaseo Team07 June 20262 min read
Introducing the Phaseo CLI
Browser OAuth, device code, key management, guardrails, and workspaces now have a first-party terminal workflow.

We now have a first-party phaseo CLI for Phaseo.
This release gives both humans and agents a direct terminal path into the Phaseo control plane, instead of forcing everything through the dashboard.
Install
Install the CLI
Choose your package manager, then copy the command.
npm install -g @phaseo/cliWhat it does
The CLI is built for the real workflows we already use internally:
- sign in with Phaseo browser OAuth
- fall back to device code for SSH, remote shells, and headless agents
- inspect your current grant with
whoami - create and manage regular API keys and management keys
- manage workspaces, presets, settings, and guardrails
- use first-party CLI OAuth while user-created OAuth apps remain in private testing
- inspect models, providers, pricing, credits, activity, analytics, and generations
Built on the shared OAuth stack
This is not a one-off auth shim.
We built the CLI on the same shared OAuth/OIDC foundations that will also back user-created OAuth apps:
- authorization code + PKCE
- device authorization grant
- refresh and revoke flows
- consent and workspace-aware grants
- OIDC discovery and JWKS
That matters because it keeps first-party CLI login and future third-party app auth moving in the same direction instead of diverging into separate systems.
Two login paths
phaseo login now offers:
- Sign in with Phaseo as the default interactive path
- Sign in with Device Code as the fallback for remote and non-interactive environments
The CLI will automatically prefer device code in SSH and CI-style environments so you do not get stuck on a localhost callback flow in the wrong place.
Get started
phaseo login
phaseo whoami --json
phaseo keys create --name "My CLI Key" --json
User-created OAuth apps are coming soon. This release keeps OAuth client creation in private testing while we validate the first-party CLI OAuth path.
Versioning and updates
The CLI now supports:
phaseo --versionphaseo version- automatic update notices when a newer published CLI version is available
When you want to update manually:
Update the CLI
Choose your package manager, then copy the command.
npm install -g @phaseo/cli@latestSecurity and release shape
We tightened the auth model while building this:
- management keys now require explicit capabilities
- logout revokes refresh tokens before clearing local state
- regular inference keys stay policy- and guardrail-driven rather than growing a second scope system
- CLI sessions prefer OS-backed secure storage where available
Why this matters
The CLI closes a gap between dashboard-only control-plane actions and real automation.
If you are building agents or internal tools, you can now do that work through a first-party terminal surface instead of reverse-engineering the product UI.