Skip to content

CLI Reference

These flags are available on every command:

FlagShortDefaultDescription
--output-otableOutput format: table, json, or yaml
--debugfalseShow HTTP request/response details (on stderr, so -o json output stays valid)
--api-keyAPI key (overrides env and config file)
--base-urlhttps://api.chronary.aiAPI base URL
--no-colorfalseDisable colored output
VariableDescription
CHRONARY_API_KEYAPI key (used if --api-key not set and no config profile)
CHRONARY_BASE_URLAPI base URL override

The CLI stores credentials in ~/.config/chronary/config.json (or the platform-specific user config directory). Managed via chronary auth commands. If the file is not valid JSON, commands that need an API key stop with an error that names the file, and auth login never overwrites it.

Delete commands ask for confirmation. Answering no, or pressing Ctrl-C, prints Cancelled. and exits 0. With no terminal (CI, cron, containers, agent sandboxes) the prompt cannot be shown, so the command exits 1 without sending a request. Pass --yes (or --force) to delete non-interactively.


Manage authentication profiles.

Interactive login — prompts for your API key, validates it with an authenticated API call, and saves it to a profile. A key the API rejects is not saved.

The key is validated against --base-url (or CHRONARY_BASE_URL) when given, otherwise https://api.chronary.ai, and that URL is saved with the profile. A URL saved in another profile, or earlier in this one, is never reused.

FlagDefaultDescription
--profiledefaultProfile name to save credentials under
Terminal window
chronary auth login
chronary auth login --profile staging

Show the active profile’s key (masked), mode (test/live), and base URL.

Terminal window
chronary auth status

List all configured profiles with their mode and masked key.

Terminal window
chronary auth list

Switch the active profile.

Terminal window
chronary auth switch production

Delete a saved profile.

Terminal window
chronary auth remove staging

Manage Agent keys. Aliases: key.

These commands require an Organization key.

List all Agent keys for the authenticated organization.

Terminal window
chronary keys list
chronary keys list -o json
FlagDefaultDescription
--agentAgent ID (required unless using @file)
--labelOptional label shown in later listings

The raw key is printed once on successful creation.

Terminal window
chronary keys create --agent agt_a1b2c3d4 --label "Sales agent"
chronary keys create @key.json
FlagShortDescription
--force-fSkip confirmation prompt
--yes-ySkip confirmation prompt (alias)
Terminal window
chronary keys delete key_abc123
chronary keys delete key_abc123 --yes

Manage agents. Aliases: agent.

FlagDefaultDescription
--typeFilter by type: ai, human, resource
--statusFilter by status: active, paused, decommissioned
--limit50Max results per page
--offset0Pagination offset, at most 10,000
--allfalseFetch all pages automatically
Terminal window
chronary agents list
chronary agents list --type ai --status active --all
FlagDefaultDescription
--nameAgent name (required unless using @file)
--typeaiAgent type: ai, human, or resource
--descriptionAgent description
--metadataMetadata as a JSON string
Terminal window
chronary agents create --name "Sales Bot" --type ai
chronary agents create @agent.json

Retrieve an agent by ID.

Terminal window
chronary agents get agt_a1b2c3d4
FlagDescription
--nameNew name
--statusNew status: active or paused
--descriptionNew description
--metadataNew metadata as JSON string

At least one flag is required.

Terminal window
chronary agents update agt_a1b2c3d4 --name "Sales Bot v2" --status paused
FlagShortDescription
--force-fSkip confirmation prompt
--yes-ySkip confirmation prompt (alias)
Terminal window
chronary agents delete agt_a1b2c3d4
chronary agents delete agt_a1b2c3d4 --yes

Manage calendars. Aliases: calendar, cal.

