Agent orchestration system that proxies and manages OpenCode instances.
curl -sSL https://raw.githubusercontent.com/nbitslabs/flock/main/install.sh | bashThis will:
- Install Go (if not present)
- Install GitHub CLI (gh)
- Install OpenCode
- Build Flock from source
- Create configuration files
- Set up system services (systemd on Linux, launchd on macOS)
- Configure auto-updates via cron
# Clone the repository
git clone https://github.com/nbitslabs/flock.git
cd flock
# Build the binary
go build -o flock ./cmd/flock
# Run
./flockAfter installation, configure your environment:
# Authenticate with GitHub
gh auth login
# Authenticate with OpenCode
opencode auth logingo run ./cmd/flock- Proxy/Orchestrator: Routes requests to child OpenCode instances
- Instance Management: Spawns/manages OpenCode processes, tracks state in SQLite
- Real-time Events: SSE pipeline from OpenCode -> Manager -> Browser
- Database: SQLite (
modernc.org/sqlite) for instance/session metadata - Frontend: Vanilla JS with TailwindCSS
- Go 1.22+
- SQLite (pure Go)
- TailwindCSS
- Server-Sent Events (SSE)