Skip to content

Keep a development platform running in Docker

Use this route when you want to open Studio, sign in, and work with real saved workflows without keeping an API terminal open. The CLI starts an isolated Docker Compose project containing the API, PostgreSQL, Keycloak, and Keycloak's database. The API also runs the scheduler. This is a single-computer development environment, not a highly available production cluster.

Studio and CLI sign in through local Keycloak and call the Weave API; separate persistent databases retain identity and workflow data

1. Prepare your tools

Install the CLI, Python 3.12, uv, and Docker with Compose 2.30 or newer. Start Docker before continuing. This local launcher supports macOS and Linux Docker contexts that use a Unix socket.

Keep a source checkout matching your CLI version: it supplies the pinned container and database setup files. Run the commands below from that checkout. Do not modify that checkout while this installation depends on it; use a separate checkout for application development.

# Confirm that the installed CLI matches the source version below.
weave --version
# Expected: Firefly Weave 0.1.0a19.

# Download the matching operator files into a new, dedicated directory.
git clone --branch v0.1.0a19 --depth 1 \
  https://github.com/fireflyframework/firefly-weave.git weave-platform-a15
cd weave-platform-a15

2. Start the platform and create your account

# Check the checkout and Docker before creating anything.
weave platform doctor

# Prepare private settings, start the API in Docker, run the example,
# and create a person who can sign in. Choose your own username.
weave platform up --username developer

The first start downloads dependencies and builds the server image, so it takes longer than later starts. The CLI prints the API address and sign-in instructions; platform status also shows the interactive API docs address. Copy the generated password when it appears: it is shown once, and subsequent starts do not change it.

Without --role, up gives this first account the local owner roles in the demo workspace: developer, deployer, operator, viewer, task_participant, tenant_admin, lumi_manager, execution_manager, worker_operator, deployment_reader, deployment_planner, deployment_approver, deployment_operator, deployment_log_reader, transaction_reconciler, step_tester, alert_manager and email_sender. That is enough to author, run and operate workflows, administer connections, and set up AI models and Weave AI in Studio. To manage reviewer groups, add task_manager later; user grant adds roles to an account this platform created and never removes any:

# Development only: add a role to the account `up` created.
weave platform user grant --username developer --role task_manager

Your installation lives in .local/platform. Its containers and volumes have unique names; other Docker projects are not changed. Ports are selected when the installation is created and published only on loopback. Keep this directory: it contains private settings and identifies the data that later commands reuse.

3. Connect and sign in

# Find the API address and confirm both services are ready.
weave platform status

Copy the Sign in command printed by status. It uses the actual selected port:

# Replace API_PORT with the port shown by status; it is not a fixed default.
weave auth setup http://127.0.0.1:API_PORT --name local

# Verify the saved account and workspace after browser sign-in.
weave auth status

# Open Studio using the saved platform.
weave studio

In the browser, sign in with the username and generated password from step 2. The assistant asks you to review the platform and choose the demo workspace. Do not use the Keycloak administrator account: your development person already has the Weave roles required for the selected workspace.

You can also connect directly from Studio: open Connect to a platform, paste the API address, review the sign-in settings, then sign in and select the workspace. The connection guide explains each screen and where sessions are stored. Keycloak is only this environment's development identity provider; remote installations can use compatible OIDC providers.

4. Check a real run and explore the API

# Read the saved successful example. Repeating this does not create another run.
weave platform demo

# Show recent API logs when diagnosing a startup or request problem.
weave platform logs

Open the Docs URL from status to inspect the API. The Swagger walkthrough explains how to authorize requests and try them. You can now create workflows in Studio and use the same server from the Python SDK.

HTTP integrations, external workers, AI providers, and Weave AI need their own configuration and credentials. Starting the platform does not silently connect external accounts or make paid model calls. Follow local HTTP integration setup and the AI worker guide when you need them.

5. Stop and resume without losing your work

# Stop this installation's API and dependencies. Volumes and workflows remain.
weave platform stop

# Resume the existing Docker installation; no new account or database is created.
weave platform up

You can close the terminal after up completes. To resume an existing installation, always use its original directory and matching CLI. If you chose a custom directory, place it before the subcommand every time:

