Local and self-hosted tools for terminal coding
Agents and assistants that can run on your own machine or server, keeping data local. Of the 128 tools on our coding in the terminal page, 21 fit this narrower job. By pricing: 19 open source, 1 free or freemium, 1 paid, usage-based or enterprise. The most-starred open repos here are opencodex (17,682 stars), Magpie (16,857 stars), OpenKnowledge (4,646 stars). Most come from the coding (7), agent infra (3), personal agents (2) categories.
Updated
opencodex
A local provider proxy that lets OpenAI Codex (CLI, app and SDK) and Claude Code run on other model providers such as Claude, Gemini, Grok, DeepSeek or local Ollama models.
Added
Magpie
Free, open-source menu bar app and local gateway that lets any coding agent (Claude Code, Codex, Gemini CLI, OpenCode and 60+ more) use any model provider or subscription, with failover when a quota runs out.
Added
OpenKnowledge
OpenKnowledge is a free, local-first markdown editor and knowledge base built for working alongside AI agents. It looks and feels like a Notion-style WYSIWYG editor, with callouts, tabs, Mermaid diagrams and media blocks, but every page stays a plain markdown file on your disk. Coding agents such as Claude Code, Codex, Cursor, Gemini CLI and dozens of others can read and write the same files through its integrations, so specs, team wikis and LLM wikis stay in one place that both people and agents keep up to date. It ships as a desktop app plus a web UI and CLI.
Added
LongMemory
Local-first memory engine for agents that keeps durable, time-aware memories in SQLite and serves them to Claude, Copilot, Codex and others over MCP, CLI or HTTP.
Added
gptme
Terminal agent with local tools that writes code, runs commands, browses the web and uses vision.
Added
CodeGraphContext
MCP server and CLI that index local code into a graph database so AI assistants can query code relationships.
Added
Mercury Agent
Self-hosted personal AI agent with a written personality, local memory, permission-gated tools and token budgets, reachable via CLI or Telegram.
Added
Open Terminal
Self-hosted terminal service from the Open WebUI team that gives AI agents an API to run commands, manage files and execute code.
Added
CyberStrike
Terminal agent for authorized penetration testing that runs recon, vulnerability discovery and reporting with specialized security agents on your own LLM.
Added
Memmy
A local-first personal AI agent with a self-evolving long-term memory that its desktop app, CLI and your other AI agents can all share.
Added
Zero
An open-source terminal coding agent written in Go that works with 30+ model providers, supports MCP, skills and subagents, and keeps all sessions on your own disk.
Added
Wake
Wake is a desktop app that collects every coding-agent conversation on your computer into one searchable place. It reads the local history kept by Claude Code, Codex, Cursor, Copilot CLI, Gemini CLI, Antigravity, Devin and other agents, groups sessions by agent and project, and lets you find a past conversation in seconds and resume it in your terminal. It is read-only and nothing leaves your machine. Built in Rust, it runs on macOS, with Linux and Windows in beta.
Added
thClaws
An open-source AI agent workspace in native Rust that runs locally as a GUI, CLI, headless service or web app from a single binary, with multiple model providers.
Added
Pydantic Deep Agents
Self-hosted terminal AI assistant and Python framework on Pydantic AI, with tool calling, sandboxed execution, multi-agent teams and checkpoints.
Added
HOL Guard
HOL Guard is a free, open-source (Apache-2.0), local-first security layer for AI coding agents such as Claude Code, Codex, Cursor and GitHub Copilot CLI. On supported integrations it checks risky shell commands, reads of secret-bearing files, package installs and new or changed MCP tools before they run, lets you allow, ask or block each action, and keeps a local record for review. It installs with pipx (hol-guard) and works offline; optional Guard Cloud adds synced approvals, team policy and dashboards.
Added
hax
A minimalist terminal coding agent shipped as a single native C binary using a few MB of RAM, with first-class local models plus OpenAI, Anthropic and OpenRouter support.
Added
Shipyard
Shipyard, from coss.com, runs Claude Code, Codex and other coding agents on your own dev machines, each task in its own worktree with its own terminals, dev server and live page previews, so agents keep working when your laptop sleeps.
Added
Open Dungeon Master
Free multiplayer D&D 5e app with app-enforced rules, where an AI or human runs the table using a local model, API key or CLI agent.
Added
WaveSpeed MCP
WaveSpeed MCP is WaveSpeedAI's official MCP server and CLI, which lets an AI agent run any model in WaveSpeed's live catalog of over a thousand image, video, audio and 3D generation models from one connection. Agents can pick a model, submit a generation job and get the result back without switching tools. It is available as a hosted remote server or a local install, and usage is billed per generation at WaveSpeed's API prices.
Added
remotify-mcp
remotify-mcp is a free, open-source (Apache-2.0) local stdio MCP server (npx remotify-mcp) that gives Claude Code, Cursor, Codex, OpenCode, Gemini CLI and other MCP hosts a remote_exec tool for running shell commands on a remote computer through an HTTP relay. The remote machine needs only curl and bash (no SSH port or installed agent), and each command can wait for human approval or run automatically.
Added
MoonPay CLI (MoonAgents)
MoonPay's CLI, local MCP server and API that give AI agents non-custodial wallets, swaps, bridges, transfers and fiat on and off ramps.
Added
GitHub repos (20)
| Repo | GitHub stars | Licence | Last push |
|---|---|---|---|
| 17,682 | — | 2026-10-21 | |
| 16,857 | MIT | 2026-10-21 | |
| 4,646 | — | — | |
| 4,541 | — | 2026-10-18 | |
| 4,452 | MIT | 2026-10-20 | |
| 4,293 | — | 2026-10-15 | |
| 3,433 | — | 2026-10-21 | |
| 3,368 | — | 2026-10-18 | |
| 3,192 | — | 2026-10-14 | |
| 2,125 | — | 2026-10-19 | |
| 1,738 | — | 2026-10-21 | |
| 1,481 | — | — | |
| 1,241 | — | 2026-10-20 | |
| 1,102 | — | 2026-10-06 | |
| 947 | — | 2026-10-21 |
Top 15 of 20 by stars. Stars and licence come from each repo, checked when the listing was last verified.
FAQ
What are the best AI tools for coding in the terminal focused on local and self-hosted?
We list 21. The first three by GitHub stars and featured status are opencodex: A local provider proxy that lets OpenAI Codex (CLI, app and SDK) and Claude Code run on other model providers such as Claude, Gemini, Grok, DeepSeek or local Ollama models.; Magpie: Free, open-source menu bar app and local gateway that lets any coding agent (Claude Code, Codex, Gemini CLI, OpenCode and 60+ more) use any model provider or subscription, with failover when a quota runs out.; OpenKnowledge: OpenKnowledge is a free, local-first markdown editor and knowledge base built for working alongside AI agents. It looks and feels like a Notion-style WYSIWYG editor, with callouts, tabs, Mermaid diagrams and media blocks, but every page stays a plain markdown file on your disk. Coding agents such as Claude Code, Codex, Cursor, Gemini CLI and dozens of others can read and write the same files through its integrations, so specs, team wikis and LLM wikis stay in one place that both people and agents keep up to date. It ships as a desktop app plus a web UI and CLI.
Are there free or open-source options?
Yes: 19 open source, 1 free or freemium, 1 paid, usage-based or enterprise. Pricing is as each maker states it.
More from coding in the terminal
Tools are grouped by what each says it does. Missing one? Submit it free.