AgentScout / Tasks / Coding in the terminal / Local and self-hosted

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 logo

Magpie

NewMCP & infraOpen source

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 logo

LongMemory

Newmemory & RAGOpen source

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 logo

gptme

codingOpen source

Terminal agent with local tools that writes code, runs commands, browses the web and uses vision.

Added

CodeGraphContext logo

CodeGraphContext

NewcodingOpen source

MCP server and CLI that index local code into a graph database so AI assistants can query code relationships.

Added

Mercury Agent logo

Mercury Agent

Newpersonal agentsOpen source

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 logo

Open Terminal

NewMCP & infraOpen source

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 logo

CyberStrike

Newsecurity & governanceOpen source

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 logo

Pydantic Deep Agents

NewcodingOpen source

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 logo

Open Dungeon Master

gamesOpen source

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) logo

MoonPay CLI (MoonAgents)

NewcryptoFreemium

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)

RepoGitHub starsLicenceLast push
Magpie ↗16,857MIT—
LongMemory ↗4,541——
gptme ↗4,452MIT2026-10-19
CodeGraphContext ↗4,293—2026-10-15
Mercury Agent ↗3,433—2026-10-19
Open Terminal ↗3,368—2026-10-18
CyberStrike ↗3,192——
Pydantic Deep Agents ↗1,102—2026-10-06
Open Dungeon Master ↗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.

Get the best new AI agents, weekly

One short email with new tools, launches and what's worth trying. Free, unsubscribe anytime.