| title | Quickstart |
|---|---|
| nav_order | 3 |
| permalink | /quickstart/ |
{: .no_toc }
Five minutes from clean machine to a populated cluster view. {: .fs-6 .fw-300 }
- TOC {:toc}
# Build (or download a release archive — see Installation).
git clone https://github.com/openclaw/gitcrawl.git
cd gitcrawl
mkdir -p "$HOME/bin"
go build -o "$HOME/bin/gitcrawl" ./cmd/gitcrawl
# Create config + database under the platform default runtime paths.
gitcrawl initDefaults written:
- Linux config:
${XDG_CONFIG_HOME:-~/.config}/gitcrawl/config.toml - Linux database/vectors:
${XDG_DATA_HOME:-~/.local/share}/gitcrawl/ - Linux cache:
${XDG_CACHE_HOME:-~/.cache}/gitcrawl/ - Linux logs:
${XDG_STATE_HOME:-~/.local/state}/gitcrawl/logs/ - macOS config/database/vectors/logs:
~/Library/Application Support/gitcrawl/ - macOS cache:
~/Library/Caches/gitcrawl/
Existing installs with ~/.config/gitcrawl/config.toml continue to load that
config when the new platform config path does not exist.
export GITHUB_TOKEN="<github-token>" # required for sync
export OPENAI_API_KEY="<openai-api-key>" # required for embeddingsEither set them in your shell profile or store them in config.toml:
[env]
GITHUB_TOKEN = "<github-token>"
OPENAI_API_KEY = "<openai-api-key>"gitcrawl doctor confirms the credentials are visible and reports their source.
gitcrawl sync openclaw/gitcrawlBy default this fetches open issues and pull requests, plus a sweep of recently closed rows so the local store does not rot. Add --include-comments for review threads, --include-pr-details (or --with pr-details) for PR files, commits, checks, and workflow runs.
Need exact rows? Use --numbers:
gitcrawl sync openclaw/gitcrawl --numbers 123,456 --include-commentsThe refresh command runs sync → embed → cluster end to end:
gitcrawl refresh openclaw/gitcrawlYou can run the stages individually if you want finer control — see Refresh and embed and Clustering.
Open the TUI:
gitcrawl tui openclaw/gitcrawl
# or just `gitcrawl tui` and the most recently synced repo is inferred↑/↓navigate clusters,Enteropens member detailaopens the action menu,#jumps to a number,nloads neighbors,pswitches repo- Right-click and mouse wheel work in most terminals
For a non-interactive view:
gitcrawl clusters openclaw/gitcrawl --sort size --min-size 5
gitcrawl cluster-detail openclaw/gitcrawl --id 12
gitcrawl neighbors openclaw/gitcrawl --number 123 --limit 10gitcrawl search openclaw/gitcrawl --query "download stalls" --mode hybridThe same command also accepts the gh search shape, which makes it a drop-in for scripts that already speak gh:
gitcrawl search issues "manifest cache" \
-R openclaw/gitcrawl \
--state open \
--json number,title,state,url,updatedAt,labels \
--limit 30Add --sync-if-stale 5m to refresh the local mirror first when it is older than the duration you tolerate.
gitcrawl search issues "download stalls" -R openclaw/gitcrawl --json number,title,url
octopool login
octopool gh api repos/openclaw/gitcrawl/pulls/123The old gitcrawl gh shim moved to Octopool. See gh shim for the migration note.
- Concepts — what threads, durable clusters, and embeddings actually mean
- Sync — every flag for hydrating the local store
- Clustering — tuning the cluster graph for a specific repo
- Automation — JSON contracts for agents and scripts