bl login
Login to Blaxel
Synopsis
Authenticate with Blaxel to access your workspace.
A workspace is your organization’s isolated environment in Blaxel that contains
all your resources (agents, jobs, sandboxes, models, etc.). You must login before
using most Blaxel CLI commands.
Authentication Methods:
- Browser OAuth (default) - Interactive login via web browser
- API Key - For automation and scripts (set BL_API_KEY environment variable)
- Client Credentials - For CI/CD pipelines (set BL_CLIENT_CREDENTIALS)
The CLI automatically detects which authentication method to use:
- If BL_CLIENT_CREDENTIALS is set, uses client credentials
- If BL_API_KEY is set, uses API key authentication
- Otherwise, shows interactive menu to choose browser or API key login
Credentials are stored securely in your system’s credential store and persist
across sessions. Use ‘bl logout’ to remove stored credentials.
Examples:
After logging in, all commands will use this workspace by default.
Override with —workspace flag: bl get agents —workspace other-workspace
Options
Options inherited from parent commands
SEE ALSO
- bl - Blaxel CLI - manage and deploy AI agents, sandboxes, and resources
Last modified on April 11, 2026