Claude Code (recommended)
- Opens your browser to get an API key.
- Validates the key you paste against the API.
- Saves it to your shell config and
~/.scaledown/config.json. - Registers the MCP server with Claude Code.
- Writes the
UserPromptSubmit,PostToolUseandPreCompacthooks, the status line and the auto-compact threshold to~/.claude/settings.json. - Offers to alias
claudetodietcode claude, which turns on proxy mode. - Optionally configures Codex CLI and Cursor.
Codex CLI
dietcode setup and answer y for Codex CLI to register the same hooks Claude Code uses in ~/.codex/config.toml.
Cursor
.cursor/mcp.json (or ~/.cursor/mcp.json for global use):
sd_retrieve appears in Agent mode.
Cursor has no hook system, so it currently gets none of the automatic optimization. See Supported clients.
