Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
cursorapi/.env.example at main · dwgx/cursorapi · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
See all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
dwgx
cursorapi
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
cursorapi
/
.env.example
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
69 lines (56 loc) · 3.08 KB
main
Breadcrumbs
cursorapi
/
.env.example
Copy path
Top
File metadata and controls
Code
Blame
69 lines (56 loc) · 3.08 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#
Copy to .env and fill in. docker compose reads it automatically. chmod 600 .env
#
── Auth ────────────────────────────────────────────────
#
Client keys, comma-separated. Empty = no auth, **only acceptable while
#
listening on localhost** — this service fronts a whole pool of Cursor
#
accounts you paid for; leaving it open hands the quota to everyone.
CSPK_CLIENT_KEYS
=
sk-give-this-to-clients
#
Admin password (status page / hot reload / account enable-disable).
#
Empty = reuse the client keys above, letting clients see how many accounts
#
you have and whose emails they are.
CSPK_ADMIN_KEY
=
#
── Pool ────────────────────────────────────────────────
#
Accounts list file. Changes apply without a restart: POST /admin/reload or
#
click "Reload" on the status page.
CSPK_ACCOUNTS
=
/data/accounts.json
#
How many accounts one client request may cycle through. If 3 don't work it
#
is almost certainly a mass outage; further switching just wastes time.
CSPK_MAX_ACCOUNT_ATTEMPTS
=
3
#
Probe interval (ms). Uses Cursor.me() — read-only, no run, no quota cost.
#
0 = fetch identity once at startup, no periodic probing.
CSPK_PROBE_INTERVAL_MS
=
1800000
#
── Tiered cooldowns (hot-reloadable: PUT /admin/config, no restart) ──
#
429 short cooldown: base x consecutive-429 count (5s→10s→15s…), capped at max.
#
Must be short — long cooldowns self-inflict whole-pool 503s on small pools.
CSPK_COOLDOWN_429_BASE_MS
=
5000
CSPK_COOLDOWN_429_MAX_MS
=
90000
#
5xx upstream jitter: fixed short cooldown.
CSPK_COOLDOWN_5XX_MS
=
30000
#
Auth failure (session-level, the kind probing can't verify): long window,
#
auto-retried once it expires.
CSPK_COOLDOWN_AUTH_MS
=
600000
#
── Behaviour ───────────────────────────────────────────
#
Prefix for public model names. Empty = Cursor's model ids as-is
#
(claude-opus-5 and friends).
CSPK_PREFIX
=
#
Allow "subagent-spawning" tools (Task / subagent / *_agent).
#
Off by default: 5 subagents in one turn = 6 billings, and the client can't
#
see where the money went.
CSPK_ALLOW_SUBAGENTS
=
false
#
How long a turn may go without any event (ms). Measures "no activity", not
#
"total duration".
CSPK_TURN_IDLE_TIMEOUT_MS
=
600000
#
How long to wait for the client to return a tool result (ms). They may be
#
waiting for the user to approve an action; be generous.
CSPK_TOOL_RESULT_TIMEOUT_MS
=
600000
CSPK_HOST
=
0.0.0.0
CSPK_PORT
=
8008
CSPK_WORKSPACE
=
/work
CSPK_LOG_LEVEL
=
info
#
Upstream HTTP proxy (e.g. http://127.0.0.1:10808). Required for domestic
#
deployments: Cursor gates inference streams by egress region and the SDK
#
ignores the system proxy — configure it here explicitly.
CSPK_PROXY
=
#
Per-model default parameters (JSON): auto-appended when the client sends a
#
bare model name, e.g. the Claude Code scenario
#
CSPK_MODEL_DEFAULTS={"claude-opus-5":"[1m]","claude-sonnet-5":"[1m]"}
CSPK_MODEL_DEFAULTS
=
You can’t perform that action at this time.