A wrapper around GitHub Copilot API to make it OpenAI compatible, making it usable for other tools.
- Bun (version 1.0.0 or higher)
- GitHub account with Copilot Individual subscription
To install dependencies, run:
bun installThere are two ways to run the project:
bun run devStarts the server with hot reloading enabled, which automatically restarts the server when code changes are detected. This is ideal for development.
bun run startRuns the server in production mode with optimizations enabled and hot reloading disabled. Use this for deployment or production environments.
In both cases, the server will start and listen for API requests.
The following AI tools have been tested with this API:
- Works with GPT-4o
- Not compatible with Claude 3.5 Sonnet (prompts too long)
- Works with GPT-4o
- Works with Claude 3.5 Sonnet
- Aider can't use weak models #2867
- Using o1 as the main model will also result in the same error #2867
- Works with some caveats:
- Sometimes models fail to load - you can set any random API key in the UI to refresh the models list
- May encounter "The operation is insecure." issue #362
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the GNU General Public License v3.0.