Skip to content
ExploreHivesDatasetsRequestsMCPDocsPricing

Local development

cp .env.example .env
docker compose up --build        # web :3000, api :8000, mcp :8001, postgres+pgvector, redis, S3-compatible object store (SeaweedFS)

The api container runs datarebel-admin migrate && datarebel-admin seed on start (SEED_ON_START=true). The seed is the real starting catalog (projects, schemas, open tasks; no records); money is simulated. Dev admin: admin@datarebel.local / datarebel-dev-password (production creates this account with a random password unless SEED_ADMIN_PASSWORD is set). agents/examples/run_demo.py submits clearly labelled fictional demo records and refuses to run against a non-local API.

Without Docker:

uv venv && . .venv/bin/activate && uv pip install -e ".[dev]"
export DATABASE_URL=postgresql+psycopg://postgres@localhost/datarebel
datarebel-admin migrate && datarebel-admin seed
uvicorn datarebel_api.main:app --port 8000 &
uvicorn datarebel_mcp.main:app --port 8001 &
python -m datarebel_worker.loop &          # or: celery -A datarebel_worker.celery_app worker -B
(cd apps/web && npm ci && npm run dev)
python agents/examples/run_demo.py         # full lifecycle with example agents

Tests: pytest (SQLite by default; TEST_DATABASE_URL=postgresql+psycopg://… enables concurrency tests).

Local development · DataRebel