Skip to content

Install

nodemode-ai edited this page Nov 25, 2026 · 1 revision

Install

Requirements

Needs Version Why
Node 22 the window and its build
Python 3.12 or newer the service and the engine module build
Rust 1.99.1, pinned in rust-toolchain.toml; rustup installs it on the first cargo run the engine
WebKitGTK 4.1 development packages Linux desktop builds only the Tauri shell
Xcode command line tools macOS desktop builds only the Tauri shell

Rust is installed from https://rustup.rs. A first install compiles the engine from nothing, so expect a few minutes on a small machine.

From a clone

git clone <repository> formrig
cd formrig
./formrig_oc_install
./formrig

./formrig_oc_install and ./formrig install are the same script. It does three things in order:

  1. Creates backend/venv and installs the pinned Python packages from backend/requirements.txt.
  2. Builds the Rust engine and installs it into that venv as the module frg_engine (./formrig engine build).
  3. Installs the pinned frontend packages in frontend/ with npm ci.

./formrig then starts the service on 127.0.0.1:8270 and the window on http://localhost:5270 and stops both on Ctrl+C. Open the window address in a browser. On Windows use formrig.bat and formrig_oc_install.bat.

./formrig doctor checks the toolchain, the installs and the two ports. It prints ready when nothing needs fixing.

Ports and folders

Setting Default Variable
Service 127.0.0.1:8270 FORMRIG_PORT
Window (dev) localhost:5270, HMR 5271 FORMRIG_FRONTEND_PORT
Data folder ~/Formrig FORMRIG_DATA_DIR

The data folder holds imported uploads (imports/), lip sync audio (audio/), add-ons (addons/), AI model environments (models/, with your own recipes in models/byo/<id>/), the send folder for other apps (GoF/, with .sends/ records and the Return/ folder), engine.json while the service runs, the recent list and, only where the system has no password store, your cloud keys (keys/).

Both servers answer this computer only. Vite runs with host: false and strictPort, and uvicorn binds 127.0.0.1.

Commands

Command Does
./formrig service and window together
./formrig backend, ./formrig frontend one of the two
./formrig engine build cargo and maturin into backend/venv
./formrig engine check cargo check and clippy
./formrig build production window into frontend/dist
./formrig serve the built window served by the service on 8270
./formrig i18n extract, ./formrig i18n check collect the English strings, check every language table
./formrig mcp the agent server on stdio, see MCP
./formrig agents install, ./formrig agents sync set up Claude Code, Codex, Cursor and Antigravity (--dry-run shows what), or refresh the skills and agents/manifest.json (--check only reports drift)
./formrig doctor check the installation
./formrig clean, ./formrig clean --all remove build output, with --all also the venv and node_modules

Desktop app

./formrig install-desktop
./formrig desktop dev
./build_app

install-desktop installs PyInstaller and checks the Rust and Tauri toolchain. ./formrig desktop dev runs the shell against the dev servers. ./build_app freezes the service, builds the shell and produces an installable bundle. It writes every step to build_app.log. Flags: --no-install (macOS: leave the app where it was built), --install (Linux: install the .deb with apt), --open, --clean, and --config FILE to merge a Tauri config. Linux builds a .deb by default; set FRG_BUNDLES=deb,rpm,appimage for more. The shell starts the service on a free port and ends it when the window closes.

On macOS the freeze is a one-folder build. When APPLE_SIGNING_IDENTITY is set, the freeze script signs every nested Mach-O file. FormRig has no updater of its own: formportal installs and updates it.

AppImage

FRG_BUNDLES=appimage ./build_app (or deb,rpm,appimage) makes a Linux AppImage. A build on a 2 core machine took 4 s for the window, 21 s for the frozen service (43.8 MB) and 639 s for the bundle, giving FormRig_0.11.0_amd64.AppImage of 123.44 MiB. Set NO_STRIP=true and APPIMAGE_EXTRACT_AND_RUN=1 if the bundler cannot strip libraries or FUSE is missing. Started under a virtual display (Xvfb 1440x900, software GL) it opened a 1296 by 810 window and showed the Start page. It was built on Ubuntu 24.04, so its glibc is newer than the 22.04 baseline; for a build that runs on older systems use the release workflow, which builds on Ubuntu 22.04. The AppImage was started, not driven through a rig.

Release workflow

.github/workflows/release-build.yml is a manual workflow ("Run workflow" on GitHub) that builds the desktop bundles on GitHub's own runners. The targets input picks which; one job per target runs ./build_app --no-install (macOS, Linux) or build_app.bat (Windows).

Target Runner Bundles
macos-arm64 macos-latest app and dmg
macos-intel macos-15-intel app and dmg
windows windows-latest msi and NSIS exe
linux ubuntu-22.04 AppImage and deb

Each upload carries a SHA256SUMS file. No secret is needed. Without a certificate the macOS app is ad-hoc signed; with an APPLE_CERTIFICATE secret it is signed with that identity, and with APPLE_ID, APPLE_PASSWORD and APPLE_TEAM_ID as well it is notarised. The Windows bundles are unsigned. The workflow parses and passes actionlint, and its plan step was run for every target, a list and an unknown name, but it has not been run on GitHub: the first run is yours.

Optional add-ons

These install on demand, after you accept each licence, into <data>/addons/<name>/ in their own environment:

Add-on Used for Licence
MediaPipe face landmarks from images (about 372 MB; 371.5 MB measured) Apache-2.0; its environment also holds LGPL FFmpeg libraries and GCC-runtime libraries inside the OpenCV and numpy wheels, each listed in the dialog and in LICENSES.md
Rhubarb Lip Sync better viseme timing (v1.14.0 installs and runs on Linux) MIT, with BSD, Boost and WTFPL parts, each listed in the dialog
OpenUSD (usd-core) USD export (about 224 MB) TOST-1.0

Add-ons need Local only turned off while they download. See Cloud and Local only.

Clone this wiki locally