# How to use the Claude advisor tool in the API and Claude Code

> Add one tool and a beta header to a Messages request, or run /advisor in Claude Code. The allowed model pairs are where most errors start.

URL: https://claudegpt.si/news/claude-advisor-tool-how-to-use  
Published: 2026-11-30T11:02:39.165Z  
Author: ClaudeGPT Si Newsroom  
Section: Guides  
Topics: Anthropic, Claude, Claude Code, How to, Developer tools, API  
Publisher: ClaudeGPT Si

## Key takeaways

- In the API, add a tool of type advisor_20260301 with the advisor's model ID and send the beta header advisor-tool-2026-03-01.
- The advisor must be at least as capable as the executor, and an invalid pair returns a 400 error; every executor accepts Claude Fable 5.2.
- In Claude Code, /advisor opus turns it on, /advisor off turns it off, and CLAUDE_CODE_DISABLE_ADVISOR_TOOL=1 disables the feature.

The Claude advisor tool lets a cheaper Claude model ask a stronger one for a plan in the middle of a task. To use it in the API, add a tool of type `advisor_20260301` to a Messages request, name the advisor model inside it, and send the beta header `advisor-tool-2026-03-01`. In Claude Code, run `/advisor opus`. The details below come from Anthropic's [advisor tool docs](https://platform.claude.com/docs/en/agents-and-tools/tool-use/advisor-tool) and the [Claude Code advisor page](https://code.claude.com/docs/en/advisor), as they read on November 30, 2026.

The tool is still in beta, and the list of allowed model pairs changed on September 28 and again on November 9. An advisor that worked in the summer can return a 400 error now.

## What the Claude advisor tool does

There are two models in one request. The executor is the model in the top-level `model` field. It does the work: calls tools, reads results, writes the output. The advisor is a second model that the executor can consult when it wants a plan or a course correction.

The executor decides when to ask, the same way it decides to call any other tool. Anthropic then runs the advisor on its own servers. The advisor gets the whole transcript, including your system prompt, tool definitions and every tool result so far, and sends back advice. The executor carries on. All of it happens inside one `/v1/messages` call.

The advisor has no tools of its own and its thinking is thrown away before the result returns. According to the docs, its output is typically 400 to 700 text tokens, or 1,400 to 1,800 tokens with thinking included. That is where the saving comes from: the expensive model writes a short plan, and the cheap one writes everything else.

