An open-source AI coding agent that runs in your terminal, with companion desktop, web, editor, and chat interfaces.
can1357/oh-my-pi
A terminal coding agent with built-in LSP, debugger, browser and subagent tools, supporting 60+ model providers.
Open-source alternative to:Claude Code
Cursor
- Stars
- 35,945
- Forks
- 3,957
- Open issues
- 3,905
- Last commit
- yesterday
What is it?
oh-my-pi (omp) is a coding agent that runs in the terminal and is a fork of Pi by Mario Zechner. It gives the agent direct access to language servers, a DAP debugger, a browser, and a desktop-control API, so it can rename symbols across imports, step through a crashing native binary, or inspect a running web page without leaving the session.
The agent supports more than 60 model providers, including Anthropic, OpenAI, Gemini, and local servers such as Ollama, LM Studio, and vLLM. Models are assigned to roles such as default, smol, slow, and plan, and a per-role fallback chain handles rate limits. Subagents can run in parallel, optionally in isolated worktrees, and return schema-validated results to the parent session.
The project ships as a TypeScript CLI on Bun with a Rust native addon for search, shell, AST and PTY work. It can run as an interactive TUI, a one-shot command, an RPC server over stdio, or an ACP server for editors such as Zed.
Key features
- 01Built-in LSP and DAP tools let the agent use language servers and step through debuggers.
- 02Supports 60+ model providers, including local servers like Ollama and vLLM.
- 03Subagents run in parallel and return schema-validated results to the parent session.
- 04Hashline edits anchor changes to content hashes and reject patches against stale files.
- 05Runs as a TUI, one-shot command, RPC server, or ACP server for editors like Zed.
- 06Reads existing rules and MCP config from .cursor, .claude, .codex and similar directories.
Use cases
- Debugging a native binary or a hung service by attaching a debugger from the agent.
- Renaming symbols or moving files in a TypeScript project while keeping imports updated.
- Running a coding agent against a local model served by Ollama or vLLM.
- Splitting a large refactor across parallel subagents working in separate worktrees.
Quick start
- 1
Install on macOS or Linux with the install script
Install with the official instructions in the README - 2
Or install globally with Bun (recommended)
bun install -g @oh-my-pi/pi-coding-agent
Things to know
- Requires bun 1.3.14 or newer for the Bun install route.
- Alpine/musl prebuilt binary needs libstdc++ and libgcc installed first.
Topics
FAQ
- What is oh-my-pi?
- A terminal coding agent with built-in LSP, debugger, browser and subagent tools, supporting 60+ model providers. oh-my-pi (omp) is a coding agent that runs in the terminal and is a fork of Pi by Mario Zechner. It gives the agent direct access to language servers, a DAP debugger, a browser, and a desktop-control API, so it can rename symbols across imports, step through a crashing native binary, or inspect a running web page without leaving the session.
- Is oh-my-pi free to use? What license does it have?
- oh-my-pi is open source under the MIT license. Check the license terms before using it in commercial products.
- Is oh-my-pi still maintained?
- Actively maintained. The last commit to oh-my-pi was on Oct 19, 2026.
- What can I use oh-my-pi for?
- Debugging a native binary or a hung service by attaching a debugger from the agent. Renaming symbols or moving files in a TypeScript project while keeping imports updated. Running a coding agent against a local model served by Ollama or vLLM. Splitting a large refactor across parallel subagents working in separate worktrees.
- How do I install oh-my-pi?
- Install on macOS or Linux with the install script Or install globally with Bun (recommended): bun install -g @oh-my-pi/pi-coding-agent
- Where can I get oh-my-pi?
- The source code and installation instructions are on GitHub: https://github.com/can1357/oh-my-pi
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
An open-source coding-agent CLI that runs in the terminal and works with cloud APIs and local model backends like Ollama.
A terminal-based AI coding agent that connects to your choice of LLM, with LSP and MCP support and per-project sessions.
Pi, the AI coding agent, compiled ahead of time to native code so it starts faster and uses less CPU than Pi on Bun or Node.
Open-source recursive coding agent in Rust with a persistent Python workspace, child agents, and support for multiple model providers.
An open-source AI agent from Google that brings Gemini into your terminal to query, edit, and automate code.