GitHub Copilot

Configure GitHub Copilot in VS Code to route requests through agentgateway.

ℹ️
Custom endpoint configuration for GitHub Copilot requires a GitHub Copilot Business or Enterprise plan. Individual Copilot plans do not support custom proxy endpoints. For more information, see the GitHub Copilot documentation.

Before you begin

  • Agentgateway running at http://localhost:3000 with a configured LLM backend.
  • VS Code with the GitHub Copilot extension installed.
  • A GitHub Copilot Business or Enterprise subscription.

Example agentgateway configuration

cat > /tmp/test-copilot.yaml << 'EOF'
# yaml-language-server: $schema=https://agentgateway.dev/schema/config
llm:
  port: 3000
  models:
  - name: "*"
    provider: openAI
    params:
      apiKey: "$OPENAI_API_KEY"
EOF

Configure GitHub Copilot

  1. Open VS Code Settings (Cmd + , on macOS, Ctrl + , on Windows/Linux).

  2. Search for github.copilot in the settings search bar.

  3. Set the proxy URL to your agentgateway address. Click Edit in settings.json and add:

    {
      "github.copilot.advanced": {
        "debug.overrideProxyUrl": "http://localhost:3000/v1"
      }
    }
  4. Save the file and reload VS Code (Cmd + Shift + P > Developer: Reload Window).

Verify the connection

  1. Open a code file in VS Code.
  2. Start typing and wait for Copilot suggestions to appear.
  3. Open the Copilot chat panel (Cmd + Shift + I on macOS, Ctrl + Shift + I on Windows/Linux) and send a test message.
Agentgateway assistant

Ask me anything about agentgateway configuration, features, or usage.

Note: AI-generated content might contain errors; please verify and test all returned information.

Tip: one topic per conversation gives the best results. Use the + button in the chat header to start a new conversation.

Switching topics? Starting a new conversation improves accuracy.
↑↓ navigate select esc dismiss

What could be improved?

Your feedback helps us improve assistant answers and identify docs gaps we should fix.

Need more help? Join us on Discord: https://discord.gg/y9efgEmppm

Want to use your own agent? Add the Solo MCP server to query our docs directly. Get started here: https://search.solo.io/.