#148148th of 171 in Learning and cookbooks

claw0

Ten-section Python tutorial for building an agent gateway from scratch

Stars
3.5k
License
no license
Last commit
Jun 2026
Language
Python
Stars, last 30 weeks+1,085
2 May 2026: 2,372 stars9 May 2026: 2,451 stars16 May 2026: 2,517 stars23 May 2026: 2,600 stars30 May 2026: 2,696 stars6 Jun 2026: 2,768 stars13 Jun 2026: 2,837 stars20 Jun 2026: 2,895 stars27 Jun 2026: 2,943 stars4 Jul 2026: 2,994 stars11 Jul 2026: 3,050 stars18 Jul 2026: 3,090 stars25 Jul 2026: 3,120 stars1 Aug 2026: 3,152 stars8 Aug 2026: 3,190 stars15 Aug 2026: 3,219 stars22 Aug 2026: 3,247 stars29 Aug 2026: 3,274 stars5 Sept 2026: 3,289 stars12 Sept 2026: 3,308 stars19 Sept 2026: 3,333 stars26 Sept 2026: 3,353 stars3 Oct 2026: 3,361 stars10 Oct 2026: 3,375 stars17 Oct 2026: 3,390 stars24 Oct 2026: 3,404 stars31 Oct 2026: 3,418 stars7 Nov 2026: 3,427 stars14 Nov 2026: 3,434 stars21 Nov 2026: 3,449 stars28 Nov 2026: 3,457 stars

2,372 on 2 May 20263,457 on 28 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

claw0 is a teaching repository of ten runnable Python files, about 7,000 lines in total, that build an AI agent gateway step by step. It covers the agent loop, tool use, JSONL sessions, Telegram and Feishu channels, routing, memory, cron, delivery queues, retries and concurrency lanes. Code and docs are provided in English, Chinese and Japanese, and the sections are meant to prepare readers for the OpenClaw codebase.

Who it is for: Engineers learning how to build a chat-connected agent gateway in Python

Strengths

  • Each section is one runnable Python file adding a single concept
  • Covers production topics: write-ahead delivery queue, auth rotation, overflow compaction, named lanes
  • Code and docs co-located in English, Chinese and Japanese
  • Small dependency set: anthropic, websockets, croniter, python-telegram-bot, httpx

Weaknesses

  • Teaching code, not a deployable gateway or installable package
  • Examples target the Anthropic API; other providers only via compatible endpoints
  • Only Telegram and Feishu channels are implemented
  • No release published and no Docker setup

What it needs

  • no GPU
  • Needs Python 3.11+, Anthropic API key, Telegram bot (s04), Feishu (s04)
  • Models: Anthropic Claude (or compatible provider)

Also in Learning and cookbooks

See all 171
Also in Learning and cookbooks
RankProjectScore
#146second-brain-ai-assistant-courseSix-module course building an agentic RAG assistant over Notion notes3.2k starsMIT26 out of 100
#147llama-cookbookOfficial Meta notebooks for running, fine-tuning and building apps with Llama models18.6k starsMITno commits in a year25 out of 100
#149llm-agents-ecosystem-handbookHandbook of agent-stack guides, templates and a multi-provider LLM adapter564 starsMIT25 out of 100
#150introtodeeplearningJupyter notebook labs for MIT's Introduction to Deep Learning course8.9k starsMIT23 out of 100
#151machine-learning-specialization-courseraSolved notebooks for Andrew Ng's Coursera Machine Learning Specialization8.2k stars+102 (+1.3%) in 30 daysMIT23 out of 100