psi
psi is a portable, extensible coding agent with a small C core, a Lua runtime, and support for multiple model providers. It is open source under the MIT license and runs from the terminal.
About psi
psi
psi is a coding agent built around a small ANSI C core with high-level behavior implemented in Lua. The page states that the agent loop, terminal interface, tools, and providers are open to inspection. It is distributed as a 6.4 MB portable binary and is described as running on Linux, macOS, Windows, FreeBSD, OpenBSD, Haiku, and more. Supported model options named on the page include Anthropic, OpenAI Codex, OpenRouter, and local models via Ollama. Sessions are described as append-only JSONL with a full tree, allowing branching conversations and resuming with a different provider. Users can interact through an interactive TUI, a simple REPL, one-shot prompts, or Lua evaluation. Extensions are ordinary Lua files loaded from disk that can add slash commands, register tools, and subscribe to the agent lifecycle. The page provides build instructions using Nix or make, and links to source, documentation, and a portability gallery.
Key features
- Portable 6.4 MB binary written in ANSI C and Lua
- Runs on Linux, macOS, Windows, FreeBSD, OpenBSD, and Haiku (listed as tested operating systems)
- Open source under the MIT license
- Model choice including Anthropic, OpenAI Codex, OpenRouter, and local models with Ollama
- Append-only JSONL session storage with a full tree, supporting branching conversations
- Resume a session with a different provider
- Interactive TUI, simple REPL, one-shot prompts, and Lua evaluation
- Lua extensions loaded from disk to add slash commands and register tools
- Extensions can subscribe to the agent lifecycle
- Agent loop and terminal rendering implemented in Lua
- Dependency and license transparency via software bills of materials
- Cosmopolitan build that runs on Linux, macOS, and Windows
Best suited for
- Developers who want an auditable, inspectable coding agent
- Users who want to customize a terminal coding agent with Lua extensions
- Users who want to choose or switch between model providers
- Users running on less common operating systems such as Haiku or BSD variants
Pricing
Not stated on the website
Discussion
Used psi? Share what worked and what didn’t.
No comments yet. Start the conversation.