Skip to content

About

Command-line client for the Olympus API, built for agents

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

olympus-cli

olympus β€” the command-line client for the Olympus API, built for agents first (--json, stable exit codes, OLYMPUS_API_KEY) and humans second. API reference: docs/API.md. Agents: llms.txt is a compact install-and-use guide written for LLM agents.

Install

curl -fsSL https://raw.githubusercontent.com/coba-ai/olympus-cli/main/install.sh | sh
sh install.sh [vX.Y.Z]     # from a clone; default is the latest release

The asset's SHA256SUMS line is verified before install. Target dir: ${OLYMPUS_INSTALL_DIR:-$HOME/.local/bin}. Linux x64/arm64 and macOS x64/arm64 (the macOS builds are cross-compiled). Binaries are also on the releases page.

Sign in

olympus login                        # prints a code, opens the browser; approve it there
olympus login --no-browser           # on a remote machine: open the printed URL yourself
olympus login --with-token < token   # a token created in Settings β†’ API tokens
export OLYMPUS_API_KEY=oly_...       # or just set it (agents, CI)

Tokens are created and revoked in the Olympus app under Settings β†’ API tokens. A token acts as you, optionally limited to one organization.

Commands

olympus login [--no-browser]        # device login: approve the printed code in a browser
olympus login --with-token          # read a token from stdin instead
olympus logout | whoami | org list | org use <slug> | agents list
olympus webhook list | get <id> | delete <id> --yes
olympus webhook create --name N --agent PROFILE (--instructions T | --instructions-file PATH|-) [--full-tools]
                       [--mode run|inbox] [--signature PRESET | --signature-file PATH] [--provider-secret-file PATH|-]
olympus webhook update <id> [--name] [--agent] [--instructions|--instructions-file] [--[no-]full-tools]
                       [--mode run|inbox] [--signature PRESET | --signature-file PATH] [--provider-secret-file PATH|-]
olympus crons list | get <id> [--page N] | runs <id> [--page N]
olympus crons create --name N (--schedule T | --schedule-file PATH|-) (--instructions T | --instructions-file PATH|-) [--profile P]
olympus crons update <id> [--name N] [--schedule T | --schedule-file PATH|-] [--instructions T | --instructions-file PATH|-]
                         [--script T | --script-file PATH|-]
olympus crons pause <id> [--note T] | resume <id> | delete <id> --yes | run <id> [--wait] [--timeout SECONDS]
olympus people                      # members, then agents (ids, kind, email, paused)
olympus tags                        # the organization's tags, most used first
olympus tasks | task list [--week D] [--mine | --who ID|me|EMAIL] [--open | --done] [--today] [--tag T]... [--backlog]
olympus task get <id> | add TEXT | update <id> | done <id> | undone <id> | today <id> | star <id> | delete <id> --yes
olympus task add TEXT [--desc T] [--assign W] [--backlog] [--today] [--star] [--tag T]...
olympus task update <id> [--text T] [--desc T] [--assign W | --unassign] [--section the_rest|backlog]
                         [--tag T]... | [--no-tags] | [--add-tag T]... [--remove-tag T]...
olympus task today <id> [--off] | star <id> [--off]
olympus task sub add <id> TEXT [--assign W] | sub done <id> <sid> [--undo] | sub delete <id> <sid> --yes
olympus task delegate <id> [--to AGENT]         # open an agent session for the task
olympus task breakdown <id> [--agent AGENT] [--timeout SECONDS | --no-wait]   # ask an agent to add subtasks
olympus task breakdown-status <handle> [--wait] [--timeout SECONDS]           # read a started breakdown again
olympus day [DATE] | day show [DATE]            # one day's close-of-day entry; DATE is YYYY-MM-DD, default today
olympus day list [--week D]                     # the week's five weekdays
olympus day close [DATE] [--shipped T] [--blocker T]... [--learning T]... [--reflection T] [--draft]
olympus crm pipelines [--archived] | crm tags [--entity E] | crm search QUERY [--entity E]
olympus crm deals [--pipeline ID] [--stage ID|none] [--status S] [--owner EMAIL|me|none] [--q T] [--archived] [--sort S] [--page N]
olympus crm people | companies [--q T] [--archived] [--sort S] [--page N]
olympus crm deal get <id> | add NAME | update <id> | move <id> STAGE_ID | owner <id> EMAIL|me|--none | archive <id> [--undo]
olympus crm deal add NAME [--pipeline ID] [--stage ID] [--amount N] [--currency C] [--next T] [--owner W]
                          [--company ID | --new-company NAME] [--person ID | --new-person NAME [--person-email E]]
olympus crm deal update <id> [--name T] [--amount N] [--currency C] [--next T] [--lost-reason T]
                             [--tag T]... | [--no-tags] | [--add-tag T]... [--remove-tag T]... [--version V]
