welcome to the n8n community @antonkristensen
I was actually looking into this earlier, and the biggest hurdle seems to be GitHub’s Terms of Service and the lack of a standard public API for personal Copilot subs. Right now, they really pin it down to IDEs and their own CLI. Have you looked into whether their current API even allows for this kind of external integration without getting flagged?
I’ve just added a new node that integrates the Copilot subscription into your workflows using the Copilot official SDK (still in preview). This SDK will internally spawn a CLI sub-process or remotely connect to one.
From what I’ve seen so far (I looked into how opencode and VS Code Copilot Chat integrate with the Copilot models), VS Code Copilot Chat offers a flexible multi-format SDK abstraction that can communicate with OpenAI-compatible, OpenAI Responses or Anthropic Messages protocols… chosen at runtime based on the selected model. All requests pass through GitHub’s managed CAPI ( Copilot API) gateway for authentication quota tracking and backend routing.