Skip to content
Projects

About

What is it like to be alive?

AI & Machine Learning

How these counts are measured

Measured star growth

in 24h
+1
in 7 days
+6
in 15 days
+17
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

The lamp, moving and lighting up

Build for your lamp

Make your lamp sense, move, light up, talk and think, with or without code.

Set up (5 minutes)

1. Install (Python 3.10 or newer). If python3 --version is older, as on a stock Mac, run brew install [email protected] and use python3.12 below.

python3 -m venv --clear .venv && . .venv/bin/activate
pip install https://github.com/autonomous-ai/lampOS/releases/download/lampos-kit-0.1.51/lampos_kit-0.1.51-py3-none-any.whl

2. Turn it on: in the app, open your lamp → </> → Connect SDK.

3. Find your lamp by the name on its label:

export LAMP=lamp-1a2b.local
lm find lamp-1a2b

It prints:

lamp-1a2b.local  192.168.1.42

Not found on a Mac? Allow your terminal in System Settings > Privacy & Security > Local Network, then reopen it.

No lamp? In a second terminal, in the same folder, run . .venv/bin/activate && lm sim. Paste the export LAMP=… line it prints into your first terminal. lm mirror shows it in 3D. Parts 1 and 3 work on it, except Part 3's step 7. Part 2 needs a lamp.

How your lamp works

Your lamp is a set of programs: lamp-eyes sees, lamp-ears hears, lamp-voice talks, lamp-body moves, lamp-tasks thinks. Yours is one more. They talk two ways:

  TOPICS: one program tells, any program listens

     lamp-eyes ──▶ room/presence ──┬──▶ lamp-voice
                                   └──▶ your program

  SERVICES: one program asks, another does it and answers

     your program ──── voice/say "Hi" ────▶ lamp-voice   (speaks "Hi")
     your program ◀──────── "spoken" ────── lamp-voice

How you build for it

  YOUR LAPTOP                                 YOUR LAMP
 ┌────────────────────────────┐    Wi-Fi     ┌────────────────────────────┐
 │  your program  (Python)    │              │           ┌─▶ lamp-eyes    │
 │  lm            (terminal)  │◀────────────▶│  bridge ──┼─▶ lamp-voice   │
 │  Mirror        (browser)   │              │           └─▶ lamp-body …  │
 └────────────────────────────┘              └────────────────────────────┘
               │                                            ▲
               └──────────────── lm deploy ─────────────────┘
                     your program then runs on the lamp, no laptop needed
  • Any language: Python has the library; others talk to the bridge directly (WebSocket, JSON).
  • Moves and gestures: the body plays them and says when each is done.
  • Light: borrow the ring for a while, then give it back.
  • Think fast: a quick line from the lamp's chat model, in its character.
  • Think slow: a task for the lamp's agent (OpenClaw or Hermes); by voice, also Claude Code, Codex or OpenCode.

More in Concepts.

Part 1: CLI

No code: the lm command, about 5 minutes a step.

  1. At a glance: find your lamp, see what it has.
  2. Topics: read what the lamp senses, live.
  3. Services: make it speak and nod.
  4. Your topic: publish your own messages.
  5. Move and light: a move of your own, the ring's light.
  6. Think fast: a quick line from the lamp's chat model.
  7. Think slow: a task for the lamp's agent, and the brains a lamp can use.
  8. Mirror: watch the lamp live in your browser.

Part 2: Physical Skills

Most agents' skills are digital. Your lamp's Physical Skills move, light up and speak in the room: two small files, no code. Needs a real lamp.

  1. Physical Skills on your lamp: list them, run one, remove one.
  2. Your first Physical Skill: a pep talk with a nod and a warm light, when you ask.
  3. Proactive Skills: they start themselves when the lamp notices something, like you arriving.
  4. Celebrate: say "I did it!" and it cheers, with a happy move and a bright light.
  5. Goodnight (proactive): you leave late at night; it dims and rests.
  6. Plan my evening (think slow): its agent plans your evening while the light breathes.

Part 3: Code your lamp

Each step does in Python what its Part 1 twin did. Other languages talk to the bridge directly.

  1. Connect: your first program.
  2. Topics: listen to the joints, read a kept value.
  3. Services: say one word, request one nod.
  4. Publish: your own topic, read back.
  5. A reflex: a nod when someone sits down.
  6. A move: three poses, in degrees from standing.
  7. Camera and microphone: frames and sound, without recording.
  8. Think fast: a line from the lamp's chat model.
  9. Think slow: a task for the lamp's agent, followed to its answer.

Part 4: Build full programs

Complete programs, simple to advanced, in showcase/ and examples/. Stand the lamp at 100% in the app first. 5, 7 and 9 need a lamp; on lm sim, play the room yourself.

  1. Hello nod: back at your desk, a small nod and a warm glow.
  2. A curious look: a gesture of your own.
  3. Clap twice for light: two claps switch the light, in your colour.
  4. See you (think fast): you leave after a long sitting; it turns your way with one warm line.
  5. Light that listens: the room's loudness gently brightens the light.
  6. Stretch reminder: one nudge after a long sitting.
  7. Look this way: it turns toward your face.
  8. Replay a minute: record a minute of topics, play it back.
  9. A little dance: music plays, it sways in time, then listens.
  10. Plan my evening (think slow): its agent plans your evening; you watch it think, then hear it.
  11. Focus buddy (runs on the lamp all day): a quiet pomodoro of stretch, break and pride.

Looking for an idea? 20 things to build, from a no-code Magic 8-ball to two lamps that call each other.

Deploy on your lamp

It runs on the lamp, no laptop needed.

  1. A Physical Skill: lm skill push pep-talk (Part 2).
  2. A program: save heartbeat.py, then lm deploy heartbeat.py. Read it with lm logs heartbeat; stop it with lm stop heartbeat.
  3. No lamp: lm deploy to lm sim the same way (programs only).

Concepts

How a lamp program fits together: body, senses, brains, topics and services.

Reference

About this repository

lampOS, the OS every Autonomous lamp ships, is in lampOS/; this guide lives in lampOS/dev/. The other top-level folders are V1, the earlier OS, kept for reference; V1's home is the main branch. The overview this page replaced is here.

Explore related projects

Loading…