GPUMA ships an Agent Skill that teaches AI coding agents (Claude Code, OpenAI Codex, Gemini CLI, GitHub Copilot, Cursor) how to run it. With the skill installed you can ask for results in plain language, for example "optimize the conformers of these 40 molecules and give me the lowest-energy one of each". The agent writes the config, checks the GPU, runs GPUMA and reports back. You don't need to know Python.
-
Install a coding agent, for example Claude Code:
curl -fsSL https://claude.ai/install.sh | bash -
Install GPUMA as a stand-alone tool with uv, which also fetches the right Python version:
curl -LsSf https://astral.sh/uv/install.sh | sh # only if uv is missing uv tool install gpuma --python 3.12 \ --index https://download.pytorch.org/whl/cu126 --index-strategy unsafe-best-match
The extra index gives torch's CUDA 12.6 build, which runs on NVIDIA drivers from 525 on. Without it uv installs PyPI's default torch build, which needs driver 580 or newer.
-
Install the skill for your agents:
gpuma skills install
This copies the skill into
~/.claude/skills/gpuma(Claude Code) and~/.agents/skills/gpuma(Codex, Gemini CLI, Copilot, Cursor). Use--target DIRto install somewhere else, for example a project's.claude/skillsfolder. -
Check the machine:
gpuma doctor
It reports the visible GPUs and their free memory, whether the configured device works, whether a Hugging Face token is available (only needed for UMA models) and whether the skill is installed. It exits with 1 if anything needs fixing.
Start the agent in a folder that contains your input files (SMILES lists, XYZ files) and describe what you want:
- "Optimize ibuprofen and tell me its energy."
- "Generate 50 conformers of this SMILES, optimize them, and list the five lowest relative energies in kcal/mol."
- "Optimize every structure in
anions.xyz; they all have charge -1." - "The last run failed, find out why and fix it."
The skill tells the agent to check the inputs with --dry-run before a run,
start long runs in the background, and read the machine-readable --json
summary instead of guessing from the logs.
Reinstall the skill after each upgrade, so the agent's instructions match the installed version:
uv tool install --upgrade gpuma --python 3.12 \
--index https://download.pytorch.org/whl/cu126 --index-strategy unsafe-best-match
gpuma skills installgpuma doctor warns when the installed skill is from a different GPUMA
version.
The CLI is designed to be driven by programs as well as people:
--jsonprints exactly one JSON object to stdout (all logs go to stderr), including per-structure energies and the engine diagnostics.- Exit codes:
0success,1runtime failure,2usage error,3invalid input, config or device,4some structures in a batch failed. --dry-runvalidates inputs, config and device without loading a model.gpuma config --schemaprints the config JSON Schema;gpuma config --showprints the resolved config.
See Command Line Interface for details. The documentation is also available as llms.txt and llms-full.txt for tools that read documentation in that format.