Skip to content

beam-cloud/capsule-computer-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Capsule Computer

A tiny “agent with a computer in your pocket.” (like a mini openclaw)

This is not a chatbot. It is a per-user sandboxed runtime with memory, files, and channel-native messaging.

Links:

What It Shows

  • Web chat and a named Telegram channel hit the same @app.message() handler.
  • /computer/users/<user>/habits.json and summary.md are normal files in a mounted filesystem.
  • A user-scoped events collection remembers messages for linked web/Telegram identities.
  • app.home(...), @app.home_body(), and @app.home_suggestions() define the home surface.

Setup

capsule fs create capsule-computer
capsule channel create pocket-telegram --type telegram -c bot_token=123:ABC

Telegram starts as a channel-scoped identity. To share web and Telegram user-scoped memory, create a link code from the web app and send /link CODE to the bot.

Run

uv sync
capsule serve main.py:app --channel pocket-telegram

Deploy

capsule deploy main.py:app

Try It

Create a tiny Python habit tracker for me.
I ran 3 miles.
What did I text you earlier?
Show my files.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors