Cronus AI API

Read and edit your own Cronus AI data over HTTP. The API is free on every plan.

Use Cronus with ChatGPT

Ask ChatGPT about your focus time, distractions, and the apps or websites that took the most time. The Cronus MCP connection is read-only. It cannot edit your data or read your screen text, window titles, full page URLs, or memories.

  1. In Cronus, open Settings → Integrations → API. Create a key named ChatGPT with only the Stats permission.
  2. In ChatGPT on the web, open Plugins → Add → Add custom MCP server. Name it Cronus, enter the server URL below, and choose OAuth authentication.
  3. Review the connection warning and create the plugin. Continue to Cronus, then enter your dedicated API key on the Cronus authorization page.
  4. Start a chat, select @Cronus, and ask: “How distracted was I last week, and what were the biggest drivers?”
https://cronus-server.fly.dev/mcp

Requires a ChatGPT account that supports custom MCP connections. Tested on ChatGPT Pro on the web. Revoke the dedicated key in Cronus to disconnect it at any time. Only the stats requested through the tools are returned; screen text is not shared.

Get a key

In the Cronus AI app, open Settings → Integrations → API and click New key. Choose what the key can read. The key is shown once, so copy it then. Revoke it there at any time. Existing keys stay read-only. To enable writes, create a new key with the write permissions you need; they are off by default.

  • stats: daily totals by category
  • activity: blocks, intervals and events, with apps, titles and URLs
  • memories: what Cronus has learned about your work
  • activity:write: create, edit and delete manual entries, and correct categories
  • categories:write: create, edit, archive and delete categories
  • memories:write: create, edit, rate and delete memories
  • screen_text: the text Cronus read off your screen. Off by default. With on-device categorization, screen text never leaves your Mac, so there is none to return.

Make a request

Send the key as a bearer token. Every response is JSON.

curl https://cronus-server.fly.dev/api/v1/stats/daily?from=2026-10-12\&to=2026-10-18 \
  -H "Authorization: Bearer crn_..."

Base URL: https://cronus-server.fly.dev/api/v1

Endpoints

EndpointScopeReturnsParameters
POST /manual-entriesactivity:writeCreate a manual time entry.JSON: name, categoryId, start, end
PATCH /manual-entries/:idactivity:writeEdit a manual entry.JSON: name, categoryId, start, end (all optional)
DELETE /manual-entries/:idactivity:writeDelete a manual entry and restore observed time underneath it.
PATCH /intervals/:id/categoryactivity:writeCorrect one interval’s category.JSON: categoryId
PATCH /blocks/:id/categoryactivity:writeCorrect every interval behind a calendar block.JSON: categoryId
POST /categoriescategories:writeCreate a category.JSON: name, color, productive; optional description, emoji, groupId
PATCH /categories/:idcategories:writeEdit or archive a category.JSON: name, color, productive, description, emoji, groupId, archived (all optional)
DELETE /categories/:idcategories:writeDelete a category, optionally moving its time to another category.Optional query: reassignToId
POST /memoriesmemories:writeStore a memory, respecting the existing limits and deduplication.JSON: text (max 200 characters)
PATCH /memories/:idmemories:writeReplace a memory’s text.JSON: text
DELETE /memories/:idmemories:writeDelete a memory.
POST /memories/:id/feedbackmemories:writeRate a memory. A down vote hides it; an up vote restores it.JSON: vote (up or down), optional comment
GET /meanyYour account, time zone and the key’s scopes.
GET /categoriesanyEvery category, including archived ones.
GET /stats/dailystatsPer day: total, productive and unproductive time, app switches, time per category.from, to (dates, up to 92 days)
GET /stats/daystatsOne day, with time per activity (app or website) as well. Summaries need activity.date
GET /blocksactivityYour calendar as Cronus draws it: blocks with their name, summary, category and activities.from, to (dates, up to 31 days)
GET /intervalsactivityThe timeline under the calendar: every closed span in an app or on a site, with bundle ID, title, URL, document and category.from, to, limit, cursor
GET /eventsactivityEvery captured window switch, with the AI’s summary and reasoning. Screen text needs screen_text.from, to, limit, cursor
GET /nowactivityThe newest window event and whether the Mac is still reporting: active, asleep, locked or stale.
GET /openapi.jsonnoneThe OpenAPI 3.1 schema for every response. No key needed.
GET /memoriesmemoriesWhat Cronus has learned about your work. Evidence excerpts need screen_text.

Write an entry

