# leookun/cursor-byok

cursor-byok is a local implementation of Cursor's backend. https://github.com/leookun/cursor-byok/releases

Repository: https://github.com/leookun/cursor-byok
Canonical: https://ross.abutalabs.com/products/cursor-byok
Language: Rust
License: MIT
License Family: permissive
Topics: cursor, cursor-cli
Last push: 2026-08-26T17:23:01+00:00

## Health v2 (maintenance only)
Score: 81/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 99, longevity 10
- inputs: {"age_days": 143, "days_push": 7, "days_rel": 6, "gap_med": 0, "n_releases_24m": 60}
- flags: young
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2537, forks 391 (observed 2026-08-28T04:06:59.256818+00:00)

## What it is
cursor-byok is an open-source local implementation of Cursor's backend that runs a gateway service on your machine, connecting the Cursor editor to your own OpenAI- or Anthropic-compatible model APIs. It lets you configure custom endpoints, API keys, and model IDs while preserving Cursor Agent features like tool calling, Skills, and MCP.

## Use cases
- use my own API keys with Cursor instead of the built-in models
- connect Cursor to a custom OpenAI-compatible endpoint
- route Cursor requests through Anthropic or local providers
- keep Cursor Agent tool calling and MCP working with my own models
- benchmark model providers for time to first token and speed
- track token usage and cache hit rate for Cursor sessions

## When to choose
- you want Cursor to use your own model API keys, endpoints, or self-hosted models
- you need model channels beyond those officially offered in Cursor
- you want local control over routing, credentials, and request parameters
- you want to measure and compare provider latency and throughput

## When to avoid
- you are happy with Cursor's official model offerings and billing
- you need a fully managed cloud service rather than a locally run gateway
- you expect free model usage - connected APIs may still charge

## Facets
- artifact type: application
- maturity: active
- function: llm-inference, api-gateway, proxy, mcp, developer-tools
- domain: large-language-models, developer-tools, self-hosted, apis
- platform: windows, cross-platform, self-hosted
- tags: cursor, byok, model-gateway, api-proxy, local-backend, rust, macos, linux

## Member repositories
- leookun/cursor-byok (main) score 81

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:59.256818+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:25:12.730967+00:00, confidence not recorded.
  - readme: https://github.com/leookun/cursor-byok (fetched 2026-08-28T04:06:59.256818+00:00, sha fbbe8e0ea36f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
