Skip to main content
Greptile logo

Overview

Add Greptile to any ModuleX agent or workflow. AI-powered codebase search and Q&A against the Greptile v2 REST API (api.greptile.com). Query and search codebases using natural language, get AI-generated answers about your code with cited file references, index repositories, and check indexing status.
Categories: Developer Tools & Infrastructure · Version Control · Knowledge Base · Auth: API Key · Actions: 4

Authentication

API Key Authentication

Authenticate using your Greptile API key plus a GitHub Personal Access Token so Greptile can access your repositories
1

Step 1

Go to https://app.greptile.com and sign up or log in
2

Step 2

Open Settings and create a new API key
3

Step 3

Paste the Greptile API key below
4

Step 4

Create a GitHub Personal Access Token with ‘repo’ read access at https://github.com/settings/tokens and paste it as the GitHub token

Required Credentials

Available Actions

Parameters

string
required
Natural language question about the codebase
string
required
Comma-separated list of repositories. Format: ‘github:branch:owner/repo’ or just ‘owner/repo’ (defaults to github:main). Example: ‘facebook/react’ or ‘github:main:facebook/react,github:main:facebook/relay’
string
Optional session ID for conversation continuity across multiple queries
boolean
Enable genius mode for more thorough analysis (slower but more accurate)

Response

Parameters

string
required
Natural language search query to find relevant code
string
required
Comma-separated list of repositories. Format: ‘github:branch:owner/repo’ or just ‘owner/repo’ (defaults to github:main). Example: ‘facebook/react’ or ‘github:main:facebook/react,github:main:facebook/relay’
string
Optional session ID for conversation continuity across multiple searches
boolean
Enable genius mode for more thorough search (slower but more accurate)

Response

Parameters

string
required
Git remote type: ‘github’ or ‘gitlab’ (Default: github)
string
required
Repository in owner/repo format. Example: ‘facebook/react’
string
required
Branch to index (e.g. ‘main’ or ‘master’)
boolean
Force re-indexing even if already indexed
boolean
Send email notification when indexing completes

Response

Parameters

string
required
Git remote type: ‘github’ or ‘gitlab’ (Default: github)
string
required
Repository in owner/repo format. Example: ‘facebook/react’
string
required
Branch name (e.g. ‘main’ or ‘master’)

Response

Limits & Quotas

  • Indexing is asynchronous: small repositories take 3–5 minutes, larger ones can take over an hour. Use index_repo to start indexing, then poll status until it reports completed.
  • Error model: non-2xx responses and timeouts are caught and returned as success=False + error rather than raising. Plan retries on the agent side based on the error string.

GitHub

GitLab

Airweave