Anthropic [launched the tool on April 9, 2026](https://claude.com/blog/the-advisor-strategy). In its own evaluations at launch, Sonnet 4.6 with an Opus advisor scored 2.7 percentage points higher on SWE-bench Multilingual than Sonnet alone and cost 11.9% less per task. Those are Anthropic's numbers on Anthropic's setup. The docs say plainly that results depend on the task and that you should test on your own workload.

It is a poor fit for single-turn questions, where there is nothing to plan.

## How to call the advisor tool from the API

This is the quick start request from the docs, unchanged. The executor is Claude Sonnet 5 and the advisor is Claude Opus 5.5.

```bash
curl https://api.anthropic.com/v1/messages \
  -H "x-api-key: $ANTHROPIC_API_KEY" \
  -H "anthropic-version: 2026-10-21" \
  -H "anthropic-beta: advisor-tool-2026-03-01" \
  -H "content-type: application/json" \
  -d '{
    "model": "claude-sonnet-5",
    "max_tokens": 16000,
    "tools": [
      {
        "type": "advisor_20260301",
        "name": "advisor",
        "model": "claude-opus-5-5"
      }
    ],
    "messages": [{
      "role": "user",
      "content": "Build a concurrent worker pool in Go with graceful shutdown. Keep it brief."
    }]
  }'
```

Three fields are required in the tool definition. `type` must be `"advisor_20260301"`, `name` must be `"advisor"`, and `model` is the advisor's model ID. Three more are optional.

| Parameter | Default | What it does |
| --- | --- | --- |
| `max_uses` | unlimited | Caps advisor calls in one turn. After the cap, further calls return `max_uses_exceeded` and the executor continues without advice. |
| `max_tokens` | the advisor model's output cap | Caps the advisor's output per call, thinking plus text. The minimum is 1024. |
| `caching` | `null` (off) | Turns on prompt caching for the advisor's own reads of the transcript. It takes `"type": "ephemeral"` and a `ttl` of `"5m"` or `"1h"`. |

When the executor consults the advisor, the response contains a `server_tool_use` block named `advisor` with an empty `input`, followed by an `advisor_tool_result` block. Pass both back unchanged in later requests.

With most current advisor models you cannot read the advice. Fable, Mythos, Opus 5 and 5.5, Sonnet 5.5 and Haiku 5.5 advisors return an `advisor_redacted_result` with an `encrypted_content` blob; the server decrypts it for the executor on the next request. Older advisors such as `claude-opus-4-8` return a plaintext `advisor_result` with a `text` field. If you need to log what the advisor said, pick one of those, where the pairing table allows it.

Streaming pauses too. The advisor does not stream, so the executor's stream goes quiet while it runs, apart from `ping` keepalives roughly every 30 seconds, and then the result arrives in a single event.

The tool works on the Claude API, Claude Platform on AWS, and Claude Models on Google Cloud (Anthropic managed). Claude Managed Agents has its own version, set in the agent's `multiagent` block instead of as a tool.

## Which model pairs are allowed

The rule in the docs: the advisor must be Claude Sonnet 4.6 or more capable, and at least as capable as the executor. Models of equal capability can advise each other, so Opus 4.7 and Opus 4.8 work in either order. Haiku 4.5 can be an executor but never an advisor.

| Executor | Accepted advisors |
| --- | --- |
| Fable 5.2, Mythos 5.2 | Fable 5.2, Mythos 5.2 |
| Fable 5.1, Mythos 5.1 | Fable or Mythos 5.2 and 5.1 |
| Fable 5, Mythos 5, Opus 5.5, Opus 5 | Any Fable or Mythos, Opus 5.5, Opus 5 |
| Sonnet 5.5 | The row above, plus Sonnet 5.5 |
| Opus 4.8, Opus 4.7 | Any Fable or Mythos, Opus 5.5, 5, 4.8, 4.7, Sonnet 5.5 |
| Sonnet 5, Haiku 5.5 | The row above, plus Sonnet 5 and Haiku 5.5 |
| Opus 4.6 | The row above, plus Opus 4.6 |
| Sonnet 4.6, Haiku 4.5 | The row above, plus Sonnet 4.6 |

"Any Fable or Mythos" means versions 5, 5.1 and 5.2. The IDs follow one pattern: `claude-fable-5-2`, `claude-opus-5-5`, `claude-sonnet-5-5`, `claude-haiku-5-5`, `claude-opus-4-8`.

The simplest safe choice is in the [November 9 release note](https://platform.claude.com/docs/en/release-notes/overview): every executor accepts Claude Fable 5.2 as its advisor.

## How advisor calls are billed

Advisor tokens are billed at the advisor model's rates, and executor tokens at the executor's. There is no separate fee for the tool in the docs.

The catch is in the usage report. The top-level `usage` fields count executor tokens only. Advisor tokens appear in the `usage.iterations` array as entries with `"type": "advisor_message"` and the advisor's `model`. A cost tracker that reads only the top-level totals will undercount every request that used the advisor.

The top-level `max_tokens` doesn't limit the advisor either. Set `max_tokens` on the tool for a hard cap, and `max_uses` to limit calls per turn. There is no built-in cap for a whole conversation. The docs suggest counting calls yourself and removing the tool from `tools` once you hit your limit. They also suggest turning `caching` on only when you expect three or more advisor calls in a conversation.

Rate limits are shared: advisor calls draw from the same per-model bucket as direct calls to that model.

## How to use the advisor tool in Claude Code

Claude Code calls it experimental. There are three ways to set an advisor.

1. In a session, run `/advisor` to open a picker, or name the model: `/advisor opus`. The choice is saved as your default.
2. In your settings file, add `"advisorModel": "opus"`.
3. For one session, launch with `claude --advisor opus`. The flag is not listed in `claude --help`.

The aliases are `fable`, `opus` and `sonnet`, and a full ID such as `claude-opus-5-5` also works. When it is on, Claude Code shows the notice `Advisor Tool (experimental) is on and may use more tokens · /advisor`. During a consultation the transcript shows an `Advising` line, and `Ctrl+O` shows the guidance when it is readable.

It needs the Anthropic API, Claude Platform on AWS or Claude Models on Google Cloud (Anthropic managed), the last two with Claude Code v2.1.300 or later. It is not available on Amazon Bedrock, Google Cloud's Agent Platform or Microsoft Foundry. Claude Code applies the same kind of ranking as the API. A Fable 5.2 main model takes only Fable 5.2 as its advisor, and Fable 5.2 needs Claude Code v2.1.321 or later.

On a subscription, advisor usage counts toward your plan's limits. A Fable advisor bills to usage credits on plans where Fable usage does. On API billing you pay the advisor model's input and output rates. Each advisor call reads the full conversation with no caching between calls, so long sessions cost more per consultation.

### How to turn the advisor off in Claude Code

Run `/advisor off`, or choose "No advisor" in the picker.

To remove the feature completely, set the environment variable `CLAUDE_CODE_DISABLE_ADVISOR_TOOL=1`. Per the [environment variables reference](https://code.claude.com/docs/en/env-vars), the `/advisor` command then becomes unavailable and any saved `advisorModel` is ignored. The `--advisor` flag is still accepted but does nothing, so scripts that pass it keep working.

## Common advisor tool errors

### 400 invalid_request_error for the model pair

The advisor is not on the executor's list. The error names the unsupported combination. This is the one that bites during upgrades: move an executor to Fable 5.2 or Mythos 5.2 and an Opus advisor that worked the day before is rejected. Sonnet 5.5 as executor rejects Opus 4.8, Opus 4.7 and Sonnet 5 as advisors, according to the September 28 release note.

### 400 when resuming a paused turn

A response can end with `stop_reason: "pause_turn"` while an advisor call is pending. Send the assistant message back unchanged with the same advisor tool and beta header. Leaving the tool out returns a 400.

### 400 when forcing the advisor

Setting `tool_choice` to `{"type": "tool", "name": "advisor"}` forces a consult, but it can't be combined with manual extended thinking, and Fable 5.2, Mythos 5.2, Opus 5.5, Sonnet 5.5, Fable 5.1 and Mythos 5.1 executors reject forced tool use. Ask for the consult in the prompt on those models.

### Error codes inside the result

When the advisor itself fails, the request still succeeds. The `advisor_tool_result` carries an `advisor_tool_result_error` with a code: `max_uses_exceeded`, `too_many_requests`, `overloaded`, `prompt_too_long`, `execution_time_exceeded`, `model_not_found` or `unavailable`. The executor continues without advice. A rate limit on the executor is different. It fails the whole request with HTTP 429.

### Claude Code drops the advisor without an error

If the API refuses a pairing that Claude Code attached, Claude Code resends the request without the advisor and shows no error. You get no advisor calls. A new choice made with `/advisor` then takes effect only after `/clear` or `/compact`, or in a new session. If the advisor ranks below your main model, the `/advisor` output and a notification say so.

The quiet fallback is the part to watch. If you set an advisor months ago and have since switched main models, run `/advisor` and check what it reports.

## Frequently asked questions

### What is the Claude advisor tool?

It is a beta server tool on the Claude Developer Platform that lets a cheaper executor model consult a stronger advisor model mid-task. The advisor reads the full transcript and returns a plan, and the executor continues, all inside one Messages API request.

### How do I turn off the advisor tool in Claude Code?

Run /advisor off or choose No advisor in the /advisor picker. To disable the feature entirely, set CLAUDE_CODE_DISABLE_ADVISOR_TOOL=1; the /advisor command becomes unavailable, a saved advisorModel is ignored, and the --advisor flag is accepted but has no effect.

### How much does the Claude advisor tool cost?

Advisor tokens are billed at the advisor model's rates and executor tokens at the executor's rates. Advisor usage is reported separately in usage.iterations as advisor_message entries, not in the top-level usage totals.

### Why does the advisor tool return a 400 error?

Usually the advisor model is not allowed for that executor, and the error names the unsupported combination. A Fable 5.2 or Mythos 5.2 executor accepts only Fable 5.2 or Mythos 5.2 as its advisor. Leaving the tool out when resuming a paused turn also returns a 400.

## Sources

- [Advisor tool](https://platform.claude.com/docs/en/agents-and-tools/tool-use/advisor-tool), Anthropic
- [Escalate hard decisions with the advisor tool](https://code.claude.com/docs/en/advisor), Anthropic
- [Claude Platform release notes](https://platform.claude.com/docs/en/release-notes/overview), Anthropic
- [Environment variables](https://code.claude.com/docs/en/env-vars), Anthropic
- [The advisor strategy: Give agents an intelligence boost](https://claude.com/blog/the-advisor-strategy), Anthropic
