logo
icon

Cursor2API-Go

A Go service that converts Cursor Web into OpenAI chat/completions compatible API

PlatformZeabur
Deployed1
Publisherauthorjacob-sheng
Deployed1 times
Publisherjacob-sheng
Created2026-03-29
Services
service icon
Tags
ToolAI

Cursor2API-Go

A Go service that converts Cursor Web into an OpenAI chat/completions compatible API.

Features

  • πŸ”„ API Compatible: OpenAI chat/completions interface compatible
  • ⚑ High Performance: Low latency response
  • πŸ” Secure Auth: API Key authentication support
  • 🌐 Model Derivation: Automatically exposes *-thinking models
  • 🧰 Tool Calls: Supports tools / tool_choice / tool_calls
  • πŸ›‘οΈ Error Handling: Comprehensive error handling
  • πŸ“Š Health Check: Built-in health check endpoint

Configuration

Set environment variables after deployment:

  • API_KEY: API authentication key (default: 0000)
  • MODELS: Base model list, comma-separated (default: claude-sonnet-4.6)
  • DEBUG: Enable debug mode (default: false)
  • TIMEOUT: Request timeout in seconds (default: 60)