Greptile
/install greptile
Greptile Skill
Query and manage Greptile-indexed repositories via the REST API.
Setup
Required environment variables:
GREPTILE_TOKEN— Greptile API token (from https://app.greptile.com)GITHUB_TOKEN— GitHub PAT with repo access (alternatively setGREPTILE_GITHUB_TOKEN, or authenticate viagh auth login— the script falls back togh auth token)
Commands
All commands use scripts/greptile.sh (resolve path relative to this skill directory).
Index a repository
scripts/greptile.sh index owner/repo [branch] [--remote github|gitlab] [--no-reload] [--no-notify]
Default branch: main. Use --no-reload to skip re-indexing if already processed.
Check index status
scripts/greptile.sh status owner/repo [branch] [--remote github|gitlab]
Returns: status (completed/processing/failed), filesProcessed, numFiles.
Query a codebase (AI answer + sources)
scripts/greptile.sh query owner/repo [branch] "How does auth work?" [--genius] [--remote github|gitlab]
--genius— slower but smarter analysis (good for PR reviews, architecture questions)- Returns: AI-generated answer + source file references with line numbers
Search a codebase (sources only, no AI answer)
scripts/greptile.sh search owner/repo [branch] "payment processing" [--remote github|gitlab]
Returns: ranked list of relevant files, functions, and snippets with line numbers.
Tips
- Always
indexa repo before querying/searching it. Checkstatusto confirm indexing is complete. - Use
query --geniusfor complex questions (architecture, PR review context, cross-file analysis). - Use
searchwhen you just need file locations without an AI explanation. - For GitLab repos, pass
--remote gitlab. - Pipe output through
jqfor formatting:scripts/greptile.sh query ... | jq . - Multi-repo queries: not supported by the wrapper; use the API directly with multiple repositories in the body.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install greptile - After installation, invoke the skill by name or use
/greptile - Provide required inputs per the skill's parameter spec and get structured output
What is Greptile?
Query, search, and manage repositories indexed by Greptile (AI codebase intelligence). Use when asking questions about a codebase, searching for code pattern... It is an AI Agent Skill for Claude Code / OpenClaw, with 723 downloads so far.
How do I install Greptile?
Run "/install greptile" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Greptile free?
Yes, Greptile is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Greptile support?
Greptile is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Greptile?
It is built and maintained by iAhmadZain (@iahmadzain); the current version is v1.0.1.