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.
- In Cronus, open Settings → Integrations → API. Create a key named ChatGPT with only the Stats permission.
- In ChatGPT on the web, open Plugins → Add → Add custom MCP server. Name it Cronus, enter the server URL below, and choose OAuth authentication.
- Review the connection warning and create the plugin. Continue to Cronus, then enter your dedicated API key on the Cronus authorization page.
- Start a chat, select @Cronus, and ask: “How distracted was I last week, and what were the biggest drivers?”
https://cronus-server.fly.dev/mcpRequires 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 categoryactivity: blocks, intervals and events, with apps, titles and URLsmemories: what Cronus has learned about your workactivity:write: create, edit and delete manual entries, and correct categoriescategories:write: create, edit, archive and delete categoriesmemories:write: create, edit, rate and delete memoriesscreen_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
| Endpoint | Scope | Returns | Parameters |
|---|---|---|---|
| POST /manual-entries | activity:write | Create a manual time entry. | JSON: name, categoryId, start, end |
| PATCH /manual-entries/:id | activity:write | Edit a manual entry. | JSON: name, categoryId, start, end (all optional) |
| DELETE /manual-entries/:id | activity:write | Delete a manual entry and restore observed time underneath it. | |
| PATCH /intervals/:id/category | activity:write | Correct one interval’s category. | JSON: categoryId |
| PATCH /blocks/:id/category | activity:write | Correct every interval behind a calendar block. | JSON: categoryId |
| POST /categories | categories:write | Create a category. | JSON: name, color, productive; optional description, emoji, groupId |
| PATCH /categories/:id | categories:write | Edit or archive a category. | JSON: name, color, productive, description, emoji, groupId, archived (all optional) |
| DELETE /categories/:id | categories:write | Delete a category, optionally moving its time to another category. | Optional query: reassignToId |
| POST /memories | memories:write | Store a memory, respecting the existing limits and deduplication. | JSON: text (max 200 characters) |
| PATCH /memories/:id | memories:write | Replace a memory’s text. | JSON: text |
| DELETE /memories/:id | memories:write | Delete a memory. | |
| POST /memories/:id/feedback | memories:write | Rate a memory. A down vote hides it; an up vote restores it. | JSON: vote (up or down), optional comment |
| GET /me | any | Your account, time zone and the key’s scopes. | |
| GET /categories | any | Every category, including archived ones. | |
| GET /stats/daily | stats | Per day: total, productive and unproductive time, app switches, time per category. | from, to (dates, up to 92 days) |
| GET /stats/day | stats | One day, with time per activity (app or website) as well. Summaries need activity. | date |
| GET /blocks | activity | Your calendar as Cronus draws it: blocks with their name, summary, category and activities. | from, to (dates, up to 31 days) |
| GET /intervals | activity | The 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 /events | activity | Every captured window switch, with the AI’s summary and reasoning. Screen text needs screen_text. | from, to, limit, cursor |
| GET /now | activity | The newest window event and whether the Mac is still reporting: active, asleep, locked or stale. | |
| GET /openapi.json | none | The OpenAPI 3.1 schema for every response. No key needed. | |
| GET /memories | memories | What 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-DDin your account’s time zone. A range includes both ends, sofrom=2026-10-18&to=2026-10-18is that whole day. Without dates you get today. /intervalsand/eventsalso take ISO timestamps or epoch milliseconds forfromandto.- 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
doneWhat an event carries
appis the name the app shows, which changes if the app is renamed.bundleId(for examplecom.apple.dt.Xcode) does not. Use it as the app’s identity. It isnullon 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).urlis the page in a browser.documentUrlis the same idea for other apps: the file or folder the focused window has open, as afile://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 isnull.linkiscronus://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.
/eventsand/nowshow a window change as soon as it is stored./intervalsand/blockshave 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 SleeporSystem Lock(events of typesystem; 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. /nowreturnsstate:active(an event in the last five minutes),asleeporlocked(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) andno_data.eventis the last window seen either way, andageMssays 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.