Automates Roo Code's Human Relay mode by bridging clipboard prompts to browser-based AI chatbots.
- Monitors clipboard for new prompts from Roo Code
- Pastes prompts into your browser's AI chatbot via simulated input
- You select the AI response and press a hotkey
- Response gets pasted back into VS Code
┌─────────────────────────────────────────────────────────────────┐
│ AUTORELAY FLOW │
├─────────────────────────────────────────────────────────────────┤
│ │
│ ┌───────────┐ clipboard ┌──────────────┐ │
│ │ Roo Code │ ─────────────────► │ AutoRelay │ │
│ │ (VS Code) │ │ (Python) │ │
│ └───────────┘ └──────┬───────┘ │
│ ▲ │ │
│ │ │ 1. Alt+Tab │
│ │ │ 2. Click input │
│ │ │ 3. Ctrl+V │
│ │ │ 4. Enter │
│ │ ▼ │
│ │ ┌─────────────┐ │
│ │ │ Browser │ │
│ │ │ (Any AI) │ │
│ │ └──────┬──────┘ │
│ │ │ │
│ │ User selects │ │
│ │ response text │ │
│ │ + │ │
│ │ Ctrl+Alt+1 │ │
│ │ ▼ │
│ │ ┌─────────────┐ │
│ │ 5. Alt+Tab │ Clipboard │ │
│ │ 6. Click input │ (Response) │ │
│ │ 7. Ctrl+V └─────────────┘ │
│ │ 8. Click confirm │
│ └────────────────────────────────────────────────────────┤
│ │
└─────────────────────────────────────────────────────────────────┘
pip install -r requirements.txt- Open your AI chatbot in a browser
- Run
python autorelay.py - First run: calibrate by hovering over browser input, VS Code input, and confirm button
- Use Roo Code normally - prompts auto-paste to browser
- Select AI response, press
Ctrl+Alt+1
| Key | Action |
|---|---|
Ctrl+Alt+1 |
Copy response to VS Code |
Ctrl+Alt+2 |
Pause/Resume |
Ctrl+Alt+3 |
Recalibrate |
Copy .env.example to .env to customize timing delays.
- Requires manual selection of AI response, (Working on it)
- Browser must be next in Alt+Tab order
- Click positions are screen-specific
MIT