Agent SDK: pricing, plan requirements, and limits are not documented. Where can I find them?

I’m evaluating the Agent SDK for a team and read the docs before trying it. I couldn’t find answers to the questions below. A pointer to the right page would be enough if they are already documented.

Pages I read: the Agent SDK blog post, the Agent SDK docs (overview, Quickstart, Deployment, CLI reference, Access), the Pricing page, and Teams pricing.

1. Pricing

  • Is there a charge for hosted runtime, in addition to model usage?
  • Does model usage draw from each seat’s weekly pool, or from additional usage?
  • Which account is billed: the seat of the person who deployed, or the team?
  • The TypeScript SDK docs say SDK runs follow the same pricing as the IDE and Cloud Agents. Does this also apply to the Agent SDK?

2. Plans

  • Does “Cloud agents & automations” on the pricing page include the Agent SDK?
  • Which plans can use managed hosting?
  • The CLI reference says deploying needs a team with agent hosting turned on. Where is that setting, and who can change it?

3. Local runs

  • Do agent-sdk dev and agent-sdk eval use the weekly pool or additional usage when nothing is deployed?
  • Does self-hosting an agent as a Node process change how usage is billed?

4. Limits

  • Does the team’s monthly additional usage limit also stop Agent SDK usage, including hosted agents?
  • Is there a way to set a spend limit per agent or per deployment?

5. Package name
The blog example imports from @cursor/agent-sdk, but the quickstart installs @grok/agent-sdk. Which one is correct?

6. Data and secrets

  • How are hosted secrets stored, and who can read them? The Access page says Owners have access to secrets, but I couldn’t find details on storage.
  • How long is deployment data retained, and in which regions is it stored?

7. Self-Hosted Machines
Is there any relationship between the Agent SDK’s self-hosting option and Self-Hosted Machines for Cloud Agents? They appear to be separate, but I couldn’t find this stated in the docs.

Thanks!

Hi @macnishio, you’re right that most of this isn’t written down yet. Here’s how it works today, in your order:

  1. Hosted agents are charged for model usage at the same rates as the IDE and Cloud Agents. Each deployment runs as its own team-owned service account, so usage is billed to the team, not to the seat of whoever deployed. On a Teams plan it doesn’t draw from anyone’s included usage; it’s billed as additional usage, so the team needs that turned on. I’m checking with the team whether hosted runtime has any charge on top of model usage.

  2. Managed hosting needs a team, since personal deploys aren’t supported. “Agent hosting turned on” means the person deploying can use Cloud Agents in that team, which a team Admin controls from the team’s Cloud Agents settings in the dashboard. I’m confirming how the pricing page’s “Cloud agents & automations” line maps to the SDK.

  3. agent-sdk dev and agent-sdk eval bill to whichever account the CLI is signed in as (agent-sdk login or CURSOR_API_KEY), the same way as that account’s other usage. Self-hosting with agent-sdk serve works the same: model calls bill to the key you give it, and running the Node process costs nothing extra.

  4. Yes, once the team hits its usage limit, hosted agents stop starting new turns too. A per-agent or per-deployment spend limit isn’t documented yet, and I’m checking whether one is available.

  5. @grok/agent-sdk is correct (it was @cursor/bdk before). Both will continue to work for now.

  6. Secret values are encrypted at rest and write-only: the CLI and dashboard show names, never values, and values are decrypted only into the running agent’s environment. They persist across redeploys and are deleted with the secret or the deployment. I don’t have details to share about region/retention right now, but you should expect it’s the same as the rest of your Cursor data.

  7. They’re separate. Self-hosting the Agent SDK means running agent-sdk serve as your own Node process. Self-Hosted Machines are workers for Cloud Agents.

Thanks for the detailed answers. They helped me scope a small local trial, so here is what I found in case it helps others.

**Setup**

Agent SDK 0.6.0, composer-2.5 with Fast off, read, grep and glob tools only, no deployment, run on a Mac. The instructions held a few past lessons, such as “when a check changes, another check may read the same input”. I gave it the diffs of merged PRs and repository snapshots from those commits. 9 runs in total.

**Results**

- A real miss from one PR: a sync contract was updated, but a separate readiness gate still rejected the same change. It found this in 4 of 4 runs, in about 40 to 120 seconds.

- Other PRs: it also found stale smoke test expectations and an error message stored without redaction, both confirmed in the code. The redaction issue predates the PR.

- It never answered “no findings” on any of the 5 PRs, and I did not verify every finding, so I can’t give a false positive rate. The lessons also resembled the miss I tested, which made that case easier.

