Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>GitHub Copilot API GatewayNew to Visual Studio Code? Get it now.
GitHub Copilot API Gateway

GitHub Copilot API Gateway

Suhaib Bin Younis

|
774 installs
| (2) | Free
| Sponsor
Universal API Gateway for GitHub Copilot. Expose all Copilot models via local OpenAI, Anthropic, Google & Llama compatible APIs. Use with Clawdbot (Moltbot), Cursor, LangChain, Agents & more.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

GitHub Copilot API Gateway

GitHub Copilot API Gateway

Use GitHub Copilot like any other AI API.
One VS Code extension. Zero API keys. Works with LangChain, Cursor, Aider, and 50+ tools.

VS Code Marketplace VS Code Installs Open VSX Open VSX Downloads GitHub Stars License: MIT

OpenAI Anthropic Google Meta

GitHub Copilot API Gateway Demo


⚡ Quick Start

# 1. Install from VS Code Marketplace (search "GitHub Copilot API Gateway")
# 2. Click "Start Server" in the sidebar
# 3. Done. Your local API is ready.

Use it like OpenAI:

from openai import OpenAI

client = OpenAI(
    base_url="http://127.0.0.1:3030/v1",
    api_key="anything"  # No real API key needed
)

response = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Hello!"}]
)

✅ What You Can Do

  • Use Cursor with Copilot as the backend model
  • Run LangChain agents without paying for OpenAI
  • Power AutoGPT and CrewAI agents locally
  • Query data with PandasAI and LlamaIndex
  • Build chatbots with Botpress, Chainlit, or Rasa
  • Pair program with Aider or Open Interpreter
  • Generate code with GPT Engineer or Sweep
  • Connect Clawdbot to power AI on WhatsApp, Telegram, Discord & Slack

If it speaks OpenAI, it works with this gateway.

🤖 Using with Clawdbot (Moltbot)

Clawdbot is an open-source AI assistant that brings LLMs to messaging platforms like WhatsApp, Telegram, Discord, and Slack. Since it supports any OpenAI-compatible API endpoint, you can use this gateway to power Clawdbot with GitHub Copilot:

  1. Start the Copilot API Gateway in VS Code
  2. Expose the API (set host to 0.0.0.0 if Clawdbot runs on another machine)
  3. Configure Clawdbot to use your gateway:
# In your Clawdbot config
llm:
  provider: openai
  base_url: http://YOUR-IP:3030/v1
  api_key: your-optional-api-key  # or "anything" if auth is disabled
  model: gpt-4o

Now your WhatsApp/Telegram/Discord/Slack bots are powered by Copilot! 🚀


🔌 API Endpoints

Endpoint Method Description
/v1/chat/completions POST Chat completions (streaming supported)
/v1/completions POST Legacy completions API (streaming supported)
/v1/responses POST OpenAI Responses API (2026 spec, streaming supported)
/v1/models GET List all available models
/v1/tools GET List available tools (VS Code + MCP)
/v1/tools/call POST Execute a tool directly
/v1/mcp/servers GET List connected MCP servers
/v1/messages POST Anthropic Claude-compatible endpoint
/v1beta/models/:model:generateContent POST Google Gemini-compatible endpoint
/health GET Server health check
/docs GET Interactive Swagger UI

⚙️ Configuration

Customize in VS Code Settings (githubCopilotApi.*):

{
  "githubCopilotApi.server.port": 3030,
  "githubCopilotApi.server.host": "127.0.0.1",
  "githubCopilotApi.server.apiKey": "",
  "githubCopilotApi.server.autoStart": false
}
Setting Default Description
server.port 3030 Local server port
server.host 127.0.0.1 Bind address (use 0.0.0.0 for LAN access)
server.apiKey (empty) Optional Bearer token for authentication
server.autoStart false Start server when VS Code opens

For advanced options (TLS, IP allowlisting, audit logging), see CONTRIBUTING.md.


📦 Requirements

  • VS Code 1.95+
  • GitHub Copilot Chat extension (must be signed in)

📖 Documentation

  • Official Docs
  • Contributing Guide
  • Changelog

📝 License

MIT License — See LICENSE for details.

Disclaimer: This extension is an independent project and is not affiliated with GitHub, Microsoft, or OpenAI. It leverages your existing GitHub Copilot subscription. Use responsibly.

Built with ❤️ by Suhaib Bin Younis

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft