Airweave Local Development
Use this sub-skill when a future Airweave task needs the local Docker stack running or diagnosed. It owns stack bootstrap, restart/recreate/destroy decisions, .env seeding, service profiles, port checks, and health recovery.
Do not use this sub-skill for backend endpoint details, connector implementation, frontend page logic, MCP transport behavior, or Monke connector orchestration. After the stack is healthy, route search, collection, source-connection, connect-session, and webhook workflows to ../backend-api/SKILL.md.
Safe operating rules
- Work from an explicit repository root. The bundled helper accepts
--repo-root /path/to/airweave and works from any current directory.
- Prefer
status before mutation:bash skills/disco/airweave/sub-skills/local-development/scripts/local-stack.sh \
--repo-root "$AIRWEAVE_REPO" status
- A plain
start is state-preserving: it seeds .env only when needed, starts missing/stopped services, and reuses running containers instead of deleting data.
- Use
restart for already-created containers when you want to preserve Postgres/Redis/Vespa volumes.
- Use
recreate only when container state is stale or service definitions changed; it removes compose containers and volumes, then starts fresh from the current .env.
- Use
destroy only with explicit user intent. It removes compose containers and Docker volumes; it does not intentionally edit .env or purge manually managed host files.
Common commands
# Fresh or reuse-safe start, including backend, frontend, connect widget, Vespa, Temporal, Redis, Postgres, Svix.
bash skills/disco/airweave/sub-skills/local-development/scripts/local-stack.sh \
--repo-root "$AIRWEAVE_REPO" start
# Backend/service stack without frontend UI.
bash skills/disco/airweave/sub-skills/local-development/scripts/local-stack.sh \
--repo-root "$AIRWEAVE_REPO" start --skip-frontend
# Preserve data; restart existing containers and rerun health checks.
bash skills/disco/airweave/sub-skills/local-development/scripts/local-stack.sh \
--repo-root "$AIRWEAVE_REPO" restart
# Recreate containers and compose volumes from current repo config.
bash skills/disco/airweave/sub-skills/local-development/scripts/local-stack.sh \
--repo-root "$AIRWEAVE_REPO" recreate
# Destructive cleanup; add --yes for noninteractive confirmation.
bash skills/disco/airweave/sub-skills/local-development/scripts/local-stack.sh \
--repo-root "$AIRWEAVE_REPO" destroy
Equivalent environment toggles are supported for automation: NONINTERACTIVE=1, SKIP_FRONTEND=1, SKIP_CONNECT=1, SKIP_LOCAL_EMBEDDINGS=1, ENABLE_DOCLING=1, VERBOSE=1, and QUIET=1.
Startup decisions
- Fresh checkout with no
.env: the helper copies .env.example, generates missing ENCRYPTION_KEY, STATE_SECRET, SVIX_JWT_SECRET, FIRST_SUPERUSER_PASSWORD, and POSTGRES_PASSWORD, fills safe local defaults such as FIRST_SUPERUSER=admin@example.com, POSTGRES_USER=airweave, SKIP_AZURE_STORAGE=true, STORAGE_BACKEND=filesystem, and SPARSE_EMBEDDER=fastembed_bm25.
- Embeddings: OpenAI keys prefer
openai_text_embedding_3_small with 1536 dimensions and skip the local embeddings container. Mistral keys prefer mistral_embed with 1024 dimensions. No API key on a freshly seeded env uses local_minilm with 384 dimensions and starts the local embeddings container. An existing .env is not overwritten except for missing required values.
- Reusing containers: if Airweave containers already run,
start reports status instead of recreating them. If containers exist but are stopped, start brings them back up and runs health checks.
- Optional profiles:
--skip-frontend, --skip-connect, --skip-local-embeddings, and --enable-docling map to the compose profiles for frontend, connect widget, local embeddings, and Docling OCR.
Expected local service surface
See references/local-stack.md for the service graph, ports, startup modes, and health commands. The primary expected endpoints are:
- Backend API:
http://localhost:8001, health at /health and readiness at /health/ready
- Frontend UI:
http://localhost:8080 unless skipped
- Connect widget:
http://localhost:8082 unless skipped
- Vespa document/query API:
http://localhost:8081, config server on 19071
- Temporal gRPC/UI:
7233, 8233, and http://localhost:8088
- PostgreSQL:
localhost:5432; Redis: localhost:6379; Svix: http://localhost:8071
- Local embeddings: host
9878 when DENSE_EMBEDDER=local_minilm; Docling: 5001 only when enabled
Verification hooks
For command-level checks before a real stack run:
bash -n skills/disco/airweave/sub-skills/local-development/scripts/local-stack.sh
bash skills/disco/airweave/sub-skills/local-development/scripts/local-stack.sh --help
bash skills/disco/airweave/sub-skills/local-development/scripts/local-stack.sh --repo-root "$AIRWEAVE_REPO" status
For a backend-native smoke after the stack is healthy and a Python 3.13 backend environment with pytest/pytest-asyncio is active:
cd "$AIRWEAVE_REPO/backend"
TEST_ENV=local python -m pytest tests/e2e/smoke/test_storage_backend.py -q
This storage smoke verifies the backend health endpoint, stub-source sync, ARF files, manifests, and entity files. If it fails because stub is unavailable, check whether internal sources are enabled for the local test environment before treating storage as broken.
Troubleshooting entry points
- Docker or Compose missing, daemon down, or port conflicts:
references/troubleshooting.md#docker-compose-and-port-failures
- Missing or invalid env values, including
STATE_SECRET and SVIX_JWT_SECRET length validation: references/troubleshooting.md#environment-and-settings-failures
- Vespa init or schema dimension mismatch:
references/troubleshooting.md#vespa-failures
- Backend, Temporal worker, Svix, or storage smoke failures:
references/troubleshooting.md#backend-worker-svix-and-storage-failures
1---2name: local-development3description: "Operate the Airweave local Docker stack safely: start, reuse,4 restart, recreate, destroy, seed environment, check ports, and recover health5 failures."6metadata:7 source: https://skillmd.com/skills/vectorspacelab/local-development8 disco-role: operating9disable-model-invocation: true10license: MIT11---1213# Airweave Local Development1415Use this sub-skill when a future Airweave task needs the local Docker stack running or diagnosed. It owns stack bootstrap, restart/recreate/destroy decisions, `.env` seeding, service profiles, port checks, and health recovery.1617Do not use this sub-skill for backend endpoint details, connector implementation, frontend page logic, MCP transport behavior, or Monke connector orchestration. After the stack is healthy, route search, collection, source-connection, connect-session, and webhook workflows to `../backend-api/SKILL.md`.1819## Safe operating rules20211. Work from an explicit repository root. The bundled helper accepts `--repo-root /path/to/airweave` and works from any current directory.222. Prefer `status` before mutation:23 ```bash24 bash skills/disco/airweave/sub-skills/local-development/scripts/local-stack.sh \25 --repo-root "$AIRWEAVE_REPO" status26 ```273. A plain `start` is state-preserving: it seeds `.env` only when needed, starts missing/stopped services, and reuses running containers instead of deleting data.284. Use `restart` for already-created containers when you want to preserve Postgres/Redis/Vespa volumes.295. Use `recreate` only when container state is stale or service definitions changed; it removes compose containers and volumes, then starts fresh from the current `.env`.306. Use `destroy` only with explicit user intent. It removes compose containers and Docker volumes; it does not intentionally edit `.env` or purge manually managed host files.3132## Common commands3334```bash35# Fresh or reuse-safe start, including backend, frontend, connect widget, Vespa, Temporal, Redis, Postgres, Svix.36bash skills/disco/airweave/sub-skills/local-development/scripts/local-stack.sh \37 --repo-root "$AIRWEAVE_REPO" start3839# Backend/service stack without frontend UI.40bash skills/disco/airweave/sub-skills/local-development/scripts/local-stack.sh \41 --repo-root "$AIRWEAVE_REPO" start --skip-frontend4243# Preserve data; restart existing containers and rerun health checks.44bash skills/disco/airweave/sub-skills/local-development/scripts/local-stack.sh \45 --repo-root "$AIRWEAVE_REPO" restart4647# Recreate containers and compose volumes from current repo config.48bash skills/disco/airweave/sub-skills/local-development/scripts/local-stack.sh \49 --repo-root "$AIRWEAVE_REPO" recreate5051# Destructive cleanup; add --yes for noninteractive confirmation.52bash skills/disco/airweave/sub-skills/local-development/scripts/local-stack.sh \53 --repo-root "$AIRWEAVE_REPO" destroy54```5556Equivalent environment toggles are supported for automation: `NONINTERACTIVE=1`, `SKIP_FRONTEND=1`, `SKIP_CONNECT=1`, `SKIP_LOCAL_EMBEDDINGS=1`, `ENABLE_DOCLING=1`, `VERBOSE=1`, and `QUIET=1`.5758## Startup decisions5960- Fresh checkout with no `.env`: the helper copies `.env.example`, generates missing `ENCRYPTION_KEY`, `STATE_SECRET`, `SVIX_JWT_SECRET`, `FIRST_SUPERUSER_PASSWORD`, and `POSTGRES_PASSWORD`, fills safe local defaults such as `FIRST_SUPERUSER=admin@example.com`, `POSTGRES_USER=airweave`, `SKIP_AZURE_STORAGE=true`, `STORAGE_BACKEND=filesystem`, and `SPARSE_EMBEDDER=fastembed_bm25`.61- Embeddings: OpenAI keys prefer `openai_text_embedding_3_small` with 1536 dimensions and skip the local embeddings container. Mistral keys prefer `mistral_embed` with 1024 dimensions. No API key on a freshly seeded env uses `local_minilm` with 384 dimensions and starts the local embeddings container. An existing `.env` is not overwritten except for missing required values.62- Reusing containers: if Airweave containers already run, `start` reports status instead of recreating them. If containers exist but are stopped, `start` brings them back up and runs health checks.63- Optional profiles: `--skip-frontend`, `--skip-connect`, `--skip-local-embeddings`, and `--enable-docling` map to the compose profiles for frontend, connect widget, local embeddings, and Docling OCR.6465## Expected local service surface6667See `references/local-stack.md` for the service graph, ports, startup modes, and health commands. The primary expected endpoints are:6869- Backend API: `http://localhost:8001`, health at `/health` and readiness at `/health/ready`70- Frontend UI: `http://localhost:8080` unless skipped71- Connect widget: `http://localhost:8082` unless skipped72- Vespa document/query API: `http://localhost:8081`, config server on `19071`73- Temporal gRPC/UI: `7233`, `8233`, and `http://localhost:8088`74- PostgreSQL: `localhost:5432`; Redis: `localhost:6379`; Svix: `http://localhost:8071`75- Local embeddings: host `9878` when `DENSE_EMBEDDER=local_minilm`; Docling: `5001` only when enabled7677## Verification hooks7879For command-level checks before a real stack run:8081```bash82bash -n skills/disco/airweave/sub-skills/local-development/scripts/local-stack.sh83bash skills/disco/airweave/sub-skills/local-development/scripts/local-stack.sh --help84bash skills/disco/airweave/sub-skills/local-development/scripts/local-stack.sh --repo-root "$AIRWEAVE_REPO" status85```8687For a backend-native smoke after the stack is healthy and a Python 3.13 backend environment with `pytest`/`pytest-asyncio` is active:8889```bash90cd "$AIRWEAVE_REPO/backend"91TEST_ENV=local python -m pytest tests/e2e/smoke/test_storage_backend.py -q92```9394This storage smoke verifies the backend health endpoint, stub-source sync, ARF files, manifests, and entity files. If it fails because `stub` is unavailable, check whether internal sources are enabled for the local test environment before treating storage as broken.9596## Troubleshooting entry points9798- Docker or Compose missing, daemon down, or port conflicts: `references/troubleshooting.md#docker-compose-and-port-failures`99- Missing or invalid env values, including `STATE_SECRET` and `SVIX_JWT_SECRET` length validation: `references/troubleshooting.md#environment-and-settings-failures`100- Vespa init or schema dimension mismatch: `references/troubleshooting.md#vespa-failures`101- Backend, Temporal worker, Svix, or storage smoke failures: `references/troubleshooting.md#backend-worker-svix-and-storage-failures`