Get Your API Key
- Log in to the Bolna Dashboard
- Go to Developers
- Create a new API key or copy an existing one
Authentication Methods
The CLI resolves authentication using this priority order:Environment Variable
Best for CI/CD jobs, containers, or scripts. Define it once per session and every command uses it — no keychain lookup happens at all.Stored Login
Best for local, day-to-day use.bolna login validates your key live, then stores it in your OS’s native credential store — never in a plaintext file.
Remove it with
bolna logout.
Multiple accounts? Every auth command accepts
--profile <name> (see Global Flags), so you can keep separate credentials for separate Bolna accounts side by side — bolna login --profile client-acme, then bolna agents list --profile client-acme. Omitting --profile uses a default profile.Never a Dead End
Any command that needs auth — including barebolna opening the dashboard — checks for credentials first. If none are configured and you’re on a real terminal, it offers to log you in right there instead of erroring out:
Security Best Practices
- Do not commit API keys in scripts, repositories, or configuration files.
- Prefer environment variables in CI/CD, since the keychain isn’t available in most containers.
- Rotate API keys regularly and scope keys to the minimum access required.

