derek-larson14557 downloadsRun Claude Code from any device via remote relay server.
Your Mac's Claude Code, from your phone or tablet.
Built by Derek Larson. Pair with commands →

/morning, /mail, /voice, whatever you've built. Your workflow travels with you./resume.Download from tailscale.com/download, open the app, and sign in.
Open Terminal, navigate to your Obsidian vault, and run:
mkdir -p .obsidian/plugins/claude-anywhere && cd .obsidian/plugins/claude-anywhere && curl -LO https://github.com/derek-larson14/obsidian-claude-anywhere/raw/main/main.js && curl -LO https://github.com/derek-larson14/obsidian-claude-anywhere/raw/main/manifest.json && curl -LO https://github.com/derek-larson14/obsidian-claude-anywhere/raw/main/styles.css
While using Claude remotely, prevent your Mac from sleeping.
Option A: Amphetamine (Recommended)
Install Amphetamine from the App Store. It provides a menu bar icon to easily toggle sleep prevention with options for timed sessions, triggers, and more.
Option B: Terminal
caffeinate -dis
This prevents sleep even when closing the lid (while plugged in). Close the Terminal window or press Ctrl+C to restore normal sleep behavior.
.obsidian/plugins/claude-anywhere/ folderFiles needed for manual install: main.js, manifest.json, styles.css
Paste into a Claude Code session from your vault:
Update the Claude Anywhere plugin. Download main.js, manifest.json, and styles.css from https://github.com/derek-larson14/obsidian-claude-anywhere/releases/latest/download/ into .obsidian/plugins/claude-anywhere/. Tell me the old and new version numbers.
Then restart Obsidian or disable/re-enable the plugin.
Use the command palette (swipe down or Cmd+P) and search "Claude":
You can also tap the brain icon in the left ribbon.
On-screen buttons appear at the bottom for keys missing from software keyboards:

For multi-line prompts in Claude Code, press Alt+Enter or Shift+Enter on your external keyboard.
Streams your Mac's Claude Code session to mobile over Tailscale. File sync pushes Claude's edits back to your device.
Mobile Mac
┌─────────────────┐ ┌─────────────────┐
│ Obsidian │ Tailscale │ Obsidian │
│ + Plugin │◄───────────►│ + Plugin │
│ + xterm.js │ (secure) │ + relay_server │
│ │ │ + Claude Code │
└─────────────────┘ └─────────────────┘
Connection: ws://100.x.x.x:8765 (Tailscale IP)
Skip all permission prompts. Claude acts without asking.
Settings → Claude Anywhere → Advanced → YOLO Mode
On disconnect: Claude session is killed
To continue a conversation: Use Claude's /resume command after reconnecting.
Scrolling on mobile - Dragging inside the terminal doesn't scroll well. Use the scrollbar on the right edge, or Alt+↓ to jump to the bottom.
"Connection failed"
Terminal looks garbled
main.js - Obsidian plugin code (includes embedded relay server)manifest.json - Plugin metadatastyles.css - Terminal stylingThe relay server (relay_server.py) is embedded as base64 in main.js for Obsidian plugin directory compatibility. To rebuild after modifying:
./build.sh
Issues and PRs welcome at github.com/derek-larson14/obsidian-claude-anywhere
MIT