/bionemo-agent-toolkit:genmol-nimfrom NVIDIA BioNeMo Agent Toolkit
Generates drug-like molecules via GenMol NIM (hosted NVIDIA API or local Docker). Supports de novo generation, scaffold decoration, motif extension, lead optimization, SAFE notation, and QED/LogP ranking.
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.
Generate drug-like molecules with GenMol. Use this guide for first-pass hosted and local usage; load supplemental files only when needed:
references/api.md: endpoints, schema, Docker flags, response fields.references/science.md: use cases, strengths, limits, and handoffs.references/parameters.md: SAFE patterns and tuning effects.references/validation.md: chemical and artifact checks.references/examples.md: compact request patterns.Ask only when context is unclear:
Hosted NVIDIA API or local Docker NIM?
https://health.api.nvidia.com/v1/biology/nvidia/genmol/generatehttp://localhost:8000/generateHosted requests use Authorization: Bearer $NGC_API_KEY. For local Docker,
authenticate image pulls with docker login nvcr.io using NGC_API_KEY
(or NVIDIA_API_KEY via the preflight). Pass -e NGC_API_KEY into the
container for entitlement checks and first-run model downloads. Local inference
requests use no auth header after readiness, so bind the published port to
loopback with -p 127.0.0.1:8000:8000. Warm-cache key-free startup varies by
image version and should not be assumed.
Use credentials already supplied in the shell environment or injected by a
secret manager. Do not load credential files, print keys, or enable shell tracing.
For local setup answers, include this sequence: env preflight, docker login
with --password-stdin, docker run, readiness loop, then a no-auth localhost
request. Do not invent a cache default or drop the NVIDIA_API_KEY fallback.
Before executing local setup, explain that registry authentication sends the key
to the NVIDIA registry at https://nvcr.io and first-run model downloads use
about 20 GB in LOCAL_NIM_CACHE.
Execute deployment only when the user requests it; for a setup guide, provide
the commands without running them.
For the exact startup preflight (environment checks, NVIDIA_API_KEY fallback,
--shm-size=2G, both --ulimit flags, docker login, and the docker run
for nvcr.io/nim/nvidia/genmol:1.0.1), copy the command block in
references/api.md under Local container startup verbatim.
GenMol is single-GPU; NIM_TEST_GPU defaults to 0. Wait for readiness:
until curl -sf http://localhost:8000/v1/health/ready; do sleep 5; done
The API field is named smiles, but GenMol expects SAFE notation. Masked
positions use [*{min-max}].
safe_input = "[*{20-30}]"safe_input = scaffold_to_safe("C1CC(=O)NC1", 10, 15)safe_input = f"[*{{5-10}}].{motif_safe}.[*{{5-10}}]".[*{5-12}]Use safe-mol for conditioned generation. Simple ring scaffolds may raise
SAFEFragmentationError; fall back to the original SMILES plus a SAFE mask.
See the scaffold_to_safe helper in
references/examples.md under Scaffold Decoration.
Wider masks increase diversity; tight masks keep analog size more predictable.
import os
import requests
HOSTED = True
url = (
"https://health.api.nvidia.com/v1/biology/nvidia/genmol/generate"
if HOSTED else "http://localhost:8000/generate"
)
headers = {"Content-Type": "application/json"}
if HOSTED:
headers["Authorization"] = f"Bearer {os.getenv('NGC_API_KEY')}"
payload = {
"smiles": "[*{20-30}]", # SAFE notation
"num_molecules": 30,
"temperature": "1", # string, not float
"noise": "1", # string, not float
"step_size": 1,
"scoring": "QED", # or "LogP"
"unique": False,
}
response = requests.post(url, headers=headers, json=payload, timeout=180)
response.raise_for_status()
result = response.json()
Gotchas:
temperature and noise are strings.num_molecules is 1-1000; invalid/duplicate molecules may be filtered, so
request extra when the user needs a minimum count.scoring is "QED" for drug-likeness or "LogP" for lipophilicity.unique=True for deduplicated analog lists.Sort molecules by score, print the top ranks, and write a .smi file as shown
in references/examples.md under Save Ranked
Results. For chemical validity, uniqueness, PAINS/alerts, and visualization
with RDKit, read references/validation.md.
status: "failed" or validation errors.safe-mol only for scaffold, motif, or lead-optimization workflows;
de novo masks work without conversion.LOCAL_NIM_CACHE.nvidia-smi, NVIDIA Container Toolkit, and
--runtime=nvidia; use NIM_TEST_GPU to choose the single visible GPU.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
Three short reads, in order
genmol, nim, drug-discovery, molecule-generation, safe-notation, nvidia-api
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.Other plugins' skills for the same job