简介
gptme 是一个以终端为中心的 AI Agent:能执行命令、使用本地工具,并默认支持 MCP;同时提供适合脚本化自动化的运行模式。
最适合: 偏好命令行的开发者、CI 自动化、需要工具调用的编码 Agent
适配: macOS/Linux/Windows;Python 3.10+;可用任一模型提供方 Key 或本地模型
配置时间: 5–10 分钟
关键事实(已验证)
- 支持
-y自动确认与-n非交互模式(README)。 - 可用
pipx或uv tool安装(README)。 - GitHub:4,299 stars · 388 forks;最近更新 2026-05-12(GitHub API 验证)。
正文
把 gptme 当作“带对话界面的工具执行器”更顺手:
- 在代码仓库里给它结构化输入(
git diff、make test、日志),它更容易做出可执行的修改建议。 - CI 场景优先用
-n,避免等待确认;人工监督时用-y并随时打断。 - 需要网页访问时再安装可选 extra(
gptme[browser]),并结合你的环境校验沙箱/权限策略。
README 原文节选(verbatim)
gptme
/ʤiː piː tiː miː/
what does it stand for?
Getting Started • Downloads • Website • Documentation
📜 A personal AI agent that runs anywhere a terminal runs — your laptop,
ssh sessions, tmux, headless servers, CI pipelines.
Provider-agnostic, local-first, and unconstrained: ships with shell, Python, web,
vision, and everything else an agent needs.
A great coding agent, but general-purpose enough to assist in all kinds of knowledge-work.
Free and open-source. Works with Anthropic, OpenAI, Google, xAI, DeepSeek, OpenRouter,
or fully local via llama.cpp — your data, your models, your terminal.
FAQ
gptme 自带 MCP 吗? 答:README 表示默认包含 MCP 支持;也可以按需安装 extra 扩展能力。
需要什么 Python 版本? 答:Prerequisites 写明需要 Python 3.10 或更高版本。
怎么用于 CI 更安全?
答:使用 -n 让流程完全非交互;有人监督时再考虑 -y。