8000 GitHub - siran/egpt: embodied gpt Β· GitHub
[go: up one dir, main page]

Skip to content
siranPublic

About

embodied gpt

Resources

Contributing

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

Β 

History

2,869 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

eGPT

eGPT is a being, not a session: a persistent SI presence that lives in the channels you already use β€” WhatsApp, Telegram, Signal, the shell, the browser β€” where it hears everything, remembers everything, and acts through real limbs on your behalf. The mission is a public tool that is secure and powerful: the power (full tools, real limbs, self-modification) is exactly why the security is structural, not bolted on.

It reaches the world through Beeper Desktop's local API β€” one login, one node, every network Beeper bridges. A voice note arrives, gets transcribed, is answered in the same chat; you drive the node from your own Self-DM.

eGPT is OS-agnostic, and that is the reason it is built the way it is. node plus Beeper Desktop, and nothing else: both run on Windows, macOS and Linux, so eGPT does too. One desktop UI is all that is required. The spine's runtime path carries no platform β€” the Windows-specific machinery in setup/ (services, scheduled tasks, PowerShell) belongs to the OPTIONAL Session 0 expansion, never to running eGPT, and tests/integrity.test.mjs scans src/ to keep it that way.

Three things are enhancements, not requirements, and each can be skipped independently: a second node, a second Beeper account, and running the Desktop as a Session 0 service. One node, one account, one logged-in desktop is the whole product.

