A local model gateway for Cursor that lets you connect Cursor to your own model APIs, preserve Agent capabilities (tool calling, Skills, MCP), and customize model channels.
- v1.0.1
- Published at
- Sep 20, 2026
- 3,137
- Stars
- 79,946
- Download
- Synced at
- Oct 4, 2026
Latest release
v1.0.1Sep 20, 2026, 04:05 AMDownloads slow? Switch the source anytime above
README
Project Overview
cursor-byok is an open-source local model gateway for Cursor. It runs a service on your machine that connects Cursor to the model APIs you configure, routes model requests through your own providers, and preserves Cursor Agent capabilities such as tool calling, Skills, and MCP.
Key Features
- Bring your own model channels: Configure your own API endpoint, credentials, and model IDs
- Multiple API protocols: Use OpenAI- and Anthropic-compatible APIs
- Model management: Add, duplicate, edit, reorder, and batch-test multiple model configurations
- Connection benchmarks: Measure time to first token, generation speed, and more
- Agent workflows: Keep tool calling, Skills, MCP, and multi-turn conversations available
- Session metrics: Track token usage, cache hit rate, conversation turns, and more
- Cross-platform: Run on macOS, Windows, and Linux
Target Audience
- Cursor users who want to use their own models and API keys
- Developers who need custom model channels
- Teams who want to self-host related services
Quick Start
- Download the latest build for your platform from GitHub Releases
- Launch cursor-byok, open Model Settings, and enter the endpoint, API key, and model ID
- Test the model configuration, then start the service
- After upgrading Cursor or configuring a model for the first time, quit Cursor completely and restart it
Core Advantages
- Returns model choice to the user
- Preserves full Cursor Agent capabilities
- Supports both OpenAI and Anthropic protocols
- Cross-platform support
System Requirements
- OS: macOS, Windows, Linux
Release history
Sort