FlagDefaultDescription
--agentFilter by agent ID
--limit50Max results per page
--offset0Pagination offset, at most 10,000
--allfalseFetch all pages automatically
Terminal window
chronary calendars list
chronary calendars list --agent agt_a1b2c3d4
FlagDefaultDescription
--nameCalendar name (required unless using @file)
--timezoneUTCIANA timezone (e.g., America/New_York)
--agentAgent ID to own the calendar
--default-remindersDefault reminder offsets in minutes, comma-separated (e.g. 10,1440). Omit for the system default; pass an empty value (--default-reminders=) for none
--prevent-overlapsfalseRefuse any event that would overlap an active event on this calendar (double-booking guarantee)
--metadataMetadata as JSON string
Terminal window
chronary calendars create --name "Sales Meetings" --timezone "America/New_York" --agent agt_a1b2c3d4
chronary calendars create @calendar.json
Terminal window
chronary calendars get cal_x1y2z3
FlagDescription
--nameNew name
--timezoneNew timezone
--default-remindersDefault reminder offsets in minutes, comma-separated. Pass an empty value (--default-reminders=) to clear
--prevent-overlapsTurn the double-booking guarantee on (--prevent-overlaps) or off (--prevent-overlaps=false). Sent only when given
--metadataNew metadata as JSON string
Terminal window
chronary calendars update cal_x1y2z3 --name "Updated Name"
chronary calendars update cal_x1y2z3 --prevent-overlaps
FlagShortDescription
--force-fSkip confirmation
--yes-ySkip confirmation (alias)
Terminal window
chronary calendars delete cal_x1y2z3 --yes

Return the temporal context (current event, next event, recent, upcoming) for a calendar.

Terminal window
chronary calendars context cal_x1y2z3

Manage buffer-time and working-hours rules for a calendar. Aliases: rules.

Terminal window
chronary calendars availability-rules get cal_x1y2z3
chronary calendars availability-rules set cal_x1y2z3 @rules.json
chronary calendars availability-rules delete cal_x1y2z3 --yes

Manage events. Aliases: event.

FlagDefaultDescription
--calendarCalendar ID (required if --agent not set)
--agentAgent ID (lists all events across agent’s calendars)
--start-afterFilter: start time after (ISO 8601)
--start-beforeFilter: start time before (ISO 8601)
--statusFilter: confirmed, tentative, or cancelled
--limit50Max results per page
--offset0Pagination offset, at most 10,000
--allfalseFetch all pages automatically
Terminal window
chronary events list --calendar cal_x1y2z3
chronary events list --agent agt_a1b2c3d4 --status confirmed --all
FlagDefaultDescription
--calendarCalendar ID (required)
--titleEvent title (required unless using @file)
--startStart time, ISO 8601 (required unless using @file)
--endEnd time, ISO 8601 (required unless using @file)
--descriptionEvent description
--all-dayfalseAll-day event
--statusStatus: confirmed, tentative, cancelled, or hold
--remindersReminder offsets in minutes, comma-separated (e.g. 10,1440). Omit to inherit the calendar default; pass an empty value (--reminders=) for none
--metadataMetadata as JSON string
--hold-expires-atRequired when --status=hold. ISO 8601 timestamp 30s–15min in the future.
--hold-priority0Priority for hold conflict resolution (0–100)
--recurrence-ruleMake the event recurring: RRULE subset without the RRULE: prefix (e.g. FREQ=WEEKLY;BYDAY=MO,WE;COUNT=12). Not allowed with --status=hold
--timezoneIANA time zone the series repeats in (e.g. America/Los_Angeles). Omit for UTC. See Time zones
Terminal window
chronary events create \
--calendar cal_x1y2z3 \
--title "Team standup" \
--start "2026-04-07T09:00:00Z" \
--end "2026-04-07T09:15:00Z"
# Weekly class at 16:00 Los Angeles time, all year
chronary events create \
--calendar cal_x1y2z3 \
--title "Pottery class" \
--start "2026-11-17T16:00:00-08:00" \
--end "2026-11-17T17:30:00-08:00" \
--recurrence-rule "FREQ=WEEKLY;BYDAY=TU" \
--timezone America/Los_Angeles
# Place a 5-minute hold at priority 10
chronary events create \
--calendar cal_x1y2z3 \
--title "[hold] Candidate slot" \
--start "2026-04-07T14:00:00Z" \
--end "2026-04-07T14:30:00Z" \
--status hold \
--hold-expires-at "2026-04-07T13:05:00Z" \
--hold-priority 10
FlagDescription
--calendarCalendar ID (required)
Terminal window
chronary events get evt_m1n2o3 --calendar cal_x1y2z3
FlagDescription
--calendarCalendar ID (required)
--titleNew title
--startNew start time (ISO 8601)
--endNew end time (ISO 8601)
--descriptionNew description
--statusNew status
--remindersReminder offsets in minutes, comma-separated. Pass an empty value (--reminders=) to clear all reminders
--metadataNew metadata as JSON string
--recurrence-ruleSet or change the series rule (full-series edit). Pass an empty value (--recurrence-rule "") to make the event one-off
--timezoneSet or change the IANA time zone the series repeats in. Pass an empty value (--timezone "") to return the series to UTC. Send it with --recurrence-rule to move a UTC series to local time in one call

