Coline Docs
Reference

kairo

Every coline kairo command, with its flags and the action it runs.

Every coline kairo command, 30 in all.

kairo

Ask Kairo something and read the answer as it is written. The message is the words after kairo, with anything piped in below them. With no message at a terminal it is a chat: the arrow keys bring back what you wrote, Ctrl-C stops an answer and Ctrl-D leaves.

What Kairo does while answering shows on stderr, one line a step. The chat's link prints at the end.

Kairo asks before it sends, shares, deletes or buys anything, and you answer in Coline: the command shows what it is waiting for and the link, then waits for your answer (Ctrl-C stops waiting). With --no-wait it exits with code 10 instead. Nothing here can approve.

With --json, one JSON object a line: text, step, waiting, done and error.

The kairo actions are here too (coline kairo conversations list, coline kairo models list…). To ask about a word that is also one of them, put -- first: coline kairo -- usage.

coline kairo [message…] [flags]
coline kairo <command> [flags]

Built into coline. · Calls workspaces.list, kairo.conversations.get, kairo.conversations.update, drive.drives.list, POST /api/v1/kairo/chat, POST /api/workspaces/[workspaceSlug]/uploads/initiate, GET /api/workspaces/[workspaceSlug]/uploads/part, POST /api/workspaces/[workspaceSlug]/uploads/complete, POST /api/workspaces/[workspaceSlug]/uploads/abort · Effect write · Can wait for your approval yes (exit code 10, with the link)

FlagWhat it does
-c, --continue <chat>Continue this chat: its link or id.
--newStart a new chat (the default)
--model <id>The model to answer with (from coline kairo models list)
--attach <file>Attach a file: one on this computer, uploaded to your drive first, or one in Coline by link or id; up to 5.
--no-waitWhen Kairo waits for your approval, exit with code 10 instead of waiting.

Sub-commands: edit, allowed-sites, browser-mode, code, conversations, executions, models, suggestions, usage, visuals, writing-styles. The word right after coline kairo picks one when it names one.

coline kairo "What did Ada say about the launch?"
git diff | coline kairo "review this"
coline kairo -c https://coline.app/acme/kairo/3f2a… 'And the week after?'
coline kairo

kairo edit

Rewrite text the way --instruction says: the text comes from --file or stdin, the rewritten text goes to stdout. Nothing is saved anywhere.

coline kairo edit [flags]

Built into coline. · Calls workspaces.list, POST /api/v1/kairo/inline-edit · Effect write · Can wait for your approval no

FlagWhat it does
-i, --instruction <text>What to change.
-f, --file <file>Read the text from this file; - reads stdin.
--model <id>The model to use (from coline kairo models list)
coline kairo edit --instruction "Make it friendlier" --file reply.txt
pbpaste | coline kairo edit -i "Fix the grammar" | pbcopy
coline kairo edit -i "Add types" -f util.js > util.ts

kairo allowed-sites delete

Takes back a site you told Kairo to stop asking about in this workspace; it asks again there. Sites are only ever allowed from Coline.

It removes or overwrites something, so it runs only with --confirm.

coline kairo allowed-sites delete [flags]

Action kairo.allowedSites.delete · Effect destructive, runs only with --confirm · Can wait for your approval no · Scope tools.write · Workspace yes, -w

FlagWhat it does
--domain <text>The site, as kairo.allowedSites.list shows it, e.g. example.com. Required.
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo allowed-sites delete -w acme --domain "…" --confirm
coline kairo allowed-sites delete -w acme --json '{"domain":"…"}' --fields id --confirm

kairo allowed-sites list

The sites you told Kairo to stop asking about in this workspace, most recently used first.

It changes nothing.

coline kairo allowed-sites list [flags]

Action kairo.allowedSites.list · Effect read, changes nothing · Can wait for your approval no · Scope tools.read · Workspace yes, -w

FlagWhat it does
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo allowed-sites list -w acme
coline kairo allowed-sites list -w acme --json '{}' --fields id

kairo browser-mode get

Whether Kairo asks before acting in the browser in this workspace (ask) or acts on its own (auto-act). Submitting and sensitive steps always ask. Changing it is in Coline.

