Skip to content

Introduction to GoClaw

Overview

GoClaw is an AI agent gateway written in Go — a multi-tenant platform for deploying and orchestrating LLM-powered agents across multiple messaging channels and protocols.

GoClaw is a Go port of OpenClaw, completely rewritten with:

  • Enhanced security (5 defense layers, AES-256-GCM)
  • Multi-tenant PostgreSQL with per-user workspace isolation
  • Single binary ~25 MB, starts in under 1 second, runs on a $5 VPS

The gateway receives messages from channels (Telegram, Discord, etc.), routes them through the Agent Loop, calls LLM providers, executes tools, and returns results to the user.


Key Features

  • 7 channels — Telegram, Discord, Slack, Feishu/Lark, Zalo OA, Zalo Personal, WhatsApp
  • 20+ LLM providers — Anthropic (native HTTP+SSE), OpenAI, OpenRouter, Gemini, DeepSeek, Groq, Mistral, xAI, DashScope, Ollama, and more
  • Agent teams & orchestration — Shared task board, inter-agent delegation (sync/async), team mailbox
  • Tools & skills — Filesystem, exec/shell, web search, memory, browser automation, TTS, media (image/audio/video generation)
  • MCP — Model Context Protocol bridge (stdio / SSE / streamable-HTTP)
  • Scheduling & cronat, every, cron expression with lane-based concurrency
  • Security — Rate limiting, prompt injection detection, SSRF protection, RBAC (admin/operator/viewer), path traversal prevention
  • Tracing & observability — LLM call tracing with spans, prompt cache metrics, optional OpenTelemetry OTLP export
  • Extended thinking — Anthropic budget tokens, OpenAI reasoning effort, DashScope thinking budget
  • Knowledge graph — LLM extraction + traversal
  • Multi-tenant — Per-user workspace, encrypted API keys, isolated sessions

Architecture Overview

+----------------------------------------------------------+
|                        CHANNELS                           |
|  Telegram  Discord  Slack  Feishu  Zalo OA  Zalo WhatsApp|
+------------------------+---------------------------------+
                         |
+------------------------v---------------------------------+
|                       GATEWAY                             |
|         WebSocket RPC v3  +  HTTP API                     |
|         Rate Limiter  ->  Permission Engine (RBAC)        |
+------------------------+---------------------------------+
                         |
+------------------------v---------------------------------+
|                    AGENT LOOP                             |
|              Think  ->  Act  ->  Observe                  |
|    Scheduler (4 lanes: main / subagent / team / cron)     |
+-------------+---------------------------+----------------+
              |                           |
+-------------v-----------+  +-----------v---------------+
|      LLM PROVIDERS      |  |         TOOL REGISTRY     |
|  Anthropic  OpenAI ...  |  |  fs  exec  web  memory    |
|  20+ providers          |  |  teams  browser  TTS      |
+-------------------------+  +---------------------------+
                         |
+------------------------v---------------------------------+
|                     STORE LAYER                           |
|              PostgreSQL  (or SQLite for Lite)              |
|    Sessions  Agents  Memory  Skills  Traces  Teams  MCP   |
+----------------------------------------------------------+

Two Editions

FeatureLite (Desktop)Standard (Server)
DatabaseSQLite (local)PostgreSQL
AgentsUp to 5Unlimited
Teams1 team, 5 membersUnlimited
MemoryFTS5 text searchpgvector semantic
ChannelsNot supportedTelegram, Discord, Slack, Zalo, Feishu, WhatsApp
Knowledge GraphNot supportedFull
RBAC / Multi-tenantNot supportedFull
InstallationOne-line script (macOS/Windows)Docker or binary
Auto-updateGitHub ReleasesDocker / binary

Lite is suitable for personal use on a desktop computer, with no need for a separate server or database.

Standard is designed for production deployments: serving multiple users, multiple tenants, and connecting to real messaging channels.


System Requirements

Standard (Server)

ComponentRequirement
Go1.26+
PostgreSQL18+ with pgvector extension
DockerOptional — used for sandbox and quick-start
Node.jsOptional — required if using MCP server via stdio

Minimum RAM: ~35 MB (idle). Runs on a $5 VPS.

Lite (Desktop)

ComponentRequirement
macOSApple Silicon or Intel
Windows64-bit
Disk space~30 MB

No Go, PostgreSQL, or Docker required.


See Also