# Use one stable private location from any working directory.
weave platform --directory /absolute/path/to/weave-dev up --source /absolute/path/to/checkout
weave platform --directory /absolute/path/to/weave-dev status

6. Let actions reach a local test service (development only)

Connector actions and signed webhooks normally reach only public addresses. To try them against a test service that runs in Docker on this computer, approve its exact http:// origin when you create the installation:

# Create a new installation whose connectors may call one local test service.
weave platform --directory .local/platform-fixture up --subnet 10.231.0.0/24 \
  --allow-private-origin http://acme.acceptance.test:8080 --username YOUR_NAME

Expected: the summary shows Private origins (Development only): with the origin and names the egress network weave-local-ID-egress. Attach your test service to that network with the origin's host name as a network alias; nothing else on that network is reachable. The approval is fixed when the installation is created: use a new directory to change it. The platform writes one entry per purpose (connector actions and signed webhooks) to private-origins.json in the installation directory and gives the API a read-only copy. Credentials for that origin travel over plain HTTP only inside that egress network. When you remove the installation's containers, remove the network too with docker network rm weave-local-ID-egress.

7. Run AI tasks on a local model (development only)

# Run Ollama in a Weave-managed container, pull a small model and test it.
weave platform ai enable --ollama container --model qwen2.5:1.5b --yes

Expected: AI is ready on this platform (development only). followed by a Test: line with the model's answer time. The command also starts the AI gateway and the Agentic worker; weave platform start and up start them again. See Run AI tasks with Ollama for Ollama on this computer, other models and troubleshooting.

8. Try infrastructure changes on this computer (development only)

weave platform up also sets up local operations, so you can scale, update and restart workers through reviewed change requests without a cluster:

  • a local image registry on 127.0.0.1;
  • the sleep fixture worker example-sleep@1.0.0, admitted as a release;
  • a workers project with the component fixture-worker at 0 replicas, on the platform network, which you own and change only through change requests;
  • the target local-docker and its runner runner-local-docker, which reads and changes that project; one person may approve their own changes on it.

Expected: the summary shows Operations: target local-docker, runner runner-local-docker, registry ..., and weave platform status shows Operations: ready, runner online, target local-docker within a minute. Then open Clusters in Studio and choose New change request on local-docker; see Request a change.

The runner mounts the Docker socket: it can control the whole Docker engine, which on Docker Desktop and Colima means the virtual machine, and on Linux the host. weave platform doctor says so. Use it for development only, and skip it with up --no-operations; rerun up without the flag to add it later. A setup that stops part way resumes where it stopped on the next up. An installation made by an earlier release has no local operations to build: up starts it as before and prints Operations: This installation was created before local operations…. Create a new installation to use them.

Local operations add development-only private-origin entries: the workers reach the API and the identity provider on the platform network, and sign in through their own loopback relay; the runner signs in on loopback. weave platform stop stops the fixture workers first, giving each up to 240 seconds to finish its tasks, then the platform.

The fixture workers keep claiming while the API restarts, for example after weave platform ai enable. A worker that stops on its own, such as after it lost a task's lease, starts again; one that weave platform stop or a change request stopped stays stopped.

If something goes wrong

What you see What to do
Docker is unavailable Start Docker and repeat doctor; verify the selected context
Setup did not finish Inspect the saved stage and private logs. Do not remove volumes or repeat database provisioning blindly
The directory belongs to a foreground installation Continue using its start command, or choose a new directory for Docker mode; existing installations are not converted silently
The checkout or CLI changed Return to the matching version, or create a new installation in a separate directory
A username already exists Sign in with the original password; starting again does not reset accounts
You need API logs Run platform logs; retain the private setup logs for earlier stages
Every command reports that the private-origin file is missing, changed or not private Never edit that file. In the installation directory, run rm -f private-origins.json, copy the byte-identical container-config/private-origins-ID.json (ID: the first 16 characters of file_sha256 in platform.json) to private-origins.json, then run chmod 600 private-origins.json. Without that copy, or to change the approved origins, use a new directory
weave platform ai enable stops and asks for --yes Without a terminal the command never assumes consent; rerun with --yes

For the individual setup steps and the foreground API workflow, see the detailed local-platform guide.