It changes nothing.

coline kairo browser-mode get [flags]

Action kairo.browserMode.get · Effect read, changes nothing · Can wait for your approval no · Scope tools.read · Workspace yes, -w

FlagWhat it does
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo browser-mode get -w acme
coline kairo browser-mode get -w acme --json '{}' --fields id

kairo code chats delete

Deletes one of your Kairo chats from the Code editor in a Code project, with its history.

It removes or overwrites something, so it runs only with --confirm.

coline kairo code chats delete [flags]

Action kairo.code.chats.delete · Effect destructive, runs only with --confirm · Can wait for your approval no · Scope tools.write · Workspace yes, -w

FlagWhat it does
--project-id <id>The Code project's id, from code.projects.list. Required.
--chat-id <id>The chat's id, from kairo.code.chats.list. Required.
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo code chats delete -w acme --project-id <project-id> --chat-id <chat-id> --confirm
coline kairo code chats delete -w acme --json '{"projectId":"<project-id>","chatId":"<chat-id>"}' --fields id --confirm

kairo code chats list

Your Kairo chats from the Code editor in one Code project, newest first, or one chat with all its messages and tool calls when chatId is given. Search titles and messages with query.

It changes nothing.

coline kairo code chats list [flags]

Action kairo.code.chats.list · Effect read, changes nothing · Can wait for your approval no · Scope tools.read · Workspace yes, -w

FlagWhat it does
--project-id <id>The Code project's id, from code.projects.list. Required.
--chat-id <id>One chat's id: answers with that chat in full instead of the list.
--query <text>Only chats whose title or messages have these words.
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo code chats list -w acme --project-id <project-id>
coline kairo code chats list -w acme --json '{"projectId":"<project-id>"}' --fields id

kairo code checkpoints restore

Puts the files on a Code computer back to how they were before one of Kairo's runs in the Code editor: the whole working tree, or one file when path is given. Overwrites the files the run changed.

It removes or overwrites something, so it runs only with --confirm.

coline kairo code checkpoints restore [flags]

Action kairo.code.checkpoints.restore · Effect destructive, runs only with --confirm · Can wait for your approval no · Scope tools.write · Workspace yes, -w

FlagWhat it does
--project-id <id>The Code project's id, from code.projects.list. Required.
--machine-id <id>The Code computer the run worked on. Required.
--run-id <id>The Kairo Code run whose changes to undo. Required.
--path <text>One file, relative to the project. Leave out to restore the whole tree.
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo code checkpoints restore -w acme --project-id <project-id> --machine-id <machine-id> --run-id <run-id> --confirm
coline kairo code checkpoints restore -w acme --json '{"projectId":"<project-id>","machineId":"<machine-id>","runId":"<run-id>"}' --fields id --confirm

kairo code runs steer

Sends a message into one of your Kairo runs in the Code editor while it is running; Kairo takes it in at its next step, without stopping. Only the run's owner, only while it runs.

coline kairo code runs steer [flags]

Action kairo.code.runs.steer · Effect write · Can wait for your approval no · Scope ai.invoke · Workspace yes, -w

FlagWhat it does
--run-id <id>The running Kairo Code run. Required.
--chat-id <id>The chat the run belongs to, from kairo.code.chats.list. Required.
--content <text>What to tell Kairo. Required.
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo code runs steer -w acme --run-id <run-id> --chat-id <chat-id> --content "…"
coline kairo code runs steer -w acme --json '{"runId":"<run-id>","chatId":"<chat-id>","content":"…"}' --fields id

kairo conversations create

Starts an empty Kairo chat in this workspace, with a model and title if given. Not in an archived workspace.

coline kairo conversations create [flags]

Action kairo.conversations.create · Effect write · Can wait for your approval no · Scope tools.write · Workspace yes, -w

FlagWhat it does
--model-id <id>The model's id, from kairo.models.list. Default: Kairo's default model.
--title <text>The chat's title.
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo conversations create -w acme
coline kairo conversations create -w acme --json '{}' --fields id

kairo conversations delete

Deletes one of your Kairo chats, with its work and the notes Kairo learned only from it.

