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 95 tools on our coding in the terminal page, 10 fit this narrower job. By pricing: 9 open source, 1 free or freemium. The most-starred open repos here are Magpie (16,857 stars), LongMemory (4,541 stars), gptme (4,452 stars). Most come from the coding (3), MCP & infra (2), memory & RAG (1) categories.
Updated
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
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
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
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
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 (9)
| Repo | GitHub stars | Licence | Last push |
|---|---|---|---|
| 16,857 | MIT | — | |
| 4,541 | — | — | |
| 4,452 | MIT | 2026-10-19 | |
| 4,293 | — | 2026-10-15 | |
| 3,433 | — | 2026-10-19 | |
| 3,368 | — | 2026-10-18 | |
| 3,192 | — | — | |
| 1,102 | — | 2026-10-06 | |
| 46 | — | 2026-10-19 |
9 repos. 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 10. The first three by GitHub stars and featured status are 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.; 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.; gptme: Terminal agent with local tools that writes code, runs commands, browses the web and uses vision.
Are there free or open-source options?
Yes: 9 open source, 1 free or freemium. 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.