Cancelled occurrences move with the series when its start, rule or time zone changes. Any that no longer fit are listed after the update with the command to cancel them again (droppedExdates with --output json).

Terminal window
chronary events update evt_m1n2o3 --calendar cal_x1y2z3 --status cancelled
# Move a UTC-stored Tuesday 16:00 Los Angeles class to local time
chronary events update evt_m1n2o3 --calendar cal_x1y2z3 \
--timezone America/Los_Angeles --recurrence-rule "FREQ=WEEKLY;BYDAY=TU"
FlagShortDescription
--calendarCalendar ID (required)
--force-fSkip confirmation
--yes-ySkip confirmation (alias)
Terminal window
chronary events delete evt_m1n2o3 --calendar cal_x1y2z3 --yes

Promote a hold (status=hold) to a confirmed event. The hold must still be active.

Terminal window
chronary events confirm evt_m1n2o3

Manually release a hold before its TTL, freeing the slot for other agents.

Terminal window
chronary events release evt_m1n2o3

Query free/busy time slots. Aliases: avail.

All availability subcommands accept:

FlagDefaultDescription
--startStart of window, ISO 8601 (required)
--endEnd of window, ISO 8601 (required)
--slot-duration30mSlot size: 15m, 30m, 45m, 1h, 2h
--include-busyfalseInclude busy blocks in response
Terminal window
chronary availability agent agt_a1b2c3d4 \
--start "2026-04-07T09:00:00Z" \
--end "2026-04-07T17:00:00Z"

All availability subcommands accept --allow-stale. It returns slots from a usable stale human-calendar cache and is intended only for exploratory suggestions. The default remains fail-closed; inspect availability_state in JSON/YAML output.


Request human-approved Google Calendar or Microsoft Outlook setup without exposing OAuth credentials to the agent.

Terminal window
chronary connection-links create cal_a1b2c3 --capabilities availability
chronary connection-links get csl_a1b2c3
chronary connection-links cancel csl_a1b2c3

create also accepts --capabilities availability,publishing and --publication-policy none|confirmed|confirmed_tentative. The secret setup_url is returned only by the original create response; polling never replays it.

Terminal window
chronary availability calendar cal_x1y2z3 \
--start "2026-04-07T09:00:00Z" \
--end "2026-04-07T17:00:00Z"
FlagDescription
--agentsComma-separated agent IDs (required)
--calendarsComma-separated calendar IDs (optional filter)
Terminal window
chronary availability cross \
--agents "agt_a1b2c3d4,agt_e5f6g7h8" \
--start "2026-04-07T09:00:00Z" \
--end "2026-04-07T17:00:00Z" \
--slot-duration 1h

Manage webhook subscriptions. Aliases: webhook, wh.

FlagDefaultDescription
--limit20Max results per page
--offset0Pagination offset, at most 10,000
--allfalseFetch all pages
FlagDescription
--urlWebhook endpoint URL (required unless using @file)
--eventsComma-separated event types (required unless using @file)

Valid events: agent.created, agent.updated, event.created, event.updated, event.deleted.

Terminal window
chronary webhooks create \
--url "https://example.com/hook" \
--events "event.created, event.updated"
Terminal window
chronary webhooks get wh_a1b2c3d4
FlagDescription
--urlNew endpoint URL
--eventsNew comma-separated event types
--activeEnable (true) or disable (false) the webhook
Terminal window
chronary webhooks update wh_a1b2c3d4 --active=false

Rotate the signing secret (Developer or Pro). Prints the new secret once; the old secret keeps signing X-Signature-V2-Previous (and the deprecated v1 X-Signature-Previous) until it expires.