olympus crm deal company <id> COMPANY_ID | --new NAME
olympus crm deal person <id> PERSON_ID | --new NAME [--email E]
olympus crm deal note <id> TEXT|-               # - reads the note from stdin
olympus crm deal task add <id> TITLE [--due ISO] [--assign W] | task done <id> <task_id> [--undo]
olympus crm person|company get <id> | archive <id> [--undo]
olympus crm deal|person|company deletion-preview <id> | delete <id> --yes
olympus crm deal unlink-company <id> | unlink-person <id>
olympus crm task done <task_id> [--undo]        # any record's task, by task id
olympus crm person|company task add <id> TITLE [--due ISO] [--assign W]
olympus crm pipeline get <id> | archive <id> [--undo]
olympus crm pipeline add NAME --stage NAME:KIND... [--currency C]...
olympus crm pipeline update <id> [--name T] [--stage [ID=]NAME:KIND]... [--remove STAGE_ID:MOVE_TO_ID]...
                                 [--restore ID]... [--currency C]... [--version V]
olympus crm automation pause|resume <deal-id> [--automation KEY | --all] | run <deal-id> [--automation KEY] [--wait] [--timeout SECONDS]
olympus crm <create command> ... [--idempotency-key K]   # deal|person|company add, deal note, deal|person|company task add, pipeline add
olympus crm person add NAME [--email E] [--phone P] [--job-title T] [--linkedin-url U] [--company ID | --new-company NAME]
olympus crm company add NAME [--domain D] [--website U] [--industry T] [--linkedin-url U] [--phone P] [--city C]
olympus crm person|company update <id> [--name T] [the add flags] [--notes T] [tag flags] [--version V]
olympus subscription list | get <id> | delete <id> --yes | rotate-secret <id> | ping <id>
olympus subscription create --name N --url URL --event T... | update <id> [--name N] [--url URL] [--event T]... [--active | --inactive]
olympus event-types                 # event names accepted by --event ('*' = all events)
olympus ask AGENT TEXT|- [--session ID] [--timeout SECONDS] [--no-wait]   # - reads the text from stdin
olympus sessions [--closed | --all] [--agent SLUG] [--page N]
olympus session get <id> [--after MSG_ID] | session close <id>
olympus browser attach [CODE] [--name N] [--allow-origin HOST[:PORT]]...   # lend this computer's browser to the org's agent
olympus briefing [--day YYYY-MM-DD] [--request]
olympus version | --version

Global flags: --json, --host URL, --org SLUG, -h/--help. No flag takes a token. webhook create and update take --mode run|inbox, --signature (a preset name: olympus, svix, standard-webhooks, github, stripe, linear, calcom, circleback, gitlab-token) or --signature-file (a JSON custom scheme; not both), and --provider-secret-file PATH|-. The provider secret is read from that file or from stdin, one trailing newline stripped, and is never a command-line argument and never printed. An empty file is a usage error. webhook create prints the signing secret once, in text and --json, only when the response's secret is not null (the olympus preset). Other presets return none: you supply the provider's secret instead. update sends only the fields given. delete never prompts and requires --yes. When approval is pending, a terminal says an owner must approve this in Olympus β†’ Webhooks on stdout, and --json puts that sentence in a top-level hint. When it is rejected, the sentence is an owner rejected this; fix it and update to resubmit. Piped stdout does not include the hint or the newer fields (approval, approved_at, created_via, mode, signature, secret_set, or anything else the server adds); the hint goes to stderr instead, including under --json. Roles are operator and teammate; a teammate cannot webhook get (exit 4) or write.

Crons are scheduled jobs on the organization's agent machine. Any member can list, get and runs. create, update, pause, resume and delete need operator (exit 4 otherwise). run needs operator or the cron's owner. A non-member is exit 3. create and update take the schedule and the instructions as a flag or a file (- is stdin); one trailing newline is removed, an empty value is a usage error, and the flag and the file cannot both be given. Stdin can supply only one of them. --script is update only. --profile on create names the agent; omit it for an org-wide cron (profile_name * in the response). delete needs --yes. run returns once the run is accepted. --wait polls that cron's runs, following later pages while more is set, until that run's state is ok, error or unknown, or until --timeout (default 300 seconds, at most 86400). A finished run is exit 0 whatever its state: read state. A timeout is exit 5 timeout, and the message names olympus crons runs <id>. Ctrl-C is exit 130 and says whether the run was started. create is not idempotent: after exit 5, list before creating again. 409 already_running and not_queued are exit 5 (not_queued includes details.run). 422 invalid is exit 6.

