GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ehonis/totem: Self-hosted personal assistant: a Node bridge, MCP gateway and React dashboard for tasks, calendar, goals, journal and fitness, driven by Claude Code, Codex or OpenCode

BranchesTags
Open more actions menu

Latest commit

 

History

76 Commits
76 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
ai-usage
ai-usage
 
 
ai
ai
 
 
apple
apple
 
 
auth
auth
 
 
away
away
 
 
brain.example
brain.example
 
 
browser
browser
 
 
camera
camera
 
 
chat
chat
 
 
cliproxy
cliproxy
 
 
connections
connections
 
 
desktop
desktop
 
 
dev
dev
 
 
docs
docs
 
 
drive
drive
 
 
examples
examples
 
 
fixtures/mcp-gateway
fixtures/mcp-gateway
 
 
fleet
fleet
 
 
gmail
gmail
 
 
goals
goals
 
 
google
google
 
 
habits
habits
 
 
http
http
 
 
jobs
jobs
 
 
journal
journal
 
 
linkedin
linkedin
 
 
lists
lists
 
 
logs
logs
 
 
mobile
mobile
 
 
notify
notify
 
 
providers
providers
 
 
recs
recs
 
 
screen
screen
 
 
scripts
scripts
 
 
search
search
 
 
skills
skills
 
 
sources
sources
 
 
strava
strava
 
 
terminal
terminal
 
 
todos
todos
 
 
totems
totems
 
 
web
web
 
 
whoop
whoop
 
 
.dockerignore
.dockerignore
 
 
.easignore
.easignore
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SETUP.md
SETUP.md
 
 
TOTEM-OVERVIEW.md
TOTEM-OVERVIEW.md
 
 
assistant-bridge.service
assistant-bridge.service
 
 
bridge.mjs
bridge.mjs
 
 
docker-compose.yml
docker-compose.yml
 
 
favicon.svg
favicon.svg
 
 
mcp-gateway.mjs
mcp-gateway.mjs
 
 
mcp-gateway.test.mjs
mcp-gateway.test.mjs
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pnpm-workspace.yaml
pnpm-workspace.yaml
 
 

Repository files navigation

Totem

Totem is a self-hosted personal assistant that runs on a machine you own. You reach it from a phone shortcut or a web dashboard; it answers and acts through whichever coding-agent CLI you already use (Codex, Claude Code, OpenCode or Cursor), against your own data: a local task board, goals, habits, lists, a Markdown notes repo, Google Calendar, GitHub, and fitness services. It exists because the agent CLIs already know how to use tools and MCP servers, so a small bridge around them, plus a dashboard that reads data directly, makes a useful assistant without a separate API bill or a hosted service in the middle.

This is a personal project, built and run by one person for one user. It is published as a working example rather than a product: it has one owner account, assumes a private network or an auth proxy in front of it, and its defaults reflect that. Formerly named Vesper.

Features

  • Two front doors. POST /ask and /ask-text for an iOS Shortcut (plain-text replies, a receipt and a summary as push notifications, and a link to finish in the web chat when a request needs follow-up), and a React dashboard with streaming chat.
  • Agent-agnostic AI. Codex, Claude Code, OpenCode and Cursor CLIs, picked per install or per chat, with several accounts per CLI (e.g. personal and work), per-account environments, live quota meters, and a fallback provider when one hits its usage limit.
  • Productivity data, stored locally. Tasks in SQLite (recurrence, archive, recycle bin, a link to a GitHub issue with its live state, and a read-only view of a shared Google Sheet of action items), weekly/monthly/quarterly/yearly goals with metrics fed from Strava, habits with contribution grids and cadences, simple lists, and Google Calendar.
  • Voice journal. Record in the dashboard; whisper.cpp transcribes on the box; an agent digests the entry into the notes repo, habits and the inbox after a grace period.
  • Confirm-only inbox. Anything inferred (journal action items, meeting notes, commands or agent runs proposed by an MCP client) is staged for a yes/no, with the finished work prepared before the question is asked.
  • MCP both ways. An outbound gateway (mcp-gateway.mjs) puts every configured MCP server plus Totem's own tasks, goals, lists and Strava tools behind one entry that is synced into each CLI's config. An inbound MCP server (POST /mcp) lets ChatGPT or Claude read Totem and stage work, authenticated by bearer token or a Cloudflare Access JWT, with time-boxed approval sessions.
  • Totems. Standing agents on a schedule: describe one and the builder designs it and recommends the cheapest model that can do the job. Each remembers what it has seen, has its own chat, and notifies you only when something matters. The built-in jobs (morning brief, digests, ingests, syncs; all off until enabled) are totems too.
  • Integrations. WHOOP (sleep and recovery) and Strava (activities, gear, mileage), both read from the Bushido training app, which holds the grants; Plaud (voice recorder, via its MCP server), GitHub (issue states and the Dev tab, through gh), Google Calendar, web push notifications, Open-Meteo weather and Google News headlines, and a plug-in-the-camera photo sync to Apple Photos. On a Mac: your Messages (read and send from the dashboard), Contacts and Photos library (searchable by what is in the picture), with agents limited to drafting messages for you to send.
  • Operational pieces. An action log of every mutation, approval leases, an optional web terminal (off by default), an optional Screen tab that shows and controls the machine's desktop over VNC with a screenshot tool for agents (off by default), a usage view of what the assistant is actually used for, and a Fleet tab (off by default) that shows each of your machines' uptime, resources, processes, power draw and estimated electricity cost.

Architecture

