A lightweight terminal chat client for local and OpenAI-compatible LLM backends.
PicoChat provides an interactive CLI workflow with multiline input, session history, structured output options, and image-capable prompts.
- Interactive multiline chat input (
Ctrl+Dsubmit,Esc/Ctrl+Ccancel) - Session history save/load
- Multiple backend protocols (
ollama,openai,responses) - Output formatting (
plain,json,json-pretty,yaml) - Structured content generation via JSON schema
- Image prompt support
- Clipboard helpers and runtime commands
Build from source:
go mod download
go mod tidy
go test ./...
go buildOn macOS, unsigned binaries may need quarantine removal:
sudo xattr -rd com.apple.quarantine ./picochat
Interactive mode:
picochat
Pipe mode:
echo "Write a Haiku about Cheese" | picochat
When stdin is piped, quiet mode is enabled automatically, so prompts and startup messages are not written to the pipeline.
Detailed guides are in /docs:
- Usage Guide
- Sessions
- Configuration
- Output and Structured Content
- Image Processing
- Debug and Known Issues
MIT