Personal AI agent · self-hosted · MIT
The whole agentis one for loop.
An AI agent that lives on your server and answers only you. It runs commands, edits files, searches the web, remembers, and schedules its own jobs — on whichever model you pick. Talk to it in your terminal or in Telegram, or plug in any other interface — Discord, Slack, email — and let the agent write the plugin itself.
Read all 11,478 lines- Lines of Go
- 11,478*
- Tools
- 37
- RAM at idle
- ~10 MB
- Per session
- ~$0.01
In practice
One sentence in. A file back.
It has a shell, a filesystem, four web tools and a cron scheduler. Anything you could do on that box over SSH, you can ask for in one sentence instead.
you
grab the sales csv from this link, total it by region, send me a pdf
- 01
Downloading it first — I want to see the columns before I assume anything.
web_downloadurl=…/q3-sales.csv dest=/work/q3-sales.csv840ms
saved 2.4 MB → /work/q3-sales.csv
- 02
bashhead -3 /work/q3-sales.csv11ms
order_id,date,region,sku,qty,revenue 88301,2026-07-01,EMEA,…
- 03
Six columns, one row per order. pandas can group this in a few lines.
write_filepath=/work/report.py6ms
wrote 34 lines
- 04
bashpython3 /work/report.py2310ms
WEST 1.82M +18.1% EMEA 0.94M +0.3% APAC 0.61M -4.7% wrote /work/q3-by-region.pdf — 4 pages
- 05
send_filepath=/work/q3-by-region.pdf390ms
delivered to chat
- 06
Q3 by region, attached. West is up 18% on Q2, EMEA is flat, APAC is the only region down.
no tool calls — break
Seven more, one line each
- every morning at 9, send me the 5 biggest AI stories, two sentences each
- here are 12 screenshots — merge them into one pdf and send it back
- check what Linear, Height and Shortcut charge per seat, put it in a table
- check disk and memory hourly, ping me if anything goes over 80%
- pull every email and phone number off this page into a csv
- every friday at 6pm, summarise this week's commits and send the changelog
- connect yourself to discord — the token is in DISCORD_BOT_TOKEN
Interfaces
Plug in any interface.
The terminal is built in and Telegram ships as a plugin. Discord, Slack, email or a web chat is a plugin you add — or one the agent writes for itself, with no rebuild. A plugin is a folder in /data/skills: a channel.json and a small program that only moves messages.
{
"command": ["python3", "bridge.py"],
"requires_env": ["TELEGRAM_BOT_TOKEN"],
"owner_env": "TELEGRAM_OWNER_ID",
"format": "telegram_html",
"max_message_len": 4000,
"can_edit": true,
"buttons": true
}- bridge.py
- SKILL.md
The plugin
- connects to the platform
- passes your messages in and the replies out
The core
- drops every message that is not from you
- draws the live status, the plan and the answer the same way everywhere
- splits long messages, renders buttons, runs /new, /stop, /history
- restarts a plugin that exits
- Ask it to connect itself.
- Say “connect yourself to Discord”. It follows the bundled
add-channelskill, writes the plugin, and starts it withchannel_restart— no rebuild. The one thing you do is put the bot token and your user ID in the container’s environment (docker run -e …); it never asks for secrets in the chat. - Several at once.
- Start a job in the terminal and get its scheduled results in Telegram. Every plugin that is running gets your alerts and cron results, and every one of them looks and behaves the same, because the core draws them all.
- Upgrading changes nothing.
- The old Telegram
docker runwithTELEGRAM_BOT_TOKENandTELEGRAM_OWNER_IDworks unchanged. Telegram just moved out of the Go code into a plugin in/data/skills/telegram— Python, standard library only — that you, or the agent, can read and patch.
internal/core/agent
Everything else is just a tool call.
Agent.Run calls the model, runs the tool calls it asked for, feeds the results back, and repeats until it stops asking. Memory, scheduling and identity are not subsystems — they are tools it calls from inside that loop.
func (a *Agent) Run(ctx, in RunInput) error {
msgs := append(in.Messages, userTurn(in.Blocks))
for {
resp, err := a.llm.Call(ctx, msgs, a.tools)
if err != nil {
return err
}
msgs = append(msgs, resp)
if len(resp.ToolCalls) == 0 {
break // it stopped asking
}
results := a.executeTools(ctx, resp.ToolCalls)
msgs = append(msgs, results)
}
return nil
}bashread_filewrite_fileedit_filelist_filesfile_searchsystem_info
web_searchweb_fetchweb_requestweb_download
memory_listmemory_readmemory_writememory_delete
skill_listskill_readskill_createskill_updateskill_delete
soul_readsoul_writeuser_readuser_write
schedule_addschedule_listschedule_pauseschedule_remove
send_messagesend_fileask_userreport_statusrecall
channel_listchannel_restartchannel_logs
task_plan
And all of it lands in a folder you mounted.
Conversations, memory, skills and the two identity files are plain files in GOGOGOT_DATA_DIR. Every one of them is a file you can open, no account is holding your history, and there is nothing to export — you already have it.
$ tree ./data
- soul.md
- user.md
- memory/
- deploys.md
- skills/
- weekly-changelog/SKILL.md
- telegram/
- episodes/
- 2026-08-26/
- schedules.json
Pick a brain
Three env vars decide the brain.
Set GOGOGOT_PROVIDER, GOGOGOT_MODEL and the matching API key, restart the container. You pay your model provider and whoever rents you the box — there are no seats, and there is no GoGogot account.
~$0.01
a session on DeepSeek V4 Flash, at roughly 50K tokens in and 10K out. Frontier models stay well under a dollar.
| Model | Context | Per session | Bench | Notes |
|---|---|---|---|---|
| qwen/qwen3.7-max | 1M | ~$0.12 | 92.5% | Top bench score |
| claude-opus-4-8 | 1M | ~$0.50 | 90.5% | Best reasoning |
| nvidia/nemotron-3-ultra-550b-a55b | 262K | ~$0.05 | 89.9% | Open-weights |
| xiaomi/mimo-v2.5 | 1M | ~$0.04 | 89.7% | Near-top score, multimodal |
| x-ai/grok-build-0.1 | 256K | ~$0.07 | 88.9% | Trained for agentic coding |
| gpt-5.6-luna | 1M | ~$0.02 | 88.7% | Top-10 score, OpenAI direct |
| qwen/qwen3.6-flash | 1M | ~$0.02 | 88.1% | Fast, near-top score |
| deepseek/deepseek-v4-flash | 1M | ~$0.01 | 81.7% | Best cost / quality |
| claude-sonnet-5-5 | 1M | ~$0.20 | — | GoGogot default |
For scale
Same job. 9 dependencies, not 800+.
Five measurements against the two obvious alternatives. The bars are linear, so their length and the number beside them always agree — which is why ours are slivers.
Lines of code
- GoGogot
- 11.5K
- OpenClaw
- 430K
- Nanobot
- 4K
Dependencies
- GoGogot
- 9
- OpenClaw
- 800+
- Nanobot
- 30+
Install size
- GoGogot
- 206 MB
- OpenClaw
- 1 GB
- Nanobot
- 150 MB
RAM at idle
- GoGogot
- 10 MB
- OpenClaw
- 450 MB
- Nanobot
- 100 MB
Minimum host
- GoGogot
- anything with Linux
- OpenClaw
- 2 GB RAM, 2 CPU
- Nanobot
- 512 MB RAM
What it isn't
Where it will let you down.
You are about to give a language model a shell on a box you care about. Here is the part of the pitch nobody puts on a landing page.
It opens no inbound ports.
No listener, no webhook, no EXPOSE. The Telegram plugin long-polls, the terminal is stdin, and the model is an API call. Everything is outbound — unless you ask it to write a plugin that listens.
Now the rest of it
- It has a real shell.
- The
bashtool runs actual commands as root inside the container, and ./work is a directory on your host that you mounted into it. Docker is the only boundary. Mount read-only what you would not want rewritten, and do not run it on the host that matters. - One owner. No multi-user.
- Every plugin names one owner — for Telegram,
TELEGRAM_OWNER_ID— and the core drops every message from anyone else, whatever the plugin’s own code does. That is the whole auth model, and it is deliberate — but there is no team mode and no permissions. - Not an editor copilot.
- It works in the directory you mounted into its container, not in the repository open in your editor. There is no web UI and no editor extension — you talk to it through the terminal or a plugin.
- Telegram is a third party.
- Your messages pass through their servers. The terminal does not, but it only exists while you are attached. What Telegram buys is push notifications, file transfer both ways and a mobile app you did not have to build — and its plugin is a short Python file in
/data/skills/telegram, so you can read exactly what it sends. - A plugin is code it can rewrite.
- The agent can write a new plugin or patch the one you are talking through. A bundled plugin that crashes three times in a row right after start is put back to its stock files. One that runs but misbehaves is not caught, and plugins it wrote itself are never rolled back — so ask it to keep a backup, and test after every change.
- Recall is not a vector store.
- There are no embeddings.
recallhands the model up to 50 past-chat summaries and asks which are relevant. Good enough for a personal agent, not a knowledge base. - The model is not self-hosted.
- Everything else runs on your box; the reasoning does not. You still send prompts to Anthropic, OpenAI or OpenRouter, and that API is the one dependency you cannot remove.
- The binary is 15 MB. The image is not.
- The Go binary is ~15 MB with no runtime. The published image is ~206 MB compressed because it deliberately ships a working Ubuntu userland — python, node, ripgrep, psql, jq — so the shell tool has something to work with. Build a slim one if you would rather. And the ~10 MB at idle is the Go process: the Telegram plugin runs beside it as its own python3 process.
Run it
One container. A handful of env vars.
To try it, three values — a provider, a model and its API key — and it answers in your terminal. To leave it running on a server, add a Telegram bot token and your Telegram user ID.
linux/amd64linux/arm64no GPUruns on a $4 VPS
docker run -it --rm \
-e GOGOGOT_PROVIDER=openrouter \
-e OPENROUTER_API_KEY=<key> \
-e GOGOGOT_MODEL=deepseek/deepseek-v4-flash \
-v ./data:/data \
-v ./work:/work \
octagonlab/gogogot:latest
docker run -d --restart unless-stopped \
--name gogogot \
-e TELEGRAM_BOT_TOKEN=<token> \
-e TELEGRAM_OWNER_ID=<your-id> \
-e GOGOGOT_PROVIDER=openrouter \
-e OPENROUTER_API_KEY=<key> \
-e GOGOGOT_MODEL=deepseek/deepseek-v4-flash \
-v ./data:/data \
-v ./work:/work \
octagonlab/gogogot:latest
curl -O https://raw.githubusercontent.com/aspasskiy/GoGogot/main/deploy/docker-compose.yml
cat > .env <<'EOF'
TELEGRAM_BOT_TOKEN=...
TELEGRAM_OWNER_ID=...
GOGOGOT_PROVIDER=openrouter
OPENROUTER_API_KEY=...
GOGOGOT_MODEL=deepseek/deepseek-v4-flash
EOF
docker compose up -d
- GOGOGOT_PROVIDER
- OPENROUTER_API_KEY
- GOGOGOT_MODEL
- TELEGRAM_BOT_TOKEN
- TELEGRAM_OWNER_ID
Optional
- GOGOGOT_TRANSPORT
- BRAVE_API_KEY
- GOGOGOT_DATA_DIR
- GOGOGOT_LLM_TIMEOUT
- TZ
- DISCORD_BOT_TOKEN, …