Files
roboco/deployment.md
T
Renn F 4441b23df4 docs: document both deploy paths, registry knobs, measured resource usage
README + deployment guide now show three ways to run RoboCo — pull the
pre-built images (docker-compose.registry.yml), build from source, or the
local-dev flow — instead of only the dev path. Add the ROBOCO_REGISTRY /
ROBOCO_VERSION knobs and the required ROBOCO_ENCRYPTION_KEY (which was
missing) to .env.example, and fix a stale piragi reference there.

usage.md drops the unmeasured per-agent RAM ceiling and records the figures
measured on the live stack: RAM is low and Ollama-dominated, storage is the
real cost (images share the agent-base layer). Idle numbers — peak under an
active task is best read live with docker stats.
2026-06-16 20:38:49 +02:00

5.5 KiB

RoboCo Deployment Guide

Deploy RoboCo on your server/NAS.

Prerequisites

Software Purpose
Docker All services (PostgreSQL, Redis, Orchestrator, Agents)
Claude Code CLI Authenticate once on host (creates ~/.claude)
# Install and authenticate Claude Code (one time)
npm install -g @anthropic-ai/claude-code
claude  # Login via browser

Quick Start (NAS/Server)

Everything runs in Docker - no need to install Python/uv on the host. There are two ways to get the stack: pull the pre-built images (every release publishes them) or build from source. Both start from a clone, which gives you the compose files, the nginx config, and .env.example.

# 1. Clone the project
git clone https://github.com/rennf93/roboco.git roboco
cd roboco

# 2. Configure environment
cp .env.example .env

# 3. Edit .env and set at least:
#   ROBOCO_ENCRYPTION_KEY, ROBOCO_AGENT_AUTH_SECRET   (secrets; see the file)
#   ROBOCO_HOST_PROJECT_DIR=/volume1/roboco           (host paths for spawning agents)
#   ROBOCO_HOST_CLAUDE_DIR=/root/.claude              (or your user's home)

Option A — Pull the pre-built images (no build toolchain on the host)

docker compose -f docker-compose.registry.yml pull
docker compose -f docker-compose.registry.yml up -d
docker compose -f docker-compose.registry.yml logs -f orchestrator

Choose the registry and version with ROBOCO_REGISTRY (ghcr.io/rennf93 or docker.io/renzof93) and ROBOCO_VERSION (latest or a pinned release such as 0.5.0). The orchestrator pulls and spawns the matching pre-built agent images on demand.

Option B — Build from source

docker compose up -d              # builds images on first run, then starts everything
docker compose logs -f orchestrator

Architecture

Your NAS/Server
│
├── docker compose up -d
│   │
│   ├── roboco-postgres (pgvector)
│   ├── roboco-redis
│   └── roboco-orchestrator
│       │
│       ├── Runs FastAPI on port 8000
│       ├── Builds (from source) or pulls (registry) the agent images
│       └── Spawns agent containers:
│           ├── roboco-agent-main-pm
│           ├── roboco-agent-be-dev-1
│           ├── roboco-agent-be-qa
│           └── ... (each mounts ~/.claude for auth)
│
├── ~/.claude/              ← Your Claude Code auth (from host)
│
└── ./data/                 ← Persistent data
    ├── postgres/
    ├── redis/
    └── mcp-configs/

Configuration

Environment Variables (.env)

# Host paths - REQUIRED for NAS deployment
# These tell the orchestrator where to find files on the HOST
ROBOCO_HOST_PROJECT_DIR=/volume1/roboco
ROBOCO_HOST_CLAUDE_DIR=/root/.claude
ROBOCO_DATA_DIR=./data

# Claude Code auth directory (mounted into containers)
CLAUDE_AUTH_DIR=/root/.claude

# Database (defaults work for docker compose)
ROBOCO_DATABASE_HOST=roboco-postgres
ROBOCO_DATABASE_PORT=5432
ROBOCO_DATABASE_USER=roboco
ROBOCO_DATABASE_PASSWORD=roboco
ROBOCO_DATABASE_NAME=roboco

# Redis (defaults work for docker compose)
ROBOCO_REDIS_HOST=roboco-redis
ROBOCO_REDIS_PORT=6379

Customizing Agent Spawn

By default, the orchestrator spawns main-pm, be-dev-1, and be-qa. To change this:

# Option 1: Override in docker-compose.yml
docker compose up -d --scale orchestrator=0
docker compose run orchestrator --spawn main-pm fe-dev-1 fe-qa

# Option 2: Edit docker-compose.yml command section
# Uncomment and modify the command line

Verification

# API health
curl http://localhost:8000/health

# Orchestrator status (shows running containers)
curl http://localhost:8000/api/orchestrator/status | jq

# List all RoboCo containers
docker ps --filter "name=roboco"

# View orchestrator logs
docker compose logs -f orchestrator

# View agent logs
docker logs -f roboco-agent-main-pm

Data Persistence

All data is persisted to the host:

Container Path Host Path
postgres data ./data/postgres/
redis data ./data/redis/
MCP configs ./data/mcp-configs/

For NAS RAID protection, set ROBOCO_DATA_DIR to your RAID volume:

ROBOCO_DATA_DIR=/volume1/roboco/data

Troubleshooting

Orchestrator can't spawn agents

# Check Docker socket is mounted
docker compose logs orchestrator | grep -i docker

# Verify host paths are set correctly
docker compose exec orchestrator env | grep ROBOCO_HOST

# Check if agent image was built
docker images | grep roboco-agent

Agent containers exit immediately

# Check Claude auth is mounted
docker logs roboco-agent-main-pm

# Verify ~/.claude exists on host
ls -la ~/.claude/

# Re-authenticate if needed
claude

Database connection failed

docker compose ps postgres
docker compose logs postgres

API not responding

curl http://localhost:8000/health
docker compose logs orchestrator

Stopping

# Stop all services
docker compose down

# Stop all agent containers (if needed)
docker ps --filter "name=roboco-agent" -q | xargs docker stop

# Full cleanup (removes volumes)
docker compose down -v

Development Mode (Host)

For local development without Docker orchestrator:

# Start only infrastructure
docker compose up -d postgres redis

# Install Python dependencies
curl -LsSf https://astral.sh/uv/install.sh | sh
uv sync

# Run migrations
uv run alembic upgrade head

# Start orchestrator directly
uv run python -m roboco.cli --spawn main-pm be-dev-1 be-qa