Forums
Cursor BYOK: custom model APIs in Cursor, with multi-account management
I'm maintaining bargino/cursor-byok, a community fork of Cursor BYOK originally created by leookun. It is an open-source desktop gateway for connecting your own model APIs to Cursor and managing provider connections, separate accounts and usage in one local app.
It supports OpenAI Responses, OpenAI Chat Completions and Anthropic Messages-compatible services. Choose the protocol your provider actually implements; OpenAI-compatible does not automatically mean both OpenAI protocols are available.
Which build should I download? v1.0.3 is the published Release for API-based setup. WorkBuddy, Qoder China/Global, TeleAgent (China Telecom) and Kiro are additions in the 1.0.4 Actions builds, which require GitHub sign-in to download. The README lists Windows, macOS Intel/Apple Silicon and Linux packages and explains the difference.
Does local gateway mean local inference? No. Settings and credentials are stored locally, but model request content still goes to the endpoint you configure. Provider model access, quotas and billing apply; a free gateway does not make provider usage free.