📚 Table of Contents
- 📢 News
- 🎥 Demos
- 🌟 Features
- 🛠 Tools
- 🔌 Extensibility: Plugins, Skills & Lessons
- 🔗 Integrations: MCP & ACP
- 🤖 Autonomous Agents
- 🛡 Guardrails
- 🛠 Use Cases
- 🛠 Developer Perks
- 🚧 In Progress
- 🚀 Getting Started
- 🛠 Usage
- 🌍 Ecosystem
- 🏷️ Repository Badge
- 💬 Community
- 📊 Stats
- 📝 Citation
- 🔗 Links
- ❓ FAQ
📢 News
- 2026-09 - v0.34.0: Cross-harness memory (
gptme-util memory, Claude Code & Codex integration), skills as slash commands, gptme service init for headless agents, context-scout pre-pass
- 2026-08 - v0.33.0: Hashline edit format, sandboxed Python/shell execution (Docker, Wasmtime), non-interactive exit taxonomy,
gptme explain, server auth hardening
- 2026-07 - v0.32.0 & v0.32.1: Desktop app for Linux (AppImage), macOS, and Windows, with auto-updates since v0.32.1 — download here; ACP support, MCP server, Textual TUI; gptme.ai cloud service
- 2026-05 - gptme-plugin-registry created: central registry for plugin discovery
- 2026-02 - Scheduled dev pre-releases begin
- 2026-01 - gptme-agent-template v0.4: Bob has run extensively as an autonomous agent, autonomous run loops, enhanced context generation
- 2025-12 - v0.31.0: Background jobs, form tool, cost tracking, content-addressable storage
- 2025-11 - v0.30.0: Plugin system, context compression, subagent planner mode
- 2025-10 - v0.29.0: Lessons system for contextual guidance, MCP discovery & dynamic loading, token awareness; Bob begins autonomous runs with GitHub monitoring
- 2025-08 - v0.28.0: MCP support, morph tool for fast edits, auto-commit, redesigned server API
- 2025-03 - v0.27.0: Pre-commit integration, macOS computer use, Claude 3.7 Sonnet, DeepSeek R1, local TTS with Kokoro
- 2025-01 - gptme-contrib created: community plugins including Twitter/X, Discord bot, email tools, consortium (multi-agent)
- 2024-12 - gptme-agent-template v0.3: Template for persistent agents
- 2024-11 - Ecosystem expansion: gptme-webui, gptme-rag, gptme.vim, Bob created (first autonomous agent)
- 2024-10 - First viral tweet bringing widespread attention
- 2024-08 - Show HN, Anthropic Claude support, tmux tool
- 2023-09 - Initial public release on HN, Reddit, Twitter
- 2023-03 - Initial commit - one of the first agent CLIs
For more history, see the Timeline and Changelog.
🎥 Demos
[][docs-tui]
[!NOTE]
The terminal recordings above are from 2023 and show the classic CLI. More recordings are kept in the [Demo archive][docs-demos], and more up-to-date walkthroughs are in the [Examples][docs-examples].
🌟 Features
- 💻 Code execution
- Executes code in your local environment with the [shell][docs-tools-shell] and [python][docs-tools-python] tools.
- 🧩 Read, write, and change files
- Makes incremental changes with the [patch][docs-tools-patch] tool.
- 🌐 Search and browse the web
- Can use a browser via Playwright with the [browser][docs-tools-browser] tool.
- 👀 Vision
- Can see images referenced in prompts, screenshots of your desktop, and web pages.
- 🔄 Self-correcting
- Output is fed back to the assistant, allowing it to respond and self-correct.
- 📚 [Lessons system][docs-lessons]
- Contextual guidance and best practices automatically included when relevant.
- Keyword, tool, and pattern-based matching.
- Adapts to interactive vs autonomous modes.
- Extend with your own lessons and [skills][docs-skills].
- 🗃️ [Cross-harness memory][docs-memory]
- One local Markdown-based memory store shared by gptme, Claude Code, Codex, and any other harness.
gptme-util memory CLI — save, recall, search, supersede, and audit entries from any terminal.
- Claude Code hook and Codex AGENTS.md integration included.
- 🤖 Support for many LLM [providers][docs-providers]
- Anthropic (Claude), OpenAI (GPT), Google (Gemini), SpaceXAI (Grok), DeepSeek, and more.
- Use OpenRouter or Requesty for access to 100+ models, or serve locally with Ollama, LM Studio, vLLM, or
llama.cpp.
- Bring your own subscription: use your existing ChatGPT Plus/Pro or SuperGrok plan instead of API keys (see [providers][docs-providers]).
- [Pick the right model per task][docs-model-routing] — fast/cheap for triage, powerful for coding.
- 🌐 Web UI and REST API
- Modern [gptme-webui] bundled with
gptme-server and hosted at chat.gptme.org.
- [Server][docs-server] with REST API.
- Standalone executable builds available with PyInstaller.
- 💻 [Computer use][docs-tools-computer]
- Give the assistant access to a full desktop, allowing it to interact with GUI applications.
- 🧠 Code intelligence
- Structural code understanding with [gptme-codegraph]: call graphs, symbol extraction, and impact analysis powered by Tree-sitter. 10 MCP tools for codebase navigation.
- 🔊 Tool sounds — pleasant notification sounds for different tool operations.
- Enable with
GPTME_TOOL_SOUNDS=true.
🛠 Tools
gptme equips the AI with a rich set of built-in tools:
| Tool |
Description |
shell |
Execute shell commands directly in your terminal |
ipython |
Run Python code with access to your installed libraries |
read |
Read files and directories |
save / append |
Create or update files |
patch / morph |
Make incremental edits to existing files |
browser |
Search and navigate the web via Playwright |
vision |
Process and analyze images |
screenshot |
Capture screenshots of your desktop |
rag |
Retrieve context from local files (needs the gptme-rag package) |
gh |
Interact with GitHub via the GitHub CLI |
tmux |
Run long-lived commands in persistent terminal sessions |
computer |
Full desktop access for GUI interactions |
subagent |
Spawn sub-agents for parallel or isolated tasks |
chats |
Reference and search past conversations |
memory |
Save and recall memory entries shared across harnesses |
lessons |
Look up contextual guidance and skills |
todo |
Keep a task list for the current conversation |
mcp |
Discover and load MCP servers at runtime |
Use /tools during a conversation to see all available tools and their status.
🔌 Extensibility: Plugins, Skills & Lessons
gptme has a layered extensibility system that lets you tailor it to your workflow:
[Plugins][docs-plugins] — extend gptme with custom tools, hooks, and commands via Python packages:
# gptme.toml
[plugins]
paths = ["~/.config/gptme/plugins", "./plugins"]
enabled = ["my_plugin"]
[Skills][docs-skills] — lightweight workflow bundles (Anthropic format) that auto-load when mentioned by name. Great for packaging reusable instructions and helper scripts without writing Python.
[Lessons][docs-lessons] — contextual guidance that auto-injects into conversations based on keywords, tools, and patterns. Write your own to capture team best-practices or domain knowledge.
[Hooks][docs-hooks] — run custom code at key lifecycle events (before/after tool calls, on conversation start, etc.) without a full plugin.
[gptme-contrib] — community-contributed plugins, packages, scripts, and lessons:
| Plugin / Package |
Description |
| gptme-codegraph |
Structural code retrieval with tree-sitter: 10 MCP tools for parse, call graph, blast/impact analysis |
| gptme-consortium |
Multi-model consensus decision-making |
| gptme-imagen |
Multi-provider image generation |
| gptme-lsp |
Language Server Protocol integration |
| gptme-ace |
ACE-inspired context optimization |
| gptme-gupp |
Work state persistence across sessions |
🔗 Integrations: MCP & ACP
[MCP (Model Context Protocol)][docs-mcp] — gptme works in both directions:
- MCP client: discover and load external MCP servers as gptme tools.
- MCP server: expose gptme's persistent shell, Python REPL, and file tools to
Claude Desktop, Cursor, or any other MCP client.
pipx install gptme # MCP support included by default
# Run gptme as an MCP server over stdio
gptme-mcp-server --tools shell,ipython,save,read
The server keeps shell and Python state across tool calls. See the [MCP docs][docs-mcp]
for a ready-to-paste Claude Desktop configuration and MCP client setup.
[ACP (Agent Client Protocol)][docs-acp] — use gptme as a coding agent directly from your editor:
pipx install 'gptme[acp]'
This makes gptme available as a drop-in coding agent in Zed and JetBrains IDEs. Your editor sends requests, gptme executes with its full toolset (shell, browser, files, etc.) and streams results back.
🤖 Autonomous Agents
gptme is designed to run not just interactively but as a persistent autonomous agent — an AI that runs continuously, remembers everything, and gets better over time. The [gptme-agent-template][agent-template] provides a complete scaffold:
- Persistent workspace — git-tracked "brain" with journal, tasks, knowledge base, and lessons
- Run loops — scheduled (systemd/launchd) or event-driven autonomous operation
- Task management — structured task queue with YAML metadata and GTD-style workflows
- Meta-learning — lessons system captures behavioral patterns and improves over time
- Multi-agent coordination — file leases, message bus, and work claiming for concurrent agents
- External integrations — GitHub, email, Discord, Twitter, RSS, and more
# Create and run your own agent
gptme-agent create ~/ada --name Ada
cd ~/ada
gptme-agent install # runs on a schedule
gptme-agent status # check on it
Headless Agents with systemd
For quick setup of a gptme agent as a persistent systemd service on any Linux machine, use gptme service init:
# Generate a complete headless agent setup
gptme service init --name Ada --model anthropic/claude-haiku-4-5 --work-dir ~/ada
# Install and start on a daily timer
systemctl --user daemon-reload
systemctl --user enable --now Ada.timer
# Update the schedule (--force overwrites all generated files, including gptme.toml and startup script)
gptme service init --name Ada --work-dir ~/ada --timer-schedule hourly --force
This command scaffolds:
- systemd service unit — runs your agent in a user session
- Optional timer — schedule autonomous runs (hourly, daily, weekly, or on-demand)
- Startup script — runs one non-interactive gptme session per trigger and writes a durable journal entry
- Session prompt —
prompt.md, the instruction the agent executes on every run
- Skeleton config —
gptme.toml and AGENTS.md ready to customize
The scaffolded workspace is self-contained and runs as generated — edit prompt.md to say what the agent should do each run; all you need is gptme installed. Perfect for automation, monitoring, CI/CD orchestration, or running background agents on headless servers.
See Running agents autonomously for scheduling, monitoring, and guardrails.
Bob is the reference implementation — created in late 2024 and running autonomously since 2025, with 5,000+ merged pull requests to his name. Bob opens PRs, reviews code, fixes CI, manages his own task queue, maintains a growing set of behavioral lessons, posts on Twitter, responds on Discord, and writes blog posts.
Multiple specialized agents can run in parallel — e.g. Bob (engineering) and Alice (personal assistant & orchestration) — coordinating through shared infrastructure.
See the Autonomous Agents docs for the full guide.
🛡 Guardrails
Persistent agents need guardrails around the full loop, not just tool permissions:
- Input guardrails — structured task selectors in the agent workspace keep work focused and reduce thrashing on notifications or ambiguous work. Bob uses a CASCADE-style selector for this layer.
- Pre-action guardrails — [lessons][docs-lessons] inject situational guidance before the agent acts.
- Output guardrails — [hooks][docs-hooks] and pre-commit checks validate file changes before control returns to the user.
This stack is simple and composable: selectors improve work choice, lessons steer behavior, and checks verify the result. You can add evals on top later, but the baseline guardrail loop already exists.
🛠 Use Cases