Azhi-ss

将 Cursor Agent CLI 反代为 OpenAI / Anthropic 兼容的 HTTP API 网关

11
1
69% credibility
Found Apr 09, 2026 at 11 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
TypeScript
AI Summary

This project runs AI agent command-line tools and exposes them as a web service compatible with standard chat APIs.

How It Works

1
🔍 Discover the AI bridge

You hear about a handy tool that lets powerful AI helpers work through simple web chats, perfect for adding smarts to your apps.

2
📥 Get it ready

You download the tool and prepare it on your computer, like setting up a new gadget.

3
🧠 Pick your AI helper

You choose which smart AI brain to use, like Codex, Claude, Gemini, or Cursor, based on what fits your needs best.

4
🚀 Start your service

You launch the service with a quick go, and it comes alive on your computer as a private web helper.

5
🔗 Connect your tools

You point your app, script, or website to the easy web address where your AI lives.

6
💬 Start chatting

You send questions or tasks, and watch the AI respond with clever ideas and solutions.

Supercharge your work

Now your everyday projects feel magical with instant AI help, all running safely from your own machine.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 11 to 11 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is cursorcli2api?

This TypeScript tool runs a lightweight HTTP server that proxies Cursor Agent CLI (and similar tools like codex, claude, gemini) into an OpenAI-compatible /v1/chat/completions API endpoint, plus Anthropic /v1/messages support. It solves the hassle of invoking cursor agent cli directly by letting you hit standard API calls from any client, bypassing cursor agent limits, location restrictions, and mode quirks. Fire up `agent-cli-to-api cursor-agent --port 8000` and integrate cursor agent skills into apps without CLI scripting.

Why is it gaining traction?

Unlike raw CLIs, it delivers streaming responses, tool calls, image inputs, and model overrides via familiar OpenAI/Anthropic formats, with presets like "cursor-auto" for instant setup. Devs dig the doctor command for troubleshooting cursor agent view or github token issues, and multi-provider fallback (e.g., claude-oauth when cursor hits limits). It's a quick bridge for cursor github integration or copilot-like flows in non-Cursor environments.

Who should use this?

AI engineers building agents.md workflows or custom UIs that need cursor agent review power without IDE lock-in. Backend devs scripting cursor agents.md file tasks in CI/CD, dodging cursor github bad credentials or codespaces glitches. Teams standardizing on OpenAI APIs but wanting local cursor agent cli for privacy or cost.

Verdict

Grab it if you're deep in Cursor ecosystem and need API flexibility—solid for prototypes despite 11 stars and 0.699999988079071% credibility score signaling early maturity. Test thoroughly; docs are README-focused, no tests visible, but TypeScript keeps it reliable for personal use. (198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.