Skip to content

A cross-platform application for mobile devices to remotely control PC Agent IDEs

Notifications You must be signed in to change notification settings

flashpoint493/MobileAgentLivelink

Repository files navigation

MobileAgentLivelink

A cross-platform application that enables mobile devices to remotely control PC Agent IDEs (Cursor, CodeBuddy, OpenCode). Send development requests from your phone and trigger Vibe Development workflows on your PC.

🎯 Core Value

  • Anytime, Anywhere: Send development requests to your PC IDE from your mobile device
  • Remote Monitoring: View development progress and AI conversations in real-time
  • Lightweight Interaction: Mobile device acts as a remote control, no local storage required

🏗️ Architecture

[Web Client] <--WebSocket--> [Relay Server] <--WebSocket--> [PC Python Service] | v [Cursor/IDE] 

📋 Features

Current (MVP)

  • ✅ WebSocket bidirectional communication
  • ✅ Text message transmission
  • ✅ PC-side Cursor controller integration
  • ✅ Web client (single HTML file)

Planned

  • Multi-IDE support (CodeBuddy, OpenCode)
  • Voice input support
  • Development progress visualization
  • Quick command templates
  • Conversation history sync

🚀 Quick Start

Prerequisites

  • PC: Windows 11, Python 3.10+
  • Browser: Modern browser with WebSocket support (Chrome, Firefox, Edge, Safari)
  • IDE: Cursor (for MVP)

PC Client Setup

  1. Navigate to the PC client directory:
cd pc-client
  1. Install dependencies:
pip install -r requirements.txt
  1. Configure settings:
# Set environment variables (required for security):# AUTH_TOKEN: Pairing token (required) - prevents unauthorized access# RELAY_SERVER_URL: Relay server URL (default: ws://localhost:8765/ws)# DEVICE_ID: Device identifier (default: default-pc)# Example (Windows PowerShell):$env:AUTH_TOKEN="your_secret_token_here"$env:RELAY_SERVER_URL="ws://your-server-ip:8765/ws"$env:DEVICE_ID="my-pc-001"# Or create a .env file in pc-client/ directory:# AUTH_TOKEN=your_secret_token_here# RELAY_SERVER_URL=ws://your-server-ip:8765/ws# DEVICE_ID=my-pc-001
  1. Run the PC client:
python relay_client.py

Relay Server Setup

  1. Navigate to the relay server directory:
cd relay-server
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the relay server:
python server.py

Note: For production, deploy the relay server to a cloud service (e.g., Tencent Cloud Lighthouse) for public network access. See Deployment Guide for details.

Web Client Setup

Simply open web-client.html in your web browser:

# Double-click web-client.html or open in browser web-client.html

Configure relay server URL and connect.

📁 Project Structure

MobileAgentLivelink/ ├── web-client.html # Single-file web client (HTML/CSS/JS) ├── pc-client/ # PC-side Python service ├── relay-server/ # WebSocket relay server ├── docs/ # Project documentation │ ├── CONTEXT.md # Current project state │ ├── DECISIONS.md # Architecture decisions │ ├── ROADMAP.md # Development roadmap │ ├── CHANGELOG.md # Version history │ ├── DEPLOYMENT.md # Deployment guide │ └── QA_TEST_CASES.md # Test cases └── CONTRIBUTING_AI.md # AI collaboration guidelines 

🛠️ Technology Stack

  • Web Client: HTML, CSS, JavaScript (WebSocket API)
  • PC Client: Python, websockets, pyautogui, pynput
  • Relay Server: Python, FastAPI, uvicorn, websockets
  • Communication: WebSocket over cloud relay

📝 Development Status

Current Phase: Milestone 0.1 - MVP Core Communication

Progress:

  • Project initialization
  • PC-side Python service
  • Relay server implementation
  • Web client (single HTML file)
  • Local communication test (verified)

Next Steps:

  • Create deployment documentation and scripts
  • Web client local testing
  • End-to-end public network testing (see Test Cases)

🤝 Contributing

Please read CONTRIBUTING_AI.md for collaboration guidelines and development workflow.

📄 License

[Add license information here]

🙏 Acknowledgments

Built to enable seamless mobile-to-PC development workflows for AI-powered IDEs.


For Chinese documentation, see README_zh.md.

About

A cross-platform application for mobile devices to remotely control PC Agent IDEs

Resources

Stars

Watchers

Forks

Packages

No packages published