GitHub Copilot Beta
Prerequisites
- Node.js 18+
- VS Code with GitHub Copilot
- GitHub Copilot extension
- GitHub Copilot Chat extension
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 startImportant
- 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