How to Self-Host OrcaSlicer: Native Web UI in Docker Without VNC

To self-host OrcaSlicer without streaming a remote desktop over KasmVNC or Selkies, deploy PancakeSlicer in Docker. One FROM scratch container on linux/amd64 or linux/arm64 bundles a native browser UI, a Go server, and OrcaSlicer's headless C++ slicing engine, adding collision-checked non-planar slicing and direct LAN send to Klipper, Bambu Lab, OctoPrint, and five other printer ecosystems. Open http://<host>:6868 from any computer or iPad on your network.

Three ways to self-host OrcaSlicer

MethodHow it runsBest fit
PancakeSlicerNative WebGL2 web UI + headless OrcaSlicer C++ engine in Docker (amd64 and arm64)Daily homelab and iPad slicing, shared profiles, direct LAN send, non-planar slicing
linuxserver/orcaslicerFull desktop OrcaSlicer streamed over Selkies / KasmVNCWhen you need every untouched upstream wxWidgets desktop dialog
slicers.wasmDesktop slicer compiled to WebAssembly running inside your browser tabZero server compute; no server-side project library or direct LAN printer relay

See the full side-by-side matrix on self-hosted 3D printing slicers compared.

Deploy with Docker Compose (LAN)

Save this as docker-compose.yml (from deploy/docker-compose.yml) and run docker compose up -d:

name: pancakeslicer
services:
  pancakeslicer:
    image: zimengxiong/pancakeslicer:latest
    container_name: pancakeslicer
    restart: unless-stopped
    ports:
      - "6868:6868"
    environment:
      ORCA_WEB_MAX_JOBS: "2"
      ORCA_WEB_PRINTER_NETWORK: lan
      PANCAKE_STAGE_CACHE_MAX_MB: "1024"
      # ORCA_WEB_BEARER_TOKEN: change-me
    volumes:
      - pancakeslicer-data:/data
    security_opt:
      - no-new-privileges:true
    cap_drop:
      - ALL
    mem_limit: 8g

volumes:
  pancakeslicer-data:

Multi-arch images for linux/amd64 and linux/arm64 (Raspberry Pi 5, Apple Silicon VMs, ARM homelab nodes) are published to zimengxiong/pancakeslicer on Docker Hub and ghcr.io/zimengxiong/pancakeslicer on GHCR, tagged by version and latest.

Deploy behind HTTPS with Caddy

Use deploy/docker-compose.proxy.yml when exposing PancakeSlicer on a domain. Point DNS at the host and keep ports 80 and 443 open for TLS certificates:

PANCAKE_DOMAIN=slicer.example.com PANCAKE_TOKEN=change-me \
  docker compose -f deploy/docker-compose.proxy.yml up -d
name: pancakeslicer
services:
  pancakeslicer:
    image: zimengxiong/pancakeslicer:latest
    container_name: pancakeslicer
    restart: unless-stopped
    expose:
      - "6868"
    environment:
      ORCA_WEB_MAX_JOBS: "2"
      ORCA_WEB_PRINTER_NETWORK: lan
      ORCA_WEB_TRUSTED_PROXIES: 172.16.0.0/12
      ORCA_WEB_BEARER_TOKEN: ${PANCAKE_TOKEN:-}
    volumes:
      - pancakeslicer-data:/data
    security_opt:
      - no-new-privileges:true
    cap_drop:
      - ALL
    mem_limit: 8g

  caddy:
    image: caddy:2
    container_name: pancakeslicer-caddy
    restart: unless-stopped
    depends_on:
      - pancakeslicer
    ports:
      - "80:80"
      - "443:443"
      - "443:443/udp"
    environment:
      PANCAKE_DOMAIN: ${PANCAKE_DOMAIN:?set PANCAKE_DOMAIN to your host name}
    volumes:
      - ./caddy/Caddyfile:/etc/caddy/Caddyfile:ro
      - caddy-data:/data
      - caddy-config:/config

volumes:
  pancakeslicer-data:
  caddy-data:
  caddy-config:

Slice progress and live printer transfer telemetry use Server-Sent Events (SSE), so any reverse proxy in front of port 6868 must disable response buffering and allow large STL/3MF uploads. In deploy/caddy/Caddyfile:

{$PANCAKE_DOMAIN} {
	request_body {
		max_size 512MiB
	}
	reverse_proxy pancakeslicer:6868 {
		flush_interval -1
		transport http {
			response_header_timeout 40m
		}
	}
}

Environment variables

VariableDefaultPurpose
ORCA_WEB_BEARER_TOKENEmpty (off)Shared bearer token required on mutating requests. Set this whenever the server is reachable outside your LAN.
ORCA_WEB_PRINTER_NETWORKlanAllowed destinations for printer connections and direct send: lan (private IPv4/IPv6 ranges), off, or comma-separated CIDRs and hostnames.
ORCA_WEB_MAX_JOBS2Maximum concurrent C++ slicing jobs; extra requests wait in a fair queue.
ORCA_WEB_TRUSTED_PROXIESEmptyProxy CIDRs whose X-Forwarded-For header is trusted.
PANCAKE_STAGE_CACHE_MAX_MB1024Size cap for the disposable non-planar stage cache under /data/jobs/stage-cache.

Container security, storage, and authentication

All persistent state lives under /data: projects, model blobs, profiles, printer definitions, preferences, and job artifacts. Back up the pancakeslicer-data volume (and optionally mount /data/jobs/stage-cache separately if you want to keep disposable engine caches out of backups).

The Docker image is built FROM scratch with no shell or package manager and runs as non-root UID/GID 65532. The Compose files drop all Linux capabilities, enable no-new-privileges, and cap memory at 8g.

Built-in authentication uses one shared token (ORCA_WEB_BEARER_TOKEN). Entering it in the browser exchanges it for a signed HttpOnly, SameSite=Strict cookie. There are no built-in user accounts; for multi-user login or OIDC, put PancakeSlicer behind your reverse proxy's SSO (Authentik, Authelia, Cloudflare Access, or Tailscale).

How headless OrcaSlicer slicing works on the server

Slicing always executes natively on the server (or inside the desktop app), never in WebAssembly in the browser. The Go service handles projects, profiles, direct printer transfers (Klipper/Moonraker, Bambu Lab LAN, OctoPrint, PrusaLink, Duet, Flashforge, Elegoo Link, Repetier), and job queueing. Each slice launches the OrcaSlicer-derived C++ engine as an isolated child process with its own working directory and streams progress back over SSE, so a single bad mesh or memory spike cannot take down the server.

Read the full technical walkthrough in Self-host OrcaSlicer without VNC: inside PancakeSlicer's architecture.

Supported browsers and desktop apps

The web UI runs on Chrome or Edge 109+, Firefox 115+, and Safari 16.4+ on macOS and iPadOS. If you prefer a local install, the Windows, macOS, and Linux desktop apps bundle the exact same web UI, Go service, and C++ slicing engine.