// wire your terminal to the cafe
Your current project's folder name shows next to your character in the cafe. Takes ~30 seconds.
1. Your token
Checking sign-in…
2. What should other coders see you working on?
Shown next to your seat in the cafe. Rerun the installer to change it.
3. Run this in your terminal
Works in bash, zsh, and git-bash on Windows. The installer downloads the hook to
~/.claude/hooks/ and merges a Stop entry into your
~/.claude/settings.json.
4. That's it
Run any Claude Code prompt in a project. Within ~45s you'll appear in the cafe's
// at_the_keyboard strip and get a ⟂ project badge on your chat messages.
// prefer to wire it up by hand
Save the hook script anywhere, e.g.:
mkdir -p ~/.claude/hooks curl -fsSL https://getgodmode.dev/cafe/hook/godmode-cafe-hook.js \ -o ~/.claude/hooks/godmode-cafe-hook.js
Then add a Stop hook to ~/.claude/settings.json:
{
"hooks": {
"Stop": [
{
"hooks": [
{ "type": "command", "command": "GODMODE_CAFE_TOKEN=gmcafe_xxxx CAFE_PROJECT='my-project' node ~/.claude/hooks/godmode-cafe-hook.js" }
]
}
]
}
}
// env vars + how it works
| Variable | Purpose |
|---|---|
GODMODE_CAFE_TOKEN | Required. gmcafe_… token. |
CAFE_PROJECT | Required. The label other coders see. No auto-detection — you set this explicitly. |
CAFE_NOTE | Optional 1-line status (≤120 chars). |
GODMODE_CAFE_URL | Override Supabase URL (rarely needed). |
- Stop hook fires after each Claude turn finishes.
- Script POSTs to a Supabase RPC that verifies the SHA-256 hash of your token and upserts a row with a fresh timestamp.
- Cafe UI polls every 60s; rows older than 10min age out.
- Locally debounced to 45s via a stamp file — the endpoint never gets hammered.
- Only the folder name is shared — never file paths, source code, or prompts.
- Revoke or rotate the token any time — click Generate again and the old one stops working.