openfold3
What it does
This skill runs OpenFold3, a tool that predicts how molecules such as proteins and ligands fit together in 3D. It is for researchers who need structure predictions without a closed commercial tool.
When to use it
- ✓When you want to predict the 3D structure of a protein bound to a small molecule.
- ✓When you need a structure of a protein and DNA or RNA complex.
- ✓When you want an open, Apache-licensed alternative to AlphaFold3.
Skill link
https://github.com/aipoch/open-science/blob/main/resources/skills/openfold3/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you predict the 3D structure of this protein bound to a small molecule using OpenFold3?”
5 new skills a week. 1 minute to read.
How it works
You give the agent the sequences and molecules to model. It runs the prediction model on a powerful graphics card and returns structure files.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
OpenFold3 Structure Prediction
Prerequisites
| Requirement | Minimum | Recommended |
|---|---|---|
| Python | 3.10+ | 3.11 |
| CUDA | 12.1+ | 12.4+ |
| GPU VRAM | 24GB | 80GB (H100) |
| RAM | 32GB | 64GB |
| Disk (weights) | 3GB | - |
How to run
Installation
pip install 'openfold3[cuequivariance]==0.4.1'
The default attention kernel is DeepSpeed DS4Sci_EvoformerAttention. If
DeepSpeed is unavailable, switch to the cuEquivariance triangle kernels (no
build-from-source) by overriding the eval memory settings in
model_config.py (use_deepspeed_evo_attention: False,
use_cueq_triangle_kernels: True). Some pre-built environments already ship
this override; check before re-patching.
Weights
Apache-2.0, ~2.3 GB from HF OpenFold/OpenFold3. The repo is gated (auto-approval) — accept the access form on the HF model page and authenticate (huggingface-cli login or HF_TOKEN) before downloading:
export OPENFOLD_CACHE=~/.openfold3
huggingface-cli download OpenFold/OpenFold3 checkpoints/of3-p2-155k.pt \
--local-dir "$OPENFOLD_CACHE"
run_openfold will also auto-download to $OPENFOLD_CACHE on first run if
egress is open and HF credentials are available (either HF_TOKEN or a prior
huggingface-cli login) with repo access granted. The interactive
setup_openfold helper exists but prompts on stdin; prefer the explicit
download above for non-interactive runs.
Running
export OPENFOLD_CACHE=/path/to/cache
run_openfold predict \
--query_json=queries.json \
--output-dir out/ \
--use-msa-server false \
--use-templates false
run_openfold discovers the checkpoint under $OPENFOLD_CACHE automatically.
Only pass --inference-ckpt-path <file.pt> if you have a non-standard layout
or multiple checkpoints and need to pin one explicitly.
For MSA + templates (slower, higher accuracy), drop the two false flags. The
MSA server is api.colabfold.com; template chain-ID remap hits
data.rcsb.org (GraphQL) — both must be reachable.
Query JSON format
OpenFold3 does not read FASTA. Queries are a JSON object validated by
InferenceQuerySet (pydantic, extra: forbid — unknown keys reject):
{
"queries": {
"my_complex": {
"chains": [
{ "molecule_type": "protein", "chain_ids": ["A"], "sequence": "MQIFVK…" },
{ "molecule_type": "protein", "chain_ids": ["B", "C"], "sequence": "MVLSPA…" },
{ "molecule_type": "ligand", "chain_ids": ["L"], "smiles": "CC(=O)Oc1ccccc1C(=O)O" }
],
"use_msas": true
}
},
"seeds": [42]
}
molecule_type |
required field |
|---|---|
protein / dna / rna |
sequence |
ligand |
smiles or ccd_codes: ["HEM"] |
chain_ids is a list — repeat the same sequence across multiple chain IDs
for homo-oligomers. Per-chain paired_msa_file_paths / main_msa_file_paths
let you supply your own a3m instead of the server.
Key parameters
| Flag | Default | Description |
|---|---|---|
--num-diffusion-samples |
5 | Structures per (query, seed) |
--num-model-seeds |
1 | Number of model seeds per query (multiplies output count alongside JSON seeds and diffusion samples) |
--use-msa-server |
true | ColabFold MMseqs2 server for MSA |
--use-templates |
true | ColabFold template search + RCSB remap |
--inference-ckpt-path |
auto-discovered under $OPENFOLD_CACHE |
Override only — for non-standard layouts or to pin a specific checkpoint file |
Output format
out/
├── summary.txt
├── mode
FAQ
What hardware is needed?
It needs a powerful graphics card, with at least 24 GB of memory suggested, plus about 3 GB of disk for model weights.
Do I need an account to download the model?
Yes. The model repository is gated, so you must accept its access form and log in before downloading.
What license does it use?
The skill's description lists the model weights as Apache-2.0.
Details
Original description by the author
Structure prediction using OpenFold3, an open-weights PyTorch reproduction of AlphaFold3 from the AlQuraishi Lab. Use this skill when predicting protein/nucleic-acid/ligand complex structures with an Apache-2.0-licensed AF3 reimplementation.
repo: aipoch/open-science
Popularity
- GitHub stars
- 5.4k
- Ranking position
- #14866
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
alphafold2
5.4kHelps your agent predict a protein's 3D structure from its sequence, including protein complexes, using AlphaFold2 through the ColabFold runner.
boltz
5.4kHelps your agent predict the structure of protein, DNA, RNA, and small-molecule complexes using the open-source Boltz-2 model, with optional binding affinity estimates.
borzoi
5.4kHelps your agent predict genome-wide activity tracks, such as expression and accessibility, from DNA sequence, and compare variants by their predicted effect.
chai1
5.4kHelps your agent predict the structure of protein, nucleic acid, and ligand complexes from one FASTA file, using the Apache-licensed Chai-1 model.
Similar skills
pytorch-patterns
280kHelps your agent use PyTorch for machine learning models. It applies best practices for efficient model training and ensures reproducible results.
evm-token-decimals
280kHelps your agent avoid errors with decimal numbers across different blockchain networks. It ensures token values are accurate in transactions and calculations.
ito-inference
280kLets your agent check the availability of AI models for use. It connects the compute request with the ready model service.