/claude-api
A Claude Code slash command, read out of the shipped bundle. No mined inventory carries it: everything below comes from what this site has written about it.
Skill. Load Claude API and Managed Agents reference material for your project's language. Also activates automatically when your code imports anthropic or @anthropic-ai/sdk. Run migrate to update existing Claude API code to a newer model. Run upgrade to move your project's Anthropic SDK dependency across a major version, currently the Python anthropic package from 0.x to 1.x. Run managed-agents-onboard for a walkthrough that creates a new Managed Agent. Run prompt-audit to flag instructions written for older models in your prompts, skills, and tool descriptions and propose fixes as a diff. Run cost-optimize to profile where your project's Claude API spend goes and propose savings from options such as prompt caching, trimming unneeded input and output tokens, batch processing, effort, and model choice, one change at a time. Run build-eval to build an eval set for your Claude-powered app, and hillclimb to iteratively improve the app against an existing eval. The prompt-audit subcommand requires Claude Code v2.1.221 or later, upgrade requires v2.1.236 or later, cost-optimize requires v2.1.247 or later, and build-eval and hillclimb require v2.1.259 or later
Anthropic's own wording. Read off Commands, captured 2026-09-28.
In the changelogs
11Releases whose published page names /claude-api.
-
v2.1.305
Changes to some features that are switched off by default
A new remote switch was added to a list, and a condition behind another switched-off feature now needs an extra test
found in this entry's text
-
v2.1.305
The
/claude-apicommand check now accepts some local IDsThe
/claude-apicheck still blocksantcommands with staging, Vertex or Bedrock IDs, and now accepts strict local-server IDsfound in this entry's text, named in this entry
-
v2.1.304
/claude-api now blocks some
antcommands before they runThe /claude-api skill now blocks
antcommands with certain IDs and managed-agents-secure commands changed from the guidefound in this entry's text, named in this entry
-
v2.1.301
The tip about /color and /rename is skipped in more cases
The tip suggesting /color and /rename for telling sessions apart is now hidden in some extra cases
found in this entry's text, named in this entry
-
v2.1.290
Built-in claude-api skill gains managed-agents guides and quickstarts
The claude-api skill that ships with Claude Code now includes managed-agents reference docs, nine quickstart templates and an onboarding flow
found in this entry's text
-
v2.1.239
Python SDK upgrade guide rewritten against the shipped anthropic 1.0.0 migration notes
The /claude-api Python upgrade guide now matches the released 1.0.0 SDK built on httpx2.
named in this entry, found in this entry's text
-
v2.1.236
Bundled guide for upgrading the anthropic Python SDK to 1.x
A bundled guide walks your project through upgrading the anthropic Python SDK to 1.x.
named in this entry, found in this entry's text
-
v2.1.221
migratenow ends with a prompt audit, and a TODO note ships inside the promptThe migrate command now finishes by auditing your prompts and tool descriptions for stale wording.
named in this entry
-
v2.1.221
claude-api skill gains a
prompt-auditsubcommandYou can run /claude-api prompt-audit to scan prompts and tool descriptions for outdated patterns and get a diff.
named in this entry, found in this entry's text
-
v2.1.219
Bundled Claude API skill docs rewritten around Opus 5
The bundled Claude API skill docs now target the new Opus, covering thinking defaults, fallbacks and fast mode.
named in this entry
-
v2.1.219
The API skill's model placeholders now resolve to Claude Opus 5, with the previous Opus kept as a separate placeholder
The API skill's model placeholders now render Opus 5, keeping the previous Opus named separately.
named in this entry, found in this entry's text
First cited
0No release's published evidence quotes this name. The ledger indexes the Evidence lines of every changelog on this site, so this says nobody here has ever quoted it; it says nothing about how old the name is.
Presence across releases
0The miner has never read a build containing this name. It is here because a changelog entry of ours names it, which is evidence that it existed and not evidence of which releases carried it. The inventory starts at v2.1.138 and everything older than that was never mined.
Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the slash command does. All slash commands.