Skip to content
xxlooceePublic

About

cursor 第三方api配置工具

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

My Cursor

My Cursor is a local implementation of Cursor's backend.

Download · Report an Issue · 中文版本说明

Release Downloads License Platforms

Connect My Cursor to a wide range of model APIs

About

My Cursor 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.

You can connect OpenAI- and Anthropic-compatible services, customize endpoints, model IDs, API keys, and request parameters, and use model channels beyond the options built into the platform.

Important

My Cursor is free and open source, but the model APIs you connect may charge for usage. This is an independent project and is not affiliated with or endorsed by Cursor or its developers.

This downstream project tracks cursor-byok. The upstream implementation and protocol compatibility work remain credited to its original contributors.

Features

  • Bring your own model channels: Configure your own API endpoint, credentials, and model IDs.
  • Multiple API protocols: Use OpenAI- and Anthropic-compatible APIs or a custom endpoint.
  • Model management: Add, duplicate, edit, reorder, and batch-test multiple model configurations.
  • Connection benchmarks: Measure time to first token, generation speed, and inspect raw provider responses.
  • Agent workflows: Keep tool calling, Skills, MCP, and multi-turn conversations available.
  • Session metrics: Track token usage, cache hit rate, conversation turns, and estimated value.
  • Cross-platform: Run on macOS, Windows, and Linux.

Quick Start

  1. Download the latest build for your platform from GitHub Releases.
  2. Launch My Cursor, open Model Settings, and enter the endpoint, API key, and model ID.
  3. Test the model configuration. Once it passes, return to the dashboard and start the service.
  4. After upgrading Cursor or configuring a model for the first time, quit Cursor completely and restart it, then start a new conversation and select the configured model.

Model Management

Model configurations support both OpenAI and Anthropic API protocols. Each model channel can independently define its context window, maximum output tokens, reasoning effort, custom headers, and additional request parameters.

How It Works

Cursor client
    |
    | Agent requests and tool results
    v
My Cursor local service
    |
    | OpenAI- / Anthropic-compatible requests
    v
Your model API

My Cursor handles protocol adaptation, model request forwarding, tool-call coordination, and conversation state on your machine. API keys and application settings are stored locally; requests are still sent to the model provider you configure.

Why This Project

Many Agent products bundle their tool capabilities with a fixed set of models, subscriptions, and billing options, leaving users limited to the channels offered by the platform.

My Cursor is built to return model choice to the user. Developers can make full use of the APIs and credits they already have, choose the models and providers that fit their needs, and self-host related services when required.

Roadmap

The project will continue to improve model compatibility, Agent tooling, local runtime stability, and the self-hosting experience while exploring support for more IDE, chat, and Agent workflows.

Community and Support

Report product issues in the My Cursor issue tracker.

Development and Contributing

Issues and pull requests are welcome. Before submitting changes, install the prerequisites below and run make check.

Upstream Contributors

My Cursor incorporates work from the cursor-byok contributors.

License

This project is open source under the MIT License.

About

cursor 第三方api配置工具

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages