Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions sdk/coding-agent-cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ async function main() {
throw new Error("Set CURSOR_API_KEY before running the CLI.")
}

if (!apiKey.startsWith("crsr_")) {
throw new Error(
"Invalid Cursor API key format. Keys must start with 'crsr_'. Please check your CURSOR_API_KEY."
)
}
Comment thread
cursor[bot] marked this conversation as resolved.

if (options.prompt) {
await runPlainPrompt(apiKey, options, options.prompt)
return
Expand Down