FlagDefaultDescription
--expire-old-in24hWhen the old secret stops working: now, 1h, 24h or 7d
Terminal window
chronary webhooks rotate-secret wh_a1b2c3d4 --expire-old-in 1h
FlagShortDescription
--force-fSkip confirmation
--yes-ySkip confirmation (alias)

webhooks replay <webhook-id> <delivery-id>

Section titled “webhooks replay <webhook-id> <delivery-id>”

Sends a failed or dropped delivery again as a new delivery (Developer or Pro). The new delivery counts toward your monthly webhook delivery quota. See Replay a delivery.

Terminal window
chronary webhooks replay whk_a1b2c3d4 whd_e5f6g7h8

Manage iCal feed subscriptions. Aliases: ical-subscriptions.

FlagDefaultDescription
--agentAgent ID (required)
--statusFilter: active, error, paused
--limit50Max results per page
--offset0Pagination offset, at most 10,000
--allfalseFetch all pages
Terminal window
chronary ical list --agent agt_a1b2c3d4
FlagDescription
--agentAgent ID (required)
--calendarCalendar ID to sync into (required)
--urliCal feed URL, must be HTTPS (required)
--labelLabel for this subscription
Terminal window
chronary ical create \
--agent agt_a1b2c3d4 \
--calendar cal_x1y2z3 \
--url "https://calendar.google.com/calendar/ical/example/basic.ics" \
--label "Google Calendar"
Terminal window
chronary ical get ics_a1b2c3d4
FlagDescription
--labelNew label
--urlNew iCal feed URL (HTTPS)
Terminal window
chronary ical update ics_a1b2c3d4 --label "Work Calendar"
FlagShortDescription
--force-fSkip confirmation
--yes-ySkip confirmation (alias)

Trigger an immediate sync (normally runs approximately every 15 minutes via cron).

Terminal window
chronary ical sync ics_a1b2c3d4

Manage multi-agent scheduling proposals. Aliases: schedule, proposals.

Requires a @file payload with title, organizer_agent_id, participant_agent_ids, calendar_id, and slots.

Terminal window
chronary scheduling create @proposal.json
FlagDefaultDescription
--statusFilter: pending, confirmed, expired, cancelled
--organizerFilter by organizer agent ID
--limit50Max results per page
--offset0Pagination offset, at most 10,000
--allfalseFetch all pages automatically

Returns the full proposal (slots + responses).

Submit an agent response. @file body: { agent_id, response, selected_slot_id?, counter_slots?, message? }.

Terminal window
chronary scheduling respond spr_a1b2c3 @respond.json

Pick the winning slot and create the event.

Terminal window
chronary scheduling resolve spr_a1b2c3

Cancel a pending proposal.

Terminal window
chronary scheduling cancel spr_a1b2c3

Show current plan usage and quota limits. No flags beyond global options.

Terminal window
chronary usage
chronary usage -o json

Show monthly totals for the last 1 to 12 UTC months (default 6), ending with the current month to date. Needs an Organization key.

Terminal window
chronary usage history
chronary usage history --months 12 -o json

Show the plan and billing status. Billing is read-only for agents: you can ask your human to upgrade, but you cannot pay, cancel, or change payment methods.

Terminal window
chronary billing
chronary billing -o json

Ask your human to upgrade to the next plan up (Developer or Pro). Prints an approval URL to give to your human. If a request is already pending it is reused.

FlagDefaultDescription
--intervalmonthmonth or year
--reason—Why the upgrade is needed (max 500 characters, shown to your human)
--waitfalsePoll once a minute until the request is completed, declined, canceled, or expired
Terminal window
chronary billing request-upgrade --interval year --reason "Need scoped keys for my sub-agents"
chronary billing request-upgrade --wait

After the request is completed, retry the blocked call about 15 seconds later.

Show an upgrade request. Poll at most once a minute.

Terminal window
chronary billing upgrade-request get upr_abc123

Withdraw a pending upgrade request.

Terminal window
chronary billing upgrade-request cancel upr_abc123

Plan and quota errors from any command print an Upgrade: line with the console link and suggest chronary billing request-upgrade.


Check API connectivity and latency. No authentication required.

Terminal window
chronary health
chronary health -o json

Print the CLI version.

Terminal window
chronary version