claude-remote-agent
v0.7.1
Published
Agent for Claude Remote — connects your machine to the relay server
Maintainers
Readme
claude-remote-agent
Agent for Claude Remote — connects your machine to the relay server so you can access Claude Code from any browser.
Quick start
npx claude-remote-agent --key <YOUR_KEY> --server wss://your-domain.comOr install globally:
npm install -g claude-remote-agent
claude-remote-agent --key <YOUR_KEY> --server wss://your-domain.com --name MyMachineOptions
| Flag | Env variable | Description |
|---|---|---|
| --key | AGENT_KEY | Access key for browser login (required) |
| --server | SERVER_URL | Relay server WebSocket URL (required) |
| --name | AGENT_NAME | Agent display name (default: hostname) |
| --permission-mode | PERMISSION_MODE | default (confirm each tool call, the default) or bypassPermissions (never ask) |
PERMISSION_MODE=bypassPermissionslets Claude run every tool unattended on the machine hosting the agent. Only set it where that is acceptable.
Requirements
- Node.js 18+
- Python 3 (for PTY terminal sessions)
- Claude Code CLI installed
How it works
Browser ←WebSocket→ Relay Server ←WebSocket→ Agent (this) → Claude CodeThe agent runs on your machine, connects to the relay server via WebSocket, and spawns Claude Code processes on demand. You access it through the web UI at your relay server's URL using the access key.
Self-hosting
See the full setup guide (server + nginx + SSL) in the main repo README.
Running with PM2
npm install -g claude-remote-agent pm2
pm2 start claude-remote-agent -- --key <YOUR_KEY> --server wss://your-domain.com --name MyServer
pm2 save