autonomous-ai/lampOS
About
What is it like to be alive?
AI & Machine LearningMeasured 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
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.
- At a glance: find your lamp, see what it has.
- Topics: read what the lamp senses, live.
- Services: make it speak and nod.
- Your topic: publish your own messages.
- Move and light: a move of your own, the ring's light.
- Think fast: a quick line from the lamp's chat model.
- Think slow: a task for the lamp's agent, and the brains a lamp can use.
- 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.
- Physical Skills on your lamp: list them, run one, remove one.
- Your first Physical Skill: a pep talk with a nod and a warm light, when you ask.
- Proactive Skills: they start themselves when the lamp notices something, like you arriving.
- Celebrate: say "I did it!" and it cheers, with a happy move and a bright light.
- Goodnight (proactive): you leave late at night; it dims and rests.
- 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.
- Connect: your first program.
- Topics: listen to the joints, read a kept value.
- Services: say one word, request one nod.
- Publish: your own topic, read back.
- A reflex: a nod when someone sits down.
- A move: three poses, in degrees from standing.
- Camera and microphone: frames and sound, without recording.
- Think fast: a line from the lamp's chat model.
- 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.
- Hello nod: back at your desk, a small nod and a warm glow.
- A curious look: a gesture of your own.
- Clap twice for light: two claps switch the light, in your colour.
- See you (think fast): you leave after a long sitting; it turns your way with one warm line.
- Light that listens: the room's loudness gently brightens the light.
- Stretch reminder: one nudge after a long sitting.
- Look this way: it turns toward your face.
- Replay a minute: record a minute of topics, play it back.
- A little dance: music plays, it sways in time, then listens.
- Plan my evening (think slow): its agent plans your evening; you watch it think, then hear it.
- 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.
- A Physical Skill:
lm skill push pep-talk(Part 2). - A program: save heartbeat.py, then
lm deploy heartbeat.py. Read it withlm logs heartbeat; stop it withlm stop heartbeat. - No lamp:
lm deploytolm simthe same way (programs only).
Concepts
How a lamp program fits together: body, senses, brains, topics and services.
Reference
- The Python library: every call.
- The
lmcommand: every command. - For coding agents: one page for an AI coding agent.
- Topics and services: every one, with its fields and an example.
- Any language: the bridge's wire, with a whole program in Node.
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…