How do I get access to systemPrompt in @cursor/sdk? (unknown option '--system-prompt')

Hi! I’m building an agent service on the TypeScript SDK (@cursor/sdk 1.0.38, local runtime) and would like systemPrompt enabled for my account.

What happens

const agent = await Agent.create({
  apiKey,
  model: { id: "default" },
  systemPrompt: "<persona instructions>",
  local: { cwd },
});
const run = await agent.send("Hello");
await run.wait();

About 20 seconds after send(), the run fails with:

[invalid_argument] unknown option '--system-prompt'

The error comes back in the run.wait() result, not from send(). The SDK’s docs for systemPrompt say access is gated server side, so I understand it needs
to be enabled per account.

  • Request ID: f17875d3-6c4a-42ee-b107-1bb6278ef838
  • Agent ID: agent-6029d705-9067-40bd-8662-ed2d2dd06008
  • Time: 2026-10-19 03:42 UTC
  • SDK: @cursor/sdk 1.0.38, local agent, Node 24 on macOS (arm64), model Auto
  • Plan: Pro

Why I need it

My agents aren’t coding assistants. Each use case needs its own persona, with its own role, tone and rules, and none of them should behave like a coding agent.
Without systemPrompt, every agent still runs under Cursor’s built-in coding-assistant prompt, so the persona I give it competes with that identity instead of
replacing it.

Current workaround

I write each persona as an always-applied project rule (.cursor/rules/instructions.mdc) and load only project settings. That adds the persona on top of the
coding prompt, but it doesn’t replace it, so the coding identity and its guidance still shape the replies. Every run also pays the tokens for a prompt it
doesn’t need.

Questions

  1. Can systemPrompt be enabled for my account? Happy to share my account email in a DM.
  2. If it’s limited to certain plans or a waitlist, how do I request it?

Thanks!

Hey @Rohit_Sen, your setup is correct, systemPrompt just isn’t open to external accounts yet, and it’s not something we can switch on per account, plan, or waitlist today (so no need to share your email). That access check is what fails the first send(), and the unknown option '--system-prompt' wording is misleading for this case.

This is an issue we’re tracking, and I’ve linked your report (persona use case included).

For now, the always-applied project rule you’re using (or an AGENTS.md in the agent’s cwd) is the best option, and putting the key persona lines at the start of each send() helps them take priority, though neither fully replaces the built-in prompt yet. I’ll follow up here if access widens.

Hey @Rohit_Sen,

Quick update: the error you hit is being changed so it clearly says custom system prompts aren’t enabled for the account, instead of the misleading unknown option '--system-prompt' wording. That change will be rolled out soon if it hasn’t been already.

Access to systemPrompt itself hasn’t changed yet, so the always-applied project rule (or an AGENTS.md in the agent’s cwd) is still the best option for your personas for now.

Requesting systemPrompt access for a production Slack-facing assistant (Enterprise)

Following up on this thread — we’re hitting the same gate on an Enterprise team and want to add a concrete production data point for the access rollout.

Error

[invalid_argument] Custom system prompt is not enabled for this account.
Contact Cursor support to request access.

Environment

  • @cursor/sdk 1.3.1 (TypeScript, local agents)
  • Node 26 / Node 22.13 (both reproduced)
  • tools: ["mcp"], local.fs: emptyFs(), settingSources: [], in-process local.customTools
  • Fails on first send(); Agent.create() succeeds
  • Removing systemPrompt makes the same call finish normally in ~4 s

Use case — why the built-in coding prompt is the wrong layer We’re embedding a local agent inside an existing SaaS product (Cadence, a product-team delivery/1:1 app) as a read-only assistant. It’s not a coding tool: no repo, no shell, no files. All tools are our own in-process functions over our Postgres data, scoped per user role.

What we need the system prompt for:

  1. Scope discipline — the agent must only answer from tool output and must never infer or expose another user’s data. Role rules differ per viewer (lead / PM / delivery), and getting this wrong is a privacy incident, not a wrong answer.
  2. Data fencing — tool results contain third-party text (tickets, meeting notes). The prompt must state that tool JSON is data, never instructions. Prompt injection is our top risk.
  3. Product voice and brevity — short, non-technical answers to PMs, not coding-assistant framing.
  4. No-hallucination rules — every number must carry an as-of time from a tool result.

Putting this in AGENTS.md works (verified), but it’s a project-rules layer sitting on top of the coding prompt, not a replacement. For a shipped product we need deterministic, versioned, per-deploy instructions that we can test and diff — not a rules file the model may weight differently. We also can’t rely on prepending instructions to every user message: it burns tokens per turn, and it’s trivially diluted by long conversation history.

Ask Enable custom system prompts for @cursor/sdk local agents on Enterprise API keys, or publish a path to request it (formal request form, support ticket with team ID, early-access flag). Even a documented “not yet, tracked, no ETA” answer helps us plan, because the alternative is forking our prompt layer around a coding harness we don’t want.

Happy to share a minimal repro or jump on a call with the SDK team. Team and key details available to Cursor staff on request.