Tasks: any member, teammate included, can read and write them. Every task subcommand (and tasks) takes --week DATE: any date works, the server normalises it to that week's Monday, and the default is the current week. --star / task star marks the one thing; task today flags a task for today. --assign and --who take me, a person id (olympus people) or a member's email; --assign is resolved by the server, so a value that matches nobody (or a paused agent) is exit 6. task delete and task sub delete never prompt and require --yes. --tag replaces a task's tags, --no-tags clears them, and --add-tag / --remove-tag edit them without replacing (they cannot be combined with --tag or --no-tags); edits made this way by two people at once never drop each other's tags.

List filters are applied by the CLI to the week's tasks: --mine, --who and --today match a task whose own assignee/flag matches or any of its subtasks, and show the whole task; --open and --done look at the task only; --tag is repeatable, matches exact strings (Urgent is not urgent) and requires every tag given; --backlog keeps the backlog section. --mine with --who, and --open with --done, are usage errors. An unknown --who is exit 6. Text that starts with - needs -- (olympus task add -- "-x").

CRM (olympus crm …): any member can read. Writing a record or a pipeline needs the operator role (a teammate gets exit 4). Pausing, resuming or running a stage automation is open to any member. Records are deals, people and companies. --version V on an update is optional. Sent, the update is refused when the record changed since you read it (exit 6, "it changed since you read it"); omitted, the last writer wins for the fields you send. --add-tag / --remove-tag read the record and then write it with the version they read, so they are not atomic: on exit 6, run the command again. Any tag flag together with other fields is two server writes; if the second fails, the first stays. archive hides a record and is reversible with --undo; it needs no --yes. --archived on a list shows only archived records, --sort and --page are passed to the server (one page at a time), and --owner and --stage take none. A CRM that is not set up yet is exit 6; a temporarily unavailable one (retry after Ns) is exit 5. Exit 5 with details.saved: true (in --json stderr) means the change may already be saved. For a create, follow the server message: it says whether a retry with the same --idempotency-key (below) is safe (the agent machine confirmed it stored the key) or to read the record (details.id) and not repeat the request; for any other write, read the record and do not retry. Exit 5 without saved (network error, timeout): look for the record first (crm search / get); if it is missing, retry with the same key. --stage needs --pipeline.

delete removes a record for good and cannot be undone (unlike archive, which --undo reverses). It needs --yes, never prompts, and without --yes is exit 1 with no request. On a terminal it first fetches deletion-preview and prints the counts of what goes with the record (one extra request), then deletes; if the preview fails, nothing is deleted. Piped or with --json it sends the one delete. deletion-preview alone changes nothing. deal unlink-company / unlink-person detach the deal's company or person; crm task done marks any record's task done by its task id (--undo reopens it). person|company task add works like deal task add. Person and company detail list at most 10 open tasks, so after task add the new task may not be shown (the confirmation names no task id).

Pipelines: reads are open to any member, but every pipeline write (add, update, archive) is operator only (a teammate gets exit 4). pipelines --archived includes archived pipelines. --stage NAME:KIND (open, won or lost; the kind is whatever follows the last colon, so a name may contain colons) is repeatable and sets the order; pipeline add needs at least one. pipeline update sends only what you give it, with no read first: --stage is then the full ordered list of live stages, and ID=NAME:KIND keeps the existing stage ID (renaming or reordering it) while a plain NAME:KIND is a new stage. A live stage left out of the list must be named in --remove STAGE_ID:MOVE_TO_ID, which moves its deals to MOVE_TO_ID; the server refuses the update otherwise (exit 6). --restore ID brings back an archived stage. --currency is repeatable and replaces the list. --version V works as on records.

Stage automations are part of each pipeline stage: pipelines and pipeline get show the automation key, its state, and the cron that runs (live or paused). crm automation pause, resume and run act on the deal's current stage. Any member can run them. --automation KEY names one key (a-z, 0-9 and -, 1–64 characters, starting with a letter or digit). --all on pause and resume covers every automation that action can change. With neither flag, the server acts when the deal has exactly one and answers 409 automation_required when it has several. Pause takes no note: --note is a usage error and is not sent. run does not take --all. It returns that cron's run receipt (the same fields as crons run). run --wait polls crons runs for that receipt, including later pages, until it closes, with the same timeout as crons run --wait (default 300s, at most 86400). A cron that is not live answers state: cron_paused and queues nothing. These commands send no idempotency key. 409 already_running and not_queued are exit 5, and not_queued includes details.run in --json.

