Feature Request: Alternative Authentication for Analytics API Infrastructure Integration

Feature request for product/service

API Keys

Describe the request

Hi Cursor team,

We’re building internal infrastructure to track AI agent usage across different coding agents.

One gap we hit with Cursor is that Cursor transcripts do not appear to include token usage information.

For comparison, Claude Code writes usage data directly into its transcript events, for example:

{
  "type": "assistant",
  "message": {
    "id": "msg_1",
    "usage": {
      "input_tokens": 100,
      "cache_creation_input_tokens": 20,
      "cache_read_input_tokens": 0,
      "output_tokens": 10
    }
  }
}

This makes it straightforward for infra systems to collect per-message usage, including cached and non-cached tokens, without needing a separate admin-level API integration.

For Cursor, we could use the Analytics API, but it requires an API key with admin-level access. That feels risky for shared infrastructure. We would prefer not to put a broad admin key into a common usage-collection service.

Could Cursor support token usage in transcript data?

  • input tokens
  • output tokens
  • cache read tokens
  • cache creation/write tokens
  • model name
  • request/message id

Our main requirement is simple: we need a reliable way to collect Cursor usage for internal cost attribution and agent comparison, without giving shared infrastructure an admin API key.

Is this something Cursor already supports, or is it on the roadmap?