Artifact 8a16a9c2a1bc561781355dd7d457bfe5b920eb2debfa048ed27fc886c6c42cbc:
- File docs/manual/start.md — part of check-in [cef29b55cb] at 2026-11-21 16:04:45 on branch docs-help — pic help [TOPIC] and /help TOPIC: the manual and reference compiled in (src/manual.inc, built, not committed); pic --help is a 27-line synopsis; help.sh tests both and checks the synopsis against docs/reference/cli.md; doc fixes: Alt+P picks a model, 36 RPC commands, more differences from Pi (user: dmestas, size: 2742) [annotate] [blame] [check-ins using] [more...]
Getting started
Build pic, give it an API key, and run a first session.
Build and install
make pic # build/pic/release/pic
make install-pic # runs the test suite, then installs to ~/.local/bin/pic
The build uses CC (default cc) and compiles with -Werror; it is warning-clean under clang and
gcc (make CC=gcc-16 pic).
An API key
API keys come from the environment (ANTHROPIC_API_KEY, OPENAI_API_KEY, OPENROUTER_API_KEY,
...), as in Pi, or from pic's credential store:
pic login anthropic # the key, typed with echo off (or piped on stdin), sealed into ~/.pic/pic.sqlite
pic keys # stored keys: names and dates, never values
pic logout anthropic # remove it
Credentials says how the store works; environment variables lists every provider's variable.
Use
pic # the terminal interface in the current directory
pic tui -c # continue the latest conversation
pic ask "fix the failing test"
pic ask -c "now add a regression test"
pic -p "list the TODOs" # Pi's print mode: one prompt, the answer on stdout
git diff | pic -p "review this" # piped stdin comes first in the prompt
pic -p @notes.md @shot.png "summarize" # @files: text as <file name="...">, images attached
pic --system-prompt "Be terse." -p "..." # TEXT or a file; --append-system-prompt adds to the default
pic chat # a plain line prompt
pic --model openrouter/deepseek/deepseek-v4-flash --thinking high ask "..."
pic models # models whose provider has a key
pic sessions # conversations in this workspace
pic skills # skills in ~/.pic/skills (and the trusted workspace's); /skill:name runs one
pic --json ask "..." # Pi's JSON events on stdout
pic --mode rpc # Pi's RPC mode: JSONL commands on stdin, responses and events on stdout
pic help lists the topics of this manual and pic help TOPIC prints one (/help TOPIC in the
terminal interface). pic --help is a short synopsis; the command line
reference (pic help cli) lists every command and flag.