Workflow
If boltz-api is missing from PATH, use boltz-cli-setup for install/update guidance before retrying.
If a command reports missing or expired authentication, use boltz-cli-setup to start boltz-api auth login --device-code before retrying; do not ask permission first.
If the agent host sandbox blocks boltz-api install/auth/API calls, use boltz-cli-setup to request the host sandbox bypass/escalation needed for user-wide CLI install, browser login, credential storage, temp files, or API access before retrying.
Use this skill for one defined complex, not a library workflow.
-
Normalize the inputs into
entities. Each entity is{type, chain_ids, value}— note pluralchain_ids(an array, even for one chain) and the field isvalue, notsequence:typeis one ofprotein | rna | dna | ligand_smiles | ligand_ccd. Chain IDs go in entity order (A,B,C, …) unless the user specifies otherwise. Readreferences/api.mdfor per-type field variants (cyclic,modifications, ligand CCD codes, etc.) before authoring your first payload — agent guesses likesequence:orchain_id: "A"(singular) fail with unclear 400 errors. -
If the user wants binding metrics, add a flat
bindingblock with an explicittypefield. For ligand-protein binding use:For protein-protein binding use:
Do not nest the variant name under
binding(for example, nobinding.ligand_protein_bindingobject). -
Supported optional features include
constraints,bonds,modifications,model_options, and binding metrics; only add them if the user asks. Read references/api.md [blocked] for exact shapes and examples. -
Author the payload YAML or JSON, run
estimate-cost, show the USD cost, wait for explicit confirmation. -
startto submit (synchronous). Capture the ID. -
Launch
download-resultsthrough the runtime's long-running or non-blocking command facility so polling + download continue without blocking the agent session. Use the mechanism the runtime documents; consultboltz-cli-setupif unsure. After launching the downloader, always report the job ID, run name, and output directory. If the runtime can schedule follow-up checks, schedule adownload-statuscheck and state the cadence; otherwise include thedownload-statuscommand.
Command Pattern
Always Do This
- Keep payload field names exactly as the API body names shown in
references/api.md; then pass the merged payload with--input @yaml:///absolute/path/payload.yamlor@json:///absolute/path/payload.json. Never use@./payload.yamlor@file://for object-typed payloads. - Use absolute paths for the output root, payload files, and embedded structure files. Do not
cdinto the run directory for follow-up commands; pass the same--root-dirand use absolute paths so later relative paths do not drift. - Residue indices are 0-based wherever the payload asks for residue positions (constraints, modifications, contact tokens).
- For CIF/PDB bytes embedded in
--target/structure.data, use@data:///absolute/path/file.cif— it detects binary and base64-encodes. Don't use bare@pathfor binary data. - Use the same slug as both
--idempotency-keyat submit time and--nameat download time so re-runs are idempotent and resume from.boltz-run.json. - In permission-gated runtimes, keep each Boltz call as a top-level command that starts with
boltz-api. Prefer concrete arguments oversh -c, inline environment assignments, aliases, wrapper scripts, loops, or pipelines around theboltz-apiinvocation unless the user already allowed that exact command form. Use--raw-output --transform id, read the printed ID, then paste that literal ID into the nextdownload-resultscommand. - Run
download-resultsthrough the runtime's long-running or non-blocking command facility, using the mechanism the runtime documents rather than tool arguments you assume exist. Do not detach it with shell&ornohupunless the runtime documents shell backgrounding as its supported mode; some tool runners reap shell-backgrounded children before.boltz-run.jsonis written. If unsure how this runtime handles long-running commands, consultboltz-cli-setup. - After the download starts, do not manually wait on it or run ad hoc polling loops.
download-resultsemits JSONL progress on stderr by default; add--progress-format text --verboseonly when you explicitly want human-readable logs. - If the runtime can schedule follow-up checks (a heartbeat, scheduled task, or reminder), schedule one after launching
download-results. It should runboltz-api --format json download-status --name "<run-name>" --root-dir "/absolute/path/boltz-experiments", post only material status changes or terminal completion/failure, and stop once terminal. If the runtime cannot schedule follow-ups, do not claim an automatic next check: report the job ID, run name, output directory, and thedownload-statuscommand. Poll a saved session handle only for interactive, user-requested progress checks; never run a manual poll loop in the current turn. - If detached download needs to be restarted, re-run
boltz-api download-resultswith the same--name "<run-name>"and the same--root-dir. - Poll interval: keep
--poll-interval-seconds 10for SAB — predictions usually finish in under a few minutes. - Cost: there is no published per-unit rate to cite for SAB — run
estimate-costand state only the figure it returns. Don't estimate or comment on cost.
Escape Hatch
For anything not covered in references/api.md:
- Payload reference: https://api.boltz.bio/docs/api/python/resources/predictions/subresources/structure_and_binding/methods/start
- CLI flag names:
boltz-api predictions:structure-and-binding start --help(schema details aren't there — just flag names and types)
Read references/api.md [blocked] for entity shapes, binding variants, bonds, constraints, model options, and input examples. Read references/results.md [blocked] when summarizing downloaded outputs, metrics, or validation quirks.
Outputs
Summarize metrics.json and point the user at the downloaded CIF path. Read references/results.md [blocked] for the local layout, nested metrics, binding metric variants, and SAB validation quirks.
SAB 400 validation quirk
If the server rejects a payload with only {"code":"VALIDATION_ERROR","message":"Request validation failed"}, inspect entities, binding, and constraints; read references/results.md [blocked] for details.


