/bionemo-agent-toolkit:openfold2-nimfrom NVIDIA BioNeMo Agent Toolkit
Predicts monomer protein structures from amino-acid sequences using NVIDIA's OpenFold2 NIM microservice. Handles hosted API and local Docker deployment with A3M MSAs and mmCIF templates.
Ships in NVIDIA BioNeMo Agent Toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Predict a single protein-chain structure from an amino-acid sequence, with optional A3M multiple sequence alignments and mmCIF templates. Use this guide for basic hosted/local NIM use; load supplemental files only when the task needs deeper context:
references/api.md: exact endpoints, schemas, Docker flags, response fields.references/science.md: model scope, strengths, limitations, and handoffs.references/parameters.md: MSA, template, model-selection, and relax effects.references/validation.md: artifact and scientific sanity checks.references/examples.md: compact hosted/local payload patterns.Ask only when context is unclear:
Hosted NVIDIA API or local Docker NIM?
https://health.api.nvidia.com/v1/biology/openfold/openfold2/predict-structure-from-msa-and-templatehttp://localhost:8000/biology/openfold/openfold2/predict-structure-from-msa-and-templatehttp://localhost:8000/v1/health/readyMode difference: hosted and local use the same prediction path except local
does not include /v1/. Hosted requests use Authorization: Bearer $NGC_API_KEY; local inference requests use no auth header after readiness.
Do not print API keys. Confirm they exist with shell tests, not echoes.
Hosted needs NGC_API_KEY in the request header. Supported local Docker
startup uses NGC_API_KEY, or NVIDIA_API_KEY as a fallback, plus
LOCAL_NIM_CACHE. A repo-root .env file may be sourced as a local override.
Use the official OpenFold2 NIM image and mount LOCAL_NIM_CACHE at
/opt/nim/.cache. Current docs recommend at least 80 GB disk, 64 GB system
RAM, 8 CPU cores, and one supported GPU; the container is roughly 55 GB and
first startup downloads about 10 GB of model parameters.
For the exact startup preflight (.env sourcing, NGC_API_KEY/NVIDIA_API_KEY
handling, docker login, and the docker run for
nvcr.io/nim/openfold/openfold2:latest), copy the command block in
references/api.md under Local Docker verbatim — do
not drop .env, NGC_API_KEY, LOCAL_NIM_CACHE, or the no-auth local request.
Readiness check:
until curl -sf http://localhost:8000/v1/health/ready; do sleep 5; done
Use Python requests; curl escaping is fragile for A3M/mmCIF text. The
sequence field is required. input_id, alignments, selected_models,
relax_prediction, use_templates, and explicit_templates are optional.
import os
import requests
hosted = True
url = (
"https://health.api.nvidia.com/v1/biology/openfold/openfold2/predict-structure-from-msa-and-template"
if hosted
else "http://localhost:8000/biology/openfold/openfold2/predict-structure-from-msa-and-template"
)
headers = {"Content-Type": "application/json"}
if hosted:
headers["Authorization"] = f"Bearer {os.getenv('NGC_API_KEY')}"
seq = "MTEYKLVVVGAGGVGKSALTIQLIQNHFVDEYDPT"
payload = {
"sequence": seq,
"input_id": "kras_fragment",
"selected_models": [1],
"relax_prediction": False,
"alignments": {
"uniref90": {
"a3m": {
"alignment": f">query\n{seq}",
"format": "a3m",
}
}
},
}
response = requests.post(url, headers=headers, json=payload, timeout=300)
response.raise_for_status()
result = response.json()
Payload gotchas:
sequence must use valid amino-acid IUPAC symbols.alignments by database name, then a3m with
alignment and format. When the user needs to create or deepen an MSA,
hand off to msa-search-nim / MSA Search and map its A3M output into this
alignments shape.explicit_templates with mmCIF content;
do not write new HHR-template examples.selected_models chooses AlphaFold2/OpenFold parameter sets 1-5. Select one
or two models for smoke tests; use all five for stronger production runs.The response includes one prediction per selected model, ordered by confidence.
Save every returned structure-like text field and the full JSON response so
field-shape differences are auditable. Production answers should explicitly
write .pdb or .cif artifacts, preserve the response JSON, and print any
confidence/ranking fields the service returns.
from pathlib import Path
import json
Path("openfold2_response.json").write_text(json.dumps(result, indent=2))
def save_strings(obj, prefix="openfold2"):
i = 0
if isinstance(obj, dict):
for key, value in obj.items():
if isinstance(value, str) and ("ATOM" in value or value.lstrip().startswith("data_")):
i += 1
ext = "cif" if value.lstrip().startswith("data_") else "pdb"
Path(f"{prefix}_{key}_{i}.{ext}").write_text(value)
elif isinstance(value, (dict, list)):
i += save_strings(value, f"{prefix}_{key}")
elif isinstance(obj, list):
for idx, value in enumerate(obj, start=1):
if isinstance(value, (dict, list)):
i += save_strings(value, f"{prefix}_{idx}")
return i
saved = save_strings(result)
print(f"saved {saved} structure artifact(s)")
For production monomer runs:
selected_models: [1, 2, 3, 4, 5] unless the user requests a smoke test.relax_prediction: True in Python payloads when relaxation is desired;
JSON examples may show true.Treat tiny toy sequences and single-sequence MSAs as API smoke tests, not
quality evidence. For scientific interpretation and validation, read
references/science.md and references/validation.md.
401: missing, expired, or unauthorized NGC API key.422: invalid amino-acid characters, sequence too long, malformed A3M, bad
selected_models, or malformed mmCIF template object.404: remove /v1/ from the prediction URL.LOCAL_NIM_CACHE.BENCHMARK.md (opens in a new tab)config/skillspector-baseline.yml (opens in a new tab)evals/config.yml (opens in a new tab)evals/evals.json (opens in a new tab)evals/trigger_evals.json (opens in a new tab)references/api.md (opens in a new tab)references/examples.md (opens in a new tab)references/parameters.md (opens in a new tab)references/science.md (opens in a new tab)references/validation.md (opens in a new tab)skill-card.md (opens in a new tab)skill.oms.sig (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nvidia-bionemo/bionemo-agent-toolkit --plugin bionemo-agent-toolkit47 skills in this plugin
/boltz2-nimUse Boltz2 NIM for biomolecular structure prediction and binding affinity. Invoke for Boltz2, protein structures, protein-ligand/DNA/RNA complexes, SMILES or CCD ligands, pIC50/IC50 affinity scoring, mmCIF output, hosted NVIDIA API calls, or local Docker deployment.
/codonfm-embedValidate coding-sequence CSVs, extract public CodonFM/Encodon embeddings, and choose checkpoints for downstream property modeling./codonfm-finetuneFine-tune public CodonFM Encodon checkpoints on labeled coding-sequence or coding-variant data using LoRA, head-only, or full fine-tuning. Use when a user explicitly asks to fine-tune CodonFM or Encodon for regression or classification. Support generic public-v1 Encodon workflows only; reject Decodon, MissenseDataset, missense_synom_agg, and generation workflows./codonfm-scoreValidate, prepare, or run public CodonFM Encodon masked-codon variant scoring and review compatibility of its scoring workflows. Use only when the user explicitly requests CodonFM or Encodon, or that context is already established in the conversation. Do not select this skill for a generic variant-scoring request without that context; ask for the variant and intended analysis first./codonfm-setupSet up the public CodonFM v1 repository and download public Encodon checkpoints. Use for requests to build or launch the CodonFM development container, configure local data/checkpoint mounts, verify GPU access, or download public Encodon 80M, 600M, 1B, or Cdwt-1B weights. Do not use for Decodon, Encodon 5B/10B, missense-aggregation, or codon-optimization setup because those implementations are not in the public repository./complexa-binder-designRun a complete protein binder design campaign with NVIDIA Proteina-Complexa: resolve a target structure and hotspots from a name/sequence/PDB, co-design binder sequence+structure with reward-guided test-time search (best-of-n, beam search, FK steering, MCTS), select with the internal AF2 reward gate, then INDEPENDENTLY validate each binder by refolding the complex with Boltz2 (default) or OpenFold3 and rank on interface confidence, pLDDT, ipSAE, apo/holo stability, and hotspot contact. Use whenever the user wants de novo binders against a named target, sequence, or PDB, hotspot/epitope-targeted design, Proteina-Complexa / Complexa, or ranked validated binders from one request. Sibling of protein-binder-design (RFdiffusion + ProteinMPNN); this skill uses Proteina-Complexa.
Other plugins' skills for the same job