Capabilities
| Capability | What it does |
|---|---|
| Codebase Search | Search local repositories on disk |
| GitHub Search | Search public GitHub repos without cloning |
| Streaming | Stream search steps back in real-time |
When to Use WarpGrep
- Use WarpGrep when your agent needs to explore unfamiliar code, find implementations across multiple files, or locate code by description (e.g., ‘find the auth middleware’).
- Use raw grep for simple, one-off pattern matches where you already know exactly what to search for.
WarpGrep’s SDK is TypeScript/Node.js only. Python developers can use the raw API protocol or the Python guide.
Prerequisites
Install the SDK:brew install ripgrep, apt-get install ripgrep, or choco install ripgrep). GitHub Search runs fully on the cloud, no dependencies needed.
Get your API key from the Morph Dashboard.
Quick Start
Save the following assearch.ts:
Pricing
| Type | Price |
|---|---|
| Input | $0.80 per 1M tokens |
| Output | $0.80 per 1M tokens |
Next Steps
Add WarpGrep to Your Agent
Add WarpGrep as a tool to your Anthropic, OpenAI, or Vercel AI SDK agent.