Skip to content

Quickstart

This page runs the complete platform (control plane plus one runtime cell) on a single Docker host, bound to 127.0.0.1 only. It is the fastest way to evaluate OpenFlare. Nothing is exposed to the network and no domain, DNS or TLS setup is needed.

  • A host with Docker and Docker Compose v2 (the docker compose command).
  • Node.js, to run the setup and proof scripts (they are plain .mjs files with no dependencies to install).
  • git.
  • A linux/amd64 host, or an arm64 host running images under emulation. Release images are published for linux/amd64 only.
Terminal window
git clone https://github.com/becoolme/openflare-control
cd openflare-control
Terminal window
node scripts/all-in-one-setup.mjs

This creates a .env file in the checkout with generated secrets, and a .aio-config/ directory holding the file-backed Compose secrets. Existing files are not overwritten, so re-running the script does not rotate credentials.

The generated .env contains the console password (CONSOLE_AUTH_PASSWORD), which you need in step 5.

Terminal window
docker compose -f docker-compose.all-in-one.yml up -d

The first run pulls images and runs a one-shot cell-init service that creates the cell record, issues its pull token and renders the runtime configuration. When it finishes, check the services:

Terminal window
docker compose -f docker-compose.all-in-one.yml ps
Terminal window
node scripts/hello-all-in-one.mjs

The script creates a team and a hello worker through the management API, deploys it to the local cell, waits for the cell to ACK the publication, and sends a request to the cell. On success it prints:

worker response: hello from openflare: one click works

If you see that line, the full path works: plane, signed desired state, cell pull and apply, and the runtime serving your worker.

Port Service Binding Purpose
8788 Console 127.0.0.1 Web UI; also proxies /api/v1 to the plane.
8787 Plane 127.0.0.1 Management API (/api/v1) and the cell channel.
8080 vrt-host 127.0.0.1 Worker ingress. Requests are routed by the Host header.

Ports are bound to loopback by default; to reach them from another machine, use the public install rather than changing the bindings. See Services and ports for the variables that control binding.

Open http://127.0.0.1:8788. The browser asks for HTTP Basic credentials:

  • User: admin
  • Password: the CONSOLE_AUTH_PASSWORD value in .env
Terminal window
grep CONSOLE_AUTH_PASSWORD .env

The console talks to the plane for you and injects the admin token on the server side, so you never handle that token in the browser. See The console.

Ingress routes by Host header, so you can test without any DNS by supplying the header yourself:

Terminal window
curl -H 'Host: hello.workers.local' http://127.0.0.1:8080/

Use the hostname that the hello script printed or that the console shows for the worker; the example above assumes the default workers.local domain (WORKERS_DOMAIN).

To resolve *.workers.local in a browser, see Local hostnames.

In the console:

  1. Open Workers and choose Create worker.
  2. Start from the Hello World template, or upload your own bundle.
  3. Deploy it and wait for the publication to show as applied.

A fresh install has no team until one exists. Running the hello script in step 4 creates one. Otherwise create one through the API with the admin token (see Management API) before using Create worker.

For wrangler-style projects, bindings and variables, continue with Deploy a worker and Bindings.

Terminal window
# stop, keep data
docker compose -f docker-compose.all-in-one.yml down
# stop and delete all data (database, bundles, KV, R2, certificates)
docker compose -f docker-compose.all-in-one.yml down -v

For a real deployment with your own domain, automatic wildcard TLS through Cloudflare DNS-01, and an installer that sets everything up under /var/lib/openflare, follow One-click install. To understand what you just started, read Architecture.