Every command and flag pic accepts. pic --help prints a short synopsis; this file is the full list.
How each mode behaves is in the manual topics (pic help lists them).
Flags
| Flag | Argument | Used with | What it does |
|---|---|---|---|
--workspace |
DIR | any command | the workspace (default: the current directory); import --claude takes it too |
--db |
PATH | any command | the journal (default WORKSPACE/.pic/journal.sqlite) |
--model |
MODEL | any command | the model, as provider/id |
--thinking |
LEVEL | any command | off, minimal, low, medium, high, xhigh, max; the model's supported ones |
--exec-timeout |
SECONDS | any command | the bash tool's default timeout (600) |
--tools, -t |
LIST | any command | only these tools, or +name/-name entries that change the default set (Pi's four and send_message) |
--exclude-tools, -xt |
LIST | any command | leave these tools out |
--no-tools, -nt |
any command | no tools | |
--no-builtin-tools, -nbt |
any command | no built-in tools | |
--tui-mode |
MODE | tui |
fullscreen (the default) or regular; setting tuiMode |
--theme, --use-theme |
NAME | tui |
the colour theme for this run; setting theme |
--json |
ask, run, bash, rewind, listings |
Pi's JSON events on stdout, or JSON output for a listing | |
--stream |
ask, run |
stream the reply even when stdout is piped | |
--commands |
ask, run with --json |
Pi's RPC command lines on stdin steer the running request | |
--context-window |
TOKENS | any command | compact past this minus 16384; default: the model's, 0 never |
--lapse |
on, off | any command | lapse compaction (PIC_LAPSE, setting lapseCompaction) |
--lapse-seconds |
N | any command | the cache lifetime lapse compaction assumes (PIC_LAPSE_SECONDS) |
--lapse-floor |
TOKENS | any command | the context below which lapse compaction waits (PIC_LAPSE_FLOOR) |
--now |
compact |
summarize the conversation now instead of before its next request (Pi's /compact) |
|
--trial |
LABEL | any command | a benchmark arm kept on each request admitted (PIC_TRIAL) |
--max-requests |
N | any command | stop a request before its (N+1)th reply request (PIC_MAX_REQUESTS) |
--print, -p |
[TEXT] | Pi's print mode: one prompt, the answer on stdout | |
--system-prompt |
TEXT or FILE | -p, ask, chat, tui |
replaces the system prompt |
--append-system-prompt |
TEXT or FILE | -p, ask, chat, tui |
adds to the system prompt (repeatable) |
--mode |
text, json, rpc | text is the default; json is -p --json; rpc is Pi's RPC mode |
|
--resume, -r |
tui |
open the conversation picker at start (an error with -p) |
|
--session-id |
ID | -p, ask, tui |
the conversation with exactly this ID, or a new one created with it |
--no-session |
any command | keep nothing: a throwaway journal removed at exit | |
--continue, -c |
-p, ask, tui, chat, bash, --mode rpc |
continue the latest conversation | |
--session |
ID | -p, ask, tui, chat, bash, submit, --mode rpc |
continue that conversation |
--image |
PATH | ask |
attach an image file (png, jpeg, gif, webp) after the text |
--unset |
KEY | settings |
remove a setting |
--api-key |
auth login |
store an API key instead of signing in | |
--passphrase-fd |
N | any command | read the credential store's passphrase from descriptor N, a line per ask, instead of the terminal |
--as |
LABEL | auth login, login, auth import |
store the key as one of the provider's extra keys, named LABEL |
--force |
auth import |
seal a variable that is not the provider's own (nor a variant such as ANTHROPIC_API_KEY_2) |
|
--yes |
auth reset |
forget the credential store without asking (needed with no terminal) | |
--no-browser |
auth login |
print the sign-in address and take the pasted redirect; open no browser | |
--all |
models, ps |
every model, not only those with a key; finished processes too | |
--refresh |
models, auth status |
models: fetch the model catalog now; auth status: check the keys not checked in ten minutes, never asking for the passphrase |
|
--check |
auth status |
first ask each provider's free check about every key, all at once | |
--active |
auth status |
with --check or --refresh: only the key each provider uses |
|
--default |
NAME | models |
save the default model (setting defaultModel) |
--last |
NAME | models |
save NAME as your last choice, as picking a model in the terminal interface does |
--thinking-default |
LEVEL | models |
save the default thinking level (setting defaultThinkingLevel) |
--no-context |
bash |
journal the command without sending it to the model (!!) |
|
--at |
ENTRY | fork |
fork after this entry |
--summarize |
fork |
start the new conversation with a summary of the branch left behind | |
--instructions |
TEXT | fork --summarize |
what the summary should focus on |
--to |
ENTRY | rewind |
rewind to before this user message |
--files |
rewind |
restore only the files | |
--conversation |
rewind |
restore only the conversation | |
--force-partial |
rewind |
restore the files that can be, past the ones refused | |
--undo |
rewind |
put back the files the latest rewind changed | |
--script |
FILE | run, fork --summarize |
a scripted provider, for tests |
--api-url |
URL | run, fork --summarize |
the provider's endpoint |
--provider |
NAME | run |
the provider to run against |
--html |
ID | export |
a conversation as one self-contained HTML page |
--pi |
[DIR or -] | export |
conversations as Pi session lines |
--since |
ENTRY | export |
finished entries after ENTRY |
--claude |
PATH | import |
a Claude Code transcript as a new conversation |
--until |
UUID | import --claude |
stop before this record |
--count |
import --claude |
also count pic's first request on it by the provider's counter | |
--clear |
scoped-models |
cycle every model again | |
--set |
PATTERN... | scoped-models |
the models Ctrl+P cycles |
--list |
bug, rewind |
the bug reports kept; a conversation's messages to rewind to | |
--by-trial |
usage |
requests, tokens and cost by trial label | |
--by-tool |
usage |
each tool's calls and failures, and the tokens and cost of the requests that called it | |
--dry-run |
prune |
report what would be dropped | |
--kill |
ID or --all |
ps |
stop a process pic started, by process group |
--key |
KEY, LABEL | send; any other command |
send: the message's idempotency key (default: a random one), the same key and command again being one message; before a command: the provider the model resolves to uses its key LABEL for this run, and a key it does not have is an error |
--hold-key-failures |
ask, run |
a reply refused for its key leaves the request unfinished instead of failed (the terminal interface's swap prompt) | |
--expires |
SECONDS | send |
not delivered after this (default 600 for steer and abort, 86400 for follow_up; at most 604800) |
--wait |
send |
wait until the message is delivered, refused or expired, and print its response line | |
--from |
ENTRY | attach |
show what came after this entry (0: the whole conversation; default: from the latest request) |
--format |
json, text | attach |
Pi's JSON events (the default), or short lines for a person |
-i |
attach |
each line of stdin is a steer while a request runs, else starts one (as ask --session), as does Pi's prompt command; /abort aborts |
|
--no-follow |
attach |
print what is committed, then exit | |
--link |
rc |
print the phone page's address for the conversation alone | |
--ssh |
rc |
print the ssh command and its checks instead of the phone's address | |
--help, -h |
print the usage text below | ||
--version, -v |
print the version: the date of the newest change, pic 2026-11-23 |
Commands
Options go before the command: pic [options] COMMAND. With no command, pic opens the terminal
interface in a terminal.
Conversations
pic ask [-c | --session ID] [--image PATH]... TEXT: run TEXT in the workspace (default: the current directory) and print the answer, in a new conversation, the latest (-c) or that one (--session).--imageattaches an image file (png, jpeg, gif, webp) after the text. The journal defaults toWORKSPACE/.pic/journal.sqlite.pic -p [TEXT] [@FILE]... [TEXT]...(or--print): Pi's print mode, one prompt and its answer. Piped stdin comes first in the prompt, then the @files (text as<file name="PATH">, images attached), then the first TEXT; each further TEXT continues the conversation.-cor--continuejoins the latest conversation,--session IDthat one; an unknown ID is an error.--ends the options: what follows is TEXT and @FILE, even with a leading-or@.pic tui [-c | --session ID]: the terminal interface (plainpicin a terminal).-ccontinues the latest conversation (the first inpic sessions),--sessionthat one.pic chat [-c | --session ID]: a plain line prompt for one conversation.pic --mode rpc [-c | --continue | --session ID]: Pi's RPC mode. Pi's JSONL commands on stdin (prompt, steer, follow_up, abort, compact, bash, fork, get_state and the rest), responses and Pi's events on stdout. The journal is held only while a command, request, compaction or bash runs.pic bash [--no-context] [-c | --session ID] COMMAND: run COMMAND in the workspace and journal it as Pi's bashExecution message (what!COMMANDdoes in the terminal). It reaches the model with the conversation's next request, unless--no-context(!!). pic exits with the command's status. With--json:bash_execution_updateevents and Pi's bash response (output, exitCode, cancelled, truncated, conversation).pic compact [ID [INSTRUCTIONS]]: summarize the conversation before its next request;pic compact --now [ID [INSTRUCTIONS]]summarizes it now (Pi's/compact).
Another process's conversation
See remote control. Neither command takes a conversation's lease; both work beside the pic that runs it, the terminal included.
pic send [--session ID] [--key KEY] [--expires SECONDS] [--wait] prompt|steer|follow_up|abort [TEXT]: a message for the conversation (default: the latest) from outside the process running it.pic send ... '{"type":"steer","message":"..."}'sends one Pi RPC command line instead. It prints the message's state and key (pending KEY); the pic running a request there delivers it at once, as if it had come on that process's stdin. A message to a conversation with no running request waits until a request runs there, or expires; a prompt that waits runs after that request.pic attach [--session ID | -c] [--from ENTRY | --from end] [--format json|text] [-i] [--no-follow]: the conversation's events (Pi's JSON lines, with each entry'sseq), rebuilt from the journal, then followed as they are committed, with the text of a reply as it streams (JSON only).-isends each line typed as a steer while a request runs, and starts a request with it (apic ask --sessionchild, which takes the lease) when none does;/abortaborts.--from end: only what is committed from now on, starting withagent_startwhen a request is running.pic remote-control [--session ID] [--ssh | --link](orpic rc): what/remote-controlshows, on stdout: the phone page's address for the conversation (default: the latest) and its QR code (white on black on a terminal, dark on the page when piped), and whetherpic remoteruns; or that no phone is paired.--link: the address alone (exit 1 with no phone paired).--ssh: thessh://address, what to run once logged in, the whole ssh command, and whether Remote Login and Tailscale are on, as text.pic remote: serve every paired phone through the relay, in the foreground, until Ctrl-C. Opens the credential store at every start: with no prompt when its key is in the Keychain or the key file, else asking for the passphrase on the terminal; one runs per user.pic remote pair: show a QR code and address (good once, for ten minutes), then askPair "NAME"? It should show 333 054. [y/N]when the phone answers; the digits must match the phone's.pic remote devices [--json]: the paired phones (id, name, paired, last seen) and whetherpic remoteis running.pic remote status [--json]: whetherpic remoteruns, its process, whether it is connected or reconnecting (the attempt, the next try, the last error), how many phones are paired, and whether it starts at login. No passphrase.pic remote stop: stop the runningpic remote(one started by/rctoo), waiting up to 10 s.pic remote install: startpic remotewhenever you log in (launchd on macOS, a systemd user unit on Linux, else an@rebootline in your crontab), and now where the system can. The credential store's key must be in the Keychain or the key file.pic remote uninstall: stop startingpic remoteat login, and stop the one the system started.pic remote unpair ID: unpair the phone whose id starts with ID (at least 4 hex characters, fromdevices). No passphrase; a runningpic remotedrops it within a second.pic remote reset: stop a runningpic remote, unpair every phone and delete pic's remote keys and the mailbox at the relay.
See remote control for the relay.
Sessions and export
pic sessions [--json | --all],pic log [--json] [ID],pic name ID NAME,pic fork ID [--at ENTRY].--all: the conversations of every workspace pic has opened, with the workspace first.pic sessionsshows each conversation's id, name, time, requests, the model its last request used, its first message, and(last request failed)when it did (pic log IDsays why).pic tree --json [ID]: the requests of ID's conversation tree, branches included.pic rewind [ID] --list,pic rewind [ID] --to ENTRY [--files | --conversation] [--force-partial] [--json],pic rewind [ID] --undo: back to before a message, restoring the conversation, the files write and edit changed, or both (rewind). Exits 3, having done nothing, when a file is refused and--force-partialis not given.pic fork ID --at ENTRY --summarize [--instructions TEXT] [--script FILE | --api-url URL]: Pi's/treewith a summary: a new conversation from ENTRY, with a summary of what ID leaves behind.pic export --html ID [PATH | -]: a conversation as one self-contained HTML page (default-).pic export [--since ENTRY]: finished entries as JSON lines.pic export --pi [DIR | -]: conversations as Pi session lines, as rows in~/.pic/pic.sqlite(for ctx; ask, chat and the terminal write them after each request unlessPIC_PI_EXPORT=0), and~/.pic/sessionsfiles only withpiSessionFiles=1. DIR writes files there,-to stdout.pic import PATH | -: a Pi v3 session JSONL as a new conversation (the text of its messages).pic import --claude PATH [--until UUID] [--workspace DIR] [--count]: a Claude Code transcript as a new conversation in its cwd's workspace (or DIR), its main thread before the record UUID. It prints the id, counts, pic's estimate of the next request's context and the transcript's own at the cut.--countalso counts pic's first request on it (system prompt, tools, messages) by the provider's counter.
Models, keys and settings
pic models [--json] [--all] [--refresh]: models from Pi's catalog (and models.json) whose provider has a key;--allevery one.--jsonrows carrykey: none, unknown, ok, refused, no credit, limited, signed in or ChatGPT plan.pic models --default NAMEandpic models --thinking-default LEVELsave the defaults.pic scoped-models [--clear | --set PATTERN...]: the models Ctrl+P cycles.pic auth login PROVIDER [--api-key] [--as LABEL] [--no-browser]: sign in with PROVIDER's subscription (OpenAI: Sign in with ChatGPT) in the browser, or store an API key with--api-key(and for a provider with no sign-in).--as LABELstores another API key beside the provider's own.--no-browserprints the address and takes the pasted redirect instead of opening a browser. See subscription sign-in and several keys.pic auth use PROVIDER LABEL: requests to PROVIDER use its key LABEL (default, a name given with--as,envfor the variable,filefor the models file's key) from now on.pic auth import VAR [PROVIDER] [--as LABEL] [--force]: seal the variable's value once, as the provider's own key or as LABEL; the provider is the one whose variable VAR is, or starts with (ANTHROPIC_API_KEY_2), unless named. Any other variable (PATH, a token for something else) needs--force.pic auth logout PROVIDER[:LABEL]: remove the stored sign-in or key, or the key LABEL.pic auth reset [--yes]: forget the store's passphrase and every key, sign-in and paired phone sealed under it, keeping settings, sessions and trust; asks first (with no terminal, only with--yes). See a forgotten passphrase.pic auth status [--check | --refresh] [--active] [PROVIDER]: every key of every provider (stored, the variable, the models file's), the active one marked*, and what pic last learnt of each ($4.12 left,valid, checked 2 min ago,out of credit since 14:02 (HTTP 402),limited until 15:45,not used: a stored key wins); never a value.--checkfirst asks each provider's free check, all at once;--refreshdoes so only for keys not checked in ten minutes and never asks for the passphrase (a locked store's keys are skipped);--activenarrows either to the key each provider uses; PROVIDER to one provider. See free checks.pic login PROVIDER [--as LABEL]: store PROVIDER's API key (typed with echo off, or piped on stdin) in~/.pic/pic.sqlite, sealed under the store's key (in the Keychain,~/.pic/master.keyor behind a passphrase; see credentials); on a terminal, a provider with a sign-in offers it first. A stored key is used before PROVIDER's variable (ANTHROPIC_API_KEYand the like); see credentials.pic auth rekey keychain|file|passphrase: move the credential store's key to the Keychain (or keyring),~/.pic/master.keyor a passphrase, sealing every stored row again in one step; on a new store, make it there.pic logout PROVIDER[:LABEL]: remove the stored key or sign-in, or the key LABEL.pic keys: the stored keys' names and dates, never values.pic settings [KEY [VALUE] | --unset KEY]: the settings kept in~/.pic/pic.sqlite; see settings.pic trust [yes | no]: the workspace's trust.pic projects: the projects kept in~/.pic/pic.sqlite: name, kind, state, remote.
Prompts, skills, hooks and processes
pic prompts [--json]: the prompt templates (~/.pic/prompts, and the trusted workspace's.pic/prompts)./NAME ARGSin a message sends the template with$1,$@,${@:2}and the like filled in.pic skills [--json]: the skills (~/.pic/skills, and the trusted workspace's.pic/skills; symlinks followed), listed in the system prompt./skill:NAME ARGSin a message sends the skill's instructions and ARGS.pic hooks: the command hooks of~/.pic/hooks.json(and the trusted workspace's.pic/hooks.json), in Claude Code's shape and events.pic dumplists their runs.pic hooks end REASONfires SessionEnd for whatPIC_HOOK_OWNERbegan.pic ps [--all] [--json],pic ps --kill ID | --all: the processes pic started that are still running (hooks, bash and!commands, the terminal's request children).--alladds recent finished ones;--killstops one (or all) by process group. Processes a hook script starts on its own are not tracked.
Housekeeping
pic help [TOPIC]: the manual and this reference, compiled in.pic helplists the topics.pic usage --by-trial [--json]: requests, tokens (cache reads and writes too) and cost by trial.pic usage --by-tool [--json]: per tool, its calls, its failures, and the requests that called it with their tokens and cost.pic usage --lapse [--json]: what lapse compaction saved, compacted lapses against held-out ones.pic prune [--dry-run]: drop the bytes of images no request sends any more (compacted away) or older thanimageRetentionDays(default 30, 0 never), and the saved file contents (for rewind) that no rewind or undo can reach. pic also prunes at open, hourly.pic bug [--list | TEXT]: a bug report kept in~/.pic/pic.sqlite, sent nowhere.
Internal commands
Used by the terminal interface, the tests and scripts; not meant to be typed.
pic submit KEY TEXT [--session ID | --new-session ID]andpic cancel KEY.pic run --script FILE.pic run [--session ID] [--provider anthropic] [--api-url URL]: finish unfinished requests, each with the model and thinking level it was admitted with;--session: only that conversation's.pic dump,pic checkandpic result CALL_ID.
Options in detail
--tools,-t LIST: a comma list of read, bash, edit, write, grep, find, ls, send_message: only these;*patterns work. A list of only+name/-nameentries changes the default set instead: Pi's four and peers' send_message (-send_messageleaves it out). ThedefaultToolssetting takes the same entries (default read,bash,edit,write,send_message; without send_message whengrapevine.sendMessageis false).--thinking LEVEL: the model's supported levels only. Default: the settingthinkingLevel:MODEL, thendefaultThinkingLevel, else medium.--lapse on|off: compact before a request when the conversation has been idle past the prompt cache's lifetime and its context is above the floor.--lapse-secondsdefaults to the cache's lifetime (300, 3600 withcacheRetentionlong, OpenAI 86400);--lapse-floorto 100000. On by default.--trial LABEL: a benchmark arm (1-64 printable bytes) kept on each request admitted.--max-requests N: a request stops cleanly (request_cap) before its (N+1)th reply request, retries not counted;pic ask -ccontinues it.--commands(with--json, for ask and run): Pi's RPC command lines on stdin steer the running request: steer, follow_up, clear_queue, abort, set_steering_mode, set_follow_up_mode. Each is journaled as it arrives. While a request runs its process owns the journal, so this is the only way to steer it: there is no separate steer command.