Skip to content

Installation

CADDForge packages require Python 3.10 or newer.

Choose the smallest environment for your task

For the introductory table tutorial, core plus caddforge-datascience is sufficient; no molecular simulation environment is needed. For the generic pipeline tutorial, core alone is sufficient. Scientific plugin extras do not install every external engine, GPU driver, or prepared input dataset.

Component Declared Python support Validation / runtime scope
Core and docs Python 3.10+ Package CI targets Linux/Python 3.10 and 3.12; local documentation checks also use 3.13
Full bundle Check each pinned component Clean public-PyPI installation and smoke checks passed on Linux/Python 3.10 and 3.12; external engines are separate
Scientific tools Check plugin and engine requirements External binaries, platform/GPU support, and conda stacks vary; this is not a claim of universal support

Install conda-managed scientific stacks first

If a plugin recommends installing scientific dependencies with conda, install those conda packages before installing any pip packages, including caddforge.

Recommended order:

conda create -n caddforge python=3.10
conda activate caddforge

# Install heavy scientific/runtime packages first.
conda install -c conda-forge openfe openff-toolkit rdkit pdbfixer openmm

# Install published CADDForge components after the conda environment is complete.
python -m pip install caddforge-core==0.25.0 caddforge-fep==0.8.0

Installing conda packages after pip packages have already populated the environment can replace or downgrade shared dependencies and leave the environment inconsistent. When in doubt, create a fresh environment and install the conda-managed stack first.

For Slurm jobs, the compute node also needs access to this environment. See the Slurm backend guide for packed-environment and wheelhouse options.

Install CADDForge packages

Bundle 0.26.0 installs the complete toolbox with GUI integrations, MD minimization and GaMD, ML UI dependencies and docs 0.5.0:

python -m pip install caddforge==0.26.0
python -m pip check
caddforge list-tools
caddforge docs

The metadata-only bundle owns no modules or commands. It pins core 0.25.0, GUI 0.8.0, descriptors 0.13.0, docking 0.8.0, MD 0.15.0, FEP 0.8.0, docs 0.5.0, data science 0.5.0, ML 0.4.0 and QM 0.3.0. Documentation authoring and test extras remain outside runtime installations.

For core alone or selected plugins:

python -m pip install caddforge-core==0.25.0
python -m pip install caddforge-qm==0.3.0

Plugins depend directly on caddforge-core; Python imports remain caddforge. The version matrix lists compatible components. The bundle and components use independent 0.x version sequences; 1.0.0 is reserved for a stable public API commitment. Release CI targets Linux/Python 3.10 and 3.12; external scientific runtimes require their own validation.

Core includes conda-pack for caddforge pack-env, which creates managed Slurm environment archives and checksum sidecars. Update controller and compute-node environments together and rebuild packs after upgrades. Running processes retain their original code.

For editable installs, select the release tags before installing the sources:

git -C ../caddforge-core switch --detach v0.25.0
python -m pip install -e ../caddforge-core
git -C ../caddforge-docking switch --detach v0.8.0
python -m pip install -e '../caddforge-docking[gui]'

GaMD

Install GaMD with its supported OpenMM range after provisioning AmberTools:

python -m pip install 'caddforge-md[gui,gamd]==0.15.0'

MD also installs compatible descriptors and docking packages. GUI 0.8.0 provides GaMD setup, monitoring, checkpoint recovery and independent analysis. See the GaMD guide for scientific inputs and qualification limits.

External software

Some plugins call external scientific software that is not installed by the Python package. Examples include docking engines, QM programs, and MD engines. Check the plugin pages for tool-specific runtime requirements.

PyOCL and Java

QM, descriptors, and docking install the public pyocl-idor>=0.8.3 distribution. MD can use it through those plugins, and the complete bundle includes it indirectly. The Python import package remains pyocl.

Install Java 21 or newer and point JAVA_HOME to that installation. The affected GitHub workflows already provision Java 21. To check the Python package and JVM in the same environment:

python -m pip show pyocl-idor
java -version
python -c "import pyocl; print(pyocl.__version__)"

A JVM lookup or class-version error indicates a missing, misconfigured, or older Java runtime; see troubleshooting.

Documentation package

Bundle 0.26.0 includes docs 0.5.0 automatically. Core-only and selective plugin installations can install it separately:

python -m pip install caddforge-docs==0.5.0
caddforge docs

After installing a bundle that includes docs, run caddforge docs directly.

Installing this package enables the optional docs command on core 0.21.0 or later. It opens the documentation shipped with the installed docs release and serves until Ctrl+C. The built site works without internet access or documentation build tools. Use --host and --port to choose the listening address, or --no-browser to open the printed URL manually. See the CLI reference.

GUI extras

The complete bundle includes GUI extras. For selective installations, install the plugin's GUI extra:

python -m pip install "caddforge-descriptors[gui]==0.13.0"
python -m pip install "caddforge-docking[gui]==0.8.0"
python -m pip install "caddforge-md[gui]==0.15.0"
python -m pip install "caddforge-fep[gui]==0.8.0"

Migrating an existing installation

Prefer a fresh environment. To migrate the former core distribution in place, install the renamed core and upgrade every retained plugin to its public release. The example below retains docking and QM; adapt that list to your environment:

python -m pip uninstall caddforge
python -m pip install --upgrade caddforge-core caddforge-docking caddforge-qm
python -m pip check
caddforge list-tools

For a minimal installation, install caddforge-core instead and upgrade every retained plugin to its migrated release. Keep older plugin releases in their original environments: they depend on the legacy caddforge core distribution. Do not install both old and renamed core distributions, because they own the same Python files. If both were installed, remove the old caddforge distribution and force-reinstall caddforge-core afterwards.

importlib.metadata.version("caddforge-core") reports the runtime version; version("caddforge") reports the optional bundle version. MD provenance distinguishes both. Historical configuration, registry, result, and provenance records remain readable. Uninstalling the new bundle does not uninstall its dependencies.