goclaw

nextlevelbuilder活跃维护

用 Go 重写的 AI Agent 编排网关,支持多租户隔离、五层安全防护和原生并发,适合大规模部署 Agent 团队。

GoClaw - GoClaw is OpenClaw rebuilt in Go — with multi-tenant isolation, 5-layer security, and native concurrency. Deploy AI agent teams at scale without compromising on safety.

v3.15.0-beta.243发布于 2026-11-09 07:21 UTC3,711star +3 / 7 天1,085fork同步于 2026-11-10 11:40 UTC

怎么上手

由 README 提炼,执行前请确认
git clone -b main https://github.com/nextlevelbuilder/goclaw.git && cd goclaw
make build
./goclaw onboard
source .env.local && ./goclaw
硬件要求按 README 说明

README 未说明显存或 GPU 要求;标准版需 Go 1.26+、PostgreSQL 18(含 pgvector)与 Docker(可选),约 25 MB 静态二进制,README 称可在 5 美元 VPS 上运行。桌面 Lite 版为本地原生应用,使用 SQLite,无需 Docker 和 PostgreSQL。

有 Docker 镜像
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

用 Go 重写的多租户 AI Agent 网关,单二进制部署,让团队安全地规模化运行智能体

用 Go 重写的 AI Agent 编排网关,支持多租户隔离、五层安全防护和原生并发,适合大规模部署 Agent 团队。

核心能力

  • 8 阶段 Agent 流水线,从上下文到总结全程可插拔
  • 三层记忆(工作/情景/语义)按 L0/L1/L2 渐进加载
  • 多租户 PostgreSQL 隔离,API Key 用 AES-256-GCM 加密
  • 内置 5 层权限、限流、提示注入检测与 SSRF 防护
  • 支持 20+ LLM 提供商与 7 个消息渠道接入

容易踩的坑