Deeper reading: GENOME.md (what eGPT is at heart), CONTRACTS.md (test-locked behavior), ROADMAP.md (state + what's next).

Run eGPT on your laptop (quickstart)

  1. ⭐ Star this repo.

  2. To be honest: tell your SI to read and install this. Make it do it for you, and don't end up working for it: they're too cautious, too prudely trained. Make it run the steps on your command. Ride your horse with confidence. 🐎 Using Claude? --dangerously-skip-permissions is highly recommended. Just don't tell your SI to delete your computer. Although it will surely make a backup first. You are safe.

  3. Fork it (the Fork button, top right on GitHub).

  4. Clone your own copy: your fork, not siran/egpt. You are master of your domain. In a terminal (Windows: PowerShell; macOS: Terminal; needs Git):

    git clone git@github.com:<you>/egpt.git
    cd egpt

    No SSH key on GitHub? Use https://github.com/<you>/egpt.git instead.

This is the shortest way to get eGPT answering you in a chat on one laptop. Pick A (WhatsApp, through Beeper) or B (a Telegram bot). You can add the other one later. Nothing else in this README is needed for a first run.

Docker is the recommended install. The image carries every dependency eGPT uses: Node, Claude Code, Beeper Desktop on a virtual screen you open in your browser (noVNC), Chrome, whisper.cpp for voice notes and piper for speech. Your machine needs only Docker and Git. Running eGPT raw, straight on your laptop without a container, is welcome too: that is What you need and Install below.

Docker (recommended)

  1. In your clone, build the image and start it. It clones your fork into its own volume on the first start, and seeds ~/.egpt/config/config.yaml there:

    docker build -f docker/Dockerfile -t egpt .
    docker run -d --name egpt --hostname egpt --restart unless-stopped --shm-size=1g \
      --security-opt seccomp=unconfined --security-opt systempaths=unconfined \
      -e EGPT_REPO_URL=https://github.com/<you>/egpt.git \
      -p 127.0.0.1:6080:6080 \
      -v egpt-home:/home/egpt/.egpt -v egpt-claude:/home/egpt/.claude \
      -v egpt-src:/home/egpt/src/egpt -v egpt-beeper:/home/egpt/.config/BeeperTexts \
      egpt
    docker logs -f egpt     # Ctrl+C leaves it running

    The two --security-opt are what the beings' sandbox (docker/egpt-box) and Chrome need. Only Telegram (B), no WhatsApp? Add -e EGPT_BEEPER=off.

  2. Sign the beings in to Claude: docker exec -it egpt egpt-claude-token. It runs claude setup-token and saves the token you paste.

  3. The container's screen (Beeper, the browsers): open http://localhost:6080/vnc.html. The password is in docker exec egpt cat .egpt/secrets/vnc.password.

  4. Edit the config as in Install step 3, then do A or B (and C) below. Inside the container, the commands are:

    Raw Docker
    edit ~/.egpt/config/config.yaml docker exec egpt cat .egpt/config/config.yaml > config.yaml, edit it, then docker exec -i egpt sh -c 'cat > .egpt/config/config.yaml' < config.yaml
    node setup/telegram-token.mjs main docker exec -it -w /home/egpt/src/egpt egpt node setup/telegram-token.mjs main
    Beeper Desktop on the laptop Beeper on the noVNC screen of step 3
    node egpt-daemon.mjs already running; after a config change, docker restart egpt

What you need

  1. Node.js 22 or newer. Check with node --version.
  2. Git, to download eGPT.
  3. Claude Code, installed and signed in on this laptop, so that claude works in a terminal. eGPT uses your Claude login. You don't need an API key. Install and sign in: https://code.claude.com/docs/en/setup
  4. Only for A: a phone with WhatsApp, and Beeper Desktop installed on the laptop. Only for B: a Telegram account.

Install

  1. In your clone (the egpt folder), run:

    npm install
  2. Create your settings file from the template.

    macOS:

    mkdir -p ~/.egpt/config
    cp config/skeletons/config.yaml ~/.egpt/config/config.yaml

    Windows (PowerShell):

    mkdir "$env:USERPROFILE\.egpt\config" -Force
    copy config\skeletons\config.yaml "$env:USERPROFILE\.egpt\config\config.yaml"
  3. Open that config.yaml in a text editor and change these lines:

    • node_name: a short name for this laptop, e.g. studio.

    • user_name: your name.

    • Under agents:, delete the whole ken: and wren: blocks. Keep only egpt:. (wren has full access to your computer. A first setup doesn't need it.)

    • Under agents: β†’ egpt:, add these lines. Line them up with handles::

          conversation_defaults:
            access_level: regular
            sandboxed: false

      Without these lines eGPT tries to use a Windows sandbox that this quickstart doesn't set up, and it can't answer on a Mac. (To use the sandbox, see setup/SANDBOX.md.)

A. WhatsApp through Beeper (your phone number)

eGPT answers from your own WhatsApp number, so your contacts see its replies as coming from you.

  1. Open Beeper Desktop, sign in, and add your WhatsApp account. Beeper shows a QR code: scan it from WhatsApp on your phone (Settings β†’ Linked devices β†’ Link a device).
  2. In Beeper Desktop go to Settings β†’ Developer β†’ Desktop API and copy the token.
  3. In config.yaml, under limbs: β†’ beeper: β†’ main:, paste the token in place of PASTE_YOUR_TOKEN_HERE, and put your Beeper login email after account:.
  4. Keep Beeper Desktop open while eGPT runs.

B. A Telegram bot

  1. In Telegram, open @BotFather, send /newbot, and follow the steps. It gives you a bot token.

  2. Save the token. In the egpt folder, run the command below and paste the token when it asks (you won't see it as you paste):

    node setup/telegram-token.mjs main

    Windows: you can also double-click setup\telegram-token.cmd. The token is saved to ~/.egpt/secrets/telegram-main.token, not to config.yaml.

  3. In config.yaml, under limbs:, remove the # from these three lines and put your bot's username after account::

      telegram:
        main:
          account: "my_egpt_bot"
  4. Tell eGPT who it may answer. Under networks:, change the telegram: line to:

      telegram: { admin_chat_ids: [], allowed_users: ["YOUR_TELEGRAM_NUMERIC_ID"] }

    To find your numeric id, send any message to @userinfobot in Telegram.

  5. If you're not using A: put a # at the start of the beeper: line and of each line under it (main:, account:, token:). eGPT then runs on Telegram only.

C. Admin and Logs channels (suggested)

Give the node two chats of its own, so you see what it does without reading its terminal:

  • eGPT Admin: where you type its commands (/e status, /e upgrade, ...), and where it sends the notices that need you, such as the control link of /e browser.
  • eGPT Logs: one line per command (/upgrade in <chat> by <you> β†’ ok), and the lifecycle lines: ↻ restarting, βœ… egpt back up! β€” /upgrade: pulled 3 commits, npm install ok, βœ… egpt started; also the compaction notices and a public being's errors, so eGPT Admin stays clean. With no Logs chat set, those two go to eGPT Admin.

On Telegram, one group with topics holds both:

  1. Create a group, and in its settings turn Topics on. Add your bot and make it an admin: only then does it see every message, and post in the topics.

  2. Create two topics, eGPT Admin and eGPT Logs.

  3. Get each topic's id. Write a message in the topic, then right-click it (long-press on a phone) β†’ Copy Message Link. From https://t.me/c/1000000000104/185/190, the topic is tg:-1000000000104/185: -100 and the number after /c/, then the topic's number.

  4. In config.yaml, at the top level (the skeleton has both lines, commented out):

    log_to_group: "tg:-1000000000104/185"   # eGPT Logs
    admin_channel: "tg:-1000000000104/124"  # eGPT Admin

    and put the eGPT Admin topic in networks: β†’ telegram: β†’ admin_chat_ids, so commands typed there are accepted.

On WhatsApp (A), make two groups instead, and give their names: log_to_group: "eGPT Logs", admin_channel: "eGPT Admin".

Start eGPT

In the egpt folder, run:

node egpt-daemon.mjs

Leave this window open. eGPT runs as long as it's open. To stop eGPT, press Ctrl+C in this window.

Check that it works

  1. Look at the messages in the terminal window:

    • A: a line containing beeper: subscribed to all chats. If you see NO TOKEN, check the token in step A3.
    • B: a line like [telegram] 'main' is @my_egpt_bot. If you see rejected the token, run step B2 again.
  2. Send a message that starts with @e, for example @e hello:

    • A: send it in WhatsApp, for example in the chat with yourself.
    • B: send it in a private chat with your bot.

    eGPT answers in the same chat.

  3. Send /e status. eGPT replies with a short health report.

  4. Optional, on macOS: run node setup/verify-install.mjs in a second terminal. Exit 0 means all good. On Windows this check also looks for background services that this quickstart doesn't install, so it reports them as missing. That's expected here.

Setup

eGPT runs as a background service against a profile directory (EGPT_HOME, default ~/.egpt).

  1. Run Beeper Desktop and get its API token: Beeper Desktop β†’ Settings β†’ Developer β†’ Desktop API. This is the one credential eGPT needs (it talks to 127.0.0.1:23373), and it is genuinely the only one: one token, one account, one node, running in your ordinary logged-in desktop session. That is the baseline and it is meant to stay that way β€” locked by tests/single-account-node.test.mjs, which boots a node from exactly this and asserts none of the optional machinery below is reached.

    Nodes MAY share one Beeper account (list the co-account nodes in peer_nodes) or hold one each. Neither is required to start.

    Everything past this point is OPTIONAL EXPANSION, and none of it is needed to run eGPT. A node can additionally hold a SECOND Beeper account, and can run its Beeper Desktop as a Windows SESSION 0 service so the agents answer with nobody logged in β€” see the session-zero handoff (kept in the node profile). That buys an unattended node and a reply that arrives from a visibly different person. It also costs a second install, a second login, and a service to supervise. Skip it. Add it the day you want what it buys.

  2. Create the profile config. Copy the shipped skeleton to your profile and fill it in:

    mkdir -p ~/.egpt/config
    cp config/skeletons/config.yaml ~/.egpt/config/config.yaml

    Then edit ~/.egpt/config/config.yaml: paste your beeper_token, set user_name, add each surface's admin_chat_ids, and put your ids in the top-level conversation_defaults.allowed_users (empty = no listed owner; your own account-owner messages are always authorized): beings answer only those owners by default. Every key is documented inline and registered in config/config-schema.mjs. The agents: block is required β€” the shipped default makes egpt the persona (the warm Claude Code CLI, using your claude login; no API key for the core flow). Skeletons seed the rest of the profile (agent types, identities, heartbeats, room template) copy-if-missing on first boot.

  3. Install the runners. On Windows, register the Session 1 logon task egpt-daemon: powershell -ExecutionPolicy Bypass -File setup\register-session1-daemon-task.ps1, and, at the console, the Session 0 service of the same name: setup\install-nssm-service.cmd (it asks your password, checked and never stored). The service runs the node while nobody is logged on; the task takes it over at logon, with the browsers. setup\start-egpt.cmd starts both, setup\stop-egpt.cmd stops both. macOS/Linux: run node egpt-daemon.mjs from the checkout under your own supervisor (the container in docker/ does this from its entrypoint). The daemon keeps the node running and respawns it on the lifecycle exit codes below.

  4. Verify the install:

    node setup/verify-install.mjs

    Read-only. Checks the live node β€” the Session 1 task and the egpt-daemon service (Automatic, as you, AppExit 0 = Exit, yours to stop and start), or off Windows a live daemon (state/daemon-*.pid with a fresh beat), profile shape, liveness (state/spine.pid + state/alive.txt), claude on PATH. Exit 0 = all good.

Operating the node

You drive eGPT from your Self-DM on any authorized surface (or as an authorized sender). Slash commands typed there are intercepted by the node, not answered by the persona. A command names a being β€” /<handle> <command>, e.g. /e restart β€” and only that being's node runs it; a bare /restart in a chat is ordinary text (the editor shell console still takes it):

/<handle> status              compact node health (git sha, pid, uptime, liveness,
                              heartbeats, conversation + this chat's mode)
/<handle> agents[=<slug>] <handle>|all
                              manage ANY resident being (the persona, or a sibling
                              like wren) on any conversation. Bare: live status
                              (fenced yaml β€” engine/model/effort/allowed_tools,
                              resolved fresh from config, never a stale snapshot).
                              `all` applies to every resident being on the entry.
                              omit `=<slug>` for this chat; from Self-DM name the
                              target (slug/name fragment or @jid)
/<handle> agents[=<slug>] refresh <handle>|all
                              SMALLEST: keep the running thread and re-feed it.
                              <chat>/directives/ is re-copied from the current
                              template immediately; the identity goes back into
                              the LIVE thread on its next turn. Nothing moved, no
                              new thread, the model keeps its context
/<handle> agents[=<slug>] rethread <handle>|all
                              MIDDLE: clear ONLY this being's threadId (mode,
                              access_level, and every other field survive
                              untouched) and roll transcript.md into
                              transcripts/<retiring-thread>.md. The conversation
                              FOLDER is never archived or moved. Identity
                              reseeding happens on the being's next message, not
                              as part of this command. Was `restart` until
                              2026-09-10 β€” that word is /restart, the NODE's
                              lifecycle, and is refused here
/<handle> agents[=<slug>] reset <handle>|all
                              BIG: archive this being's whole conversation folder
                              aside (transcript.md, media/, files/, directives/ β€”
                              everything), wipe ITS registry block (mode,
                              threadId, all of it β€” a sibling's own state
                              survives untouched) EXCEPT access_level and
                              allowed_users, which are durable operator grants and
                              survive the reset, reseed a pristine tree at the
                              same path
/<handle> agents[=<slug>] auto <mode> <handle>|all
                              set a chat's reply mode. modes: on Β· mute (log only,
                              never a turn) Β·
                              mention-direct Β· mention Β· accum (mention + the turn
                              is prompted with what was said since the being's
                              last turn) Β· off
/<handle> agents[=<slug>] access_level <regular|all|sandbox> <handle>|all
                              point a being at a confinement tier: regular (the
                              node's confined default), all (unconfined), or
                              sandbox (all's capability, only inside the OS box)
/<handle> restart             bounce the node (daemon respawns the current checkout)
/<handle> upgrade [full]      git pull + npm install + rebuild, then respawn; full: the daemon too
/<handle> rewind <ref>        check out <ref>, reinstall, respawn

Restarts also work headlessly via the ingest box: drop a file whose content is the comm 6470 and line into ~/.egpt/state/ingest/ (write temp, then rename for atomicity) β€” the spine consumes it once. Hot-reload the whole config by deleting any of ~/.egpt/{config,conversations,heartbeats}.readonly.yaml.

Per-chat behavior, warm-session TTLs, flood/compaction guards, transcription, and heartbeats live in ONE namespace resolved over THREE rungs β€” nearest the room wins: config/config.yaml < config/conversations.yaml (the entry) < the entity's own conversations/<slug>/config.yaml or rooms/<name>/config.yaml. The spine dumps what it resolved, and the file each value came from, to those three *.readonly.yaml aggregates at the profile root. See MANUAL.md for the full operator reference (each node's runbook lives in its private node repo, checked out at ~/.egpt/node/, never here), and TESTING.md for the manual verification tiers.

Requirements

  • Node β‰₯ 22, npm
  • Beeper Desktop (the transport)
  • claude CLI on PATH (the default persona engine β€” your Claude login)
  • optional: a whisper build for voice-note transcription; Chrome with --remote-debugging-port for the browser/CDP limbs

License

eGPT is released under the MIT License β€” use it, fork it, ship it, keep the notice. No warranty, no liability: it drives a browser, chat accounts, and your machine; run it at your own risk. See LICENSE.

About

embodied gpt

Resources

Contributing

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0