CLI#
gptme ships a set of command-line tools. Most of the time you only need gptme
itself; the others cover setup, utilities, agents, and evaluation. Every tool accepts
--help, and the reference pages list all of their options.
Chat and interfaces
gptme — the main CLI: chat with the assistant in your terminal.
gptme-server — the web UI and REST API server; see Server.
gptme-mcp-server — expose gptme’s tools as an MCP server over stdio; see MCP.
gptme-acp— run gptme as an Agent Client Protocol agent for editors; see ACP.
Utilities
gptme-util — utility subcommands for models, tools, profiles, memory, and more.
gptme-wut— start a session with the content of the current tmux pane.gptme-convert— convert files between formats (PDF, images, and more) offline.gptme-attest— generate and verify output attestations.
Agents (reference)
gptme-agent— create and manage autonomous agents; see Agents.gptme-service— scaffold a persistent headless agent as a systemd or launchd service.gptme-cloud— run a prompt in a gptme.ai ephemeral sandbox and fetch the patch.
Setup and diagnostics (reference)
gptme-onboard— first-run setup wizard.gptme-auth— sign in to subscription providers and the gptme managed service.gptme-init— create a new gptme project scaffold.gptme-tutorial— interactive tutorial: learn gptme by doing.gptme-doctor— run system diagnostics.
Sessions (reference)
gptme-status— generate a portable session-status document for handing off work.gptme-resume— rebuild a resume prompt from a prior session.gptme-checkpoint— lightweight recovery markers for Git workspaces.gptme-stats— LLM usage and cost statistics across all conversations.
Evaluation and training (reference)
gptme-eval— run gptme’s eval suites; see Evals.gptme-eval-swebench— run the SWE-bench evaluation.gptme-eval-tbench— run the Terminal-Bench evaluation.gptme-dataset— build fine-tuning datasets from session trajectories; see Finetuning.gptme-eval-trends— track eval result trends and regressions over time (no reference page).gptme-dspy— optimize system prompts with DSPy (no reference page).
Reference pages:
gptme — the main command
gptme-server — web UI and REST API server
gptme-tui — terminal UI
Recovering chat message content — utilities (chats, models, memory, tools, …)
Agents —
gptme-agent,gptme-serviceandgptme-cloudgptme-mcp-server — expose gptme tools over MCP
Setup and Diagnostics — onboarding, auth, init, tutorial, doctor
Sessions — status, resume, checkpoint, stats
Evaluation — evals, SWE-bench, terminal-bench, datasets
Shell completions#
Install or refresh completions without starting a chat:
gptme-util completions --shell bash # or zsh / fish
# From a source checkout:
make install-completions COMPLETION_SHELL=fish
The in-chat /setup command also installs completions for the detected shell.
Re-run installation after upgrading to add newly shipped commands. Existing
completions, including legacy Fish symlinks, are updated with confirmation.
Options, subcommands, and choices come from the CLI definitions, so each command
gets its own options rather than inheriting those of gptme. Model completion
in gptme, gptme-tui, and gptme-server serve uses bundled model metadata
and custom-provider defaults without network requests or authentication. You can
still enter model IDs that are not in the bundled list.
Fish loads files from $XDG_CONFIG_HOME/fish/completions (default:
~/.config/fish/completions). Bash needs bash-completion installed and
enabled; files are installed under $XDG_DATA_HOME/bash-completion/completions
(default: ~/.local/share/bash-completion/completions). Without bash-completion,
source those generated files from ~/.bashrc. For Zsh, add the installation
directory printed by the installer before compinit in ~/.zshrc. With the
default XDG_DATA_HOME, this is:
fpath=(~/.local/share/zsh/completions $fpath)
autoload -Uz compinit
compinit
Restart the shell after installation. These completions cover the Click-based
entry points, including optional commands when their extras are installed.
gptme-wut, gptme-convert, and gptme-eval-trends currently use argparse
and are not covered; gptme-acp is a stdio protocol transport, not an interactive
CLI.
Common invocations#
gptme # pick or start a conversation
gptme "summarize this" @README.md # start with a prompt, and a file as context
gptme -r # resume the most recent conversation
gptme -n "run the tests and fix failures" # non-interactive: no confirmations
gptme --help # all options
See Usage for a guided tour, Commands for the slash commands available inside a session, and Configuration for configuration files and environment variables.