Idempotent creates: deal|person|company add, deal note, deal|person|company task add and pipeline add each send a fresh random Idempotency-Key. --idempotency-key K (1-128 characters from A-Z a-z 0-9 _ . : -) sends your own instead: the same K on a retry returns the original record rather than creating a second one, for 24 hours. On a terminal, an exit-5 failure of a create ends with the key it sent (The idempotency key sent was <key> (--idempotency-key <key> reuses it)); the server message above it decides whether to retry. Piped or with --json that line is not printed, so scripts and agents should always pass their own key (a fresh UUID) on every create. After exit 5, retry with that same key only when the server message says to retry with the same Idempotency-Key; when it says "do not repeat the request", read the record instead. After a network error or timeout, look for the record (crm search / get) first and retry with the same key only if it is missing. An agent machine that has not been updated yet may not honour the key; the API says so in a response header (Idempotency-Key-Honored: false). The CLI does not show that header, so unless you know the organization's agent machine is up to date, look for the record before retrying even when the message says to retry with the same key. crm person add --new-company that exits 6 on idempotency_key: the company may already be saved (details.id in --json); do not retry with that key. Keys are per organization and last 24 hours.

Subscriptions (olympus subscription …) send signed HTTP events to your URL when things happen (olympus event-types lists the names). They are operator only, reads included (a teammate gets exit 4). create and rotate-secret print the signing secret once; it cannot be read again. Rotating makes no promise that the old secret keeps working. delete never prompts and requires --yes. --event is repeatable and replaces the list on update; --active / --inactive switch delivery. ping sends one test event (it is not an event type you can subscribe to): it does not count toward consecutive_failures and exits 0 whether or not your URL answered, so read delivered; status is - on a network failure and error says why. It can be rate limited (exit 5: retry after the stated seconds). A subscription pauses after 20 failed events in a row; re-enable it with update <id> --active. Verifying signatures: docs/API.md. Delivery is at-least-once, so receivers dedupe on X-Request-ID (keep seen ids at least 25 hours); events can arrive late or out of order.

Agents and days:

  • task delegate opens a new agent session for a task, using the task's text and description, and records the agent on the task. --to names an agent (olympus agents list); without it the task's assignee is used if it is an active agent, otherwise the organization's primary agent. It is not idempotent: running it again opens another session. It takes --week like the other task commands.
  • task breakdown asks an agent to propose subtasks and appends them to the task (a task holds at most 5, and one that is full is exit 6). --agent works like --to. It starts the breakdown once (the server answers at once with a handle, bd_…), then reads its status every 3 seconds until it has finished, for up to --timeout seconds (default 300). It prints the subtasks the server says it added, never a guess. --no-wait prints the handle and returns at once. A failed breakdown exits with its reason (5; 6 when the task is full or there is no agent; 3 when the task is gone), and an expired one exits 3. If the wait times out (exit 5) or you press Ctrl-C (exit 130), the breakdown may still be running: the error names the handle and the org, and the command to pick it up again, olympus task breakdown-status <handle> --org <org> --wait. If the start itself got no clear answer (a network failure or a 5xx), it may have started anyway; the CLI does not send it again and says to check with task get <id> before you do.
  • task breakdown-status <handle> reads a breakdown again (it never starts one): once without --wait, printing its status, or with --wait (and --timeout, default 300) until it finishes. A handle is kept 24 hours, then reads as expired (exit 3), and later as not found.
  • day shows your own close-of-day entry for one weekday (Monday to Friday; the default is today in your local time zone, so a weekend "today" is exit 6). day list shows the week's five days. --week takes any date in the week. Only your own entries are visible.
  • day close saves what you give it and closes the day; --draft saves without closing. Fields you do not give are left as they were, but --blocker and --learning replace the whole list. With no content flag (--shipped, --blocker, --learning, --reflection) it asks questions, but only when stdin and stderr are both terminals and --json is off. Otherwise it is a usage error (exit 1) and never waits on stdin, so scripts cannot hang. Re-closing a day from a script means re-sending the content you want kept. Week close is not available from the CLI.

When it asks, day close first reads the day (so a bad token, organization or date fails before the first question), then asks for shipped, blockers (one per line), learnings (one per line) and a reflection. Enter skips a question; an empty line ends a list. Ctrl-C cancels at any point before the save (typed-ahead answers are discarded); Ctrl-D cancels at a question that still needs an answer. Exit 130, nothing saved. If every answer is empty and the day has nothing saved yet, nothing is saved either (exit 130). The wording of prompts and of terminal-mode confirmations is not a stable interface; the piped forms below are.

