Artifact 06d73153eb843c0e50ef5f3280baa2e573bcd3af4e64e078f2282de6c40e4db9:
- File
docs/manual/start.md
— part of check-in
[9dabe49948]
at
2026-11-21 19:00:33
on branch amalgam
— Amalgamation: pic as one pic.c beside the vendored sources, built by one cc line
make amalgamation writes pic-amalgamation-VERSION/ and its tarball; make test-amal builds it from the README's own line and runs crash, print and tools against that binary, and is part of make test-pic. About 60 file-local names that collided in one translation unit take their file's prefix; test/pic/amalgam.sh fails on a new collision. (user: dmestas, size: 3114) [annotate] [blame] [check-ins using]
# Getting started Build pic, give it an API key, and run a first session. ## Build and install ```sh 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`). ### From the source bundle Without Make, build pic from its release bundle, `pic-amalgamation-VERSION.tar.gz`: pic's own code as one `pic.c`, beside the vendored SQLite, libfossil, zlib and BearSSL sources. Its `README` has the one `cc` line that builds it, and it needs only a C11 compiler, libc, libm and pthread. `make amalgamation` makes the bundle from a checkout. ## 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: ```sh 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](credentials.md) says how the store works; [environment variables](../reference/env.md) lists every provider's variable. ## Use ```sh 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](../reference/cli.md) (`pic help cli`) lists every command and flag. ## Where to go next - [The terminal interface](tui.md), [themes](themes.md) and [keys](../reference/keys.md) - [Coming from Claude Code](from-claude-code.md) - [Sessions](sessions.md), [models](models.md), [print mode and JSON](print-and-json.md), [RPC mode](rpc.md) - [Tools](tools.md), [prompts and skills](prompts-and-skills.md), [hooks](hooks.md), [processes](processes.md) - [Benchmarks](benchmarks.md), [where pic can run](platforms.md), [differences from Pi](differences-from-pi.md)