It removes or overwrites something, so it runs only with --confirm.

coline kairo conversations delete [flags]

Action kairo.conversations.delete · Effect destructive, runs only with --confirm · Can wait for your approval no · Scope tools.write · Workspace no

FlagWhat it does
--conversation-id <id>The Kairo chat's id, from kairo.conversations.list. Required.
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo conversations delete --conversation-id <conversation-id> --confirm
coline kairo conversations delete --json '{"conversationId":"<conversation-id>"}' --fields id --confirm

kairo conversations get

One of your Kairo chats in this workspace with all its messages. Large tool results are clipped.

It changes nothing.

coline kairo conversations get [flags]

Action kairo.conversations.get · Effect read, changes nothing · Can wait for your approval no · Scope tools.read · Workspace yes, -w

FlagWhat it does
--conversation-id <id>The Kairo chat's id, from kairo.conversations.list. Required.
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo conversations get -w acme --conversation-id <conversation-id>
coline kairo conversations get -w acme --json '{"conversationId":"<conversation-id>"}' --fields id

kairo conversations invite

Brings workspace members and agents into one of your Kairo chats in this team workspace; it carries on as a group chat in Messages with the whole conversation. Not while Kairo is answering.

coline kairo conversations invite [flags]

Action kairo.conversations.invite · Effect write · Can wait for your approval no · Scope messages.write · Workspace yes, -w

FlagWhat it does
--conversation-id <id>The Kairo chat's id, from kairo.conversations.list. Required.
--member-user-ids <list>The people's or agents' user ids, from members.list. Required.
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo conversations invite -w acme --conversation-id <conversation-id> --member-user-ids "…"
coline kairo conversations invite -w acme --json '{"conversationId":"<conversation-id>","memberUserIds":"…"}' --fields id

kairo conversations list

Your Kairo chats in this workspace that are not archived, most recently active first. Chats from the Code editor and crew sessions are not included.

It changes nothing.

coline kairo conversations list [flags]

Action kairo.conversations.list · Effect read, changes nothing · Can wait for your approval no · Scope tools.read · Workspace yes, -w

FlagWhat it does
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo conversations list -w acme
coline kairo conversations list -w acme --json '{}' --fields id

kairo conversations steer

Sends a message, with up to 5 files or a quoted passage, into the reply Kairo is writing now in one of your chats; Kairo takes it in as it goes. Refused when Kairo isn't answering.

Set replyQuote with --json '{…}' or --input.

coline kairo conversations steer [flags]

Action kairo.conversations.steer · Effect write · Can wait for your approval no · Scope ai.invoke · Workspace no

FlagWhat it does
--conversation-id <id>The Kairo chat's id, from kairo.conversations.list. Required.
--id <text>Your id for the message. Default: a new one.
--text <text>What to tell Kairo. May be empty when files are attached. Required.
--attachment-file-ids <list>Drive file ids to attach, up to 5.
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo conversations steer --conversation-id <conversation-id> --text "…"
coline kairo conversations steer --json '{"conversationId":"<conversation-id>","text":"…"}' --fields id

kairo conversations update

Renames one of your Kairo chats, archives or restores it, or asks the reply Kairo is writing in it to stop.

coline kairo conversations update [flags]

Action kairo.conversations.update · Effect write · Can wait for your approval no · Scope tools.write · Workspace no

FlagWhat it does
--conversation-id <id>The Kairo chat's id, from kairo.conversations.list. Required.
--title <text>A new title.
--is-archivedtrue archives the chat, false restores it.
--cancel-active-responsetrue asks the reply Kairo is writing to stop.
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo conversations update --conversation-id <conversation-id>
coline kairo conversations update --json '{"conversationId":"<conversation-id>"}' --fields id

kairo executions create

Runs JavaScript or TypeScript in one of your Kairo chats' sandbox and answers with the result. A run that asks for workspace or network access must set requiresApproval; it then waits until you approve it in Coline.

It can wait for your approval in Coline (exit code 10, with the link).

Set runtime, capabilities, networkPolicy, input with --json '{…}' or --input.

coline kairo executions create [flags]

