百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
G

GoGogot

> DevOps
开源

轻量级自主托管的 AI 代理。Go 语言的开源替代产品 OpenClaw。

359 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

轻量级自主托管的 AI 代理。Go 语言的开源替代产品 OpenClaw。

GoGogot — Lightweight OpenClaw Written in Go

A lightweight, extensible, and secure open-source AI agent that lives on your server. It runs shell commands, edits files, browses the web, manages persistent memory, and schedules tasks — a self-hosted alternative to OpenClaw (Claude Code) in ~9,000 lines of core Go.

  • Single binary, ~15 MB, ~10 MB RAM — deploys with one docker run command
  • Your keys stay on your server — no cloud account, no telemetry, no phoning home
  • You pick the model — Anthropic, OpenAI, or any OpenRouter model
  • Extensible — clean Go interfaces (Adapter, Channel, Tool) make it trivial to add providers, transports, or custom tools

Quick Start

Prerequisites

  • Get a TELEGRAM_BOT_TOKEN by creating a new bot via @BotFather on Telegram.
  • Find your TELEGRAM_OWNER_ID (your personal Telegram user ID) using a bot like @userinfobot. This is critical for security — it ensures only you can communicate with your agent.

Docker

No git clone needed — the image is published on Docker Hub:

bash
docker run -d --restart unless-stopped \
  --name gogogot \
  -e TELEGRAM_BOT_TOKEN=... \
  -e TELEGRAM_OWNER_ID=... \
  -e GOGOGOT_PROVIDER=anthropic \
  -e ANTHROPIC_API_KEY=... \
  -e GOGOGOT_MODEL=claude-sonnet-4-6 \
  -v ./data:/data \
  -v ./work:/work \
  octagonlab/gogogot:latest

The image supports linux/amd64 and linux/arm64 and ships with a full Ubuntu environment (bash, git, Python, Node.js, ripgrep, sqlite, postgresql-client, and more).

Alternative: Docker Compose

bash
curl -O https://raw.githubusercontent.com/aspasskiy/GoGogot/main/deploy/docker-compose.yml

# Create .env with your keys
cat > .env 

Local development (without Docker)

Requires Go 1.25+:

```bash
make generate          # fetch OpenRouter model catalog
go run ./cmd/gogogot

…

go
func (a *Agent) Run(ctx context.Context, input []ContentBlock) error {
    a.messages = append(a.messages, userMessage(input))

    for {
        resp, err := a.llm.Call(ctx, a.messages, a.tools)
        if err != nil {
            return err
        }
        a.messages = append(a.messages, resp)

        if len(resp.ToolCalls) == 0 {
            break
        }

        results := a.executeTools(resp.ToolCalls)
        a.messages = append(a.messages, results)
    }
    return nil
}

Everything else — memory, scheduling, compaction, identity — is just tools the LLM can call inside this loop.

Extending

GoGogot is designed to be extended without frameworks or plugin registries:

  • Adding a new LLM backend (implement the one-method Adapter interface)
  • Adding a new transport like Discord or Slack (implement Channel + Replier — 3 + 5 methods)
  • Adding custom models by editing JSON catalogs in llm/catalog/

License

MIT

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Goagenticai-agentai-assistantautomation

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理