Write permissions are independent of read permissions. Pick both if your script needs to read back its changes. IDs come from the read endpoints; for manual entries, use the id returned by creation, or manualEntryId on an interval or block. A block’s own id is only for block operations.

curl -X POST "https://cronus-server.fly.dev/api/v1/manual-entries" \
  -H "Authorization: Bearer $CRONUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Planning","categoryId":"YOUR_CATEGORY_ID","start":"2026-10-18T14:00:00Z","end":"2026-10-18T14:30:00Z"}'

Send JSON bodies. Write timestamps must be epoch milliseconds or ISO timestamps with a time-zone offset. Manual entries must be in the past and last at least a minute (at most 31 days per entry). As in the app, creation may trim the entry to the available time beside another manual entry; read the returned start and end. An edit that overlaps another manual entry is refused with 409.

Category corrections use the app’s rollup/rebuild path. Deleting a category withoutreassignToId leaves its time uncategorized. Raw captured events cannot be rewritten, and these permissions do not allow changing billing, credentials or API keys.

Dates and times

  • Dates are YYYY-MM-DD in your account’s time zone. A range includes both ends, so from=2026-10-18&to=2026-10-18 is that whole day. Without dates you get today.
  • /intervals and /events also take ISO timestamps or epoch milliseconds for from and to.
  • Times in responses are ISO 8601 in UTC. Durations are milliseconds.

Paging

/intervals and /events return up to limit rows (default 200, max 1000) and a nextCursor. Pass it back as cursor with the same range until it is null.

cursor=""
while :; do
  page=$(curl -s "https://cronus-server.fly.dev/api/v1/events?from=2026-10-18&limit=500&cursor=$cursor" \
    -H "Authorization: Bearer $CRONUS_API_KEY")
  echo "$page" | jq -c '.events[]'
  cursor=$(echo "$page" | jq -r '.nextCursor // empty')
  [ -z "$cursor" ] && break
done

What an event carries

  • app is the name the app shows, which changes if the app is renamed. bundleId (for example com.apple.dt.Xcode) does not. Use it as the app’s identity. It is null on anything captured before it was recorded, on manual time, and on phone time read from the iPhone app itself (phone time read through the Mac carries the iOS bundle ID).
  • url is the page in a browser. documentUrl is the same idea for other apps: the file or folder the focused window has open, as a file:// URL the app publishes through macOS accessibility. Document editors and some terminals do (Ghostty publishes its working directory); many Electron apps publish nothing, and then it is null.
  • link is cronus://timeline?t=… with the start in epoch milliseconds. Opening it on a Mac with Cronus installed shows the calendar on that day, scrolled to that moment. It works on events, intervals and blocks.

How fresh the data is

  • The Mac records a window change as it happens and uploads it a few seconds later. Measured over one day of real uploads: median 2.7 s, 90% within 10 s, 99% within 25 s. A Mac that was offline uploads when it reconnects, so those arrive late.
  • /events and /now show a window change as soon as it is stored. /intervals and /blocks have a span only once the next event ends it, so the activity in progress is missing there. While one window stays in front the Mac sends a heartbeat every 150 s, so a span closes within about two and a half minutes. For what is on screen now, use /now.
  • There is no idle detection: Cronus does not read the keyboard or mouse. A window that stays in front keeps counting. Time stops when the Mac reports System Sleep or System Lock (events of type system; they never become intervals), or when the events simply stop. A span is never credited more than five minutes without a new event behind it, so a gap between intervals is time nobody was recorded.
  • /now returns state: active (an event in the last five minutes), asleep or locked (the Mac said so and nothing since), stale (quiet for more than five minutes with no sleep or lock, so Cronus is quit, paused or offline, or the Mac is off) and no_data. event is the last window seen either way, and ageMs says how old the latest report is.

Schema and stability

https://cronus-server.fly.dev/api/v1/openapi.json is the OpenAPI 3.1 description of every read response. The server’s tests check live responses against it, so it cannot drift from what you get. Inside /api/v1 fields and endpoints are only ever added: a field is never removed, renamed or given a different type, so ignore fields you do not recognise. A breaking change would be /api/v2.

Limits and errors

60 requests per minute per key. Over that you get 429 with a Retry-After header. Errors look like {"error": {"code": "missing_scope", "message": "..."}}: 401 for a missing or revoked key, 403 for a missing scope, 400 for bad parameters, 404 for a missing record (including records belonging to another account), and 409 for duplicates, conflicts or a full memory store.