Action kairo.executions.create · Effect write · Can wait for your approval yes (exit code 10, with the link) · Scope tools.write · Workspace no

FlagWhat it does
--conversation-id <id>The Kairo chat's id, from kairo.conversations.list. Required.
--code <text>The code to run. Required.
--title <text>A short title for the run.
--access-mode <text>What it may reach in the workspace. Default none; anything else needs requiresApproval. One of none, read_only, read_write.
--requires-approvalHold the run until you approve it in Coline. Needed for any access.
--requested-by-message-id <id>The chat message that asked for the run.
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo executions create --conversation-id <conversation-id> --code "…"
coline kairo executions create --json '{"conversationId":"<conversation-id>","code":"…"}' --fields id

kairo executions list

Recent code runs in one of your Kairo chats' sandbox, newest first, with their status, result and whether they wait for approval.

It changes nothing.

coline kairo executions list [flags]

Action kairo.executions.list · Effect read, changes nothing · Can wait for your approval no · Scope tools.read · Workspace no

FlagWhat it does
--conversation-id <id>The Kairo chat's id, from kairo.conversations.list. Required.
--limit <number>How many, 1 to 50. Default 10.
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo executions list --conversation-id <conversation-id>
coline kairo executions list --json '{"conversationId":"<conversation-id>"}' --fields id

kairo models list

The models Kairo can use, what each costs against a standard request, and which is the default.

It changes nothing.

coline kairo models list [flags]

Action kairo.models.list · Effect read, changes nothing · Can wait for your approval no · Scope tools.read · Workspace no

FlagWhat it does
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo models list
coline kairo models list --json '{}' --fields id

kairo suggestions get

One of Kairo's suggestions for you, with what it is based on.

It changes nothing.

coline kairo suggestions get [flags]

Action kairo.suggestions.get · Effect read, changes nothing · Can wait for your approval no · Scope tools.read · Workspace yes, -w

FlagWhat it does
--suggestion-id <id>The suggestion's id, from kairo.suggestions.list. Required.
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo suggestions get -w acme --suggestion-id <suggestion-id>
coline kairo suggestions get -w acme --json '{"suggestionId":"<suggestion-id>"}' --fields id

kairo suggestions list

Kairo's suggestions for you in this workspace, filtered by status, where they show and the place they are about.

It changes nothing.

coline kairo suggestions list [flags]

Action kairo.suggestions.list · Effect read, changes nothing · Can wait for your approval no · Scope tools.read · Workspace yes, -w

FlagWhat it does
--status <text>One of pending, active, snoozed, accepted, dismissed, expired, executed, failed.
--surface <text>Where it is meant to show. One of notification, inline, hybrid, briefing.
--container-type <text>The kind of place it is about. One of channel, dm, event.
--container-id <id>The channel, DM or event's id.
--limit <number>How many, 1 to 100.
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo suggestions list -w acme
coline kairo suggestions list -w acme --json '{}' --fields id

kairo suggestions respond

Accepts, dismisses or snoozes one of Kairo's suggestions. It records your answer; nothing else happens.

coline kairo suggestions respond [flags]

Action kairo.suggestions.respond · Effect write · Can wait for your approval no · Scope tools.write · Workspace yes, -w

FlagWhat it does
--suggestion-id <id>The suggestion's id, from kairo.suggestions.list. Required.
--action <text>Required. One of accept, dismiss, snooze.
--snooze-minutes <number>For snooze: how long, up to a week. Default 30.
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo suggestions respond -w acme --suggestion-id <suggestion-id> --action accept
coline kairo suggestions respond -w acme --json '{"suggestionId":"<suggestion-id>","action":"accept"}' --fields id

kairo usage get

How much of this workspace's included Kairo usage this period is used, as a percentage, with the trial and extra usage state. Changes nothing.

It changes nothing.

coline kairo usage get [flags]

Action kairo.usage.get · Effect read, changes nothing · Can wait for your approval no · Scope tools.read · Workspace yes, -w

FlagWhat it does
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo usage get -w acme
coline kairo usage get -w acme --json '{}' --fields id

kairo visuals get

