gptme CLI Cheatsheet - Terminal AI Agent Full Reference
gptme is a personal AI agent that runs in any terminal with built-in shell, Python, web, and vision tools, provider-agnostic and local-first. It reads files, runs commands, and runs concurrent agents. This sheet covers chat, tools, context, and subcommands so you can wire it into CI or long-running scripts.
Basic Chat 6
gptme "hello"gptme "fix TODOs" main.pygptme -m anthropic/claude-sonnet-4-20250514gptme -y "run tests and fix"gptme -n "summarize git diff"gptme --output-format json "summarize diff"Tools and Context 6
gptme -t read-only "summarize repo"gptme -t patch,save "fix typo" main.pygptme -t +subagent "plan refactor"gptme -t=-browser "summarize code"gptme --tools none "what is 2+2"gptme --context files "do task"Sessions and Tooling 8
gptme -rgptme --name mytaskgptme tools listgptme chats listgptme models listgptme context indexgptme chats search "query"gptme --helpTips
- -y auto-confirm and -n non-interactive with --output-format json is the standard way to put it in CI.
- -t with +tool or -tool adds or removes tools for fine-grained permission control, safer than all-on.
- gptme context index builds RAG so chats carry project file context.
FAQ
How is gptme different from Claude Code?
gptme is provider-agnostic and local-first with 100+ models and concurrent agents; Claude Code is Anthropic official and Claude-native. Both run shell and code.
Can it run on a headless server?
Yes. -n non-interactive mode targets SSH, tmux, headless, and CI, with machine-readable output.
Official References
Each command links to its official documentation below, so you can verify the latest usage and read deeper.
Maintained by LaoHand
Publicly updated on Sep 10, 2026, continuously proofread against official docs.
Contact Us
Wrong command or description? Send us corrections, business inquiries or product feedback by email.
Contact Us