My conclusion: useful as a helper for finding a second place that needs the same change. I won’t use it as a merge gate.

**Cost**

About $0.80 for 9 runs, calculated from token counts and the published Composer 2.5 rates. I have not compared this with billing.

**Rough edges and questions**

1. `agent-sdk run --json` reports `totalCostUsd: 0`. Is that expected for local runs? Where is the right place to see the cost of a run?

2. `agent-sdk init` defaults to grok-4.7 with Fast on. It would help if the docs called out the cost impact.

3. Every run logged `You can only call end() on a span once` from `[bdk:otel]`. Is this harmless?

4. The browser sign-in page showed “Unable to complete sign-in”, while the CLI had signed in successfully.

5. From macOS Terminal, running on an external volume failed with `EPERM: uv_cwd`. It worked over SSH. This looks like an OS permission rather than an SDK problem, but a note in troubleshooting could save time.

6. Do local runs load user rules from the `~/.cursor` folder? The answers used wording that I suspect came from my personal rules. Is there a way to turn that off for an agent?

I’m still interested in the answers you are checking: hosted runtime charges, how the pricing page maps to the SDK, and per-agent spend limits.

Hi @macnishio,

  1. totalCostUsd is the amount actually charged. Local runs bill to the account the CLI is signed in as, so yours came out of your own seat’s included usage and were charged $0. Their list price lines up with your estimate. For the breakdown, run agent-sdk session get <sessionId> --view cost --json while agent-sdk dev is running: cost.rawCostUsd is the list price and cost.costUsd is what was charged. The runs also show on the Usage page of your dashboard. Hosted agents work differently, as I mentioned before. A deployed agent runs as its own team service account, which has no included usage on a Teams plan, so its usage is billed as additional usage.

  2. Fair point, I’ve shared that feedback. You can change the model in bot/agent.ts, for example model: "composer-2.5".

  3. It’s harmless. The SDK’s tracing closes one span twice and logs it, but the run isn’t affected. It’s a known issue the team is aware of.

  4. If the CLI says you’re signed in, the login worked and you can ignore that page.

  5. That’s probably macOS privacy settings. Go to System Settings → Privacy & Security → Files and Folders → Terminal and turn on Removable Volumes (or Network Volumes, depending on the drive), then reopen Terminal. SSH sessions get their permissions separately, which is why it worked there.

  6. Your rules from Cursor Settings aren’t loaded, but rule files on disk can be. A local run reads .cursor/rules, AGENTS.md and CLAUDE.md from the session folder and every folder above it. By default that folder sits under ~/.cache, so ~/.cursor/rules and ~/AGENTS.md get picked up. There’s no switch for it, but moving the sessions out of your home folder avoids it:

export default defineAgent({
  local: { cwd: "/tmp/my-agent-sessions" },
});

If you set workspaceDir (for your repo snapshots), that folder is the one that counts, so keep it outside your home folder too.

On your other questions:

  • Managed hosting is available on the Teams and Enterprise plans. Right now hosted agents are billed for model usage only, with no separate charge for the hosting itself.
  • Per-agent spend limits are only available on Enterprise plans right now. On Teams, hosted agents fall under the team-wide usage limit I mentioned earlier, so that’s the cap to set.

Thanks a lot for the detailed answers. They cleared up everything I was unsure about, and the rules-loading explanation was especially helpful. My workspace snapshot already lives outside my home folder, so personal rules aren’t picked up.

Here is how we are going to use the Agent SDK, in case it helps others.

**Setup**

- Local runs only, no deployment. Billing comes out of our seats’ included usage and shows $0 charged.

- composer-2.5 with Fast off.

- Tools limited to read, grep and glob, pointed at a snapshot of the repository. No secrets, no environment files, no production data.

**What it is good at**

- **Checking whether an open issue still exists in the current code.** About a minute per question, and 13 of 13 runs reached a clear verdict.

- **Finding a second place that needs the same fix.** It found a real miss from one of our PRs (a second check that rejected the same change) in 4 of 4 runs.

- **Sorting old draft PRs** into “still needed” and “already fixed on main”.

**What we won’t use it for**

- **Pass/fail decisions on PRs.** It always finds something to report, so we treat its output as leads that a person or another reviewer confirms.

- **Hosted agents, for now.** On a Teams plan they bill as additional usage without a per-agent cap. We’ll revisit once we have a clear use case and a cost estimate from local runs.

Thanks again for the quick and clear support.