Skip to content
DevelopersTerminal

Thread CLI reference


List, inspect, message, retry, stop, pin, and unpin governed chat Threads.

On this page

Use this page to inspect every public atoi thread command, its accepted flags, and one runnable example. Return to the CLI reference index to choose another command group.

atoi threadList, inspect, message, retry, stop, pin, and unpin governed chat Threads.

CommandWhat it does
atoi thread listList governed Threads, optionally within one Project.
atoi thread getRead one Thread and a bounded message page.
atoi thread sendSend a message and wait for its receipt-backed result.
atoi thread retryRetry the last failed or stopped reply in a Thread.
atoi thread stopStop the active reply in a Thread.
atoi thread pinPin a Thread and read back the app-visible state.
atoi thread unpinUnpin a Thread and read back the app-visible state.

#thread list

List governed Threads, optionally within one Project.

atoi thread list [--project <project-id>] [--limit <n>]

FlagTypeDefaultValuesWhat it does
--projectstringSelect a Project by id.
--limitnumberReturn between 1 and 200 Threads.
--jsonbooleanfalseEmit the canonical JSON envelope.
--ndjsonbooleanfalseEmit one canonical JSON envelope per line.
--formatstringtexttext, jsonChoose human text or the JSON envelope.
--help -hbooleanShow command help.

#Run thread list

bash
atoi thread list --project prj_8k2v --json

#thread get

Read one Thread and a bounded message page.

atoi thread get <thread-id> [--thread <thread-id>] [--limit <n>]

FlagTypeDefaultValuesWhat it does
--threadstringSelect a Thread by id instead of a positional id.
--limitnumberReturn between 1 and 200 messages.
--jsonbooleanfalseEmit the canonical JSON envelope.
--ndjsonbooleanfalseEmit one canonical JSON envelope per line.
--formatstringtexttext, jsonChoose human text or the JSON envelope.
--help -hbooleanShow command help.

#Run thread get

bash
atoi thread get thr_9c4k --json

#thread send

Send a message and wait for its receipt-backed result.

atoi thread send <thread-id> --prompt <text> [--thread <thread-id>] [--model <model-id>] [--reasoning <strength>] [--context-ref <json> ...] [--context-refs <json-array>] [--delivery-id <key>] [--idempotency-key <key>]

FlagTypeDefaultValuesWhat it does
--threadstringSelect a Thread by id instead of a positional id.
--prompt requiredstringSet the message text.
--modelstringSelect a model id.
--reasoningstringdefault, none, minimal, low, medium, high, xhigh, maxSelect the model reasoning strength.
--context-refjsonAttach one context reference as JSON. Repeat the flag for more.
--context-refsjsonAttach an array of context references as JSON.
--delivery-idstringSet the exact delivery identity.
--idempotency-keystringReuse a mutation identity when you safely retry the same action.
--jsonbooleanfalseEmit the canonical JSON envelope.
--ndjsonbooleanfalseEmit one canonical JSON envelope per line.
--formatstringtexttext, jsonChoose human text or the JSON envelope.
--help -hbooleanShow command help.

#Run thread send

bash
atoi thread send thr_9c4k --prompt "Summarize the release blockers." --delivery-id msg_release_1 --json

#thread retry

Retry the last failed or stopped reply in a Thread.

atoi thread retry <thread-id> [--thread <thread-id>] [--model <model-id>] [--reasoning <strength>]

FlagTypeDefaultValuesWhat it does
--threadstringSelect a Thread by id instead of a positional id.
--modelstringSelect a model id.
--reasoningstringdefault, none, minimal, low, medium, high, xhigh, maxSelect the model reasoning strength.
--jsonbooleanfalseEmit the canonical JSON envelope.
--ndjsonbooleanfalseEmit one canonical JSON envelope per line.
--formatstringtexttext, jsonChoose human text or the JSON envelope.
--help -hbooleanShow command help.

#Run thread retry

bash
atoi thread retry thr_9c4k --reasoning high --json

#thread stop

Stop the active reply in a Thread.

atoi thread stop <thread-id> [--thread <thread-id>]

FlagTypeDefaultValuesWhat it does
--threadstringSelect a Thread by id instead of a positional id.
--jsonbooleanfalseEmit the canonical JSON envelope.
--ndjsonbooleanfalseEmit one canonical JSON envelope per line.
--formatstringtexttext, jsonChoose human text or the JSON envelope.
--help -hbooleanShow command help.

#Run thread stop

bash
atoi thread stop thr_9c4k --json

#thread pin

Pin a Thread and read back the app-visible state.

atoi thread pin <thread-id> [--thread <thread-id>] [--idempotency-key <key>]

FlagTypeDefaultValuesWhat it does
--threadstringSelect a Thread by id instead of a positional id.
--idempotency-keystringReuse a mutation identity when you safely retry the same action.
--jsonbooleanfalseEmit the canonical JSON envelope.
--ndjsonbooleanfalseEmit one canonical JSON envelope per line.
--formatstringtexttext, jsonChoose human text or the JSON envelope.
--help -hbooleanShow command help.

#Run thread pin

bash
atoi thread pin thr_9c4k --json

#thread unpin

Unpin a Thread and read back the app-visible state.

atoi thread unpin <thread-id> [--thread <thread-id>] [--idempotency-key <key>]

FlagTypeDefaultValuesWhat it does
--threadstringSelect a Thread by id instead of a positional id.
--idempotency-keystringReuse a mutation identity when you safely retry the same action.
--jsonbooleanfalseEmit the canonical JSON envelope.
--ndjsonbooleanfalseEmit one canonical JSON envelope per line.
--formatstringtexttext, jsonChoose human text or the JSON envelope.
--help -hbooleanShow command help.

#Run thread unpin

bash
atoi thread unpin thr_9c4k --json

Was this useful?