DeploymentLocal development

Local development

Run the core backend and dashboard from the monorepo in local development, with a server flag reference.

Run the backend and dashboard

The repo is a monorepo. The backend lives in packages/core and the dashboard in packages/dashboard. Run them in two terminals:

python3 -m venv .venv && source .venv/bin/activate
pip install -e "packages/core[server,postgres]"
pip install -e "packages/saas[catalog]"

# Build the dashboard
cd packages/dashboard && npm install && npm run build
cp -r dist/* ../core/autopil/api/static/ && cd ../..

# Start (full stack)
AUTOPIL_DB=./autopil_audit.db \
AUTOPIL_POLICY=./policies \
AUTOPIL_SECRET_KEY=local-dev-secret \
AUTOPIL_RESET_ADMIN_KEY=1 \
autopil-saas-serve

Server flags

Server flags (core edition):

FlagDefaultDescription
--policypolicies/Path to policy file or directory
--dbautopil_audit.dbSQLite audit DB path
--host0.0.0.0Bind host
--port8000Listen port