ClawGo: High-Performance AI Agent (Linux Server Only)
ClawGo is a high-performance AI assistant tailored for Linux servers. Leveraging the concurrency advantages and binary distribution of the Go language, it provides full agent capabilities with minimal resource overhead.
🚀 Key Advantages
- ⚡ Native Performance: Optimized specifically for Linux server environments, with no dependency on Node.js or Python.
- 🏗️ Production-Ready: Single binary deployment, perfectly integrates with service management tools like systemd.
- 🔌 Mandatory Upstream Proxy: Centralized management of model quotas and authentication via CLIProxyAPI.
- 🧩 Powerful Skill Extension: Built-in productivity tools like
coding-agent,github, andcontext7.
🏁 Quick Start
1. Initialize
clawgo onboard
When running clawgo gateway, a yes/no prompt asks whether to grant root privileges.
If yes, the command is re-executed via sudo and a high-permission shell policy is enabled (with rm -rf / still hard-blocked).
2. Configure CLIProxyAPI ClawGo requires CLIProxyAPI as the model access layer.
clawgo login
3. Start Running
# Interactive mode
clawgo agent
# Gateway mode (supports Telegram, Discord, etc.)
clawgo gateway
# Gateway service management
clawgo gateway start
clawgo gateway restart
clawgo gateway stop
⚙️ Config Management & Hot Reload
ClawGo can update config.json from CLI and trigger hot reload for a running gateway:
# Set config value (supports enable -> enabled alias)
clawgo config set channels.telegram.enable true
# Read config value
clawgo config get channels.telegram.enabled
# Validate config
clawgo config check
# Trigger hot reload manually (sends SIGHUP to gateway)
clawgo config reload
Global custom config path:
clawgo --config /path/to/config.json status
Or via environment variable:
export CLAWGO_CONFIG=/path/to/config.json
config set now uses atomic write, and if gateway is running but hot reload fails, it rolls back to backup automatically.
Slash commands are also supported in chat channels:
/help
/stop
/status
/config get channels.telegram.enabled
/config set channels.telegram.enabled true
/reload
Message scheduling policy (per session_key):
- Same session runs in strict FIFO order; later messages are queued.
/stopimmediately cancels the current response, then processing continues with the next queued message.- Different sessions can run concurrently.
🧾 Logging Pipeline
File logging is enabled by default with automatic rotation and retention cleanup (3 days by default):
"logging": {
"enabled": true,
"dir": "~/.clawgo/logs",
"filename": "clawgo.log",
"max_size_mb": 20,
"retention_days": 3
}
Structured logging keys are now unified across channels and gateway:
channelchat_idsender_idpreviewerrormessage_content_lengthassistant_content_lengthuser_response_content_lengthfetched_content_lengthoutput_content_lengthtranscript_length
Constants are centralized in pkg/logger/fields.go.
🛡️ Sentinel & Risk Protection
Sentinel periodically checks critical runtime resources (config, memory, log directories), with optional auto-heal and notify:
"sentinel": {
"enabled": true,
"interval_sec": 60,
"auto_heal": true,
"notify_channel": "",
"notify_chat_id": ""
}
Shell risk gate is enabled by default. Destructive commands are blocked unless explicitly forced:
"tools": {
"shell": {
"risk": {
"enabled": true,
"allow_destructive": false,
"require_dry_run": true,
"require_force_flag": true
}
}
}
🤖 Multi-Agent Orchestration (Pipeline)
Task protocol is standardized with: role + goal + depends_on + shared_state.
Available tools:
pipeline_create: create a task graphpipeline_status: inspect pipeline statuspipeline_state_set: write shared statepipeline_dispatch: dispatch currently runnable tasksspawn: supportspipeline_id/task_id/role
Channel commands:
/pipeline list
/pipeline status <pipeline_id>
/pipeline ready <pipeline_id>
🧠 Memory & Context Indexing
memory_search: structured indexing (inverted index + cache)- Memory layers:
profile / project / procedures / recent notes - Automatically Compacted Context: when a session gets long, it auto-summarizes and trims history
"memory": {
"layered": true,
"recent_days": 3,
"layers": {
"profile": true,
"project": true,
"procedures": true
}
}
Automatic context compaction config:
"agents": {
"defaults": {
"context_compaction": {
"enabled": true,
"trigger_messages": 60,
"keep_recent_messages": 20,
"max_summary_chars": 6000,
"max_transcript_chars": 20000
}
}
}
Hot-update examples:
clawgo config set agents.defaults.context_compaction.enabled true
clawgo config set agents.defaults.context_compaction.trigger_messages 80
clawgo config set agents.defaults.context_compaction.keep_recent_messages 24
🗺️ Repo-Map & Atomic Skills
repo_map: build/query repository map before deep file readsskill_exec: executeskills/<name>/scripts/*atomically to keep gateway slim
📦 Migration & Skills
ClawGo now integrates all core extended capabilities from the original OpenClaw:
- coding-agent: Autonomous programming using Codex/Claude Code.
- github: Deep integration with
ghCLI for managing issues, PRs, and CI status. - context7: Intelligent context search for codebases and documentation.
🛠️ Installation (Linux Only)
Build from Source
cd clawgo
make build
make install
📜 License
MIT License. 🦐