Skip to content

Getting Started

nodemode-ai edited this page Dec 3, 2026 · 6 revisions

Getting Started

Requirements

Python 3.12 or later, Node 20.19+ or 22.12+, and for desktop builds Rust with the Tauri toolchain. ./formchem doctor checks them, the backend venv and its packages, and whether ports 5220 and 8220 are free.

Install and boot

./formchem install      # backend venv and frontend packages
./formchem              # engine on 127.0.0.1:8220, app on http://localhost:5220

Windows: formchem.bat install, then formchem.bat. One-click installers: formchem_oc_install and formchem_oc_install.bat.

Draw your first structure

Aspirin, with the mouse and a few keys:

  1. On Home, press New drawing. Home closes and the canvas opens with the tool rail on the left.
  2. Press R (the benzene tool) and click the middle of the page: a benzene ring.
  3. Press B (the single bond tool) and click a ring atom: a bond grows out of it. Click the new end atom to grow the chain; add two short branches the same way (one for the acetyl group, one for the acid).
  4. Point at an atom without clicking and press O: it becomes oxygen. Point at a bond and press 2: it becomes double. Do this for the ester oxygen, the two carbonyls and the acid oxygens.
  5. Open the Analysis panel (title bar or View > Analysis Panel): formula C9H8O4, molecular weight 180.16, exact mass 180.0423 and the elemental analysis. The formula also sits in the status bar.
  6. Structure > Clean Up Structure tidies bond lengths and angles in one undo step. Ctrl+S (Cmd+S on macOS) saves; a new drawing asks for a name.

Faster: Insert > Structure from SMILES and paste CC(=O)Oc1ccccc1C(=O)O. Molfile, SDF, SMILES, CML and CDXML files open from File > Open or by dropping them on Home. Drawing lists every tool and hover key, and how to draw with the keyboard alone.

Commands

Command What it does
./formchem or ./formchem boot engine and app together
./formchem backend, ./formchem frontend one half only
./formchem build, ./formchem serve build the frontend, serve it from the engine (preview on 5221)
./formchem install-desktop, ./formchem desktop dev, ./formchem desktop build the Tauri desktop app
./formchem freeze freeze the engine into the desktop sidecar
./formchem i18n check, scan, export, import the interface languages: gaps, new strings, CSV out and in
./formchem counts lines of code per language
./formchem doctor, ./formchem clean checks, cleanup
./formchem mcp the MCP server over stdio
./formchem agents install, ./formchem agents sync agent configs and skills
./formchem cli list, describe, run, batch the window's command catalogue from a terminal; run needs the window open
./formchem claude Claude Code in this terminal with FormChem's MCP tools attached

Each command has a formchem.bat twin on Windows.

Ports and folders

The engine listens on 127.0.0.1:8220 (FORMCHEM_PORT), the Vite app on localhost:5220. The desktop shell starts the engine on a free port and prefers 8221. The data folder is ~/formchem (FORMCHEM_DATA_DIR); it holds settings.json, library.json (Home's lists), commands-catalogue.json and, while the engine runs, engine.json.

Clone this wiki locally