Quick Start
Project Positioning
ClawGo is an agent runtime written in Go. The codebase is centered around:
pkg/agent: main loop, task planning, context building, routing, and recoverypkg/tools: built-in tool systempkg/api: Gateway HTTP API and WebUI APIpkg/channels: Telegram, Discord, Feishu, DingTalk, WhatsApp, QQ, and MaixCampkg/cron: scheduled taskspkg/nodes: remote nodes and relay/router logicwebui: React + Vite operations console
Installation
Option 1: Install Script
bash
curl -fsSL https://raw.githubusercontent.com/YspCoder/clawgo/main/install.sh | bashThe script:
- detects OS and architecture
- downloads the latest release binary
- downloads
webui.tar.gz - installs the WebUI into
~/.clawgo/workspace/webui - optionally migrates from OpenClaw
Option 2: Build From Source
bash
git clone https://github.com/YspCoder/clawgo.git
cd clawgo
make buildThe default binary output is build/clawgo-<platform>-<arch>.
Onboarding
Run this once:
bash
clawgo onboardIt will:
- create
~/.clawgo/config.json - generate
gateway.token - copy the default workspace template into
~/.clawgo/workspace
Configure A Provider
The most important part is configuring providers and agents.defaults.proxy.
Interactive setup:
bash
clawgo providerA minimal working example usually looks like:
json
{
"agents": {
"defaults": {
"proxy": "proxy"
}
},
"providers": {
"proxy": {
"api_key": "YOUR_KEY",
"api_base": "http://localhost:8080/v1",
"models": ["glm-4.7"],
"auth": "bearer",
"timeout_sec": 90
}
}
}Startup Modes
Interactive Agent
bash
clawgo agentDirect one-shot message:
bash
clawgo agent -m "Hello"Gateway Mode
bash
clawgo gateway runThis starts the fuller runtime surface:
- Gateway HTTP server
- WebUI API
- Channel manager
- Cron service
- Heartbeat service
- Sentinel
Development Mode
bash
make devWebUI
Default URL:
text
http://<host>:<port>/webui?token=<gateway.token>The default port is 18790.
First Checks
After startup, run:
bash
clawgo status
clawgo config checkThose two commands give the fastest signal on:
- config availability
- workspace availability
- provider configuration
- log, heartbeat, cron, and node state