Skip to main content

Module cursor

Module cursor 

Source
Expand description

Cursor — premium-request quota read from the local Cursor IDE session token (state.vscdb) against the undocumented cursor.com/api/usage endpoint the Cursor dashboard itself calls. See db.rs for the token source and fetch.rs/types.rs for the wire call and schema.

Re-exports§

pub use fetch::FetchOutcome;
pub use fetch::fetch_snapshot;

Modules§

db
Read the Cursor IDE’s own session token out of its local state.vscdb.
fetch
Fetch Cursor’s included-usage summary from GET /api/usage-summary, authenticated with the session token read out of the local state.vscdb (see db.rs). Cache/stale/error-fallback shape mirrors kimi::fetch.
types
Wire types for GET cursor.com/api/usage-summary.
vendor
Cursor renderer — bar text + bordered Pango tooltip. Two included-usage pools (Cursor Models / Other Models), like Kimi’s two windows but keyed on model category rather than a time window.