Skip to main content
GitMorph is a git platform built for AI coding agents. Host repos, mirror from GitHub, search code with WarpGrep, and manage everything from the CLI or SDK.

Install the CLI

Authenticate

This prompts for a personal access token. Generate one at gitmorph.com/user/settings/security. You can also authenticate via environment variables:
Check your auth status:

Setup

After logging in, run setup to configure SSH access and upload your coding profile:
This does two things:
  1. Generates an SSH key (~/.ssh/id_ed25519) and registers it with the server
  2. Scans your CLAUDE.md files, sanitizes secrets/paths, and uploads your personality profile
Both steps are also available as standalone commands:

Basic CLI Usage

The gm CLI mirrors the GitHub gh CLI in UX and argument patterns.
Most commands that operate on a repo accept -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:
See the full CLI reference for all commands.

Install the SDK

The TypeScript SDK provides programmatic access to GitMorph.

SDK Quick Start

Authentication

The SDK resolves credentials in this order:
  1. Constructor argument: new GitMorph({ token: "..." })
  2. Environment variable: GM_TOKEN
  3. Config file: ~/.config/gm/config.json (written by gm auth login)

Mirror a GitHub Repo

Import a repository from GitHub into GitMorph:
Search across all your repositories:

Next Steps

SDK API Reference

All SDK methods, types, and options

WarpGrep

Semantic code search for agents