# USE_BUILTIN_RIPGREP

> Set to 0, it searches with your own rg, not the built-in one.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** USE_BUILTIN_RIPGREP=0

## Think of it like

It is like you bring your own knife, not the one in the kit.

## Definition

USE_BUILTIN_RIPGREP set to 0 makes Claude Code search with the rg program on your computer. By default it uses the copy of rg that ships with it. Use it when the built-in copy will not run on your system, or you want a newer rg.

## Example

Lucy's system cannot run the rg that comes with Claude Code, so search fails. She installs rg and sets this to 0.

## Example code

```bash
export USE_BUILTIN_RIPGREP=0
claude
```

Search with the rg you installed.

## Why it matters

Search is how Claude finds code. If rg fails, Claude cannot find files by their text.

## Common mistake

Setting it to 0 with no rg installed. Search then has nothing to run.

## Three principles

- **0 uses your rg.** From the system.
- **Default is built in.** Ships with it.
- **rg must exist.** Install it first.

## Related terms

- [Grep Tool](https://learn.benibix.com/term/ai/grep-tool)
- [Glob Tool](https://learn.benibix.com/term/ai/glob-tool)

---

Source: https://learn.benibix.com/term/ai/use-builtin-ripgrep-variable
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-16
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
