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.
Prerequisites
Section titled “Prerequisites”- A host with Docker and Docker Compose v2 (the
docker composecommand). - Node.js, to run the setup and proof scripts (they are plain
.mjsfiles with no dependencies to install). git.- A
linux/amd64host, or an arm64 host running images under emulation. Release images are published forlinux/amd64only.
1. Get the code
Section titled “1. Get the code”git clone https://github.com/becoolme/openflare-controlcd openflare-control2. Generate configuration
Section titled “2. Generate configuration”node scripts/all-in-one-setup.mjsThis 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.
3. Start the stack
Section titled “3. Start the stack”docker compose -f docker-compose.all-in-one.yml up -dThe 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:
docker compose -f docker-compose.all-in-one.yml ps4. Prove it works
Section titled “4. Prove it works”node scripts/hello-all-in-one.mjsThe 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 worksIf you see that line, the full path works: plane, signed desired state, cell pull and apply, and the runtime serving your worker.
What is running
Section titled “What is running”| 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.
5. Log in to the console
Section titled “5. Log in to the console”Open http://127.0.0.1:8788. The browser asks for HTTP Basic credentials:
- User:
admin - Password: the
CONSOLE_AUTH_PASSWORDvalue in.env
grep CONSOLE_AUTH_PASSWORD .envThe 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.
6. Send a request to your worker
Section titled “6. Send a request to your worker”Ingress routes by Host header, so you can test without any DNS by supplying the header yourself:
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.
7. Deploy your own worker
Section titled “7. Deploy your own worker”In the console:
- Open Workers and choose Create worker.
- Start from the Hello World template, or upload your own bundle.
- 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.
Stop or reset
Section titled “Stop or reset”# stop, keep datadocker 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 -vGoing public
Section titled “Going public”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.