Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
G

GoGogot

> DevOps
Open source

Lightweight self-hosted AI agent. Open-source OpenClaw alternative in Go.

359 stars0 likes1 views
WebsiteGitHub

About

Lightweight self-hosted AI agent. Open-source OpenClaw alternative in Go.

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 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Goagenticai-agentai-assistantautomation

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryDevOps
PricingOpen source

> Related tools

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