# How to Configure Ralph to Use Claude Code Instead of Amp

> Easily configure Ralph to use Claude Code instead of Amp. Simply use the --tool claude flag or edit the script's default setting for a seamless switch.

- Repository: [Ryan Carson/ralph](https://github.com/snarktank/ralph)
- Tags: how-to-guide
- Published: 2026-04-13

---

**Use the `--tool claude` flag when running [`ralph.sh`](https://github.com/snarktank/ralph/blob/main/ralph.sh) to switch from Amp to Claude Code, or edit line 8 of the script to set `TOOL="claude"` as the permanent default.**

The `snarktank/ralph` repository provides a bash-based execution loop that orchestrates AI agents through external CLIs. By default, [`ralph.sh`](https://github.com/snarktank/ralph/blob/main/ralph.sh) invokes the Amp CLI, but the script is designed to support Claude Code as an alternative execution engine through a simple command-line flag and prompt template system.

## Runtime Configuration with the --