Install the CLI
- Shell (recommended)
- Homebrew
- npm
~/.local/bin/gm (or /usr/local/bin/gm). Supports macOS and Linux, both ARM64 and x86_64.Authenticate
Setup
After logging in, run setup to configure SSH access and upload your coding profile:- Generates an SSH key (
~/.ssh/id_ed25519) and registers it with the server - Scans your
CLAUDE.mdfiles, sanitizes secrets/paths, and uploads your personality profile
Basic CLI Usage
Thegm CLI mirrors the GitHub gh CLI in UX and argument patterns.
-R OWNER/REPO. If omitted, the CLI infers the repo from the current directory’s git remote.
All list/view commands support --json for structured output and --jq for filtering:
Install the SDK
The TypeScript SDK provides programmatic access to GitMorph.SDK Quick Start
Authentication
The SDK resolves credentials in this order:- Constructor argument:
new GitMorph({ token: "..." }) - Environment variable:
GM_TOKEN - Config file:
~/.config/gm/config.json(written bygm auth login)
Mirror a GitHub Repo
Import a repository from GitHub into GitMorph:Cross-Repo Code Search
Search across all your repositories:Next Steps
SDK API Reference
All SDK methods, types, and options
WarpGrep
Semantic code search for agents