Agent daemon for Remote AI Maestro — manages PTY sessions and AI agent subprocesses on remote machines
Project description
remotedev-agent
Agent daemon for Remote AI Maestro -- connects your machine to the platform so you can remotely control AI coding agents (Claude Code, Codex, Aider, Copilot, Cursor) via a browser-based terminal.
What it does
- Opens tmux-backed PTY sessions that survive disconnects and daemon restarts
- Discovers AI agents available on your machine's PATH
- Streams terminal I/O to the Remote AI Maestro relay over WebSocket
- Manages sandbox directories (create, clone repos, delete)
- Installs as a background service (launchd on macOS, systemd on Linux)
Requirements
- Python 3.10+
- tmux installed and on PATH
- macOS or Linux
Installation
pip install remotedev-agent
Quick start
-
Register a machine on the Remote AI Maestro dashboard to get your machine ID and token.
-
Configure the agent:
remotedev-agent configure \
--relay-url wss://relay.thesavvydeveloper.com \
--machine-id YOUR_MACHINE_ID \
--token YOUR_MACHINE_TOKEN
- Start the agent:
remotedev-agent start
The agent connects to the relay and begins accepting terminal sessions from the web dashboard.
Interactive setup
If you prefer prompts instead of flags:
remotedev-agent setup
Install as a background service
remotedev-agent install-service
This creates a launchd plist (macOS) or systemd unit (Linux) so the agent starts automatically on boot.
To remove the service:
remotedev-agent uninstall-service
Configuration
Config is stored at ~/.remotedev-agent/config.json with three fields:
| Field | Description |
|---|---|
relay_url |
WebSocket URL of the relay server |
machine_id |
UUID assigned when you register the machine |
token |
Machine authentication token |
How it works
The agent daemon maintains a persistent WebSocket connection to the Remote AI Maestro relay server. When a user opens a sandbox terminal in their browser, the relay forwards the request to the agent, which creates a tmux-backed PTY session on your machine. All terminal input/output is streamed in real time through the relay.
AI agents (Claude Code, Codex, etc.) are discovered by probing your PATH at startup. Users can invoke any discovered agent from the browser terminal.
Development
# Install in editable mode with test dependencies
pip install -e ".[test]"
# Run tests
pytest
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file remotedev_agent-1.3.0.tar.gz.
File metadata
- Download URL: remotedev_agent-1.3.0.tar.gz
- Upload date:
- Size: 39.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32861ff00f052d28ed178204d6257a5004f1df7d2071d49c1416353db667be89
|
|
| MD5 |
f0766e908fae960deb30d7747bcdc973
|
|
| BLAKE2b-256 |
c9e05fb6078a7a5b7b5a4b96ecaf4584493f860418c471291d3a474cda29926b
|
File details
Details for the file remotedev_agent-1.3.0-py3-none-any.whl.
File metadata
- Download URL: remotedev_agent-1.3.0-py3-none-any.whl
- Upload date:
- Size: 32.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b1ea13000efca354fe496d10454f5825bd1716097b3b92374b6371df19fbc38
|
|
| MD5 |
a72f37fe229d7e0be4113523cbc9b56b
|
|
| BLAKE2b-256 |
0dc6b718e6a2a0d758f8ad76e30d827543cfe42447400de5ee51d68b43a10187
|