Asking an agent: olympus ask AGENT TEXT (AGENT is the agent's slug from olympus agents list) opens a session with the agent, sends the text, waits for the reply and prints it. TEXT - reads it from stdin. Replies take minutes, not seconds: the CLI checks about every 2 s (more slowly after an error, and it honours Retry-After), which is about 30 requests a minute, under the 60 a minute a token gets. --timeout is whole seconds, default 300, at most 86400. If the agent is busy with another message in that session the CLI waits and retries until the timeout. --session ID continues a session instead of opening one (the agent must match the session's; otherwise exit 6, agent_mismatch). --no-wait sends and returns at once without a reply (it cannot be combined with --timeout). Stop waiting with Ctrl-C (exit 130); what it prints depends on when you stop: before the message is sent, that nothing was sent; while it is being sent, that it may have been sent (check olympus session get ID); after, the session id to read the reply later with olympus session get ID. The message endpoint's 202 does not identify the accepted message, so if someone else sends a message in the same session at the same moment, the replies cannot be told apart exactly; olympus ask finds its own message by your user id and the exact text it sent, then takes the replies after it up to the first later message from another person (once another person posts after your message, ask returns the reply it has); if you send another message to the same session (from the app or another process) before ask has read its reply, that message's reply can be folded into this ask's output, so send one message per session at a time and wait for ask to return; if its own message never shows up before the deadline it exits 5 timeout and you read it later with session get. Only sessions you opened or take part in are visible to you. sessions lists open sessions (--closed, or --all; --agent filters by slug). session get ID prints the thread (the last 200 messages; --after MSG_ID only newer ones) and session close ID closes a session; its transcript is kept. briefing shows your morning briefing for today (--day for another date); --request asks your agent to write today's. It is exit 6 until your briefing is set up in the Olympus app.

Lending your browser: olympus browser attach CODE pairs this computer with the organization's agent and then holds the connection until Ctrl-C (exit 130). The XXXX-XXXX code comes from Settings β†’ Rafita, lasts 10 minutes and is good for one claim; it is sent as shown (the server normalises it). Pairing stores an obm_ machine token at ~/.config/olympus/browser.json (file 0600, one record per host), and attach with no CODE reconnects with it β€” with nothing stored for that host, that is a usage error. --name labels the computer in the app and is read only when pairing (default: this computer's hostname). olympus logout does not touch this file and does not detach; revoke the computer in Settings β†’ Rafita.

No browser opens yet. Chromium launches on the first CDP stream from the organization's workbench bridge, and that bridge does not exist. Today attach pairs, connects, reports online and opens no window. That is the command working, not stalling. When it does launch it gets a throwaway --user-data-dir made per run and removed on exit β€” signed out, no sync, never your own profile β€” and every connection it makes leaves through a loopback SOCKS5 proxy, down the tunnel, and out of the organization's machine, including Chromium's own startup calls to Google. --disable-background-networking and --disable-component-update are set and, measured against Chromium 152 with a logging SOCKS server, suppress none of it: a fresh signed-out profile on about:blank still reaches six Google hosts, the same six with the flags and without them. Pass --allow-origin if that traffic must not leave; it refuses all six. The binary is $OLYMPUS_CHROME if set, else the first of chromium, chromium-browser, google-chrome, google-chrome-stable on PATH, else the two standard macOS application paths. Nothing is downloaded, and no browser found is exit 1 β€” checked before the pairing code is spent.

That binary is frequently a launcher, not the browser, and a launcher injects your own flags into the throwaway profile. Measured on Arch, where /usr/bin/chromium reads ~/.config/chromium-flags.conf: the launched browser carried the member's --load-extension (three extensions, visible to the agent as live targets), --password-store=gnome-libsecret and their OAuth client credentials. Debian and Ubuntu wrap chromium and google-chrome the same way via /etc/chromium.d/*. attach now spawns with XDG_CONFIG_HOME pointed at the throwaway profile, so an Arch-style launcher finds no conf, and appends --disable-extensions --password-store=basic, which win as the last occurrence whatever a wrapper added. Neither covers every wrapper on its own. If you want certainty, set OLYMPUS_CHROME to the real binary (/usr/lib/chromium/chromium on Arch).

The browser's local CDP port is unauthenticated. It is bound to loopback, but Chromium's debugging socket carries no credential, so any process running as you can drive that browser past this command's CDP filter entirely; --remote-debugging-port also serves /json/new and /json/list, which open and address targets without passing the filter at all. Nothing enforces otherwise: the filter guards the relay, not the port. What it does guard is the workbench's side β€” default-deny by domain (Page, Runtime, DOM, CSS, Input, Network, Fetch, Emulation, Log, Accessibility, plus a method list for Target), on a flattened session the filter watched attach to a page target, with a CDP error back on every refusal rather than a silent drop; downloads are denied browser-wide before any workbench command is forwarded, and the filter refuses everything if that denial fails to install, while file choosers are cancelled per attached page, so a page the filter never sees attach is covered for downloads but not for choosers; navigation and the other URL-bearing methods take http:, https: and about:blank only. Allowing a domain admits every method in it, the ones the protocol grows next included, and Runtime.evaluate is allowed by design, so the agent can run arbitrary JavaScript in the pages it drives.

--allow-origin HOST[:PORT] is repeatable and narrows the default β€” any public host on 80 and 443 β€” to exactly the hosts given. It matches the name Chromium sends with each connection, and the CLI performs no DNS. Private, loopback and link-local addresses are always refused, whatever the list says; a name such as localhost or an internal hostname is not resolved here and so is not refused here, and the organization's machine resolves it at the far end.

