cursor-api  by zhx47

Proxy service for OpenAI API-compatible access to Cursor editor's AI

Created 11 months ago
265 stars

Top 96.4% on SourcePulse

GitHubView on GitHub
Project Summary

This project provides a proxy service that transforms the AI capabilities of the Cursor editor into an OpenAI-compatible API. It allows users to leverage Cursor's AI features within other applications, targeting developers and researchers who wish to integrate advanced AI functionalities into their existing workflows.

How It Works

The service acts as a middleware, intercepting requests intended for OpenAI and forwarding them to Cursor's backend. It then translates Cursor's responses back into the OpenAI API format. This approach enables seamless integration by adhering to the widely adopted OpenAI API specification, simplifying the process of utilizing Cursor's AI models.

Quick Start & Requirements

  • Install/Run: docker run -d --name cursor-api -e x-cursor-checksum=xxxxxx -p 3000:3000 zhx47/cursor-api:latest
  • Prerequisites: Cursor editor installed and registered, WorkosCursorSessionToken obtained from browser developer tools (F12 -> Application -> Cookies).
  • Setup: Requires obtaining a session token.
  • Docs: cursorToApi (original project)

Highlighted Details

  • Converts Cursor AI to OpenAI-compatible API.
  • Supports Bearer Token authentication using WorkosCursorSessionToken.
  • Offers Docker deployment for production.
  • Based on the cursorToApi project.

Maintenance & Community

  • No specific contributors, sponsorships, or community links are mentioned in the README.

Licensing & Compatibility

  • License: MIT License.
  • Compatibility: Permissive license suitable for commercial use and integration with closed-source applications.

Limitations & Caveats

The project is intended for learning and research purposes and users must adhere to Cursor's terms of service. The WorkosCursorSessionToken must be kept confidential.

Health Check
Last Commit

4 months ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
1 stars in the last 30 days

Explore Similar Projects

Starred by Tobi Lutke Tobi Lutke(Cofounder of Shopify), Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), and
26 more.

open-webui by open-webui

0.5%
114k
Self-hosted AI platform for local LLM deployment
Created 2 years ago
Updated 1 day ago
Feedback? Help us improve.