Skip to content

Installation

Deployment Options

bash
git clone <your-repo-url> forgexa
cd forgexa
docker compose up -d

This starts:

ServicePortDescription
api8000FastAPI backend
web3000React frontend (Nginx)
postgres5432PostgreSQL 16 + pgvector
redis6379Redis 7 (event bus)
minio9000/9001MinIO (artifact storage)
pgadmin5050pgAdmin (optional)

Option 2: Host Mode

For development, run the backend and frontend directly on your host:

bash
# Backend
cd backend
pip install -e ".[dev]"
uvicorn app.main:app --reload --port 8000

# Frontend
cd frontend
npm install
npm run dev

Runtime Daemon Setup

The daemon runs on any machine where AI agents are installed.

Prerequisites

Install at least one AI coding agent:

bash
# Claude Code (recommended)
npm install -g @anthropic-ai/claude-code

# Or Codex
npm install -g @openai/codex

# Or OpenCode
go install github.com/opencode-ai/opencode@latest

Start the Daemon

bash
# Required environment variables for local/self-hosted server
export DAEMON_SERVER_URL=http://your-server:8000
export DAEMON_API_TOKEN=your-api-token

# Optional
export DAEMON_MAX_CONCURRENT=5         # Max parallel tasks
export DAEMON_POLL_INTERVAL=3          # Poll interval (seconds)
export DAEMON_WORKSPACES_ROOT=~/.ai-factory/workspaces

# Start
forgexa daemon start

Multi-Server Mode

A single daemon can connect to multiple API servers:

bash
export DAEMON_SERVER_URLS=http://server1:8000,http://server2:8000
forgexa daemon start

CLI Installation

Install the standalone CLI package:

bash
pip install forgexa-cli

# Login
forgexa login --server http://localhost:8000 --email admin@example.com --password admin123

# Check daemon status
forgexa daemon status

Environment Variables

API Server

VariableDefaultDescription
DATABASE_URLpostgresql+asyncpg://...PostgreSQL connection
REDIS_URLredis://localhost:6379Redis connection
SECRET_KEY(required)JWT signing key
LITELLM_MODELclaude-sonnet-4-20250514Model for AI analysis

Daemon

VariableDefaultDescription
DAEMON_SERVER_URLhttps://api.forgexa.netAPI server URL
DAEMON_API_TOKEN(optional)Authentication token (auto-read from CLI login config when available)
DAEMON_MAX_CONCURRENT5Max parallel tasks
DAEMON_POLL_INTERVAL3Poll interval (seconds)
DAEMON_IDhostnameUnique daemon identifier
FACTORY_CLAUDE_MODEL(none)Override Claude model

Forgexa — AI Software Factory