gptme runs in your terminal with local tools for shell, Python, files, and browsing. It supports many LLM providers or fully local models.
Overview
gptme is a personal AI agent meant to run wherever a terminal runs—laptops, SSH sessions, tmux, servers, or CI—using provider-agnostic chat models and built-in tools. It executes shell commands, Python, file reads and patches, web browsing via Playwright, screenshots, GitHub CLI actions, and additional utilities from one conversational interface.
Models can come from commercial APIs, router services, existing chat subscriptions, or local servers such as Ollama and other OpenAI-compatible hosts. Optional pieces include a Textual TUI, bundled web UI with REST server, desktop builds, MCP and ACP integration, plugins, skills, lessons, and memory shared across harnesses.
The design supports interactive sessions and non-interactive scripts, background jobs, subagents, tmux-backed long commands, and templates for autonomous agents with scheduled systemd or launchd loops. Guardrails combine task selectors, injected lessons, and hooks around tool use.
It is positioned for development and general knowledge work in your real environment—your repos, credentials, and tools—rather than a isolated sandbox-only assistant.
Key features
- Persistent shell tool sessions
- Python REPL execution
- Patch and morph file edits
- Playwright browser tool
- Desktop screenshot and vision
- MCP client and server modes
- Plugin and lessons system
- Optional web UI and REST API
Use cases
- Terminal coding assistance
- Shell command discovery
- Automated repo maintenance
- Headless scheduled agents
Open-source alternative to
Claude Code“A capable alternative to Claude Code, Codex, and Grok Bot, and a development-focused peer to self-hosted agents like OpenClaw and Hermes Agent — one of the first agent CLIs (Spring 2023), still in very active development.” source