With --json, one object per line on stdout as the state changes: paired, connecting, online, stream, refused, closed, stalled, backoff, backpressure, and last {"state":"exit","code":N} carrying the process's exit code, a pair failure included. Human mode prints short status lines to stderr instead. Neither ever carries the machine token. Exits: 0 when the browser closes, 130 on Ctrl-C, 1 for usage (including a bad --allow-origin and no browser on the computer), 3 or 6 for a refused pairing code, 2 when the organization revoked this computer, 6 when another connection attached as the same machine, 5 for a browser that cannot be started or reached and for a relay the CLI gave up on. A revoked or unknown token is not reported as such. Measured: Bun's WebSocket client surfaces no HTTP status for a refused upgrade, so the CLI cannot tell a revoked token from an unreachable machine. Either one shows as repeated reconnection attempts (1 s doubling to 60 s, jittered, ten of them) and then exit 5. Only a close on a live connection is specific: revoked is exit 2, replaced is exit 6.

Environment

Variable Meaning
OLYMPUS_API_KEY token; beats the stored one
OLYMPUS_HOST API host
OLYMPUS_ORG default org
OLYMPUS_CHROME the browser browser attach launches; otherwise Chromium or Chrome from PATH

Empty values count as unset. Stored credentials: ~/.config/olympus/credentials.json (dir 0700, file 0600: host, token, org). The stored token is only sent to its stored host. browser attach keeps its obm_ machine token in a separate file, ~/.config/olympus/browser.json (also 0600), which olympus logout leaves alone.

  • Host: --host β†’ OLYMPUS_HOST β†’ stored host (only when no OLYMPUS_API_KEY) β†’ https://app.tryolympus.ai. http:// only for loopback.
  • Org: --org β†’ OLYMPUS_ORG β†’ the token's pin β†’ stored default β†’ the only membership; otherwise exit 1 listing slugs.

Output and exit codes

Human mode depends on where stdout goes. On a terminal you get headers, aligned columns, relative times ("3h ago"; a time in the future reads +5m, +3h or +8d, and beyond 30 days it is the ISO date, while piped and --json output are unaffected), a * on the default org in org list, and full-sentence confirmations; control characters in server text are stripped from stdout on a terminal and server text in error messages is cleaned on stderr too (except with --json, where stderr is the error body as sent). Piped or redirected, you get plain tab-separated lines that scripts can rely on and that will not change. olympus org list | cat forces the plain form. No colour is emitted, so NO_COLOR does not apply. webhook create shows the signing secret once, in both forms, only when the response's secret is not null. --json prints the API body as-is (three exceptions: tasks with list filters narrows data.tasks and leaves every other key as sent; a webhook whose approval is pending or rejected adds a top-level hint with the sentence to show a person, and prints that same sentence on stderr; crons run --wait prints {data:{run}} for the closed receipt, the same shape as the 202, rather than the runs page it polled; crm automation run --wait prints that same {data:{run}}), one compact line (org list β†’ {data:[…]}, org use β†’ {data:{org}}, delete β†’ {data:{id,deleted:true}}, logout β†’ {data:{deleted}}, task delete and subscription delete β†’ {data:{id,deleted:true}}; task delegate, day … β†’ the response body; task breakdown and task breakdown-status β†’ the last status body read, {data:{id, status, task_id, agent, task, added, …}} (with --no-wait, the start's {data:{id, status:"queued", …}}); task sub delete prints the parent item the server returns). Errors go to stderr; with --json stderr is the error object, and usage errors are {"error":{"code":"usage",…}}. A token is never printed.

