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.
Authentication
API Key Authentication
Authenticate using your Greptile API key plus a GitHub Personal Access Token so Greptile can access your repositoriesStep 1
Step 4
Required Credentials
| Field | Description | Required | Format |
|---|---|---|---|
| Greptile API Key | Your Greptile API key from app.greptile.com | Yes | - |
| GitHub Token | A GitHub Personal Access Token with ‘repo’ read access, used by Greptile to clone and index your repositories | Yes | - |
Available Actions
query — Query repositories in natural language and get answers with relevant code references. Greptile uses AI to understand your codebase and answer questions.
query — Query repositories in natural language and get answers with relevant code references. Greptile uses AI to understand your codebase and answer questions.
Parameters
Response
search — Search repositories in natural language and get relevant code references without generating an answer. Useful for finding specific code locations.
search — Search repositories in natural language and get relevant code references without generating an answer. Useful for finding specific code locations.
Parameters
Response
index_repo — Submit a repository to be indexed by Greptile. Indexing must complete before the repository can be queried. Small repos take 3-5 minutes, larger ones can take over an hour.
index_repo — Submit a repository to be indexed by Greptile. Indexing must complete before the repository can be queried. Small repos take 3-5 minutes, larger ones can take over an hour.
Parameters
github)Response
status — Check the indexing status of a repository. Use this to verify if a repository is ready to be queried or to monitor indexing progress.
status — Check the indexing status of a repository. Use this to verify if a repository is ready to be queried or to monitor indexing progress.
Limits & Quotas
- Indexing is asynchronous: small repositories take 3–5 minutes, larger ones
can take over an hour. Use
index_repoto start indexing, then pollstatusuntil it reportscompleted. - Error model: non-2xx responses and timeouts are caught and returned as
success=False+errorrather than raising. Plan retries on the agent side based on the error string.