Skip to main content
Manage CLI authentication. Log in interactively, switch between saved contexts, and inspect the current token.

Commands

auth login

Authenticate interactively and save credentials to ~/.devhelm/contexts.json. The token is validated against the API before saving — an invalid token exits with code 11 and saves nothing.
Skip the interactive prompt by passing the token directly:

auth logout

Remove the active context from ~/.devhelm/contexts.json. If other contexts remain, the first one becomes active.

auth me

Show the API key identity, organization, plan tier, rate limits, and usage counters for the resolved token.

auth token

Display the resolved API token. Useful for piping into other tools:

auth context

Show active context

Create a context

List contexts

The active context is marked with *.

Switch context

Delete a context

Next steps

CLI authentication guide

Token resolution order and best practices.

API keys

Create and manage API keys.