Piped tasks output (tab-separated; every server string has control characters stripped, so a tab or newline in task text never splits a row; nothing is printed for an empty list):

  • people: id kind name email|- me|paused|-, one row per person.
  • tags: one tag per line.
  • tasks / task list: id open|done section flags assignee-id|- tag,tag|- text, where flags is star, today, star,today or -. Each subtask follows its task as sid open|done sub:<task id> today|- assignee-id|- - text. A comma inside a tag is ambiguous here.
  • task get and every command that returns an item (add, update, done, undone, today, star, sub …) print these lines: id:, text:, description: (flattened to one line), section:, order:, done:, done_at:, assignee: (id), tags: (comma-joined), today:, one_thing:, added_on:, delegated_to:, delegated_at:, then one subtask: sid<TAB>open|done<TAB>assignee-id|-<TAB>today|-<TAB>text line per subtask. Empty and null values print -; --json is the lossless form.
  • task delete prints deleted <id>.
  • task delegate, four lines: agent: <name>, session: <session id>, title: <title|->, url: <session URL>.
  • task breakdown and task breakdown-status, once finished: agent: <name>, then one added: <sid><TAB><text> line per new subtask (none if the agent added nothing). While it is still queued or running (--no-wait, or breakdown-status without --wait): id: <handle> and status: queued|running.
  • day show / day [DATE], and what day close prints after saving: day:, closed: (true|false), closed_at:, score:, shipped:, reflection:, agent_note: (empty values print -), then one blocker: <id><TAB><text> and one learning: <id><TAB><text> line per item. A day with nothing saved prints the same lines with - for the empty ones. The summary is in --json only.
  • crm pipelines: id pipeline currencies|- name, then one stage-id stage:<pipeline id> kind name row per stage, then one key automation:<stage id> start|- state name cron-id|- true|false|- schedule|- next_run_at|- row per automation on that stage (none when the stage has no automations). true/false is the cron's live flag.
  • crm tags: one tag per line. crm search: entity id sub|- label.
  • crm deals: id status pipeline-id|- stage-id amount currency owner-email|- company-name|- tag,tag|- name. crm people: id email|- company-id|- job-title|- open-deals tag,tag|- name. crm companies: id domain|- city|- open-deals tag,tag|- name. Piped lists are one page, with no paging footer; use --json for total, page and per, and --page N for the next one.
  • crm deal|person|company get and every CRM command that returns a record (add, update, move, owner, company, person, note, task, archive) print field: value lines (empty and null print -, archived is true|false, tags are comma-joined): a deal has id, name, status, pipeline, stage, amount, currency, owner_email, next_action, lost_reason, company, person, tags, archived, in_stage_since, updated_at, version; a person id, full_name, email, phone, job_title, linkedin_url, company, tags, archived, version, notes; a company id, name, domain, website, industry, linkedin_url, phone, city, tags, archived, version, notes. Related rows follow, tab-separated: deals note: id created_at author body and task: id status due_at|- assignee title; people deal: id status stage-name name; companies person: id email full_name and deal: id status stage-name name (deal refs carry the stage name, not an id). After those, all three kinds print interaction: occurred_at kind direction summary lines (none if there are none), and people and companies also print task: id status due_at|- assignee title lines (after the deal: lines, before interaction:). A deal with legacy_notes prints a legacy_notes: <text> line right after version: (flattened to one line); unlike every other field it is absent, not -, when empty. Pass the version back as --version.
  • crm deal|person|company deletion-preview <id>: entity:, id:, name:, then one impact: <key><TAB><count> line per key the server returns, in its order. The keys are server-defined (they vary by record kind and can change), so print or loop over them all rather than expecting a fixed set. crm ... delete prints deleted <id>; --json prints {"data":{"id":…,"deleted":true}}.
  • crm task done prints one line, task: id status due_at|- assignee title. deal unlink-company / unlink-person and person|company task add print the whole deal, person or company as above.
  • crm pipeline get, add, update and archive print id:, name:, currencies: (comma-joined or -), archived: (true|false), version:, then one stage: id<TAB>kind<TAB>name line per live stage and one archived_stage: id<TAB>kind<TAB>name line per archived stage, in the server's order. After each stage line, one automation: stage-id<TAB>key<TAB>start|-<TAB>state<TAB>name<TAB>cron-id|-<TAB>true|false|-<TAB>schedule|-<TAB>next_run_at|- line per automation (true/false is the cron's live flag). crm pipelines --archived marks an archived pipeline by pipeline:archived in the second column of its row (live ones stay pipeline; stage rows are unchanged).
  • crm automation pause and resume print state: <state>. --json is the response body {"data":{"state":"…"}}.
  • crm automation run prints the cron run lines (id:, cron_id:, profile_name:, state:, trigger:, actor:, started_at:, finished_at:, error:), the same as crons run. The receipt object is on a terminal and in --json only. A paused cron with nothing queued prints state: cron_paused. run --wait prints {"data":{"run":…}} for the closed receipt, the same shape as crons run --wait.
  • subscription list: id active|inactive event,event last-status|- consecutive-failures url name.
  • subscription get, create, update and rotate-secret: id:, name:, url:, events: (comma-joined), active: (true|false), created_by: (user id), last_delivery_at:, last_delivery_status:, consecutive_failures:, created_at: (empty prints -). create and rotate-secret add a last line secret (shown once): <secret>. subscription delete prints deleted <id>.
  • subscription ping: delivered: true|false, status: (HTTP status or -), error: (or -).
  • event-types: one event name per line.
  • crons list: id state profile_name owner-id|- last_run_at|- last_status|- failure-count|- schedule name prompt. state is live or paused. profile_name * is org-wide. The prompt is last, so it may contain spaces. An empty list prints nothing.
  • crons get, and create, update, pause and resume: field: value for id, name, profile_name, schedule, state, paused (true or false), paused_note, owner (the owner id), prompt, script, last_run_at, last_status, last_error, last_delivery_error, and latest_receipt (one tab-separated run, or -). Then one failure: line per recent failure. get also prints one run: line per run on that page. A run's cells are id state trigger actor started_at finished_at error (empty prints -).
  • crons run, including a finished --wait: id:, cron_id:, profile_name:, state:, trigger:, actor:, started_at:, finished_at:, error:. The receipt object is on a terminal and in --json only.
  • crons runs: one tab row per run, those same cells, one page. --json carries page, per and more.
  • crons delete prints deleted <id>; --json is {"data":{"id":"…","deleted":true}}.
  • day list: five rows, Monday to Friday, day<TAB>closed|draft|-<TAB>score|-<TAB>shipped|- (draft = saved but not closed, - = nothing saved).

