Authentication & Setup
Install the CLI
curl -fsSL https://cli.inference.sh | sh
Login
belt login
This opens a browser for authentication. After login, credentials are stored locally.
Check Authentication
belt me
Shows your user info if authenticated.
Environment Variable
For CI/CD or scripts, set your API key:
export INFERENCE_API_KEY=your-api-key
This is the same variable the SDKs and curl examples read. INFSH_API_KEY still works but is deprecated; older belt versions read only INFSH_API_KEY.
The environment variable overrides the config file.
Update CLI
belt update
Or reinstall:
curl -fsSL https://cli.inference.sh | sh
Troubleshooting
| Error | Solution |
|---|
| "not authenticated" | Run belt login |
| "command not found" | Reinstall CLI or add to PATH |
| "API key invalid" | Check INFERENCE_API_KEY or re-login |
Documentation