CLI Tools2026年5月12日·1 分钟阅读

gptme — Terminal AI Agent with Tools & MCP

Run an autonomous AI agent in your terminal with tool-use, MCP support, and non-interactive modes for CI. Installs via pipx/uv; Python 3.10+.

Agent 就绪

这个资产可以被 Agent 直接读取和安装

TokRepo 同时提供通用 CLI 命令、安装契约、metadata JSON、目标特化安装计划和原始内容链接,方便 Agent 判断适配度、风险和下一步动作。

Native · 94/100策略:允许
目标
Claude Code, Codex, Gemini CLI
类型
Cli
安装
Pipx
信任
信任等级:Established
入口
pipx install gptme && gptme --help
通用 CLI 安装命令
npx tokrepo install 0fe163f8-d731-5ca9-abe0-953e2508982f

简介

gptme 是一个以终端为中心的 AI Agent:能执行命令、使用本地工具,并默认支持 MCP;同时提供适合脚本化自动化的运行模式。

最适合: 偏好命令行的开发者、CI 自动化、需要工具调用的编码 Agent

适配: macOS/Linux/Windows;Python 3.10+;可用任一模型提供方 Key 或本地模型

配置时间: 5–10 分钟

关键事实(已验证)

  • 支持 -y 自动确认与 -n 非交互模式(README)。
  • 可用 pipxuv tool 安装(README)。
  • GitHub:4,299 stars · 388 forks;最近更新 2026-05-12(GitHub API 验证)。

正文

把 gptme 当作“带对话界面的工具执行器”更顺手:

  • 在代码仓库里给它结构化输入(git diffmake test、日志),它更容易做出可执行的修改建议。
  • CI 场景优先用 -n,避免等待确认;人工监督时用 -y 并随时打断。
  • 需要网页访问时再安装可选 extra(gptme[browser]),并结合你的环境校验沙箱/权限策略。

README 原文节选(verbatim)

gptme

/ʤiː piː tiː miː/
what does it stand for?

Getting StartedDownloadsWebsiteDocumentation

Build Status Docs Build Status Codecov
PyPI version PyPI - Downloads all-time PyPI - Downloads per day
Discord X.com
Powered by gptme

📜 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

🙏

来源与感谢

Source: https://github.com/gptme/gptme > License: MIT > GitHub stars: 4,299 · forks: 388

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产