iPhone Shortcut / mobile app            Web dashboard (React, served by the bridge)
        │  POST /ask, Bearer secret             │  session cookie
        ▼                                       ▼
bridge.mjs  (one Node process, port 8787)
  ├── /api/*      direct reads and writes: tasks, goals, habits, calendar, notes, usage
  ├── /mcp        inbound MCP server for ChatGPT / Claude
  ├── scheduler   jobs and notification queue (one 30-second tick)
  └── runAgent()  spawns the selected agent CLI per request
         codex exec / claude -p / opencode run / cursor-agent -p
           └── mcp-gateway.mjs → Totem tools + every MCP server in the manifest
Path What it is
bridge.mjs HTTP server, API, prompts, agent backends, scheduler, OAuth clients
auth/ Owner sign-in: setup token, scrypt password, signed session cookies
ai/ Settings stored outside .env (AI keys, integration credentials)
todos/, goals/, lists/ Local task, goal and list services over SQLite, with HTTP and MCP surfaces
journal/, notify/, jobs/, skills/, logs/ Voice journal, notifications and web push, job store, prompt skills, action log and approvals
strava/, whoop/, camera/, apple/, ai-usage/, providers/, terminal/ Integrations (including Messages, Contacts and Photos on a Mac), quota polling, CLI account registry, web terminal
mcp-gateway.mjs The stdio MCP aggregator each agent CLI registers
web/ Vite + React + TypeScript + Tailwind dashboard (PWA)
brain.example/ Starter layout for the private notes repo kept at data/brain
examples/ Optional personalised skills, never installed automatically

Stack: Node 22 (built-in node:sqlite, no framework), three runtime npm dependencies (ws, ffmpeg-static, optional node-pty), React 18, Vite, Tailwind 4, Vitest. Runtime state lives in data/ and OAuth tokens in secrets/; both are gitignored.

There are no screenshots in the repository yet.

Quick start

Requirements: Linux or macOS, Node.js 22.16 or newer, pnpm, and git. For AI, at least one of the Codex, Claude Code, OpenCode or Cursor CLIs on the same machine, signed in or given an API key.

  1. Clone and install with pnpm. corepack enable pnpm once gives you the version the repo pins (on Node 25 and later, which no longer bundle Corepack, run npm i -g corepack first). pnpm install also installs the dashboard's dependencies.

    git clone https://github.com/ehonis/Totem.git
    cd Totem
    pnpm install
  2. Start it. The first start builds the dashboard, then runs the server on port 8787. No .env is needed.

    pnpm start
  3. The server prints a one-time setup link:

    Totem has no owner account yet. Open this link to create it:
    
      http://localhost:8787/setup?token=...
    

    Open it, choose the owner password, and you are signed in. The link works once and only until the process restarts; a restart prints a new one.

  4. Open Settings -> Providers. It lists the agent CLIs it can find, whether each is installed and signed in, and the command that fixes it (for example codex login). Pick the default, optionally paste an API key (ANTHROPIC_API_KEY, OPENAI_API_KEY or CURSOR_API_KEY), choose a model, and press Test. Until an AI is set up, chat and the phone shortcut say so and everything else works.

  5. Optional, in any order:

    • Settings -> General sets the public URL and Settings -> Tasks the read-only task sheet. WHOOP and Strava are connected in Bushido; set BUSHIDO_URL and BUSHIDO_API_TOKEN to read them.
    • Settings -> Connections: add MCP servers (Google Calendar, Plaud, GitHub, ...) and sync them into each CLI.
    • Totems: switch on the built-in jobs you want, or build your own. A fresh install has none running except local task housekeeping.
    • The iOS Shortcut, Tailscale and the other out-of-browser steps: SETUP.md.

Anything set in .env (see .env.example) overrides what was saved in the dashboard.

Docker

git clone https://github.com/ehonis/Totem.git && cd Totem
docker compose up -d --build
docker compose logs totem | grep setup

The image includes the Claude Code and Codex CLIs. Sign one in with docker compose exec -it totem claude (or codex login), or paste an API key in Settings -> Providers. Data, OAuth tokens and CLI logins are kept in named volumes. The web terminal is not available in the image.

Running it permanently

assistant-bridge.service is a systemd user unit template; copy it, set your checkout path and node location, and enable it. Details, auth modes, reverse proxies and backups are in docs/self-hosting.md.

Security model

Totem runs agent CLIs with shell access on your machine, so whoever can use it can do what you can do there. The dashboard needs the owner password (or an auth proxy, with TOTEM_AUTH=proxy); machine callers use BRIDGE_SECRET as a bearer token. Keep it on a private network such as Tailscale, or behind an auth proxy, rather than exposing the port directly.

Documentation

  • SETUP.md: phone shortcut, Tailscale, MCP servers, scheduled jobs
  • docs/self-hosting.md: sign-in, settings vs. env, Docker, systemd, data layout
  • AGENTS.md: the operating manual (architecture, ops, gotchas, roadmap)
  • desktop/README.md: the macOS and Windows app (own window, global hotkeys, tray)
  • TOTEM-OVERVIEW.md: a design write-up of why it is built this way
  • docs/: one file per subsystem (providers, jobs, skills, journal, notifications, Strava, WHOOP, task issue links, terminal, inbound MCP server, camera sync, shortcuts)

License

MIT. See LICENSE.

About

Self-hosted personal assistant: a Node bridge, MCP gateway and React dashboard for tasks, calendar, goals, journal and fitness, driven by Claude Code, Codex or OpenCode

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.