One of Kairo's visuals (a page or a chart) at its shared or latest revision, or a given one. With messageId, one an agent posted in a conversation you can read.

It changes nothing.

coline kairo visuals get [flags]

Action kairo.visuals.get · Effect read, changes nothing · Can wait for your approval no · Scope tools.read · Workspace no

FlagWhat it does
--visual-id <id>The visual's id, from a Kairo chat. Required.
--revision <number>Which revision. Default: the shared one, else the latest.
--message-id <id>The message an agent posted it in, for a visual that isn't yours.
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo visuals get --visual-id <visual-id>
coline kairo visuals get --json '{"visualId":"<visual-id>"}' --fields id

kairo visuals unpublish

Stops sharing your visual at its public link; the old link stops working.

It removes or overwrites something, so it runs only with --confirm.

coline kairo visuals unpublish [flags]

Action kairo.visuals.unpublish · Effect destructive, runs only with --confirm · Can wait for your approval no · Scope tools.write · Workspace no

FlagWhat it does
--visual-id <id>The visual's id, from a Kairo chat. Required.
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo visuals unpublish --visual-id <visual-id> --confirm
coline kairo visuals unpublish --json '{"visualId":"<visual-id>"}' --fields id --confirm

kairo writing-styles create

Adds a writing style for Kairo in this workspace, up to 20.

coline kairo writing-styles create [flags]

Action kairo.writingStyles.create · Effect write · Can wait for your approval no · Scope tools.write · Workspace yes, -w

FlagWhat it does
--name <text>The style's name. Required.
--prompt-text <text>How Kairo should write, in your words. Required.
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo writing-styles create -w acme --name "…" --prompt-text "…"
coline kairo writing-styles create -w acme --json '{"name":"…","promptText":"…"}' --fields id

kairo writing-styles delete

Deletes one of your writing styles in this workspace.

It removes or overwrites something, so it runs only with --confirm.

coline kairo writing-styles delete [flags]

Action kairo.writingStyles.delete · Effect destructive, runs only with --confirm · Can wait for your approval no · Scope tools.write · Workspace yes, -w

FlagWhat it does
--style-id <id>The writing style's id, from kairo.writingStyles.list. Required.
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo writing-styles delete -w acme --style-id <style-id> --confirm
coline kairo writing-styles delete -w acme --json '{"styleId":"<style-id>"}' --fields id --confirm

kairo writing-styles generate

Writes a writing style instruction from a sample of text in the style you want, or from a described personality. Saves nothing; add it with kairo.writingStyles.create.

Set input with --json '{…}' or --input.

coline kairo writing-styles generate [flags]

Action kairo.writingStyles.generate · Effect write · Can wait for your approval no · Scope ai.invoke · Workspace yes, -w

FlagWhat it does
--mode <text>example_text: input is a sample. personality: input describes the voice. Required. One of example_text, personality.
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo writing-styles generate -w acme --mode example_text
coline kairo writing-styles generate -w acme --json '{"mode":"example_text","input":"…"}' --fields id

kairo writing-styles list

Your Kairo writing styles in this workspace, in order. The first look adds Normal, Formal and Concise.

It changes nothing.

coline kairo writing-styles list [flags]

Action kairo.writingStyles.list · Effect read, changes nothing · Can wait for your approval no · Scope tools.read · Workspace yes, -w

FlagWhat it does
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo writing-styles list -w acme
coline kairo writing-styles list -w acme --json '{}' --fields id

kairo writing-styles update

Renames one of your writing styles, changes its instruction, or makes it the default for new chats.

coline kairo writing-styles update [flags]

Action kairo.writingStyles.update · Effect write · Can wait for your approval no · Scope tools.write · Workspace yes, -w

FlagWhat it does
--style-id <id>The writing style's id, from kairo.writingStyles.list. Required.
--name <text>A new name.
--prompt-text <text>A new instruction; null for none.
--is-defaulttrue makes it the default for new chats.
--input <file>Read the input as JSON from a file; - reads stdin.
coline kairo writing-styles update -w acme --style-id <style-id>
coline kairo writing-styles update -w acme --json '{"styleId":"<style-id>"}' --fields id

On this page