boltz
Skill8 starsChanged 6 months agoMITView on GitHub
Run Boltz-1 / Boltz-2, MIT-licensed open foundation models for biomolecular structure and binding-affinity prediction. Use this skill when: (1) Predicting structures of protein monomers, multimers, and protein-protein complexes, (2) Predicting protein-ligand complexes (ligands as SMILES or CCD codes), (3) Predicting protein-DNA, protein-RNA, or mixed nucleic-acid complexes, (4) Predicting binding affinity (probability of binding and log10(IC50)) between a small molecule and a protein target — Boltz-2 only, (5) Validating designed binders / antibodies against a target (alternative to AlphaFold2 / Chai-1 with comparable or better accuracy on complexes, and 1000x faster than physics-based FEP for affinity), (6) Folding with pocket / contact / covalent-bond / template restraints, (7) Modeling cyclic peptides, modified residues (CCD), and non-canonical covalent bonds, (8) Running batched inference across one or many GPUs from a directory of YAML inputs.
- Installs packages
5 other projects use a version of this.
Adopted by
Most recently taken up by
- HughYau/AcademicForgetheir own version, first seen Nov 8, 2026
- JonathanChan-geek/claude-science-skillstheir own version, first seen Oct 25, 2026
- K-Dense-AI/drug-discovery-agent-skillstheir own version, first seen Aug 16, 2026
- JimLiu/science-skillstheir own version, first seen Jul 1, 2026
- naity/FM4Lifetheir own version, first seen Apr 7, 2026
Used with
Projects with it also use esmfold2, fair-esm2 and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
JimLiuSkillesmfold2
Biohub ESMFold2 / ESMFold2-Fast all-atom co-folding (Candido et al. 2026, github.com/Biohub/esm). Single-sequence and MSA modes; protein, DNA, RNA, ligand (CCD/SMILES), modified residues. FoldBench Ab-Ag 50-55%, PPI 70-77% DockQ-pass. Also covers the ESMC-{300M,600M,6B} protein language models from the same release: masked-LM logits, hidden states, mutation scoring, contact prediction, and the SAE interpretability head. MIT-licensed weights on HuggingFace org `biohub`. Use this skill when: (1) Predicting complex structures with single-sequence input, (2) Validating designed binders with ESMFold2-Fast, (3) Running ESMFold2 with MSA input, (4) Getting ESMC embeddings or per-residue mutation scores, (5) Choosing kernel backend and sampling-step settings for paper-faithful throughput.
Also in 3 projects that use this
JimLiuSkillfair-esm2
Embed proteins with Meta AI's ESM-2 (`fair-esm` package). Use this skill when: (1) Extracting per-residue or per-sequence embeddings for downstream ML, (2) Masked-LM likelihood / mutation effect scoring, (3) Contact prediction from a sequence.
Also in 3 projects that use this
- +10 more from JimLiu
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- HughYau/AcademicForge★ 2.6ksame name
- JimLiu/science-skills★ 228same name
- K-Dense-AI/drug-discovery-agent-skills★ 60same name
- naity/FM4Life★ 2same name
- JonathanChan-geek/claude-science-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 239
If Boltz is not the right tool, the alternatives are:
- Distinctive: line 258
Step scale: Default differs between models (1.638 Boltz-1, 1.5 Boltz-2).
- Very specific: line 259
Old NVIDIA cards: If you see a cuequivariance import / runtime error, add --no_kernels — slight perf hit but it works.
- Very specific: line 273
After that, an agent can invoke it via Skill(skill="boltz").
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Boltz-1 / Boltz-2 — Open Biomolecular Structure & Affinity Prediction
What this is
Boltz is a family of MIT-licensed (code + weights) biomolecular foundation models from the Barzilay / Jaakkola groups at MIT:
| Model | Released | Highlights |
| Boltz-1 | Nov 2024 | First fully open model to approach AlphaFold-3 accuracy on the PDB benchmark. Structure only. |
| Boltz-2 | Jun 2025 | New foundation model. Beats AF3 / Boltz-1 on structure and jointly predicts binding affinity (log10(IC50) + binder probability). Approaches FEP accuracy at ~1000x lower cost. Adds templates, multi-pocket constraints, contact constraints. |
Boltz-2 is the default (--model boltz2); Boltz-1 is retained for parity
with the original Boltz-1 paper (pass --model boltz1).
One model handles all of the following entities, declared in a YAML schema:
| Entity | YAML keyword | What you provide |
| Protein | protein | 1-letter sequence (+ optional msa, modifications, cyclic) |
| DNA | dna | ACGT sequence |
| RNA | rna | ACGU sequence |
| Ligand | ligand | SMILES string or 3-letter CCD code (exclusive) |
Output: by default one mmCIF per diffusion sample ranked by an aggregate
confidence score, plus a per-sample confidence JSON (pTM / ipTM / pLDDT
breakdown, per-chain and per-chain-pair) and per-token PAE / PDE / pLDDT NPZ
files. If properties.affinity is set, an affinity_*.json is also written.
Prerequisites
| Requirement | Recommended | Notes |
| OS | Linux | macOS works on CPU only |
| Python | 3.10 — 3.12 | requires-python = ">=3.10,<3.13" |
| GPU | NVIDIA, CUDA 12.x, bfloat16 | RTX 4090 / A10 / A30 fine for small complexes; A100 / H100 / L40S for big ones. cuEquivariance kernels accelerate recent NVIDIA cards. Old GPUs: pass --no_kernels. |
| Disk | ~5 GB cache | Weights + CCD auto-download into ~/.boltz (or $BOLTZ_CACHE). |
| Network | Needed for first weight download, and for --use_msa_server (ColabFold MMseqs2) |
Boltz can run on CPU (no [cuda] extras), but is significantly slower —
treat that as a fallback for unit testing only. TPU is also accepted
(--accelerator tpu) but seldom used.
Three-step quick start
1) Install
# Recommended (PyPI, with CUDA extras):
pip install -U "boltz[cuda]"
# Or development build:
git clone https://github.com/jwohlwend/boltz.git
cd boltz && pip install -e ".[cuda]"
# CPU-only (slow):
pip install -U boltzA boltz console script is installed. On first run it auto-downloads:
boltz2_conf.ckpt(structure model) andboltz2_aff.ckpt(affinity head)mols.tar→mols/(per-residue / per-ligand reference structures for Boltz-2)ccd.pkl(Boltz-1 CCD dictionary, if you also use Boltz-1)
into ~/.boltz (override with --cache /path or env BOLTZ_CACHE=/abs/path).
2) Write a YAML and predict
# /tmp/example.yaml
version: 1
sequences:
- protein:
id: A
sequence: MVTPEGNVSLVDESLLVGVTDEDRAVRSAHQFYERLIGLWAPAVMEAAHELG
- ligand:
id: B
smiles: 'N[C@@H](Cc1ccc(O)cc1)C(=O)O'
properties:
- affinity:
binder: B # Boltz-2 onlyboltz predict /tmp/example.yaml --use_msa_server --out_dir /tmp/boltz_out--use_msa_server is essentially mandatory for protein chains unless you
supply a local .a3m (msa: path/to.a3m) or explicitly opt out
(msa: empty, which is single-sequence mode and degrades accuracy).
3) Inspect outputs
/tmp/boltz_out/
└── boltz_results_example/
├── predictions/
│ └── example/
│ ├── example_model_0.cif # best (highest confidence_score)
│ ├── confidence_example_model_0.json # ptm, iptm, plddt, per-chain, per-pair
│ ├── pae_example_model_0.npz # if --write_full_pae
│ ├── pde_example_model_0.npz # if --write_full_pde
│ ├── plddt_example_model_0.npz
│ ├── affinity_example.json # if properties.affinity was set
│ └── ... # one set per diffusion sample
├── processed/ # preprocessed inputs (caches between runs)
└── lightning_logs/The candidate with the highest confidence_score (≈ 0.8 * complex_plddt + 0.2 * iptm) is the recommended pick.
See references/outputs.md for the full schema.
CLI at a glance
| Command | Purpose |
boltz predict INPUT [OPTIONS] | Predict structure (+ affinity) for one YAML, one FASTA, or a directory of either. |
INPUT can be:
- a single
.yaml/.fastafile, or - a directory; every
.yamland.fastainside is predicted.
The most important flags (full list in references/cli.md):
| Flag | Meaning |
--out_dir PATH | Where to save the predictions (default ./). A boltz_results_<input_stem>/ directory is created inside. |
--cache PATH | Where to download / look up model weights and CCD (default ~/.boltz, or $BOLTZ_CACHE). |
--use_msa_server | Auto-generate MSAs via ColabFold MMseqs2 (https://api.colabfold.com). |
--msa_server_url URL | Self-hosted ColabFold endpoint. |
--msa_pairing_strategy greedy|complete | MSA pairing for multimers (default greedy). |
--use_potentials | Inference-time potentials for better physical plausibility (slower but cleaner poses). |
--model boltz1|boltz2 | Which checkpoint (default boltz2). |
--method NAME | Condition the prediction on a structural-determination method (e.g. x-ray diffraction, electron microscopy, md, afdb, boltz-1). Boltz-2 only. |
--recycling_steps N | Trunk recycles (default 3; AF3-style is 10). |
--sampling_steps N | Diffusion sampling steps (default 200). |
--diffusion_samples N | Number of candidate structures (default 1; AF3-style is 25). |
--max_parallel_samples N | Parallel diffusion batch (default 5). |
--step_scale FLOAT | Diffusion temperature; default 1.5 (Boltz-2) / 1.638 (Boltz-1). Lower → more diverse. |
--output_format mmcif|pdb | Output format (default mmcif). |
--devices N | GPUs to use; >1 enables DDP. |
--accelerator gpu|cpu|tpu | Default gpu. |
--seed N | RNG seed. |
--override | Re-run instead of reusing cached processed/ and existing predictions. |
--write_full_pae / --write_full_pde | Dump per-token PAE / PDE NPZ. |
--write_embeddings | Dump s and z embeddings as NPZ. |
--no_kernels | Disable cuEquivariance kernels (use this on old NVIDIA cards). |
--num_workers N | DataLoader workers (default 2). |
--preprocessing-threads N | Threads for preprocessing (default = cpu count). |
--max_msa_seqs N | Cap MSA depth (default 8192). |
--subsample_msa / --num_subsampled_msa N | Subsample MSA at runtime. |
Affinity (Boltz-2 only — see references/affinity.md):
| Flag | Meaning |
--sampling_steps_affinity N | Default 200. |
--diffusion_samples_affinity N | Default 5. |
--affinity_mw_correction | Add the molecular-weight correction to the affinity head. |
--affinity_checkpoint PATH | Custom affinity checkpoint. |
MSA server auth — see references/msas.md.
Choosing the right reference doc
| You want to… | Read |
| Install, manage downloads, use the Docker image, configure cache | references/installation.md |
| See every CLI flag with examples | references/cli.md |
| Author the YAML input (sequences, ligands, modifications, cyclic) | references/inputs.md |
Add MSAs (ColabFold server, local .a3m, paired CSV, auth) | references/msas.md |
| Supply structural templates (CIF / PDB) | references/templates.md |
| Use pocket / contact / covalent-bond constraints | references/constraints.md |
| Predict binding affinity with Boltz-2 | references/affinity.md |
| Read the CIF / JSON / NPZ outputs | references/outputs.md |
| Validate a designed binder / antibody | references/binder-validation.md |
| Run hundreds of YAMLs across GPUs | references/batch.md |
| Train / retrain on your own data | references/training.md |
| Diagnose OOM, kernel, MSA, weight-download failures | references/troubleshooting.md |
| Boltz-1 vs Boltz-2 feature matrix and migration notes | references/boltz1-vs-boltz2.md |
Quick decision tree
- You just have sequences and want a structure → 1-chain YAML,
boltz predict in.yaml --use_msa_server. Defaults are fine. - You want AF3-level sampling (5 samples × 10 recycles) →
--diffusion_samples 5 --recycling_steps 10. ~10x slower. - You designed a binder and want to validate it → 2-chain YAML (binder + target),
--use_msa_server. Score with ipTM and (better) ipSAE; see theipsaeandprotein-qcskills. - You want a binding-affinity number for a small molecule → Boltz-2 YAML with
properties.affinity.binder: <ligand_id>. Output isaffinity_pred_value(log10(IC50_µM), lower = stronger binder) andaffinity_probability_binary(probability the ligand binds at all). See references/affinity.md. - You know the binding pocket / specific contacts → add a
pocketorcontactconstraint to your YAML; setforce: trueto enforce it via a potential. - Cyclic peptide →
cyclic: trueon theproteinentry. - Modified residue with a CCD code →
modifications: [{position: 5, ccd: MSE}]on the polymer. - Glycoprotein or covalently-bound ligand → declare the ligand and the polymer separately, then add a
bondconstraint linking the relevant atoms. - Many YAMLs, several GPUs → put them in a directory,
boltz predict dir/ --devices 4. Predictions are sharded via DDP. - You want the easiest UI → no official web server; use the CLI or the Slack community for help.
If Boltz is not the right tool, the alternatives are:
- Chai-1 (
chai-labskill) — similar foundation-model architecture, open weights, FASTA-like input, strong on glycans and explicit covalent bonds. - AlphaFold 2 / 3 (
alphafoldskill) — AF2 is the long-standing baseline; AF3 is closed-source (web only). - ESMFold — single-sequence, monomers only; fastest, lower accuracy on complexes.
Hard rules / gotchas
- The output directory is reused across runs. Boltz keeps
processed/and skips inputs whose predictions already exist. Pass--overrideto redo from scratch when you change parameters but reuse the same--out_dir. - One affinity ligand per YAML.
properties.affinity.bindermust be a singleligandchain ID (not a list, not a polymer). Boltz-2 only. - Affinity ligand size caps. Hard limit: ≤ 128 heavy atoms (counted after
RDKit RemoveHs). Training cap was 56: ligands larger than that produce aWARNINGand unreliable values. - Affinity vs. protein only. Running affinity on an RNA/DNA/cofactor target will not crash but the output is unreliable — Boltz-2 was trained only on small-molecule × protein.
- Pocket distance.
max_distanceinpocket/contactconstraints accepts 4–20 Å (default 6 Å). For Boltz-1, only 6 Å is supported, and at most one pocket constraint per YAML; Boltz-2 lifts both limits. - Templates and contact constraints are Boltz-2 only — they raise on Boltz-1.
--use_msa_serverand a local MSA can be mixed: chains withmsa: path/to.a3muse the local file; chains withoutmsa:go to the server.msa: emptyforces single-sequence (not recommended).- Paired multimer MSAs require CSV (
sequence,key) not.a3m, with matchingkeys across chains. - Names / chain IDs. Polymer and ligand
ids must be unique. Use a list ([A, B]) for identical entities — Boltz handles symmetry / pairing automatically. - Atom-name precision matters for bonds.
bond.atom1: [chain, residue_idx, ATOM_NAME]uses CCD-standard atom names (case-sensitive). Verify against the RCSB CCD entry for that residue. - 1-indexed residues.
position,RES_IDX, and contact / bond / pocket residue indices all start at 1. - Step scale. Default differs between models (1.638 Boltz-1, 1.5 Boltz-2). Lower → more diverse samples; recommended range 1–2.
- Old NVIDIA cards. If you see a
cuequivarianceimport / runtime error, add--no_kernels— slight perf hit but it works. - FASTA input is deprecated. It cannot express modifications, covalent bonds, pocket conditioning, templates, or affinity. Always prefer YAML.
Installing this skill
# Symlink (recommended — picks up edits live)
mkdir -p ~/.claude/skills
ln -s "$(pwd)" ~/.claude/skills/boltz
# Or copy:
cp -R . ~/.claude/skills/boltzAfter that, an agent can invoke it via Skill(skill="boltz").
Citation
@article{passaro2025boltz2,
author = {Passaro, Saro and Corso, Gabriele and Wohlwend, Jeremy and Reveiz, Mateo and Thaler, Stephan and Somnath, Vignesh Ram and Getz, Noah and Portnoi, Tally and Roy, Julien and Stark, Hannes and Kwabi-Addo, David and Beaini, Dominique and Jaakkola, Tommi and Barzilay, Regina},
title = {Boltz-2: Towards Accurate and Efficient Binding Affinity Prediction},
year = {2025},
doi = {10.1101/2025.06.14.659707},
journal = {bioRxiv}
}
@article{wohlwend2024boltz1,
author = {Wohlwend, Jeremy and Corso, Gabriele and Passaro, Saro and Getz, Noah and Reveiz, Mateo and Leidal, Ken and Swiderski, Wojtek and Atkinson, Liam and Portnoi, Tally and Chinn, Itamar and Silterra, Jacob and Jaakkola, Tommi and Barzilay, Regina},
title = {Boltz-1: Democratizing Biomolecular Interaction Modeling},
year = {2024},
doi = {10.1101/2024.11.19.624167},
journal = {bioRxiv}
}
@article{mirdita2022colabfold,
title = {ColabFold: making protein folding accessible to all},
author = {Mirdita, Milot and Sch{\"u}tze, Konstantin and Moriwaki, Yoshitaka and Heo, Lim and Ovchinnikov, Sergey and Steinegger, Martin},
journal = {Nature methods},
year = {2022}
}Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

