Authentication
The Beltic CLI supports authentication with the Beltic platform, allowing you to manage your developer identity and create agents directly from the command line.Login
Authenticate with your Beltic API key:- Prompt for your API key (masked input)
- Validate the key against the Beltic platform
- Store credentials securely in
~/.beltic/credentials - Save configuration to
~/.beltic/config.yaml
Getting an API Key
- Log in to the Beltic Console
- Navigate to Settings > API Keys
- Click Create New Key
- Copy the key (it’s only shown once)
Non-interactive Mode
For CI/CD pipelines or scripts, pass the API key directly:--non-interactive flag:
Custom API URL
For development or self-hosted deployments:Whoami
Display your current authenticated identity:JSON Output
For programmatic use, output as JSON:Credential Storage
Credentials are stored in~/.beltic/ with restricted permissions:
| File | Purpose | Permissions |
|---|---|---|
~/.beltic/credentials | API key storage | 0600 (owner read/write only) |
~/.beltic/config.yaml | Configuration | 0644 |
Configuration File
Theconfig.yaml file stores:
Troubleshooting
”Not logged in” Error
If you see this error when running commands:beltic login to authenticate.
”Session expired” Error
If your API key has been revoked or expired:beltic login again.