Calculation helper
The calculation helper is a program you run on your own computer. A web page cannot start programs, so Molkit sends these calculations to the helper, which runs OCC and xTB and sends the result back. Everything else in Molkit works without it.
To see whether the helper is running, and to download it, choose Compute > Calculation Helper. Every message in Molkit that says a calculation needs the helper links to the same window.
What needs the helper
Section titled “What needs the helper”| Feature | Program |
|---|---|
| Calculating an electrostatic potential map (imported cube files work without it) | OCC, built into the helper |
| A dipole calculated with B3LYP/def2-SVP (the in-browser estimate is always available) | OCC |
| Energy scans with GFN2-xTB, including stretching a bond until it breaks (MMFF94 scans run in the browser) | xTB |
| Minimize (xTB) and Computed (xTB) orbitals on a 3D view | xTB |
| The With the calculation helper (xTB) route for an IR spectrum or a reaction mechanism, and a solvent around the molecule (computed results) | xTB |
ESP maps and B3LYP dipoles work with the helper alone. The xTB features also need xTB, which you install separately (below).
Set up the helper
Section titled “Set up the helper”-
In Molkit, choose Compute > Calculation Helper and click Download for (your computer). The window also links the other builds:
Computer File Windows (64-bit) molkit-helper-windows-x64.exeMac with Apple silicon (M1 and later) molkit-helper-macos-arm64.zip, which holds Molkit Helper.appMac with an Intel processor molkit-helper-macos-x64.zip, which holds Molkit Helper.appLinux (64-bit Intel or AMD) molkit-helper-linux-x64Linux (64-bit ARM) molkit-helper-linux-arm64The file is about 130 MB. Nothing is installed: the helper is the one file (on a Mac, the one app).
-
Open it. The helper is not signed with a paid certificate, so your computer warns you the first time (next section).
-
The helper runs in the background, with an icon in the notification area of the Windows taskbar, in the macOS menu bar, or in your Linux desktop’s tray. It opens no window.
-
The first time Molkit reaches the helper, Chrome or Edge asks whether molkit.com may connect to apps and devices on your computer or local network. Choose Allow.
-
In Compute > Calculation Helper, the status reads The calculation helper 0.2.0 is running (with the version you have), and the table lists OCC and xTB as found or not found.
The helper’s menu
Section titled “The helper’s menu”Click the helper’s icon for its menu. On Windows, if the icon is hidden, click ^ in the notification area first.
| Menu item | What it does |
|---|---|
| Status | Running, or Running (xTB not found) when the helper found no xTB (Install xTB); ESP maps work either way. After a stop: Stopped and the reason. |
| Start again | Shown only after the helper stopped. Starts it again. |
| Open Molkit | Opens Molkit in your browser. |
| Start at login | Starts the helper when you sign in to this computer. Off until you check it. |
| Help | Opens this page. |
| Quit | Stops the helper and any calculation it is running. |
To remove the helper, clear Start at login if you checked it, choose Quit, and delete the file (on a Mac, the app).
The log
Section titled “The log”The helper writes its messages to a log file: the programs it found, the settings file it read, any line in that file it could not use, and the reason it stopped. A new log starts each time the helper starts.
| Computer | Log file |
|---|---|
| Windows | %TEMP%\molkit-helper.log. To open it, press Windows+R, type %TEMP%\molkit-helper.log, and press Enter. |
| macOS | molkit-helper.log in your temporary folder. To open it, run open -t "$TMPDIR/molkit-helper.log" in Terminal. |
| Linux | /tmp/molkit-helper.log (or $TMPDIR/molkit-helper.log when TMPDIR is set). |
The first time you open it
Section titled “The first time you open it”Windows
Section titled “Windows”- Your browser may say the file is not commonly downloaded. Choose Keep. In Edge, click …, then Keep, then Keep anyway.
- Double-click the file. If Windows shows Windows protected your PC, click More info, then Run anyway. Windows asks only once for the file.
- Double-click the zip to unzip it, and move Molkit Helper to your Applications folder (or anywhere you like).
- Open Molkit Helper. macOS refuses it the first time.
- Open System Settings > Privacy & Security, scroll to the message about Molkit Helper, and click Open Anyway. Open the app again and confirm.
Instead of step 3, you can remove the download mark in Terminal: xattr -dr com.apple.quarantine "/Applications/Molkit Helper.app".
The helper has a menu-bar icon and no Dock icon.
- Make the file runnable:
chmod +x molkit-helper-linux-x64. - Open it from your file manager, or run
./molkit-helper-linux-x64.
The icon needs a desktop with a tray: KDE, Xfce, and Cinnamon have one; GNOME needs the AppIndicator extension. Without a tray, run ./molkit-helper-linux-x64 --no-tray in a terminal and leave the terminal open.
Install xTB
Section titled “Install xTB”- Download xTB from its releases page (Windows and Linux builds), or install it with conda on macOS or Linux:
conda install -c conda-forge xtb. - Put it where the helper looks. Any one of these works:
- Unpack it into the folder that holds the helper, so that folder contains
xtb-6.7.1/bin/xtb.exe(orxtb/bin/xtb). On a Mac, that is the folder that holds Molkit Helper.app. - Add its
binfolder to your PATH. - Name it in the settings file:
xtb = C:\Programs\xtb-6.7.1\bin\xtb.exe.
- Unpack it into the folder that holds the helper, so that folder contains
- Choose Quit in the helper’s menu and open the helper again. Its menu then reads Running, and Compute > Calculation Helper lists xTB as found.
The helper also finds xTB in %LOCALAPPDATA%\Programs\xtb on Windows and in ~/xtb or ~/.local/xtb.
Settings file
Section titled “Settings file”The helper reads an optional plain-text file, molkit-helper.ini. There is none until you make one: create it with any text editor (Notepad, TextEdit in plain-text mode, or gedit) in one of these places. The helper uses the first one it finds.
| Computer | Settings file |
|---|---|
| Any | molkit-helper.ini in the folder that holds the helper (on a Mac, the folder that holds Molkit Helper.app) |
| Windows | %APPDATA%\Molkit\molkit-helper.ini. To open the folder, press Windows+R, type %APPDATA%, press Enter, and make a folder named Molkit there if there is none. |
| macOS | ~/.config/molkit/molkit-helper.ini (in Finder, Go > Go to Folder, then ~/.config) |
| Linux | ~/.config/molkit/molkit-helper.ini (or under $XDG_CONFIG_HOME when it is set) |
| Setting | What it does |
|---|---|
xtb = <full path> |
The xTB program to use. Without it, the helper searches as described in Install xTB. |
threads = 4 |
How many processes one calculation may start: 1, 2, 4, 8, or 16. Without it, the helper uses one fewer than your number of processor cores, at most 12. |
orca =, gaussian =, molpro = |
Read and listed as found or not found. No Molkit feature uses these programs yet. |
# Lines that start with # or ; are comments.xtb = C:\Programs\xtb-6.7.1\bin\xtb.exethreads = 4After you change the file, choose Quit in the helper’s menu and open the helper again. A line the helper cannot use is listed, with its line number, in Compute > Calculation Helper and in the log; the helper carries on with its usual search.
What the helper may do
Section titled “What the helper may do”- It listens on
127.0.0.1, port 47821, and accepts connections from your computer only. - It answers pages from
https://molkit.comandhttps://www.molkit.comonly. Requests from any other site are refused. - It runs OCC (built in) and the xTB program it found, with fixed recipes. Molkit sends a molecule and numbers; a request can never name a program, a file, or a command.
- It works in your temporary folder: the helper program itself, OCC’s files, its log, and one folder per calculation, deleted when the calculation ends. Outside the temporary folder it writes only a login entry, when you check Start at login, and it reads only the settings file.
- It runs one calculation at a time, stops one that passes its time limit, and stops it when you cancel it in Molkit or close the page. Quit stops a running calculation too.
- Nothing is sent to an outside server.
Browsers
Section titled “Browsers”Chrome and Edge are supported. Firefox and Safari have not been tested with the helper yet.
If you clicked Block when Chrome or Edge asked about your local network, click the icon to the left of the address, open Site settings, and set Local network access to Allow. Then reload Molkit.
Troubleshooting
Section titled “Troubleshooting”| What you see | What to do |
|---|---|
| No calculation helper is running on this computer. | Check that the helper’s icon is there and its menu says Running. Then check Local network access in the site settings (Browsers) and click Check again. |
| A message that the helper is already running | Its icon is already in the notification area, the menu bar, or the tray. Use that one. |
| Stopped: Port 47821 is already in use in the helper’s menu | Another program uses port 47821, often a helper started from a terminal. Close it, then click Start again. |
| Running (xTB not found) in the helper’s menu | See Install xTB. The log names the settings file the helper read and any line it could not use. |
| Windows says Smart App Control blocked the helper | Smart App Control allows only programs that are signed or known to Microsoft, and the helper is not signed. While Smart App Control is on, it can block the helper, and Windows offers no way to run it anyway. |
| This helper is older than this version of Molkit needs. | Quit the helper, download it again from Compute > Calculation Helper, and replace the old file. |
| A calculation stops at its time limit | Large molecules can take longer than the limit. Try a smaller molecule or a faster method. |
Command line
Section titled “Command line”molkit-helper [--no-tray] [--port N] [--allow-origin URL] [--version]--no-tray runs the helper in the terminal, with its messages there and no icon, for a computer without a tray or a server; stop it with Ctrl+C. --allow-origin adds a site that may use the helper, for example --allow-origin http://localhost:4173 for a local copy of Molkit. Add only sites you run yourself. On a Mac, the program is "Molkit Helper.app/Contents/MacOS/molkit-helper".