Overview
The Boltz CLI (boltz-api) provides a convenient command-line interface for submitting predictions, checking status, listing jobs, and downloading results.
Installation
The CLI is included with the Python SDK:Configuration
The CLI reads configuration from:$XDG_CONFIG_HOME/boltz-api/config.json(ifXDG_CONFIG_HOMEis set), otherwise~/.config/boltz-api/config.json
BOLTZ_API_KEYBOLTZ_API_ENDPOINTBOLTZ_SIGNUP_URL
config
Manage API credentials and settings.Options
| Option | Description |
|---|---|
--api-key TEXT | Set your Boltz Lab API key |
--endpoint TEXT | Set the API base URL (stored as api_endpoint) |
--signup-url TEXT | Set the signup URL used by interactive prompts |
--show | Display current configuration |
Prediction Management
predict
Submit a prediction job from a YAML file (local or via URL). By default, the CLI waits for completion and downloads results.Arguments
| Argument | Description |
|---|---|
YAML_FILE | Path to YAML file or URL containing job specification |
Options
| Option | Type | Default | Description |
|---|---|---|---|
--name TEXT | String | None | Human-readable prediction name |
--priority TEXT | Choice | low | Priority: low or high |
--no-wait | Flag | False | Submit without waiting for completion (implies --no-download) |
--no-download | Flag | False | Wait for completion but don’t download |
--output, -o PATH | Path | . | Output directory for downloaded results |
--format, -f TEXT | Choice | archive | Output format: archive (tar.gz) or json |
--polling-interval INTEGER | Integer | 5 | Seconds between status checks |
--timeout INTEGER | Integer | None | Maximum wait time in seconds |
--api-key TEXT | String | None | Override API key (otherwise uses config/env var) |
--api-url TEXT | String | None | Override API base URL (otherwise uses config/env var) |
Prediction Flag Options
The CLI exposes additional optional model flags that are forwarded to the API:| Option | Type | Description |
|---|---|---|
--use_potentials | Flag | Whether to use potentials for steering (default: False) |
--recycling_steps INTEGER | Integer | Number of recycling steps (default: 3) |
--diffusion_samples INTEGER | Integer | Number of diffusion samples (default: 1) |
--sampling_steps INTEGER | Integer | Number of sampling steps (default: 200) |
--step_scale FLOAT | Float | Step size / diffusion temperature scaling (default: 1.5) |
--subsample_msa BOOL | Bool | Whether to subsample the MSA (default: True) |
--num_subsampled_msa INTEGER | Integer | Number of MSA sequences to subsample (default: 1024) |
status
Check the status of a prediction job.Arguments
| Argument | Description |
|---|---|
PREDICTION_ID | Unique identifier for the prediction |
Options
| Option | Description |
|---|---|
--api-key TEXT | Override API key |
--api-url TEXT | Override API base URL |
Output
The command prints a JSON object containing status and timestamps (fields depend on what the API returns).list
List prediction jobs with optional filtering.Options
| Option | Type | Default | Description |
|---|---|---|---|
--status TEXT | Choice | None | Filter by status: PENDING, CREATED, RUNNING, COMPLETED, FAILED, CANCELLED, TIMED_OUT |
--limit INTEGER | Integer | 20 | Maximum number of results |
--offset INTEGER | Integer | 0 | Pagination offset |
--api-key TEXT | String | None | Override API key |
--api-url TEXT | String | None | Override API base URL |
Output
The command prints JSON in the shape:download
Download results for a prediction.Arguments
| Argument | Description |
|---|---|
PREDICTION_ID | Unique identifier for the prediction |
Options
| Option | Type | Default | Description |
|---|---|---|---|
--output, -o PATH | Path | . | Output directory |
--format, -f TEXT | Choice | archive | Format: archive (tar.gz) or json |
--filename TEXT | String | Auto-generated | Custom filename (without extension) |
--api-key TEXT | String | None | Override API key |
--api-url TEXT | String | None | Override API base URL |
Global Options
These options are available for all commands:| Option | Description |
|---|---|
--debug | Enable debug logging including HTTP requests |
--help | Show help message and exit |
Exit Codes
The CLI exits with:0on success1on error (all error cases use a general exit code)