Reference

CLI Reference

Run gdm --help for a quick summary. Each subcommand also accepts --help.

Default — start the agent

gdm [OPTIONS] [PROMPT]

Starts the interactive REPL. If a prompt is given, runs one turn then returns to the prompt. gdm code is an alias.

FlagDescription
--prompt TEXTTask description (skips interactive input)
--yesAuto-approve all tool calls (non-interactive)
--model TEXTOverride model tier: scout, coder, thinker, reasoner, debate

gdm version

gdm version

Show installed version and configured API providers.

gdm health

gdm health [--json]

Live system health check — database, daemon, API connectivity, tool availability, and budget state.

FlagDescription
--jsonOutput results as JSON (useful for CI)

gdm login

gdm login PROVIDER

Store an API key in the OS keychain. Supported providers: grok, gemini, codex.

gdm cost

gdm cost [--days N]

Show spending summary grouped by provider and model tier.

REPL slash commands

Available inside the interactive REPL:

CommandDescription
/model [TIER]Switch model tier (interactive picker if no arg)
/costShow session cost
/statusAgent and session status
/tasksList in-progress tasks
/btw NOTEQueue a note for the next session
/diffShow pending git diff
/commitCommit staged changes
/branch NAMECreate and switch to a new branch
/prOpen a GitHub pull request
/compactSummarise and compress conversation context
/clearClear the screen
/updateCheck for and install the latest version
/exit, /quitExit the REPL