logo
icon

Cursor2API-Go

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

平台Zeabur
部署次数1
发布者authorjacob-sheng
部署次数1
发布者jacob-sheng
创建于2026-03-29
模版内的服务
service icon
标签
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)