oh-my-claude
Reads and types into tmux panes to control live omp sessions running inside tmux.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
oh-my-claude
Gives Claude (claude.ai and Claude Code) control of live omp sessions over MCP: read screens, send prompts, answer dialogs, run shell jobs, and attach to sessions from a phone or another machine. It runs as an omp extension plus a local session daemon, with an optional tailnet/Funnel server for remote access.
Install
Install the omp plugin:
omp plugin install github:avianthonf/oh-my-claudeThat one command also writes the oh-my-claude launcher to ~/.local/bin (omp initializes the plugin's extension during install). The launcher runs the CLI with omp's embedded Bun, so nothing else needs installing. If ~/.local/bin is not on your PATH, add export PATH="$HOME/.local/bin:$PATH" to your shell profile. If the launcher is ever missing, run ~/.omp/plugins/node_modules/.bin/oh-my-claude install-launcher.
To also route interactive omp through the wrapper (optional), run:
oh-my-claude install-shiminstall-shim writes an omp shim and the oh-my-claude launcher to ~/.local/bin. Use --dir to choose another directory. It refuses to overwrite a file that is not an oh-my-claude file.
Related MCP server: claude-voice
Connect claude.ai
Enable remote access on the machine that runs omp:
oh-my-claude remote setupSetup downloads and verifies the sidecar (
omc-tsnet), starts it, and prints a Tailscale login URL if needed. If the output reports a fix, apply it in the Tailscale admin console:HTTPS certificates: https://login.tailscale.com/admin/dns
Funnel permission: add this to the ACL at https://login.tailscale.com/admin/acls/file
"nodeAttrs": [{"target": ["autogroup:member"], "attr": ["funnel"]}]
Re-run
oh-my-claude remote setupafter applying a fix. When ready, setup prints the connector URL.Pair claude.ai with this machine:
oh-my-claude remote pairThis prints a six-word code that works once within 10 minutes. Five failed attempts lock pairing for 15 minutes.
In claude.ai, add a connector with this URL, replacing
<tailnet>with your tailnet name:https://oh-my-claude.<tailnet>.ts.net/mcpOn the consent page, enter the pairing code. The three scopes (
omc:read,omc:control,omc:exec) are pre-checked; untick any you do not want to grant.
Connect Claude Code
Same machine. Register the local server:
claude mcp add omp -- oh-my-claude mcpThis needs oh-my-claude on your PATH (see Install).
Remote machine. This path needs Bun on the machine running Claude Code, because it starts the server with bunx. Install Bun from https://bun.sh first. Then, on the machine that runs omp, create a tailnet bearer token:
oh-my-claude remote tokenCopy the token (it is shown once; only its hash is stored). On the Claude Code machine:
claude mcp add omp -e OMC_TOKEN=<token> -- bunx github:avianthonf/oh-my-claude mcp --remote oh-my-claude--remote oh-my-claude names the tailnet host of the server. The client starts omc-tsnet client and proxies MCP over it, so the Claude Code machine must be on the same tailnet and allowed by the owner's tailnet user or tag.
Capability ladder
For each session, oh-my-claude uses the strongest route available:
Native extension: the omp extension talks to the daemon directly. Full state, plan review, and notices.
Wrapper shim:
install-shimroutes interactive omp throughoh-my-claude wrap, which runs omp on a PTY and exposes its screen and keyboard over a socket.tmux / zellij: sessions running in a multiplexer pane can be read and typed into through the pane.
PTY: sessions the daemon starts itself in a PTY.
Assisted: none of the above. Claude can see what the extension reports, and a human answers dialogs in the session window.
Lower rungs lose capability. See Known limitations.
Wrapper shim
install-shim writes a small omp script that finds the real omp on PATH (skipping itself). When both stdin and stdout are terminals, it runs omp under oh-my-claude wrap. Otherwise (pipes, scripts, --mode rpc) it execs the real omp directly.
The wrapper is byte-transparent: keystrokes go to omp unchanged and output comes back unchanged, so the terminal behaves as if omp were run directly. Non-TTY invocations are passed straight through with no PTY and no change in behavior.
Security model
Funnel is public. The
/mcpendpoint is reachable from the internet through Tailscale Funnel. It is protected by the layers below.OAuth 2.1 with PKCE (S256) for Funnel clients. Access tokens last one hour. Refresh tokens rotate on every use, slide while in use, and expire after 90 days unused. Reusing a rotated token revokes the whole family.
Pairing code. Authorization needs a one-time code from
oh-my-claude remote pair.Scopes.
omc:read(events, link view, session list),omc:control(other session control),omc:exec(shell jobs and raw RPC). All are pre-checked by default.IP allowlist, enforced by default. Funnel requests must come from an address in
allow, default160.79.104.0/21(Anthropic's range). Requests from other addresses get 403 and an audit entry. If a blocked request carries an otherwise valid token, you get an alert (at most one per IP per hour) with the command to allow it:oh-my-claude remote allow <ip>/32. SetallowModetoreportinremote.jsonto log without blocking.Tailnet path. Requests over the tailnet need
Authorization: Bearer <token>fromoh-my-claude remote token, and the caller's tailnet login (from WhoIs) must be intailnetUsersor carry a tag intailnetTags. There is no OAuth on this path.Revoke everything.
oh-my-claude remote revoke --allinvalidates all OAuth and tailnet credentials.Audit log. Authorizations, refusals, and revocations are recorded.
Other commands: oh-my-claude remote enable|disable|status, oh-my-claude remote allow <cidr>.
Maintainer
Release signing uses minisign. Never let an agent generate the key.
Generate the key pair locally (on your machine, not in CI or by an agent):
minisign -GAdd GitHub Actions secrets in the repository settings:
MINISIGN_SECRET_KEY: the contents of the secret key fileMINISIGN_PASSWORD: the key's password
Paste the public key (the base64 line from
minisign.pub, second line) intoMINISIGN_PUBKEYinsrc/remote-cli/verify.ts. Until this is set,remote setuprefuses to install the sidecar, by design.Cut a release by pushing a tag
vX.Y.Z. The release workflow (.github/workflows/release.yml) buildsomc-tsnetfor darwin and linux, writessha256sums.txt, signs it with minisign, and uploads everything to the GitHub release.
Known limitations
Dialogs need a human in plain sessions. An
askdialog in a live session without a wrapper, tmux pane, or PTY can only be answered in the session window. See 01.Exec of built-in tools is unsupported.
execwithkind: "tool"is refused until omp shipsinvoke_tool. See 01.Takeover is refused while the queue has messages. The extension cannot read queue contents, so a busy session with a non-empty queue cannot be taken over. See 02.
Subagent message and cancel are relayed through the main agent. They are reported as
viaAgent, cost a model turn, and depend on the model complying. See 02.Attach notices depend on undocumented display behavior. The notice shown when a session is attached uses
appendEntry, whose display behavior omp does not document. See 01.Keys typed before the first draw are dropped. omp ignores keystrokes that arrive before its first screen draw. Wait for the startup tip line before typing.
Anthropic IP range changes trigger alerts. If Anthropic changes the outbound range, requests are blocked and you get the alert. Update
allowwithoh-my-claude remote allow <cidr>.
License
MIT. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Connect ChatGPT and Claude to your Mac, Windows or Linux with secure MCP remote access.
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Remote MCP access to user-authorized Linux, Windows and Intel Mac devices for AI assistants.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server that lets you drive Claude Code sessions hands-free by voice from any MCP client, enabling remote models to send prompts, monitor progress, and get results read back.72MIT
- AlicenseNot gradedqualityBmaintenanceEnables voice assistants to start, monitor, message, and approve local Claude Code sessions on your computer, including sessions already open in a terminal. It exposes session management, recaps, approvals, and history search as MCP tools.8GPL 3.0
- AlicenseNot gradedqualityBmaintenanceExposes interactive Claude Code CLI sessions running inside tmux across one or more machines as MCP tools, enabling agents to list, create, read, and drive those sessions over stdio.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables you to see, start, read, message, approve, interrupt, and stop Claude Code sessions running in tmux across all your SSH-reachable machines from the Claude app, voice mode, or another session. Hooks report which sessions are waiting on you, a shared git-backed memory is injected into new sessions, and small jobs can be routed to local OpenAI-compatible models.MIT