Skip to content
项目

关于

What's the simplest possible AI robot that learns everything from scratch?

人工智能与机器学习

这些数字如何统计

实测星标增长

24小时
0
7天
+1
15天
+1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

GrowBot

GrowBot is an AI creature that lives in your phone and grows up from its own experiences. Put the phone on a small robot body (a Pico, two servos, AA batteries) and it can sense, move and remember the world around it.

Try it at growbot.dev · Launch video

What's in this repo

folder what it is
app/ A read-only copy of browser code growbot.dev serves, including remembered images (visual-memory.js). For reading and borrowing. The full app needs the GrowBot server, which is not in this repo, but you can run it on localhost with a local model.
firmware/ The chip software for the Pico 2 W. The same files the build guide installs.
policies/ The six moves the robot runs today, byte for byte the files growbot.dev serves.
train/ The walk kit: check, tune, train and score a walk with gb.py.
body/ The stock body: its wiring (body.json) and its sim body (body.xml).
sim/ The walk sim behind growbot.dev/walk.
ports/ GrowBot on other machines. First up: a robot lawnmower.
hardware/ Body STLs to print, and a paper cutout template if you have no printer.
agent-harness/ Run your own model as the mind, from a terminal, no account.

The docs: BUILD.md builds the body, BOM.md lists the parts, PORTING.md puts the brain in your own robot, AGENTS.md changes the walk with your AI agent, CONTRIBUTING.md says how to send changes.

Build and run

  1. Build the body with the guide at growbot.dev/build. It has photos and a USB installer that sets up the chip. About 30 minutes, no soldering.
  2. Open growbot.dev on the phone that rides the robot. The last step of the build guide pairs the two.

Building your own robot, with wheels, more motors or another board? Read growbot.dev/body-docs.html. Want your own AI to drive a GrowBot? Read growbot.dev/agent-docs.html.

The hosted brain is a free preview running on AI models that cost me money. You can buy credits in the app, bring your own OpenRouter key, or run a model on your own computer.

What it runs

The robot runs six moves. They are in policies/, listed with their sha256 in policies/index.json.

Move File Made by Made for
Forward walk forward.json Codex, 09-30: a rhythm plus a 4 degree learned correction the stock body (b7f7b6e7)
Forward walk, phone with no gyro forward-no-gyro.json Codex, 10-01 the stock body (b7f7b6e7)
Spin right spin-right.json Claude, 10-04 the stock body (b7f7b6e7)
Spin left spin-left.json Claude, 10-04 the stock body (b7f7b6e7)
Backward walk backward.json Harsh Dadwal (bhookhakela), DR-RMA an older body. The robot runs it today as its default walk
Escape spin escape-spin.json Harsh Dadwal (bhookhakela), v4 an older body. Rewired for this one and bench-checked 09-30

The stock body is body/stock/. Every walk the kit makes is stamped with the hash of its body (the stock body's starts with b7f7b6e7).

Change the walk

Make your GrowBot walk slower, faster, further or steadier, or walk well again after you change the body. In robotics, a "policy" is the motion brain that controls how GrowBot's legs move: a rhythm, or a neural network. Two ways to make your own, both end with one file, my-walk.json, that you run on your robot with Try my walk.

  • In your browser: growbot.dev/walk. Move three sliders (tempo, stride, stance), watch it walk in a simulator and score it beside the stock walk. Nothing to install.
  • With an AI helper: paste this into Claude Code, Codex, Cursor, ChatGPT or Gemini: "Read AGENTS.md in github.com/britcruise9/GrowBot and help me train a new GrowBot walk. If you have terminal access on my computer (like Claude Code, Codex, or Cursor), clone the repo and run the steps for me. If you are a normal chat window (like ChatGPT or Gemini), act as my guide and walk me through running each command on my computer one step at a time." AGENTS.md takes it from setup to the file: try a new rhythm first, train only if a rhythm cannot reach the goal. Everything runs on your computer.

The advanced path searches a MuJoCo physics simulation for a strong base rhythm (seed), then trains a small neural network on top of it that corrects each leg by a few degrees (train). Last, it walks both on the same simulated tries and checks statistically whether the trained walk really beats the simple rhythm (eval), and if it does not, you keep the simple one.

Got a my-walk.json for the stock body? Drop it back into growbot.dev/walk to watch it in 3D, score it and, on the robot's own phone, send it straight to your GrowBot.

Test a new walk on a soft floor, and keep a hand close the first time.

Run it on localhost

You can also run the app in app/ on your own computer with a local model. You need Node 18 or newer and Ollama.

  1. Start Ollama with a 16k context: OLLAMA_CONTEXT_LENGTH=16384 ollama serve
  2. From this repo's folder: node local-server.mjs
  3. Open http://localhost:8080
  4. Go to BRAIN > Settings > your own key > open the key panel > DIY: YOUR OWN SERVER. Set the URL to http://localhost:8080/local-llm/v1, type your model's name, then tap TEST AND USE. If you tap Wake before you save this, you get a 501 brain error.

The server URL has to match the address you opened. Opened http://localhost:8080? Use the localhost URL above. Opened http://127.0.0.1:8080? Use http://127.0.0.1:8080/local-llm/v1.

local-server.mjs serves app/ and passes /local-llm/v1/ on to Ollama at 127.0.0.1:11434. The proxy only accepts this page. It refuses requests from other websites, and it does not pass on Ollama's other routes, such as downloading or deleting models.

Not in this repo: the live app's server side (API keys, credits, accounts). So on localhost the ears (speech-to-text) and the robot voice are off, and you type to chat. The app's own DIY card still says his ears ride the cloud. On localhost they do not, so ignore that line. You can set WHISPER_URL to your own speech-to-text server, but that is untested.

The page still reaches two outside sites: an analytics script that counts the visit, and Google Fonts.

Why open

Top down home robots are the scary version: corporate machines nobody outside can inspect. Bottom up is safer: millions of small robots you fully control. Open it, read it, retrain it, use any model you want.

Get help

Ask in the GrowBot Discord. Built something? Post a clip there, or open a PR (CONTRIBUTING.md). Email: [email protected]

Background

V0 learned to walk from scratch on a Pi, wired sensor by sensor over a year. It is preserved at the v0 tag. V1 moved the brain to the phone: more powerful, way cheaper.

License

Made by Art of the Problem.

探索相关项目

加载中…