默认分支是 dev(活跃开发中),要稳定版必须加 -b main 克隆;Docker 启动时若 5432 端口被占用需在 .env 改 POSTGRES_PORT(如 5433);需在 .env 至少配置一个 GOCLAW_*_API_KEY,否则要交互式引导。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v3.15.0-beta.243
  1. v3.15.0-beta.243GoClaw v3.15.0-beta.243pre-release最新正式版2026-11-09 · 2026-11-09 07:21 UTC

    v3.15.0-beta.243

    Automated beta release from 04db3f8b6485ba1b1ae9c7dedbf2f15cb522e4bb.

    Changes

    • fix(providers): keep Codex streamed tool calls in model order (#1669)
  2. v3.15.0-beta.242GoClaw v3.15.0-beta.242pre-release2026-11-09 · 2026-11-09 04:20 UTC
    查看更新说明

    v3.15.0-beta.242

    Automated beta release from 5790d346c03c0d5f25639f7aefe05a0ec0d77387.

    Changes

    • fix(providers): prefer MiniMax Flash for new configurations (#1634)
  3. v3.15.0-beta.241GoClaw v3.15.0-beta.241pre-release2026-11-09 · 2026-11-09 01:21 UTC
    查看更新说明

    v3.15.0-beta.241

    Automated beta release from b176367f1803adb6b2cdc8b599680633d6daebf1.

    Changes

    • fix(providers): paginate Gemini model listing (#1668)
  4. v3.15.0-beta.240GoClaw v3.15.0-beta.240pre-release2026-11-08 · 2026-11-08 04:19 UTC
    查看更新说明

    v3.15.0-beta.240

    Automated beta release from fc2b180903ceedff9b2ae7d35324166c8de8a922.

    Changes

    • fix(providers): read input and cache usage from Anthropic message_delta (#1667)
  5. v3.15.0-beta.239GoClaw v3.15.0-beta.239pre-release2026-11-08 · 2026-11-08 01:18 UTC
    查看更新说明

    v3.15.0-beta.239

    Automated beta release from 90cb517e61c5cb6160a7c07eade70aa9564385b6.

    Changes

    • fix(spawn): isolate list, wait, and cancel by origin session (#1666)

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    🌐 Languages: 🇻🇳 Tiếng Việt · 🇨🇳 简体中文 · 🇯🇵 日本語 · 🇰🇷 한국어 · 🇵🇭 Tagalog · 🇪🇸 Español · 🇧🇷 Português · 🇮🇹 Italiano · 🇩🇪 Deutsch · 🇫🇷 Français · 🇸🇦 العربية · 🇮🇳 हिन्दी · 🇷🇺 Русский · 🇧🇩 বাংলা · 🇮🇱 עברית · 🇵🇱 Polski · 🇨🇿 Čeština · 🇳🇱 Nederlands · 🇹🇷 Türkçe · 🇺🇦 Українська · 🇮🇩 Bahasa Indonesia · 🇹🇭 ไทย · 🇵🇰 اردو · 🇷🇴 Română · 🇸🇪 Svenska · 🇬🇷 Ελληνικά · 🇭🇺 Magyar · 🇫🇮 Suomi · 🇩🇰 Dansk · 🇳🇴 Norsk

    Core Features

    • 8-Stage Agent Pipeline — context → history → prompt → think → act → observe → memory → summarize. Pluggable stages, always-on execution
    • 4-Mode Prompt System — Full / Task / Minimal / None with section gating, cache boundary optimization, and per-session mode resolution
    • 3-Tier Memory — Working (conversation) → Episodic (session summaries) → Semantic (knowledge graph). Progressive loading L0/L1/L2
    • Knowledge Vault — Document registry with [[wikilinks]], hybrid search (FTS + pgvector), filesystem sync
    • Agent Teams & Orchestration — Shared task boards, inter-agent delegation (sync/async), 3 orchestration modes (auto/explicit/manual)
    • Self-Evolution — Metrics → suggestions → auto-adapt with guardrails. Agents refine their own communication style
    • Multi-Tenant PostgreSQL — Per-user workspaces, per-user context files, encrypted API keys (AES-256-GCM), RBAC, isolated sessions
    • 20+ LLM Providers — Anthropic (native HTTP+SSE with prompt caching), OpenAI, OpenRouter, Requesty, Groq, DeepSeek, Gemini, Mistral, xAI, MiniMax, DashScope, Claude CLI, Codex, ACP, and any OpenAI-compatible endpoint
    • 7 Messaging Channels — Telegram, Discord, Slack, Zalo OA, Zalo Personal, Feishu/Lark, WhatsApp
    • Production Security — 5-layer permission system, rate limiting, prompt injection detection, SSRF protection, AES-256-GCM encryption
    • Single Binary — ~25 MB static Go binary, no Node.js runtime, <1s startup, runs on a $5 VPS
    • Observability — Built-in LLM call tracing with spans and prompt cache metrics, optional OpenTelemetry OTLP export

    Desktop Edition (GoClaw Lite)

    A native desktop app for local AI agents — no Docker, no PostgreSQL, no infrastructure.

    macOS:

    curl -fsSL https://raw.githubusercontent.com/nextlevelbuilder/goclaw/main/scripts/install-lite.sh | bash
    

    Windows (PowerShell):

    irm https://raw.githubusercontent.com/nextlevelbuilder/goclaw/main/scripts/install-lite.ps1 | iex
    

    What's Included

    • Single native app (Wails v2 + React), ~30 MB
    • SQLite database (zero setup)
    • Chat with agents (streaming, tools, media, file attachments)
    • Agent management (max 5), provider config, MCP servers, skills, cron
    • Team tasks with Kanban board and real-time updates
    • Auto-update from GitHub Releases

    Lite vs Standard

    FeatureLite (Desktop)Standard (Server)
    AgentsMax 5Unlimited
    TeamsMax 1 (5 members)Unlimited
    DatabaseSQLite (local)PostgreSQL
    MemoryFTS5 text searchpgvector semantic
    Channels—Telegram, Discord, Slack, Zalo, Feishu, WhatsApp
    Knowledge Graph—Full
    RBAC / Multi-tenant—Full
    Auto-updateGitHub ReleasesDocker / binary

    Building from Source

    # Prerequisites: Go 1.26+, pnpm, Wails CLI (go install github.com/wailsapp/wails/v2/cmd/wails@latest)
    make desktop-build                    # Build .app (macOS) or .exe (Windows)
    make desktop-dmg VERSION=0.1.0        # Create .dmg installer (macOS only)
    make desktop-dev                      # Dev mode with hot reload
    

    Desktop Releases

    Desktop uses independent versioning with lite-v* tags:

    git tag lite-v0.1.0 && git push origin lite-v0.1.0
    # → GitHub Actions builds macOS (.dmg + .tar.gz) + Windows (.zip)
    # → Creates GitHub Release with all assets
    

    Architecture

    Quick Start

    Prerequisites: Go 1.26+, PostgreSQL 18 with pgvector, Docker (optional)

    From Source

    git clone -b main https://github.com/nextlevelbuilder/goclaw.git && cd goclaw
    make build
    ./goclaw onboard        # Interactive setup wizard
    source .env.local && ./goclaw
    

    Note: The default branch is dev (active development). Use -b main to clone the stable release branch.

    With Docker

    # Generate .env with auto-generated secrets
    chmod +x prepare-env.sh && ./prepare-env.sh
    
    # Add at least one GOCLAW_*_API_KEY to .env, then:
    make up
    
    # If Postgres fails to start ("port 5432 already allocated"), set another host
    # port in .env, e.g. POSTGRES_PORT=5433 (see .env.example).
    
    # Web Dashboard at http://localhost:18790 (built-in)
    # Health check: curl http://localhost:18790/health
    
    # Optional: separate nginx for custom SSL/reverse proxy
    # make up WITH_WEB_NGINX=1  → Dashboard at http://localhost:3000
    

    make up creates a Docker network, embeds the correct version from git tags, builds and starts all services, and runs database migrations automatically.

    Common commands:

    make up                # Start all services (build + migrate)
    make down              # Stop all services
    make logs              # Tail logs (goclaw service)
    make reset             # Wipe volumes and rebuild from scratch
    

    Operator CLI:

    The main goclaw binary can also inspect local or remote gateways:

    goclaw traces list --status error
    goclaw traces get <trace-id> -o json
    goclaw --server https://goclaw.example.com --token "$GOCLAW_GATEWAY_TOKEN" traces follow --session <session-key>
    

    Optional services — enable with WITH_* flags:

    FlagServiceWhat it does
    WITH_BROWSER=1Headless ChromeEnables browser tool for web scraping, screenshots, automation
    WITH_OTEL=1JaegerOpenTelemetry tracing UI for debugging LLM calls and latency
    WITH_SANDBOX=1Docker sandboxIsolated container for running untrusted code from agents
    WITH_TAILSCALE=1TailscaleExpose gateway over Tailscale private network
    WITH_REDIS=1RedisRedis-backed caching layer

    Flags can be combined and work with all commands:

    # Start with browser automation and tracing
    make up WITH_BROWSER=1 WITH_OTEL=1
    
    # Stop everything including optional services
    make down WITH_BROWSER=1 WITH_OTEL=1
    

    When GOCLAW_*_API_KEY environment variables are set, the gateway auto-onboards without interactive prompts — detects provider, runs migrations, and seeds default data.

    Docker image variants:

    ImageDescription
    latestBackend + embedded web UI + Python (recommended)
    latest-baseBackend API-only, no web UI, no runtimes, no media probes (read_video and read_audio refuse without ffprobe; read_document falls back to the 1000-page ceiling without pdfinfo)
    latest-fullAll runtimes + skill dependencies pre-installed
    latest-otelLatest + OpenTelemetry tracing
    goclaw-webStandalone nginx + React SPA (for custom reverse proxy)

    For custom builds (Tailscale, Redis): docker build --build-arg ENABLE_TSNET=true ... See the Deployment Guide for details.

    Easypanel

    Easypanel is a self-hosted Docker deployment platform, and GoClaw has a one-click deployment template there: https://easypanel.io/templates/goclaw. It deploys the full stack (Postgres with pgvector, the GoClaw backend, headless Chrome for browser automation, and the web UI) - you'll still need to set your GOCLAW_*_API_KEY after deploying.

    Updating

    Docker

    docker compose pull && docker compose up -d
    

    Binary (with embedded web UI)

    goclaw update --apply    # Downloads, verifies SHA256, swaps binary, restarts
    

    Web Dashboard

    Open About dialog → click Update Now (admin only). The update includes both backend and web dashboard when using the default latest image.

    Multi-Agent Orchestration

    Each agent runs with its own identity, tools, LLM provider, and context files. Agent Links define outbound, inbound, or bidirectional permission edges. Delegation can run synchronously or asynchronously and exchanges files through an isolated delegation workspace; validated outputs are published back under the caller's .delegations/<delegation-id>/ directory.

    Details: Agent Teams docs

    Knowledge Vault

    Document registry with [[wikilinks]] for bidirectional linking. Hybrid search combines full-text (BM25) and semantic (pgvector) for precise retrieval. Filesystem sync keeps vault in sync with on-disk files.

    Self-Evolution

    Agents improve themselves through a 3-stage guardrailed pipeline: metrics collection → suggestion analysis → auto-adaptation. Can refine communication style and domain expertise (CAPABILITIES.md) — but never change identity, name, or core purpose.

    Provider Adapters

    20+ LLM providers unified through a single adapter interface. Capability-based routing, encrypted API keys (AES-256-GCM), extended thinking support per-provider, and prompt caching for Anthropic + OpenAI.

    Event-Driven Architecture

    Typed domain events power the consolidation pipeline — session summaries, knowledge graph extraction, and dreaming promotion all run asynchronously via worker pools with dedup and retry.

    Built-in Tools

    30+ tools across 8 categories:

    CategoryToolsDescription
    Filesystemread_file, write_file, edit_file, list_files, search, globFile operations with virtual FS routing
    Runtimeexec, browserShell commands (approval workflow) + browser automation
    Webweb_search, web_fetchSearch (Brave, DuckDuckGo) + content extraction
    Memorymemory_search, memory_get, knowledge_graph_search3-tier memory + KG traversal
    Mediacreate_image, create_audio, create_video, read_*, ttsGeneration + analysis (multi-provider)
    Skillsskill_search, use_skill, skill_manageBM25 + semantic hybrid search
    Teamsteam_tasks, spawn, delegate, messageTask board + orchestration + messaging
    Automationcron, heartbeat, sessions_*Scheduling + session management

    Full tool reference at docs.goclaw.sh

    Webhook API

    Trigger agents or send channel messages from external systems without the gateway token.

    # Bearer auth — sync LLM call
    curl -X POST https://example.com/v1/webhooks/llm \
      -H "Authorization: Bearer wh_..." \
      -H "Content-Type: application/json" \
      -d '{"input":"Summarize today metrics","mode":"sync"}'
    
    # HMAC auth — sign with hmac_signing_key from create response
    TS=$(date +%s); BODY='{"input":"hi","mode":"sync"}'
    SIG=$(echo -n "${TS}.${BODY}" | openssl dgst -sha256 -mac HMAC \
          -macopt "hexkey:${WEBHOOK_HMAC_KEY}" | awk '{print $2}')
    curl -X POST https://example.com/v1/webhooks/llm \
      -H "Content-Type: application/json" \
      -H "X-Webhook-Id: ${WEBHOOK_ID}" \
      -H "X-GoClaw-Signature: t=${TS},v1=${SIG}" \
      -d "$BODY"
    

    See docs/webhooks.md for the full reference: auth, async callbacks, retry schedule, HMAC examples, channel matrix.

    Documentation

    Full documentation at docs.goclaw.sh — or browse the source in goclaw-docs/

    SectionTopics
    Getting StartedInstallation, Quick Start, Configuration, Web Dashboard Tour
    Core ConceptsAgent Loop, Sessions, Tools, Memory, Multi-Tenancy
    AgentsCreating Agents, Context Files, Personality, Sharing & Access
    ProvidersAnthropic, OpenAI, OpenRouter, Gemini, DeepSeek, +15 more
    ChannelsTelegram, Discord, Slack, Feishu, Zalo, WhatsApp, WebSocket
    Agent TeamsTeams, Task Board, Messaging, Delegation & Handoff
    AdvancedCustom Tools, MCP, Skills, Cron, Sandbox, Hooks, RBAC
    DeploymentDocker Compose, Database, Security, Observability, Tailscale
    ReferenceCLI Commands, REST API, WebSocket Protocol, Environment Variables

    Testing

    go test ./...                                    # Unit tests
    go test -v ./tests/integration/ -timeout 120s    # Integration tests (requires running gateway)
    

    Project Status

    See CHANGELOG.md for detailed feature status including what's been tested in production and what's still in progress.

    Acknowledgments

    GoClaw was originally inspired by the OpenClaw project architecture.

    License

    CC BY-NC 4.0 — Creative Commons Attribution-NonCommercial 4.0 International

    Star History