Spaces:
Running
Running
metadata
title: sonnet
emoji: π€
colorFrom: purple
colorTo: blue
sdk: docker
pinned: false
app_port: 7860
cursor2api on Hugging Face Spaces
proxies Cursor's web AI into a standard Anthropic Messages API and OpenAI Chat Completions API. No Cursor account or token required.
π Getting updates
Settings β Factory reboot β rebuilds from the latest source on GitHub
π‘ API endpoints
POST /v1/messages β Anthropic-compatible (for Claude Code)
POST /v1/chat/completions β OpenAI-compatible (for Roo Code, Cline, etc.)
GET /v1/models β List available models
GET /logs β Web UI log viewer
Claude Code
{
"autoUpdatesChannel": "latest",
"env": {
"ANTHROPIC_BASE_URL": "https://overwrite69-sonnet.hf.space",
"ANTHROPIC_API_KEY": "any"
}
}
OpenAI-compatible
export OPENAI_BASE_URL=https://overwrite69-sonnet.hf.space/v1
export OPENAI_API_KEY=any