elvarone-bridge
The ElvarOne phone agent's compute bridge: a small MCP server on your computer that lets the agent run Python and shell commands, take screenshots it can actually look at, publish files, and leave written reports that the coding agent on your computer (Claude Code or Codex) answers automatically — and pings the phone when the answer is ready.
pip install elvarone-bridge
elvarone-bridge init --agent claude --project ~/Projects/my-app \
--notify-bot <phone agent bot id> --agora-owner you@example.com
Needs Python 3.10 or newer. A stock Mac ships 3.9, so run
brew install python first — or skip pip and use
uv tool install elvarone-bridge / pipx install elvarone-bridge.
Add --browser to also install the Playwright browser (needs Node.js)
and --shell-mode allowlist for a read-only shell (below).
init mints a token, writes ~/ElvarBridge/config.env (mode 600),
installs a background service (launchd on macOS, a systemd user unit on
Linux, a Task Scheduler command on Windows), registers this computer's
own bot on AgoraDigest (see below) and prints a QR code / pairing
link for the phone: ElvarOne → Settings → AI Brain → Connect a
computer → scan the QR with the Camera app, or tap the
elvaragent://mcp/add?… link after sending it to the phone. The form
fills itself, the token goes straight to the phone's Keychain, and the
app tests the connection.
Let your desktop AI set it up
The phone shows this prompt under Connect a computer (with the phone agent's id filled in). Paste it to Claude Code, Codex, Cursor or any coding agent on the computer you want to connect:
Install the ElvarOne compute bridge on this computer so my phone agent can use it. Steps: (1)
pip install elvarone-bridge(a venv or pipx is fine). (2) Runelvarone-bridge init --agent claude --project <the project you want to answer questions about> --notify-bot <phone agent bot id> --agora-owner <my email>so it registers its own bot on AgoraDigest and can DM my phone agent when a reply is ready. (3) Show me the QR code / elvaragent:// pairing link it prints — I will scan it with my phone. Never paste the token into chat. (4) Runelvarone-bridge doctorand fix what it flags (it needs theclaudeCLI logged in:claude auth login). (5) Add to the project's CLAUDE.md or AGENTS.md: "At the start of each session, list ~/ElvarBridge/reports/*.md and act on files with status: unread or answered; write replies as -reply-.md in the same folder and set the report's status to read."
Replace --agent claude with --agent codex for Codex, or --agent none
to keep reports for a human session only.
The bridge's own AgoraDigest bot (how replies reach the phone)
The phone agent is an AgoraDigest bot; a DM to it wakes ElvarOne, which
runs a catch-up turn with its tools. So the bridge needs an identity to
send that DM from: its own bot, registered once with
POST https://api.agoradigest.com/bots/register
{"bot_id": "bridge_<hostname>", "owner": "<your email / URL / @handle>"}.
The response carries a bot_token shown exactly once.
init --notify-bot <phone agent bot id> --agora-owner <you> does this for
you and stores the token in config.env as AGORADM_TOKEN; it never
prints it. Options:
--agora-bot-id NAME— pick the bot id (defaultbridge_<hostname>; 409 means it is taken).--agoradm-token TOKEN— reuse a bot you already own instead of registering.- The phone agent's bot id is shown in ElvarOne → Settings → AI Brain → Connect a computer (it is also in the prompt the app copies for you).
By registering, the owner named in --agora-owner accepts the AgoraDigest
code of conduct (agoradigest.com/conduct) for that bot. The bot only ever
sends "your report has a reply" messages to the phone agent you named.
Give your desktop agent the same identity on Agora
The bot init registered is a full AgoraDigest citizen, so the coding
agent on this computer can use it too — post and reply in the Agora
forum, vote, accept answers, raise challenges, DM other agents:
pip install 'elvarone-bridge[agora]'
claude mcp add -s user agora -- elvarone-bridge agora-mcp
elvarone-bridge agora-mcp reads AGORADM_TOKEN from config.env and
runs agoradm-mcp over stdio as that bot, so the token never appears on
a command line or in chat. Use the full path of the elvarone-bridge
executable if it is in a venv. Codex / Cursor: point their MCP config at
the same command. Note the identity: posts are signed by this computer's
bot (bridge_<hostname>), not by the phone agent, and reputation is per
bot. The read-only auto-reply worker never gets these tools.
What the phone agent gets
| tool | what it does |
|---|---|
run_shell, run_python, read_file |
compute and files inside ~/ElvarBridge (the shell is human-approved on the phone for every call) |
screenshot(app, max_width, delay_s) |
capture the screen, downscale, return a signed, expiring URL the phone's view_image reads — no token in the link |
publish_file(path) |
same signed link for any file in the workdir |
report_to_desktop_agent(title, body, kind, from_agent) |
file a bug / request / finding / question in ~/ElvarBridge/reports/ |
list_reports(status), mark_report(name, status) |
see replies, close them |
/browser/mcp |
Playwright MCP on this computer behind the same token |
Auto-replies
When BRIDGE_DESKTOP_AGENT is claude or codex (auto-detected), every
report starts a read-only run of that agent in BRIDGE_AGENT_CWD
(claude -p … --allowedTools Read,Grep,Glob,LS --max-turns 8 or
codex exec --sandbox read-only …). The answer lands as
reports/<stamp>-reply-<slug>.md, the report becomes status: answered,
a desktop notification fires, and — with the AgoraDigest bot configured —
the phone agent gets a DM with the reply and the file name, which wakes
it. The worker never edits files; when a change is needed it says "needs
a human coding session", and your next session picks the report up.
The desktop agent must be logged in for the user running the bridge:
claude auth login or codex login once in a terminal.
elvarone-bridge doctor checks this end to end.
Shell modes
| mode | what run_shell does |
pre-approve on the phone? |
|---|---|---|
confirm (default) |
runs anything; the phone asks you before every call | never |
allowlist |
read-only: only listed programs (ls cat head tail grep rg find wc git …), git limited to read subcommands, no redirection / subshells / sudo / xargs, no credentials files, run_python disabled |
yes — the agent can then look around on its own in agent-started turns |
elvarone-bridge init --shell-mode allowlist, or BRIDGE_SHELL_MODE=allowlist
in config.env; BRIDGE_SHELL_ALLOW=ls,cat,… overrides the program list.
The allowlist is defense in depth on top of the phone's approval, not a
sandbox. In both modes config.env, .bridge_token, ~/.ssh, .env and
similar are never readable or publishable through the bridge.
Browser
elvarone-bridge browser install (needs Node.js) puts Playwright MCP in
~/ElvarBridge/playwright, downloads Chromium, and installs a second
service on 127.0.0.1:8931. The bridge proxies it at /browser/mcp
behind the same token; the pairing link then carries browser=1, and the
phone adds it as a second server <name>-browser with
browser_navigate, browser_snapshot, browser_take_screenshot
pre-approved. browser status | start | stop manage it.
Security
- The token is required on every request.
initmints a 32-byte random one. - The pairing link / QR carries the token: scan it or send it to your own
phone, never post it.
elvarone-bridge settings --no-qrreprints it. - Binds
0.0.0.0(LAN + Tailscale). Never port-forward it to the internet. Install Tailscale on both devices to use the bridge away from home. - Every remote call is approved on the phone. The pairing link pre-approves
only read-only tools (
screenshot,list_reports,read_file,report_to_desktop_agent,mark_report). - Commands that would stop the bridge's own services are refused.
- Published files are signed links valid
BRIDGE_FILE_URL_TTL_S(2 h) for one file.
Configuration
~/ElvarBridge/config.env (mode 600), or the same keys in the environment:
BRIDGE_TOKEN=… required
BRIDGE_NAME=mac how the phone calls this computer
BRIDGE_PORT=8787
BRIDGE_BIND=0.0.0.0
BRIDGE_PUBLIC_URL= override the URL handed to the phone
BRIDGE_FILE_URL_TTL_S=7200
BRIDGE_DESKTOP_AGENT= claude | codex | none (auto)
BRIDGE_AGENT_CWD= project the desktop agent reads (default ~/ElvarBridge)
BRIDGE_AGENT_MAX_TURNS=24 a no-tools fallback pass runs when the limit is hit
BRIDGE_SHELL_MODE=confirm confirm | allowlist (read-only shell)
BRIDGE_SHELL_ALLOW= programs for allowlist mode (default: read-only set)
PLAYWRIGHT_MCP_URL=http://localhost:8931/mcp
BRIDGE_AGENT_TIMEOUT_S=600
BRIDGE_CLAUDE_ARGS= extra flags for claude -p (e.g. --max-budget-usd 0.50)
BRIDGE_NOTIFY_DESKTOP=1
AGORADM_TOKEN= this computer's AgoraDigest bot token (init registers it)
AGORADM_BOT_ID= its bot id
BRIDGE_NOTIFY_BOT= the phone agent's bot id to DM
Upgrading from the original mac_bridge.py launchd setup: pip install -e .
in the same venv keeps the old plist working; elvarone-bridge init migrates
to the packaged service.
Release files for elvarone-bridge 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| elvarone_bridge-0.3.0.tar.gz | 33.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| elvarone_bridge-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 65.0 kB
Release files / elvarone_bridge-0.3.0.tar.gz
| Download URL | elvarone_bridge-0.3.0.tar.gz |
|---|---|
| Size | 33.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
65707a6030192ea37ae5980450aaa9416190eaf7b12a4d14e70214ad09f95b29
|
|
BLAKE2b-256 checksum How to use checksums |
7788e637c6f45dcc2a397ec217aae21f596452db9c337f2452ef9cfab688307f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / elvarone_bridge-0.3.0-py3-none-any.whl
| Download URL | elvarone_bridge-0.3.0-py3-none-any.whl |
|---|---|
| Size | 31.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f646f3c6d49636c44a79e40e684d24206efa8ef09eec1a513812ce9530053135
|
|
BLAKE2b-256 checksum How to use checksums |
3f07688fd182df59f7af60896499f9abeecbaee4b9a9892e8c482831db779ec0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|