Features

How do I run antidetect browser profiles on a Linux server?

Updated December 5, 2026

Run the Mirage headless runner: the same engine that starts profiles in the desktop app, without a window, on a Linux server or in Docker. A script creates profiles, starts them and connects Playwright through the same Local API as on your computer. The image ships with the public beta, for linux/amd64, with the Firefox-based core inside.

What does the runner do?

It keeps local profiles in its own data volume, starts them on the Firefox-based core in the image and answers the same API as the desktop app. The SDK, the mirage command and the Local API work the same way against it.

Today Not yet
Local profiles in the data volume Signing in to a Mirage account and cloud profiles
Firefox-based core Chrome profiles
Playwright, SDK, command line Selenium from another machine

How do I start it with Docker Compose?

Make a device key first. It seals proxy passwords and recordings in the volume; keep a copy off the server.

Shell
openssl rand -base64 32 > device.key
chmod 600 device.key
sudo chown 10001 device.key
YAML
services:
  mirage:
    image: mirage-headless
    restart: unless-stopped
    shm_size: 2gb
    stop_grace_period: 30s
    ports:
      - "127.0.0.1:35000:35000"
    volumes:
      - mirage-data:/data
    environment:
      MIRAGE_DEVICE_KEY_FILE: /run/secrets/mirage_device_key
    secrets:
      - mirage_device_key

volumes:
  mirage-data:

secrets:
  mirage_device_key:
    file: ./device.key
Shell
docker compose up -d
docker compose exec mirage mirage-headless key   # the API key made on first start

How do I drive it?

Shell
export MIRAGE_LOCAL_API_URL=http://127.0.0.1:35000
export MIRAGE_API_KEY=mrg_...
mirage profiles create "Worker 1"
mirage profiles start "Worker 1"

Your Playwright or SDK script then connects exactly as on a desktop. See the SDK and the command line.

With a window or without?

A profile starts with a window on a virtual display inside the container, so to a site it looks like a browser on a desktop. --headless skips the window; some sites can tell the difference.

How do I reach it from another machine?

Never over plain HTTP: whoever holds the key controls every profile on the runner. Put a TLS reverse proxy such as Caddy or nginx in front and set MIRAGE_PUBLIC_URL, or mount a certificate into the runner with MIRAGE_TLS_CERT_FILE and MIRAGE_TLS_KEY_FILE. Limit the port with a firewall as well.

When should I use it instead of the app?

  • A job that runs every night on a server.
  • A pipeline in CI that checks how a site looks from several regions.
  • A team that does not want scripts on anyone’s laptop.

For scripts that only manage cloud profiles while every app is closed, use cloud access for scripts, described under cloud sync.