forked from standardagents/composer-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
290 lines (269 loc) · 12.8 KB
/
Copy pathindex.html
File metadata and controls
290 lines (269 loc) · 12.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="stylesheet" href="/src/styles.css" />
<meta name="theme-color" content="#f5f3ef" media="(prefers-color-scheme: light)" />
<meta name="theme-color" content="#0b0b0f" media="(prefers-color-scheme: dark)" />
<title>API for Cursor</title>
<meta
name="description"
content="A local macOS app that gives OpenCode, Codex, and OpenAI-compatible clients a local API for Cursor Composer."
/>
<meta property="og:type" content="website" />
<meta property="og:title" content="API for Cursor" />
<meta
property="og:description"
content="Download the local macOS app for Cursor Composer models, OpenCode, Codex, and OpenAI-compatible clients."
/>
<meta property="og:image" content="https://api-for-composer.standardagents.ai/og-image.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="API for Cursor" />
<meta
name="twitter:description"
content="A local macOS app that gives OpenCode, Codex, and OpenAI-compatible clients a local API for Cursor Composer."
/>
<meta name="twitter:image" content="https://api-for-composer.standardagents.ai/og-image.png" />
<meta name="twitter:image:alt" content="API for Cursor" />
</head>
<body>
<div class="aurora" aria-hidden="true">
<span class="aurora-blob aurora-blob--one"></span>
<span class="aurora-blob aurora-blob--two"></span>
<span class="aurora-blob aurora-blob--three"></span>
<span class="aurora-grain"></span>
</div>
<main id="landing">
<header class="site-header">
<div class="header-bar glass">
<a class="brand" href="/" aria-label="API for Cursor">
<img class="brand-icon" src="/api-for-cursor-icon.png" alt="" width="36" height="36" />
<span class="brand-text">API for Cursor</span>
</a>
<nav class="header-nav" aria-label="Primary navigation">
<a href="#features">Features</a>
<a href="#setup">Setup</a>
<a href="#release">Release</a>
</nav>
<a class="btn btn-pill" href="/download">
<i data-lucide="download" data-size="16"></i>
<span>Download</span>
</a>
</div>
</header>
<section class="hero" aria-labelledby="hero-title">
<button type="button" class="notice-chip glass" data-endpoint-modal-open>
<span class="notice-dot" aria-hidden="true"></span>
<span>Where did the hosted API endpoints go?</span>
<i data-lucide="arrow-right" data-size="14"></i>
</button>
<div class="hero-icon-wrap" aria-hidden="true">
<img class="hero-icon" src="/api-for-cursor-icon.png" alt="" width="120" height="120" />
</div>
<h1 id="hero-title">
<span class="hero-title-line">API for</span>
<span class="hero-title-line hero-title-accent">Cursor</span>
</h1>
<p class="hero-copy">
Run a small local server that makes Cursor Composer models available to OpenCode,
Codex, VS Code extensions, and any OpenAI-compatible client.
</p>
<div class="hero-actions">
<a class="btn btn-primary btn-lg" href="/download">
<i data-lucide="download" data-size="20"></i>
<span class="btn-stack">
<strong>Download for macOS</strong>
<small>DMG installer, macOS 14+</small>
</span>
</a>
<button class="btn btn-glass btn-lg" type="button" data-copy="http://127.0.0.1:8787/v1">
<span class="btn-stack">
<strong class="copy-label">Copy local base URL</strong>
<small><code>http://127.0.0.1:8787/v1</code></small>
</span>
<i data-lucide="copy" data-size="18" class="copy-icon"></i>
<i data-lucide="check" data-size="18" class="copied-icon"></i>
</button>
</div>
<div class="hero-showcase">
<div class="app-window glass" aria-label="API for Cursor app preview">
<div class="window-bar">
<span class="traffic" aria-hidden="true">
<span></span><span></span><span></span>
</span>
<span class="window-title">API for Cursor</span>
</div>
<div class="app-body">
<div class="app-head">
<img src="/api-for-cursor-icon.png" alt="" width="56" height="56" />
<div class="app-head-text">
<h3>Local server</h3>
<p><code>http://127.0.0.1:8787/v1</code></p>
</div>
<span class="status-pill">
<span class="status-dot" aria-hidden="true"></span>
Running
</span>
</div>
<div class="endpoint-list">
<div class="endpoint-row">
<span class="endpoint-name">Models</span>
<code>/v1/models</code>
</div>
<div class="endpoint-row">
<span class="endpoint-name">Chat</span>
<code>/v1/chat/completions</code>
</div>
<div class="endpoint-row">
<span class="endpoint-name">Responses</span>
<code>/v1/responses</code>
</div>
</div>
<div class="agent-list">
<div class="agent-chip">
<span class="agent-id"><img src="/standard-agents-mark-white.svg" alt="" /> OpenCode</span>
<span class="agent-state"><i data-lucide="check" data-size="14"></i> Configured</span>
</div>
<div class="agent-chip">
<span class="agent-id"><img src="/openai-logo.svg" alt="" /> Codex</span>
<span class="agent-state"><i data-lucide="check" data-size="14"></i> Configured</span>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="features" class="features" aria-label="Why a local API">
<article class="feature-card glass" data-reveal>
<span class="feature-icon feature-icon--blue"><i data-lucide="monitor-dot" data-size="22"></i></span>
<h2>Local first</h2>
<p>The server runs on your Mac, so agent tools keep working against your real project files instead of a hosted sandbox.</p>
</article>
<article class="feature-card glass" data-reveal>
<span class="feature-icon feature-icon--green"><i data-lucide="server" data-size="22"></i></span>
<h2>OpenAI-compatible</h2>
<p>Chat Completions, Responses, and Models endpoints are exposed at a standard local <code>/v1</code> base URL.</p>
</article>
<article class="feature-card glass" data-reveal>
<span class="feature-icon feature-icon--purple"><i data-lucide="refresh-cw" data-size="22"></i></span>
<h2>Auto-updating</h2>
<p>Sparkle update feeds let signed releases roll forward without asking you to reinstall manually.</p>
</article>
</section>
<section id="setup" class="setup" aria-labelledby="setup-title">
<div class="section-heading" data-reveal>
<p class="kicker">Works where agents already run</p>
<h2 id="setup-title">One local app. First-class agent setup.</h2>
<p class="section-sub">
Paste your Cursor key, start the local API, then point any OpenAI-compatible
client at <code>127.0.0.1</code>. No proxy hops, no hosted sandbox.
</p>
</div>
<div class="setup-grid">
<article class="showcase-card glass showcase-card--wide" data-reveal>
<div class="showcase-media">
<img src="/opencode-composer-2-5.webp" alt="OpenCode selecting Composer 2.5 through API for Cursor" loading="lazy" />
</div>
<div class="showcase-text">
<h3>OpenCode sees Composer models</h3>
<p>OpenCode keeps its local filesystem and shell loop while the model route runs through the local API with one-click setup.</p>
</div>
</article>
<article class="showcase-card glass" data-reveal>
<div class="codex-card">
<div class="codex-head">
<img src="/openai-logo.svg" alt="" width="30" height="30" />
<span>Codex</span>
<small>custom provider</small>
</div>
<div class="codex-option codex-option--selected">
<span>composer-2.5</span>
<strong><i data-lucide="check" data-size="13"></i> Ready</strong>
</div>
<div class="codex-option">
<span>composer-2.5-fast</span>
<strong class="codex-tag"><i data-lucide="zap" data-size="13"></i> Fast</strong>
</div>
<pre><code><span class="c-sec">[model_providers.cursor-composer]</span>
<span class="c-key">base_url</span> = <span class="c-str">"http://127.0.0.1:8787/v1"</span></code></pre>
</div>
<div class="showcase-text">
<h3>Codex-compatible provider</h3>
<p>Use the same OpenAI-compatible base URL in Codex and any tool that supports custom providers.</p>
</div>
</article>
</div>
</section>
<section id="release" class="release-section" aria-labelledby="release-title">
<div class="release-card glass" data-reveal>
<div class="release-text">
<p class="kicker">Production release path</p>
<h2 id="release-title">Signed installs, notarized, auto-updating.</h2>
<p>
Releases are built by GitHub Actions, packaged as a DMG, notarized by Apple,
published to Cloudflare R2, and announced to the app through a Sparkle appcast.
</p>
<ul class="release-points">
<li><i data-lucide="lock" data-size="15"></i> Notarized & signed</li>
<li><i data-lucide="refresh-cw" data-size="15"></i> Background updates</li>
<li><i data-lucide="terminal" data-size="15"></i> macOS 14 Sonoma+</li>
</ul>
</div>
<a class="btn btn-primary btn-lg release-cta" href="/download">
<i data-lucide="download" data-size="20"></i>
<span class="btn-stack">
<strong>Download latest DMG</strong>
<small>Auto-updates after install</small>
</span>
</a>
</div>
</section>
<footer class="site-footer">
<div class="footer-inner glass">
<a class="brand" href="/" aria-label="API for Cursor">
<img class="brand-icon" src="/api-for-cursor-icon.png" alt="" width="30" height="30" />
<span class="brand-text">API for Cursor</span>
</a>
<p class="footer-copy">A local macOS bridge for Cursor Composer models.</p>
<div class="footer-links">
<a href="#features">Features</a>
<a href="#setup">Setup</a>
<a href="/download">Download</a>
</div>
</div>
</footer>
</main>
<div id="chat-root" hidden></div>
<div class="modal-backdrop" data-endpoint-modal hidden>
<section class="modal glass" role="dialog" aria-modal="true" aria-labelledby="endpoint-modal-title">
<button class="modal-close" type="button" data-endpoint-modal-close aria-label="Close">
<i data-lucide="x" data-size="18"></i>
</button>
<p class="kicker">Endpoint update</p>
<h2 id="endpoint-modal-title">The hosted API is moving out of the request path.</h2>
<p>
Cursor asked us to take down the hosted API endpoint. We are keeping the current routes
online temporarily while this local app is verified, but the production path is now the
local macOS app.
</p>
<p>
The local app is the better long-term experience: your API key stays on your machine,
agent tools run against your real project folders, and OpenCode or Codex can connect to
a normal OpenAI-compatible localhost URL.
</p>
<a class="btn btn-primary btn-lg" href="/download">
<i data-lucide="download" data-size="20"></i>
<span class="btn-stack">
<strong>Download for macOS</strong>
<small>Use the local API instead</small>
</span>
</a>
</section>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>