Skip to content
pi-c Command line
Login

Command line

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 four
--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, 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 rpc Pi's RPC mode
--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
--all models, ps every model, not only those with a key; finished processes too
--refresh models fetch the model catalog now
--default NAME models save the default model (setting defaultModel)
--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
--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 the bug reports kept
--by-trial usage requests, tokens and cost by trial label
--dry-run prune report what would be dropped
--kill ID or --all ps stop a process pic started, by process group
--help, -h print the usage text below

Commands

Options go before the command: pic [options] COMMAND. With no command, pic opens the terminal interface in a terminal.

Conversations

Sessions and export

Models, keys and settings

Prompts, skills, hooks and processes

Housekeeping

Internal commands

Used by the terminal interface, the tests and scripts; not meant to be typed.

Options in detail