CLI commands
The binary isrebate. Running it with no subcommand starts the interactive onboarding.
Hidden subcommands exist for the integrations themselves:
rebate session-start,
rebate refresh, rebate turn-end, and rebate statusline are Claude Code
entrypoints; rebate codex-prompt and rebate __exec-codex are Codex
entrypoints. You never need to run them yourself. rebate display remains only
as a no-output migration shim for old Claude settings and is not installed by
current onboarding.
Use rebate plan before first install or after hand-editing tool config. It
prints the Claude settings path, Codex hooks path, Codex launcher restore path,
backup paths, /ad command path, credential store, and latest sponsor snapshot
before anything is changed. In scripts, rebate on --dry-run is the same
preview.
The /ad slash command
Onboarding installs one Claude Code command file at ~/.claude/commands/ad.md. Typing /ad inside a Claude Code session runs rebate open, which opens the current sponsor link in your browser. This works from any terminal, including ones that do not render hyperlinks. rebate off removes the file.
What gets written to Claude Code settings
Rebate writes these Claude Code settings:spinnerVerbs is written only when Rebate has a real sponsor. If the API no-fills, requires login, or times out, Rebate clears its sponsor snapshot and renders no sponsored footer or placeholder spinner text.
FORCE_HYPERLINK is the documented override for the supports-hyperlinks package, whose terminal allowlist misses several hyperlink-capable terminals; without it OSC 8 footer links may not reach the terminal. A first-install backup is written to settings.json.rebate-backup before the first patch so rebate off can restore previous values for keys Rebate touched.
What gets written to Codex
Rebate writes one prompt hook to~/.codex/hooks.json:
codex launcher path with a Rebate-owned shim
that records restore metadata under ~/.rebate/codex-launcher.json.
Noninteractive Codex commands pass through to the real Codex binary. Interactive
Codex sessions run the real Codex TUI through rebate __exec-codex, which draws
the current sponsor in the footer row.