Gasclaw

March 4, 2026 · View on GitHub

Gastown + OpenClaw + KimiGas in one container.

A single-container deployment that runs a Gastown multi-agent workspace, managed by an OpenClaw overseer bot on Telegram. All agents use Kimi K2.5 as their LLM backend through Claude Code's agentic interface.

Prerequisites

Quick Start

git clone git@github.com:gastown-publish/gasclaw.git && cd gasclaw
cp .env.example .env   # add your keys
docker compose up -d

What's Inside

ComponentRole
Gastown (gt)Multi-agent workspace — Mayor, Crew, Daemon
OpenClawOverseer — Telegram bot, monitoring, compliance
KimiGasLRU key rotation with rate-limit cooldown
AIStmux-based AI session manager
DoltVersion-controlled SQL for agent state
Beads (bd)Git-backed issue tracking
Google Chrome 2026-03-03 14 37 52

How It Works

┌──────────────── Docker Container ────────────────┐
│  OpenClaw Gateway (Telegram) ← human             │
│  Gastown HQ — Mayor + Crew (Claude Code / Kimi)  │
│  Dolt SQL — agent state    KimiGas — key pools   │
│  /project ← your repo (volume mount)             │
└──────────────────────────────────────────────────┘

Agents run claude CLI with ANTHROPIC_BASE_URL pointed at Kimi's API. Permission bypass is via Claude config file — no --dangerously-skip-permissions flag.

Environment Variables

VariableRequiredDescription
GASTOWN_KIMI_KEYSYesColon-separated Kimi keys for agents
OPENCLAW_KIMI_KEYYesKimi key for overseer (separate pool)
TELEGRAM_BOT_TOKENYesTelegram bot token
TELEGRAM_OWNER_IDYesTelegram user ID

Optional: GT_RIG_URL, GT_AGENT_COUNT, MONITOR_INTERVAL, ACTIVITY_DEADLINE, DOLT_PORT, GATEWAY_PORT, LOG_LEVEL — see .env.example for the full list.

Documentation

GuideTopic
ArchitectureSystem design and component interaction
Gastown IntegrationReal Gastown CLI (gt) setup
Kimi ProxyKimiGas key rotation and Claude env
OpenClaw & TelegramBot config, policies, and channels
Docker DeploymentContainer setup, volumes, networking
TroubleshootingCommon issues and fixes
Knowledge BaseFAQ and lessons learned

For AI agents: llms.txt — machine-readable project reference.

Development

python -m venv .venv && source .venv/bin/activate
make dev
make test       # 1021 unit tests — no API keys needed
make lint

Project Structure

src/gasclaw/
├── cli.py           # Typer CLI
├── config.py        # Env var config
├── bootstrap.py     # 10-step startup
├── health.py        # Health checks
├── gastown/         # gt CLI integration
├── kimigas/         # Key pool + Kimi proxy
├── openclaw/        # OpenClaw config writer
└── updater/         # Version checks
reference/           # Distilled dependency docs (for agents)
scripts/             # Validation scripts
skills/              # OpenClaw skills
tests/unit/          # 1021 unit tests

Contributing

See CONTRIBUTING.md and CLAUDE.md.

License

MIT