English | 简体中文
AI-Native SecOps Platform
Flocks is an AI-driven SecOps platform built with Python, featuring multi-agent collaboration, HTTP API server, and modern terminal user interface designed to help you with your SecOps tasks.
- 🤖 AI Agent System - Multi-agent collaboration (build, plan, general)
- 🔧 Rich Tool Set - bash, file operations, code search, LSP integration, etc.
- 🌐 HTTP API Server - High-performance API service based on FastAPI
- 💬 Session Management - Session and context management
- 🎯 Multiple Model Support - Support for Anthropic, OpenAI, Google and other AI models
- 📝 LSP Integration - Language Server Protocol support
- 🔌 MCP Support - Model Context Protocol
- 🖼️ WebUI - Browser-based web user interface
- 🎨 TUI Interface - Modern terminal user interface
Flocks supports two deployment methods:
Option 1: PC Installation(recommended)Option 2: Docker Installation
Choose one method below.
uvNode.jswithnpm22.+agent-browserbunfor TUI installation (Optional)
By default, the project install scripts will try to ensure the requirements above are available automatically when possible.
If automatic npm installation fails during setup, please install npm manually and use version 22.+ or newer.
Users in mainland China: If GitHub or
raw.githubusercontent.comis slow or unreachable, clone from a Gitee mirror and follow the Source install instructions below.
The recommended host installation entrypoint is the GitHub bootstrap installer. It downloads the repository source archive to a temporary directory, copies it into a persistent local install directory, then installs backend and WebUI dependencies and exposes the flocks CLI on your PATH.
# One-click install backend + WebUI
curl -fsSL https://raw.githubusercontent.com/AgentFlocks/Flocks/main/install.sh | bash
# Optional: also install TUI dependencies
curl -fsSL https://raw.githubusercontent.com/AgentFlocks/Flocks/main/install.sh | bash -s -- --with-tui# One-click install backend + WebUI
iwr -useb https://raw.githubusercontent.com/AgentFlocks/Flocks/main/install.ps1 | iex
# Optional: also install TUI dependencies
& ([scriptblock]::Create((iwr -useb https://raw.githubusercontent.com/AgentFlocks/Flocks/main/install.ps1))) -InstallTuiIf you prefer to inspect the repository before installation, clone it locally and run the installer from the workspace:
git clone https://github.com/AgentFlocks/Flocks.git flocks
# Alternative for users in China (Gitee mirror)
# git clone https://gitee.com/flocks/flocks.git flocks
cd flocksMacos/Linux
./scripts/install.sh # Macos/LinuxWindows powershell
powershell -ep Bypass -File .\scripts\install.ps1 # Windows powershellUse the flocks CLI to manage the backend and WebUI together in daemon mode.
The start command builds the WebUI before launch by default; use flocks restart when you want an explicit full restart.
flocks start
flocks status
flocks logs
flocks restart
flocks stopThe default service URLs are:
- Backend API:
http://127.0.0.1:8000 - WebUI:
http://127.0.0.1:5173
Flocks cli useage: flocks --help
Note
docker 模式下暂时 agent-browser headed 模式不可用
docker pull ghcr.io/agentflocks/flocks:latestRun the container and mount the host user's ~/.flocks directory into the container:
# macOS / Linux
docker run -d \
--name flocks \
-p 8000:8000 \
-p 5173:5173 \
--shm-size 2gb \
-v "${HOME}/.flocks:/home/flocks/.flocks" \
ghcr.io/agentflocks/flocks:latest# Windows PowerShell
docker run -d `
--name flocks `
-p 8000:8000 `
-p 5173:5173 `
--shm-size 2gb `
-v "${env:USERPROFILE}\.flocks:/home/flocks/.flocks" `
ghcr.io/agentflocks/flocks:latestEXPOSE in the image only documents container ports. You still need -p 8000:8000 -p 5173:5173 to access the service from the host browser.
On machines in mainland China, you can configure uv to use a local PyPI mirror for faster package downloads.
Create ~/.config/uv/uv.toml with:
[[index]]
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
[[index]]
url = "https://pypi.org/simple"
default = trueScan the QR code with WeChat to join our official discussion group.
Apache License 2.0

