Installation¶
MolForge is distributed in two complementary forms:
- Standalone Desktop App installers (macOS
.dmg, Windows NSISsetup.exe, LinuxAppImage) with an embedded CPython 3.12 runtime — zero Python setup required. - The
molforgePython package (pip install molforge), shipping a singleabi3Rust extension wheel per platform for CPython 3.10+.
Desktop App Installers¶
Every GitHub Release and daily nightly build attaches self-contained desktop installers:
| Platform | Artifact | Installation |
|---|---|---|
| macOS 11+ (Apple Silicon) | MolForge_<ver>_aarch64.dmg |
Open the .dmg and drag MolForge to /Applications. |
| macOS 11+ (Intel) | MolForge_<ver>_x86_64.dmg |
Open the .dmg and drag MolForge to /Applications. |
| Windows 10+ x64 | MolForge_<ver>_x64-setup.exe |
Run the NSIS installer (per-user install, no admin rights required; adds Start-menu shortcut and Apps uninstaller). |
| Linux x86_64 (glibc 2.35+) | MolForge_<ver>_x86_64.AppImage |
chmod +x MolForge_*.AppImage && ./MolForge_*.AppImage. Requires FUSE 2 (libfuse2 / libfuse2t64) or --appimage-extract-and-run. |
Each installer bundles the native Rust desktop app, a private python-build-standalone CPython 3.12 interpreter, and the molforge package with its ai and images extras. Your system Python environments are never modified.
Verify a Desktop Install¶
Run the built-in self-check without opening a window (prints one PASS / FAIL line per subsystem):
Unsigned builds notice
While code-signing certificates are being finalized, installers are unsigned:
- macOS: Open MolForge once, then go to System Settings → Privacy & Security → Open Anyway (or run
xattr -dr com.apple.quarantine /Applications/MolForge.app). - Windows: In the SmartScreen prompt click More info → Run anyway.
Automatic Update Notifications¶
On startup, the desktop app checks GitHub Releases for a newer version on its own release channel (stable, rc, or nightly) and displays a non-intrusive status bar notice. Nothing is ever downloaded automatically.
- Disable checks:
export MOLFORGE_NO_UPDATE_CHECK=1 - Follow another channel:
export MOLFORGE_UPDATE_CHANNEL=stable|rc|nightly
Python Package (pip)¶
Always install molforge in a dedicated virtual environment (see PyMOL conflict below).
python3 -m venv mf-env
source mf-env/bin/activate # Windows: mf-env\Scripts\activate
pip install molforge # Core engine + headless API (numpy only)
pip install "molforge[jupyter]" # + anywidget & IPython notebook viewer
pip install "molforge[ai]" # + Anthropic SDK for the AI assistant
pip install "molforge[images]" # + Pillow for image helpers
pip install "molforge[all]" # All optional extras
What Is Inside the Wheel¶
| Package / Path | Contents |
|---|---|
pymol/ |
Clean-room PyMOL 3.1 Python API + pymol._engine Rust abi3 extension |
molforge/ |
Session API, Jupyter viewer, AI agent, MCP server, ChimeraX commands, scientific toolkits |
chempy/, pymol2/ |
Clean-room chemistry helpers and multi-instance API |
<prefix>/share/pymol/data |
Fragment library and data files located automatically via pymol.guess_pymol_path() |
Console Scripts Installed¶
| Command | Purpose |
|---|---|
molforge |
Run structures, .pml/.py scripts, -d commands, --headless, --log, --check, --gui |
molforge-ai |
Interactive AI assistant terminal REPL (python -m molforge.ai) |
molforge-mcp |
MCP stdio server for Claude Code, Claude Desktop, and IDEs (python -m molforge.mcp) |
Verify the Python Install¶
Expected output reports the MolForge version, active engine (molforge), PYMOL_DATA location, _cmd implementation coverage, install-conflict diagnostics, and a quick fragment("ala") sanity test.
Release Channels¶
| Channel | Python Wheel | Desktop App |
|---|---|---|
| Stable | pip install molforge |
Latest GitHub Release installer |
| Release Candidate | pip install --pre molforge |
Newest vX.Y.Z-rc.N prerelease |
Nightly (main, daily) |
gh release download nightly -R tadteo/molforge -p "molforge-*.whl" -D mf-nightly && pip install --pre --find-links mf-nightly molforge |
gh release download nightly -R tadteo/molforge -p "MolForge_*" |
Conda¶
MolForge includes a conda-build recipe at recipe/meta.yaml that builds the Rust extension and installs data into $PREFIX/share/pymol/data, while declaring pymol-open-source as conflicting via run_constrained.
Building from Source¶
Prerequisites: Rust (stable), Python 3.10+, and maturin (pip install maturin). On Linux, install Wayland/XKB/Vulkan dev libraries (libxkbcommon-dev libwayland-dev libvulkan1 mesa-vulkan-drivers).
Conflict with Real PyMOL¶
Both MolForge and PyMOL (pymol-open-source, pymol-open-source-whl, pymol-bundle) install a top-level pymol Python package. Installing both into the same environment overwrites files and produces a broken installation.
- Always use a separate virtual environment or conda environment for MolForge.
- On import,
molforgeautomatically checks for shadowing or co-installed PyMOL distributions and emits aUserWarning(silence withMOLFORGE_NO_PYMOL_CHECK=1). - Inspect which engine is active at runtime with
molforge.Session().engine("molforge"or"pymol"). - Note: all
molforge.*scientific packages (ligand,predict,maps,validation,traj,variants,render,collab,ai,mcp) talk exclusively through the publicpymol.cmdAPI and also work on top of stock PyMOL 3.1 whenpython/is placed after PyMOL onsys.path.