Skip to content

GitHub Copilot Beta

Prerequisites

  1. Node.js 18+
  2. VS Code with GitHub Copilot

Install & Run

bash
# Install daemon
npm install -g @cmdctrl/vscode-copilot

# Register
cmdctrl-vscode-copilot register -s https://api.cmd-ctrl.ai

# Quit VS Code if running, then launch with debugging flag
code --remote-debugging-port=9223 &

# Start the daemon
cmdctrl-vscode-copilot start

Important

  • You must launch VS Code with a special debugging flag (--remote-debugging-port=9223) in order for Cmd+Ctrl to connect to it.
  • If VS Code is already running without this flag, the Cmd+Ctrl daemon cannot connect to it.

Auto-Launch VS Code with Debugging

macOS: Add to your shell profile:

bash
alias code='/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code --remote-debugging-port=9223'

Linux: Create an alias or modify your desktop shortcut:

bash
alias code='code --remote-debugging-port=9223'

Troubleshooting

"VS Code not detected" - Ensure VS Code is running with --remote-debugging-port=9223

"Cannot connect to VS Code" - Restart VS Code with the debugging flag

"Copilot not responding" - Verify your GitHub Copilot subscription is active and you're signed in

Port conflict - Pick another port and set CDP_PORT env var

Connection issues - Check status with cmdctrl-vscode-copilot status