Configuration & Deployment
This guide covers requirements, server options, OrcaSlicer preset catalogs, reverse-proxy networking, OIDC sign-in, the CAD assistant, and slice review reports for Enmesh Studio.
Requirements
- Python 3.11+ (OIDC sign-in also uses
requirements-oidc.txt). - An isolated Linux container runtime and CAD supervisor for design, import, and mesh export. See cad-worker.md.
- An installed
OrcaSlicerbinary plus a matching JSON preset catalog, exported presets, or named profiles. - Any modern desktop or mobile browser.
FreeCAD and OrcaSlicer remain separate external programs under their own licenses. Enmesh Studio distributes neither binaries nor stock presets. Review upstream terms before installation or distribution: FreeCAD license · OrcaSlicer license.
Server CLI and Profile Files
Run the server on the host where FreeCAD and OrcaSlicer run:
python3 -m workbench \ --data-dir /path/to/jobs \ --freecad /path/to/FreeCAD \ --orca /path/to/OrcaSlicer \ --port 8765Keep --data-dir outside the repository and include it in backups. It holds saved printer profiles and each job snapshot. Requests to /health return service health.
Optional Legacy Profiles File
New setups can omit --profiles and create slicing profiles in browser Printer profiles. Existing setups can pass --profiles /path/to/profiles.json pointing to three complete slicer files alongside saved browser profiles:
[ { "id": "example-printer", "name": "Example printer", "machine": "/path/to/machine.json", "process": "/path/to/process.json", "filament": "/path/to/filament.json", "bed_type": "Textured PEI Plate" }]A profile references one group of slicer inputs while keeping installed Orca presets as the machine and filament source.
Single-Solid Document Rule
Imported FreeCAD files must be trusted and contain one finished solid. The exporter skips intermediate Part Design steps and rejects ambiguous multi-solid documents.
OrcaSlicer Preset Catalog
Use the JSON catalog from the same release as your installed OrcaSlicer binary. Point --catalog-root at resources/profiles and set --catalog-version to that release tag or commit, or set STUDIO_ORCA_CATALOG_ROOT and STUDIO_ORCA_CATALOG_VERSION.
When an OrcaSlicer package ships compiled .opc archives, clone the matching JSON catalog and upstream notices separately (replace v2.5.3 with your version):
git clone --depth 1 --branch v2.5.3 --filter=blob:none --no-checkout \ https://github.com/OrcaSlicer/OrcaSlicer.git orca-cataloggit -C orca-catalog sparse-checkout set --no-cone \ '/resources/profiles/**/*.json' '/resources/profiles/*.json' '/LICENSE.txt' '/README.md'git -C orca-catalog checkout --detach v2.5.3
export STUDIO_ORCA_CATALOG_ROOT="$PWD/orca-catalog/resources/profiles"export STUDIO_ORCA_CATALOG_VERSION=v2.5.3Mount the catalog read-only inside containers. In Printer profiles -> Add profile, browse machines, nozzles, processes, and filaments, or import custom JSON presets.
Network and Reverse-Proxy Access
By default, Enmesh Studio binds strictly to loopback (http://127.0.0.1:8765/). For network access, put an HTTPS reverse proxy in front of the server and set:
--listen: private bind address--public-origin: public HTTPS browser origin--trusted-proxy: reverse proxy IP address
Preserve Host and Origin headers through the proxy.
If OIDC is disabled behind a proxy, the proxy must authenticate every user before forwarding. In non-OIDC mode, Enmesh Studio grants the maker role to every accepted request.
OIDC Sign-In and Roles
Install the optional OIDC packages before enabling OIDC:
python3 -m pip install -r requirements-oidc.txtRegister https://<your-origin>/auth/callback with your identity provider (for example Authentik) and set these environment variables:
| Environment Variable | Value |
|---|---|
STUDIO_OIDC_ISSUER |
Provider issuer URL |
STUDIO_OIDC_CLIENT_ID |
Registered OIDC client ID |
STUDIO_OIDC_CLIENT_SECRET_FILE |
Path to a restricted file holding the client secret |
STUDIO_OIDC_VIEWER_GROUP |
Group allowed to read saved designs and jobs |
STUDIO_OIDC_MAKER_GROUP |
Group allowed to create designs, use the assistant, and slice |
The maker role includes viewer access, and users outside both groups cannot enter the studio. Sessions last one hour and inspect ID token group claims at /auth/login without storing provider tokens.
Conversational CAD Assistant
Set OPENAI_API_KEY in the server environment (default model gpt-6.2-sol, override via OPENAI_MODEL for OpenAI image plus structured-output models). Connect the CAD worker via STUDIO_CAD_SOCKET or configure a hosted FreeCAD service in the browser UI. File imports need the CAD worker and run with no API key.
The model provider receives recent chat messages, the design brief, selected modeling context, and monochrome candidate or parent renders. .FCStd files, slicer presets, and G-code stay local. See conversational-cad.md and design-workspace.md.
Slice Review Reports
Each completed slice report stores the source revision, selected profile, output artifact, SHA-256 hashes, tool choices, and key settings parsed from G-code.
Always inspect output against your physical printer and material before printing. A completed slice shows that FreeCAD and OrcaSlicer built a file, not physical printer behavior. Failed jobs stay in job history for retry with their saved snapshots.