Local development
CaberOS can be developed locally on macOS (Apple Silicon or Intel), Linux, or Windows via WSL2. The backend uses Python 3.12 with uv, and the frontend uses Node 22 with npm.
Building the public website in website/ requires Node.js 22.23.4 or newer,
as recorded in website/.node-version.
Prerequisites
Section titled “Prerequisites”| Requirement | macOS | Linux | Windows |
|---|---|---|---|
| Python 3.12 | via uv |
via uv |
via uv in WSL2 |
| uv | Required | Required | Required |
| Node 22+ | Required | Required | Required |
| npm | Required | Required | Required |
| Sandbox | sandbox-exec (built in) |
bubblewrap (apt install bubblewrap) |
bubblewrap in WSL2 |
Install uv
Section titled “Install uv”curl -LsSf https://astral.sh/uv/install.sh | shInstall bubblewrap (Linux only)
Section titled “Install bubblewrap (Linux only)”# Debian/Ubuntusudo apt install bubblewrap
# Fedorasudo dnf install bubblewrap
# Archsudo pacman -S bubblewrapgit clone https://github.com/cabernect/caberos.gitcd caberos./scripts/install.shThe install script checks dependencies, installs backend and frontend packages, creates data directories, and seeds the database with the default operator and two agents.
Running the dev servers
Section titled “Running the dev servers”./scripts/dev.shThis starts:
- Backend on
http://localhost:8081(with auto-reload) - Frontend on
http://localhost:5173(Vite dev server, proxies/apito backend)
Open http://localhost:5173 in your browser. Default login: admin / admin.
Backend development
Section titled “Backend development”cd backend
# Run testsuv run pytest -v
# Run a specific test moduleuv run pytest tests/test_harness.py -v
# Lintuv run ruff check src/ tests/uv run ruff format --check src/ tests/
# Format codeuv run ruff format src/ tests/
# Smoke test (end-to-end, no real LLM)uv run python ../scripts/smoke.py test-agent "echo hello"
# Seed the databaseuv run python -m agentos.seedFrontend development
Section titled “Frontend development”cd frontend
# Install dependenciesnpm install
# Run unit testsnpm run test
# Lintnpm run lint
# Type-check and buildnpm run build
# Dev server (hot reload)npm run devDesktop development (macOS only)
Section titled “Desktop development (macOS only)”The Tauri desktop app wraps the React frontend and a packaged Python gateway. Desktop development requires macOS with Xcode command-line tools.
cd frontend
# Dev mode (hot reload, uses local backend)npm run desktop:dev
# Production buildnpm run desktop:build
# Launch the built appopen src-tauri/target/release/bundle/macos/CaberOS.appProject structure
Section titled “Project structure”foundation-agentos/├── backend/ # FastAPI gateway + agent harness (Python 3.12)├── frontend/ # React 19 dashboard + Tauri 2 desktop shell├── website/ # Public website (Astro + Starlight)├── skills/ # System-level skills├── scripts/ # dev, install, docker, build helpers├── sandbox/ # Sandbox profiles (seatbelt, bwrap)├── docs/ # Specification and implementation plans└── docker-compose.ymlEnvironment variables
Section titled “Environment variables”All backend settings use the AGENTOS_ prefix. Key variables for development:
| Variable | Default | Description |
|---|---|---|
AGENTOS_CONTROL_PLANE_HOST |
127.0.0.1 |
API server bind host |
AGENTOS_CONTROL_PLANE_PORT |
8081 |
API server port |
AGENTOS_DB_PATH |
data/agentos.db |
SQLite database path |
AGENTOS_YOLO_MODE |
false |
Skip approval gates |
AGENTOS_RELOAD |
false |
Enable auto-reload (set by dev.sh) |
See backend/src/agentos/config.py for the full list.
Next step
Section titled “Next step”Read the Architecture overview to understand the system topology and execution pipeline.