Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

microsoft-copilot-opencode-provider

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

microsoft-copilot-opencode-provider

OpenCode plugin for Microsoft Copilot API - auto adds provider with Copilot models

latest
Source
npmnpm
Version
1.0.9
Version published
Maintainers
1
Created
Source

OpenCode Microsoft Copilot Plugin

OpenCode plugin for Microsoft Copilot API - auto-configures Copilot models.

Important

Plugin auto-injects the provider - No manual provider configuration needed!

The plugin automatically registers the Microsoft Copilot provider with all available models.

Prerequisites

Before using this plugin, you need to run the mcopilot2api server locally:

  • Clone the mcopilot2api repository: git clone https://github.com/hung319/mcopilot2api
  • Install dependencies: npm install
  • Create a .env file with your Copilot cookie:
    PORT=3001  # You can change this to avoid port conflicts
    API_KEY=your-secret-api-key
    COPILOT_COOKIE="MUID=...; _U=...; ... (full cookie string)"
    
  • Start the server: node index.js

The plugin automatically detects the port where the mcopilot2api server is running. It will scan common ports (3000, 3001, 3002, 4000, 5000, 8080, 8000) and find the one where mcopilot2api is running. If you need to use a different port, simply start the mcopilot2api server on your preferred port and the plugin will discover it automatically.

The server must be running and accessible for the plugin to work.

Installation

Step 1: Install the plugin

npm install microsoft-copilot-opencode-provider

Step 2: Add plugin to opencode.json

{
  "plugin": ["microsoft-copilot-opencode-provider"]
}

Note: No manual provider configuration needed! The plugin automatically registers the Microsoft Copilot provider with all available models.

  • Visit https://copilot.microsoft.com and login
  • Open Developer Console (F12)
  • Run: document.cookie to see all cookies
  • Copy the entire cookie string including _U=..., MUID=..., etc.

Usage

/connect
# Select: Other
# Enter: copilot

/models
# Select Copilot model

Supported Models

Plugin auto-configures these models:

ModelDescription
copilotGeneral Copilot model
copilot-chatChat-focused model
copilot-smartSmart responses with reasoning
copilot-reasoningEnhanced reasoning capabilities
copilot-studyFocused on research and study
copilot-searchOptimized for search queries

Features

  • 🌐 Web Search
  • 🧠 Reasoning (for reasoning-enabled models)
  • 📚 Citations and sources
  • 🎨 Image generation
  • 💬 Conversation support

License

MIT

Keywords

opencode

FAQs

Package last updated on 10 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts