@opeoginni/github-copilot-openai-compatible has 2,075 recorded weekly downloads on npm, a decrease of 79.5% over the past 30 days.
It ranks #1282 of 2,256 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by +21.1%.
PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.
About @opeoginni/github-copilot-openai-compatible
GitHub Copilot OpenAI-Compatible Provider for AI SDK
This package provides an OpenAI-compatible interface for GitHub Copilot API, designed to work seamlessly with Vercel AI SDK v6.
Features
• Full TypeScript support • Seamless integration with Vercel AI SDK v6 • Easy to use API matching other AI SDK providers • Automatic endpoint switching: Uses /responses endpoint for Codex models, /chat/completions for others • Smart request formatting: Automatically converts messages array to OpenAI Responses API input format for Codex models
Installation
AI SDK v6 (Current)
AI SDK v5
If you need AI SDK v5 support, use the ai-v5 tag:
Authentication
Getting Your Token
To get your GitHub Copilot API token, check out opencode-copilot-auth.
Required Headers
GitHub Copilot requires specific headers for authentication. While the provider handles your API key, you may need to configure additional headers:
These headers identify your application to GitHub Copilot. You may need to update version numbers based on your integration.
Usage
Quick Start
Supported Models
Codex Models (Uses /responses endpoint)
This package fully supports OpenAI's Codex models, which use the advanced OpenAI Responses API:
• gpt-5-codex - GPT-5 Codex • gpt-5.1-codex - GPT-5.1 Codex • gpt-5.1-codex-mini - GPT-5.1 Codex Mini • gpt-5.1-codex-max - GPT-5.1 Codex Max
Other Models
For non-Codex models (standard chat completions), check your GitHub Copilot settings to see which models are available to you. You can use any model ID that Copilot supports - they'll automatically route to the /chat/completions endpoint.
Note: GitHub Copilot may provide access to various models (Claude, GPT, Gemini, etc.) based on your subscription. Check your Copilot settings for the full list of available models.
How It Works
Endpoint Routing
The provider automatically routes requests to the correct endpoint based on the model ID:
• Codex Models (gpt-5-codex or any model containing 'codex'): • Uses /responses endpoint • Converts messages array to OpenAI Responses API input format • Transforms message content parts (e.g., text → input_text, image_url → input_image) • System messages become developer role messages • All Other Models: • Uses standard /chat/completions endpoint • Uses standard OpenAI-compatible messages array format
This means you don't need to worry about the underlying API differences - the provider handles it automatically!
API Reference
createGithubCopilotOpenAICompatible(options)
Creates a new GitHub Copilot provider instance.
Options: • apiKey?: Your GitHub Copilot API token • baseURL?: Base URL for API calls (default: https://api.githubcopilot.com) • name?: Provider name (default: githubcopilot) • headers?: Custom headers to include in requests • fetch?: Custom fetch implementation
Returns: A provider instance.
githubCopilot
Pre-configured default provider instance. For production use, create your own instance with proper headers:
License
MIT
Description from the npm listing.
- ai
- ai-sdk
- github
- copilot
- openai
- compatible
- llm
Where @opeoginni/github-copilot-openai-compatible sits in the listing
Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Recent observations
Full history (121)Similar npm AI SDKs plugins
Data source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@opeoginni/github-copilot-openai-compatible. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.