Skip to content
| Marketplace
Sign in
Visual Studio Code>Chat>VS Code Copilot as ServiceNew to Visual Studio Code? Get it now.
VS Code Copilot as Service

VS Code Copilot as Service

Marty Zhou

|
20 installs
| (0) | Free
Expose GitHub Copilot as an OpenAI-compatible HTTP API server for external applications
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VS Code Copilot as Service

License: MIT VS Code Marketplace

Expose GitHub Copilot as an OpenAI-compatible HTTP API with intelligent file operations and workflow suggestions.

This VS Code extension provides programmatic access to GitHub Copilot through a REST API, with built-in file operations and AI-powered workflow suggestions for uninterrupted development.

Key Features

  • OpenAI-Compatible API - Drop-in replacement for OpenAI endpoints
  • Automatic Tool Invocation - Tools execute automatically with results
  • Workspace Integration - Include VS Code context in requests
  • Workflow Suggestions - AI suggests next logical actions automatically
  • Integrated File Operations - Read, edit, search, and open files through chat
  • Ollama subset APIs - Integrate with tools like langflow or OpenClaw as a local ollama server

Quick Start

Installation

Install from VS Code Marketplace

Requirements: Active GitHub Copilot subscription

Basic Usage

import requests

response = requests.post('http://localhost:8765/v1/chat/completions', json={
    'messages': [{'role': 'user', 'content': 'Explain this project briefly.'}]
})

print(response.json()['choices'][0]['message']['content'])

Advanced Usage

  • tests/integration.test.mjs covers essential APIs end to end:
    • /health, /v1/models, /v1/chat/completions
    • /v1/tools, /v1/tools/invoke
    • chat-completion tool-calling with VS Code built-in fileSearch
    • /v1/workspace/files/* operations
    • Ollama-compatible /api/* endpoints
    • branch-focused coverage for chat-completion request logic

Run integration tests against http://localhost:8765:

npm test

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Built on top of the VS Code Language Model API
  • Inspired by the need to integrate GitHub Copilot with external tools and workflows
  • Thanks to the VS Code and GitHub Copilot teams for their excellent APIs

Support

  • Issues: GitHub Issues
  • Discussions: GitHub Discussions

Note: This extension requires an active GitHub Copilot subscription. It is not affiliated with or endorsed by GitHub or Microsoft.

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