Nadir Auto for Claude Code

Set up Nadir Auto for Claude Code: it picks a model before each main-session prompt, while Claude keeps the conversation and runs inference on your provider.

Nadir Auto chooses the main model before each prompt and keeps one Claude conversation. It asks Nadir for a decision; Claude sends inference directly to your existing provider. No routing subagent or provider base-URL change is needed.

Info

Automatic model switching runs in the Nadir Auto terminal launcher. The stock Claude Desktop window receives recommendations and local compaction only; its main model still needs to be selected manually.

1. Install once

Use a terminal with Python 3.10+, curl, and the Claude Code CLI installed and signed in. The Desktop app alone is not sufficient.

Terminal
curl -fsSL https://getnadir.com/install/claude-auto.sh | sh

The installer adds an isolated runtime under ~/.nadir/claude-auto and the ~/.local/bin/nadir-auto command. It also installs recommendation and recoverable compaction hooks for local Claude Code sessions.

2. Start in your project

Terminal
cd /path/to/your/project
~/.local/bin/nadir-auto

Type normal prompts. No per-turn routing command is needed. Use /exit to leave. If ~/.local/bin is on your PATH, the shorter nadir-auto command also works.

3. Verify what actually ran

Recent model receipts
~/.local/bin/nadir-auto --status

Before a turn, the launcher prints its model choice. Afterward, it verifies the model in the actual Claude response and records the child-message count. The status command reads local receipts without making an inference request.

Private metadata receipts live at ~/.nadir/claude-auto/receipts.jsonl. They contain model and cache accounting, not prompt text, answers or API keys.

With your Nadir key, Auto reports execution metadata automatically. See Auto Outcomes to attach a human or test result and inspect upload status.

Optional: connect your Nadir account

An existing Nadir API key in Claude settings or your environment is reused. For a new setup, set your Nadir key before running the installer:

Optional Nadir key
export NADIR_API_KEY="your_nadir_api_key"
curl -fsSL https://getnadir.com/install/claude-auto.sh | sh

The installer stores the key in private local Claude settings. Keep your existing Claude login or provider key. Without a Nadir key, anonymous decisions are available; local execution receipts still work.

When the model stays the same

A cheaper eligible model must pass the estimated cost checks. A warm cache, incomplete classifier coverage, a large context, or a decision-service failure can keep the original baseline. Harder follow-ups can return to that baseline after an easier turn used Haiku. Authorization or governance refusals block dispatch.

A new session is estimated as cold; cache reuse from other sessions is unknown. The classifier sees the latest prompt, not the whole conversation. Model receipts prove execution, not task correctness or guaranteed savings. Reasoning effort is not changed per turn.

What is sent to Nadir

The latest prompt, allowed model IDs and cache accounting go to the decision API. The conversation transcript, generated answers and provider credentials are not sent. Account retention settings apply to classification prompts when you use a Nadir key. Local compaction keeps originals available through recovery archives.

Other integration modes

The legacy Claude subagent plugin and NadirClaw gateway are separate integrations. Installing the Auto launcher does not convert stock Desktop into an automatic model picker or configure a gateway.

Pages on this site

Machine-readable summaries of this site: llms.txt and llms-full.txt.