whereismyai
psi
psi is a portable coding agent with a C core and Lua runtime for terminal workflows.
Psi is an open source coding agent built on a small C core and a Lua runtime. Users choose from models including Anthropic, OpenAI Codex, OpenRouter, and local models via Ollama. It operates from the terminal with an interactive TUI, a REPL, one-shot prompts, and Lua evaluation. Sessions use append-only JSONL files with branching conversation trees. Extensions are written in Lua to customize commands, tools, and the agent loop.
psi at a glance
- Best for: Software engineer
- Runs on: Linux, macOS, Windows, CLI
- Pricing: Free
- Released: November 2026
- Category: AI coding tool
- Website: psicode.ai
Key features
- Portable 6.4 MB binary
- Lua extension runtime
- Multiple model providers
- Append-only JSONL session trees
- Interactive terminal user interface
- Custom slash commands and tools
Use it for
- Find and fix bugs in source code
- Run verification checks in the terminal
- Branch conversations to explore approaches
- Customize agent behavior with Lua scripts
Companions
Tools that articles about psi recommend using with it, each with its job.
- Context7 — Provides up-to-date documentation for AI agents and code editors.
- Ollama — Run local models at zero marginal cost, with code kept on your machine.
- OpenRouter — Access over 500 models and 80 providers through one unified API.
- Daytona — Runs sessions in isolated sandboxes synced to git branches.
- Composio — Equips AI agents with tools, managed user auth, and sandboxes across 1,500+ apps
- Oh My OpenCode Slim — Lightweight multi-agent orchestration and background tasks.
Alternatives to psi
- OpenCode — Works with 75+ model providers, local models, and existing subscriptions
- jevgrep — Reduces coding agent costs by providing targeted, relevant repository context.
- Orca — Runs multiple AI coding agents simultaneously in isolated workspaces.
- Pi — Extends file read limits and customizes agent behavior using packages.
- SmallCode — Runs fully local with budget-managed context and a forgiving parser for small models.
- Zero — Operates entirely on the local machine with configurable permission-gated actions.
- pstack — Improves AI coding agent outcomes with rigorous workflows.
- Uji — Swap any module at runtime and rewrite every view in Lua.
- Agav — It reduces AI coding costs through context caching, retry limits, and budget controls.
- Strata — Runs large AI models locally on consumer gaming PCs without server reliance.
- Command Code — Repairs open model tool calls and learns developer patterns automatically.
- Kolo — Teams share one browser session to watch, type, and control AI agents together.
All psi alternatives