ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

Cursor2Api

Skill by 0xcjl

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/0xcjl/cursor2api
Or

name: cursor2api description: cursor2api proxy service management tool that converts Cursor IDE's free AI conversations into Anthropic Messages API / OpenAI Chat Completions API format. Supports Docker deployment, environment configuration, token refresh, and complete uninstallation. Use when user asks to: (1) Install or deploy cursor2api, (2) Configure cursor2api for OpenClaw/Claude Code/CC Switch, (3) Refresh or retrieve Cursor Session Token, (4) Uninstall cursor2api.

cursor2api

cursor2api bridges Cursor IDE's AI models with OpenClaw/Claude Code by converting Cursor's internal API into standard Anthropic/OpenAI formats.

Architecture:

OpenClaw / Claude Code
         ↓ (ANTHROPIC_BASE_URL)
cursor2api Docker/Node (:3010)
         ↓ (Session Token)
Cursor Official API

Prerequisites

  • Docker (for containerized deployment) or Node.js 18+ (for local)
  • A Cursor account with active AI subscription
  • WorkosCursorSessionToken from Cursor

Quick Start

# 1. Get your WorkosCursorSessionToken (see references/token.md)

# 2. Start the service
docker run -d \
  --name cursor-api \
  -p 3010:3000 \
  -e WORKOS_CURSOR_SESSION_TOKEN=your_token \
  waitkafuka/cursor-api:latest

# 3. Configure OpenClaw
export ANTHROPIC_BASE_URL="http://localhost:3010/v1"
export ANTHROPIC_API_KEY="your_token"
export ANTHROPIC_DEFAULT_SONNET_MODEL="claude-sonnet-4-6"

# 4. Restart OpenClaw
openclaw gateway restart

Core Operations

OperationCommand
Installdocker run -d --name cursor-api -p 3010:3000 -e WORKOS_CURSOR_SESSION_TOKEN=token waitkafuka/cursor-api:latest
Statusdocker ps | grep cursor-api
Refresh TokenSee references/token.md
Uninstalldocker stop cursor-api && docker rm cursor-api

API Endpoints

EndpointFormatCompatible With
http://localhost:3010/v1/messagesAnthropic Messages APIOpenClaw, Claude Code
http://localhost:3010/v1/chat/completionsOpenAI Chat CompletionsCC Switch, Universal

Documentation

DocumentDescription
Installation GuideDocker deployment, verification, troubleshooting
Token ManagementObtaining and refreshing WorkosCursorSessionToken
ConfigurationOpenClaw, Claude Code, CC Switch setup
Quick ReferenceOne-page cheat sheet

⚠️ Important Notes

  • ToS Risk: Using third-party proxies may violate Cursor's Terms of Service
  • Token Expiry: Session tokens expire periodically; monitor and refresh as needed
  • API Stability: Cursor's internal API may change without notice

Metadata

Author@0xcjl
Stars4473
Views1
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-0xcjl-cursor2api": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.

Related Skills

autoresearch-pro

Automatically improve OpenClaw skills, prompts, or articles through iterative mutation-testing loops. Inspired by Karpathy's autoresearch. Use when user says 'optimize [skill]', 'autoresearch [skill]', 'improve my skill', 'optimize this prompt', 'improve my prompt', 'polish this article', 'improve this article', or explicitly requests quality improvement for any text-based content. Supports three modes: skill (SKILL.md files), prompt (any prompt text), and article (any document).

0xcjl 4473

cjl-slides

Create stunning HTML presentations in 24 international design styles with strict design rules. Export to .pptx for PowerPoint editing. ## Design Philosophy - Aesthetic-first: each style is a curated visual system, not just colors - Font whitelist enforcement: prevents AI-generic typography - Container ratio lock (16:9): ensures consistent rendering across devices - Zero external dependencies: pure HTML/CSS/JS, works offline ## Usage 1. Activate → Select style by name/number or browse 24 options 2. Provide content (topic, audience, key points) or upload .pptx for conversion 3. Review generated HTML slides → request modifications (color/font/layout) 4. Optionally export .pptx for manual editing in PowerPoint ## Precautions - Fonts are restricted to a whitelist; custom fonts require adding to the allowed list first - Chart.js CDN is used; if blocked, falls back to jsdelivr mirror - HTML files must retain their relative structure when shared - .pptx export preserves exact colors and fonts but layout uses pptx-native elements ## Credits Design rules adapted from "专精 HTML 演示文稿的顶级视觉设计师" (24 design styles reference). Base HTML structure and tooling inspired by zarazhangrui/frontend-slides.

0xcjl 4473

Diagram Drawing

Skill by 0xcjl

0xcjl 4473

anti-sycophancy

Three-layer sycophancy defense based on ArXiv 2602.23971. Use /anti-sycophancy install to deploy all layers, or manage individually via install-claude-code / install-openclaw / uninstall / status / verify. Layer 1: CC-only hook; Layer 2: SKILL (cross-platform); Layer 3: CLAUDE.md (CC) / SOUL.md (OC).

0xcjl 4473

auto-diary

Automatically write daily/weekly/monthly diary summaries and extract insights to auto-learn.md for HexaLoop.

0xcjl 4473