Piped sessions output (same rules: tab-separated, control characters stripped, nothing for an empty list):

  • sessions: id open|closed agent-slug turn last-activity|- title|-, where turn is idle, queued, running or failed, and last-activity is an ISO time. One page; --page N for the next.
  • session get: one line per message, role: text or role sender-id: text (role is user or assistant; the text is flattened to one line). No header: the session, the turn and the timestamps are in --json.
  • session close prints closed <id>.
  • briefing and briefing --request: day:, state: (none, pending, failed or ready), session_id:, requested_at: (empty prints -), then one document.<path>: value line per leaf of the briefing document, in the server's order (array items are numbered, document.items.0.title; empty values print -; the document's fields are set by the server and can grow). There are no document lines when there is no document.
  • ask: stdout is the reply text only (several assistant messages are separated by a blank line). On a terminal the new session's id is also printed to stderr as session <id>; piped, stderr stays quiet. With --no-wait, stdout is the session id (on a terminal, a sentence naming it).
  • ask --json prints {"session":…,"messages":[…],"turn":…}: messages is every new message in the thread, including the one you sent; with --no-wait it is []. In scripts use --json and read .session.id on success. Any failure after the session exists (a timeout, a failed turn, a closed session) prints the error object with error.details.session_id, so you can continue with --session. A failed turn is exit 1 with error.code turn_failed: tell it apart from a usage error by error.code. If the network drops while sending, the message may have been delivered; check with olympus session get before sending again.
  • version / --version: olympus <version>; version --json is {"data":{"version":"…"}}.
Exit Meaning
0 ok
1 usage; also an ask whose turn failed (error.code turn_failed)
2 auth (401, or no token); also a browser attach whose computer was revoked by the organization
3 not found (404, non-member, pin mismatch)
4 forbidden (403)
5 server / network / redirect / 429 / anything unexpected, including "CRM temporarily unavailable (retry after)", "agent machine needs an update", and for ask a busy agent that stayed busy, no time left to send (not_sent), a timeout (timeout), or an agent machine that is not ready (for ask, retry only when the message says "nothing was sent", as busy and not_sent do before sending; machine_not_ready is the server's 503 and says no such thing: without error.details.session_id the session was never created, so nothing was sent and you can retry later, and with one read with session get first; after timeout, network_error, a 5xx on the send itself, or bad_request while reading, the message may have been sent: read with session get before asking again), and for browser attach a browser that could not be started or reached and a relay it gave up reconnecting to
6 invalid (400, 422), a 409 conflict ("changed since you read it"), "CRM not set up", no_agent (the organization has no agent), session_closed, briefing_not_set_up, ask agent_mismatch, and a browser attach replaced by another connection for the same machine
130 cancelled (Ctrl-C during login, credentials untouched; a cancelled day close prompt, nothing saved; or Ctrl-C during ask, which prints the session id when one exists)

.env is not loaded by the binary

The compiled binary is built with --no-compile-autoload-dotenv --no-compile-autoload-bunfig. A CLI that silently picks up OLYMPUS_API_KEY from whatever project directory it is run in acts as the wrong identity. (bun src/cli.ts in development still loads .env.)

Quirks

Arguments are parsed strictly: --instructions -foo is refused as an unknown option; write --instructions=-foo. --instructions-file - (or =-) reads stdin.

Text that starts with - needs --: olympus ask hermes -- "-text".

Release

Push a vX.Y.Z tag: the release workflow builds olympus-linux-x64, olympus-linux-arm64, olympus-darwin-x64, olympus-darwin-arm64 plus SHA256SUMS and creates a GitHub release. Release binaries print their tag (olympus --version β†’ olympus 0.7.0 for v0.7.0); a local build or bun src/cli.ts prints olympus dev. workflow_dispatch, or a PR touching release files, runs a dry-run build (artifact only, no release).

Develop

bun install
bun test
bun run typecheck
bun run build        # β†’ dist/olympus

About

Command-line client for the Olympus API, built for agents

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages