Skip to content

Commit c51c646

Browse files
claude-yolo[bot]claude
authored andcommitted
docs: Claude Code v1.0.98 - model config system + /doctor validation
- Version bump to 1.0.98 - NEW: model-config.md - comprehensive model alias documentation including opusplan hybrid mode - NEW: /doctor command validates permission rule syntax with corrections (v1.0.97) - NEW: settings for disableAllHooks and outputStyle - UPDATED: environment variables reorganized for model configuration - DEPRECATED: autoUpdates setting (use DISABLE_AUTOUPDATER env var) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8e1d4b2 commit c51c646

11 files changed

Lines changed: 296 additions & 150 deletions

File tree

content/.metadata.json

Lines changed: 97 additions & 79 deletions
Large diffs are not rendered by default.

content/anthropic-blog/claude-code.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ Plans
2525
* [Enterprise plan](https://www.anthropic.com/enterprise)
2626
* [Explore pricing](https://www.anthropic.com/pricing)
2727

28-
* [Download apps](https://claude.ai/redirect/website.v1.26319ac3-0876-4bb5-9ff6-5c9ce61de157/download)
29-
* [Claude log in](https://claude.ai/redirect/website.v1.26319ac3-0876-4bb5-9ff6-5c9ce61de157)
28+
* [Download apps](https://claude.ai/redirect/website.v1.764972df-cf81-4d9c-8b06-5cec0cca7e1a/download)
29+
* [Claude log in](https://claude.ai/redirect/website.v1.764972df-cf81-4d9c-8b06-5cec0cca7e1a)
3030

3131
[![Image 27](https://cdn.prod.website-files.com/67ce28cfec624e2b733f8a52/688a1d15af22ddab26ed8a3c_claude.svg) News Claude’s Character](https://www.anthropic.com/news/claude-character)
3232

@@ -102,7 +102,7 @@ Company
102102
* [News](https://www.anthropic.com/news)
103103

104104
* EN [This is some text inside of a div block.](https://www.anthropic.com/claude-code#)
105-
* [Try Claude](https://claude.ai/redirect/website.v1.26319ac3-0876-4bb5-9ff6-5c9ce61de157/login)Try Claude Try Claude [Download App](https://claude.ai/redirect/website.v1.26319ac3-0876-4bb5-9ff6-5c9ce61de157/download)Download App Download App
105+
* [Try Claude](https://claude.ai/redirect/website.v1.764972df-cf81-4d9c-8b06-5cec0cca7e1a/login)Try Claude Try Claude [Download App](https://claude.ai/redirect/website.v1.764972df-cf81-4d9c-8b06-5cec0cca7e1a/download)Download App Download App
106106

107107
[](https://www.anthropic.com/)
108108

@@ -120,8 +120,8 @@ Plans
120120
* [Enterprise plan](https://www.anthropic.com/enterprise)
121121
* [Explore pricing](https://www.anthropic.com/pricing)
122122

123-
* [Download apps](https://claude.ai/redirect/website.v1.26319ac3-0876-4bb5-9ff6-5c9ce61de157/download)
124-
* [Claude log in](https://claude.ai/redirect/website.v1.26319ac3-0876-4bb5-9ff6-5c9ce61de157)
123+
* [Download apps](https://claude.ai/redirect/website.v1.764972df-cf81-4d9c-8b06-5cec0cca7e1a/download)
124+
* [Claude log in](https://claude.ai/redirect/website.v1.764972df-cf81-4d9c-8b06-5cec0cca7e1a)
125125

126126
[![Image 33](https://cdn.prod.website-files.com/67ce28cfec624e2b733f8a52/688a1d15af22ddab26ed8a3c_claude.svg) News Claude’s Character](https://www.anthropic.com/news/claude-character)
127127

@@ -197,7 +197,7 @@ Company
197197
* [News](https://www.anthropic.com/news)
198198

199199
* EN [This is some text inside of a div block.](https://www.anthropic.com/claude-code#)
200-
* [Try Claude](https://claude.ai/redirect/website.v1.26319ac3-0876-4bb5-9ff6-5c9ce61de157/login)Try Claude Try Claude [Download App](https://claude.ai/redirect/website.v1.26319ac3-0876-4bb5-9ff6-5c9ce61de157/download)Download App Download App
200+
* [Try Claude](https://claude.ai/redirect/website.v1.764972df-cf81-4d9c-8b06-5cec0cca7e1a/login)Try Claude Try Claude [Download App](https://claude.ai/redirect/website.v1.764972df-cf81-4d9c-8b06-5cec0cca7e1a/download)Download App Download App
201201

202202
Your code’s new collaborator
203203
============================
@@ -215,19 +215,19 @@ Install [Node.js 18+](https://nodejs.org/en/download), then run:
215215

216216
[npm install-g @anthropic-ai/claude-code](https://www.anthropic.com/claude-code#)
217217

218-
[Try Claude Code on Max](https://claude.ai/redirect/website.v1.26319ac3-0876-4bb5-9ff6-5c9ce61de157/upgrade/max?returnTo=/claude-code-install)Try Claude Code on Max
218+
[Try Claude Code on Max](https://claude.ai/redirect/website.v1.764972df-cf81-4d9c-8b06-5cec0cca7e1a/upgrade/max?returnTo=/claude-code-install)Try Claude Code on Max
219219

220220
Try Claude Code on Max
221221

222-
[Try Claude Code on Max](https://claude.ai/redirect/website.v1.26319ac3-0876-4bb5-9ff6-5c9ce61de157/upgrade/max?returnTo=/claude-code-install)Try Claude Code on Max
222+
[Try Claude Code on Max](https://claude.ai/redirect/website.v1.764972df-cf81-4d9c-8b06-5cec0cca7e1a/upgrade/max?returnTo=/claude-code-install)Try Claude Code on Max
223223

224224
Try Claude Code on Max
225225

226226
[See our pricing options](https://www.anthropic.com/claude-code#get-started)
227227

228-
228+
229229

230-
Thinking
230+
Noodling
231231

232232
Trusted by engineers at
233233
-----------------------
@@ -256,15 +256,15 @@ Claude Code embeds Claude Opus 4.1—the same model our researchers and engineer
256256

257257
[Terminal](https://www.anthropic.com/claude-code#)[Result](https://www.anthropic.com/claude-code#)
258258

259-
259+
260260

261-
Deliberating
261+
Determining
262262

263263
[Terminal](https://www.anthropic.com/claude-code#)[Result](https://www.anthropic.com/claude-code#)
264264

265-
265+
266266

267-
Thinking
267+
Baking
268268

269269
### Powerful intelligence
270270

@@ -333,13 +333,13 @@ What could you do with Claude Code?
333333

334334
[Code onboarding](https://www.anthropic.com/claude-code#w-tabs-1-data-w-pane-0)[Triage issues](https://www.anthropic.com/claude-code#w-tabs-1-data-w-pane-1)[Refactor code](https://www.anthropic.com/claude-code#w-tabs-1-data-w-pane-2)
335335

336-
336+
337337

338-
Pondering
338+
Musing
339339

340-
340+
341341

342-
Clauding
342+
Deliberating
343343

344344
Install [Node.js 18+](https://nodejs.org/en/download), then run:
345345

@@ -423,14 +423,14 @@ Get started with Claude Code
423423

424424
[Individual](https://www.anthropic.com/claude-code#w-tabs-2-data-w-pane-0)[Team &Enterprise](https://www.anthropic.com/claude-code#w-tabs-2-data-w-pane-1)
425425

426-
* ### Pro $17 Per month with annual subscription discount; $200 billed up front. $20 if billed monthly. Claude Code is included in your Pro plan. Perfect for short coding sprints in smaller codebases with Claude Sonnet 4. [Sign up](https://claude.ai/redirect/website.v1.26319ac3-0876-4bb5-9ff6-5c9ce61de157/upgrade/pro?returnTo=/claude-code-install)Sign up Sign up
427-
* ### Max 5x $100 Per person billed monthly Claude Code is included in your Max plan. Great value for everyday use in larger codebases with access to both Claude Sonnet 4 & Claude Opus 4.1. [Sign up](https://claude.ai/redirect/website.v1.26319ac3-0876-4bb5-9ff6-5c9ce61de157/upgrade/max?plan=max_5x&returnTo=/claude-code-install)Sign up Sign up
428-
* ### Max 20x $200 Per person billed monthly Even more Claude Code included in your Max plan. Great value for power users with the most access to Claude Opus 4.1. [Sign up](https://claude.ai/redirect/website.v1.26319ac3-0876-4bb5-9ff6-5c9ce61de157/upgrade/max?plan=max_20x&returnTo=/claude-code-install)Sign up Sign up
426+
* ### Pro $17 Per month with annual subscription discount; $200 billed up front. $20 if billed monthly. Claude Code is included in your Pro plan. Perfect for short coding sprints in smaller codebases with Claude Sonnet 4. [Sign up](https://claude.ai/redirect/website.v1.764972df-cf81-4d9c-8b06-5cec0cca7e1a/upgrade/pro?returnTo=/claude-code-install)Sign up Sign up
427+
* ### Max 5x $100 Per person billed monthly Claude Code is included in your Max plan. Great value for everyday use in larger codebases with access to both Claude Sonnet 4 & Claude Opus 4.1. [Sign up](https://claude.ai/redirect/website.v1.764972df-cf81-4d9c-8b06-5cec0cca7e1a/upgrade/max?plan=max_5x&returnTo=/claude-code-install)Sign up Sign up
428+
* ### Max 20x $200 Per person billed monthly Even more Claude Code included in your Max plan. Great value for power users with the most access to Claude Opus 4.1. [Sign up](https://claude.ai/redirect/website.v1.764972df-cf81-4d9c-8b06-5cec0cca7e1a/upgrade/max?plan=max_20x&returnTo=/claude-code-install)Sign up Sign up
429429

430430
*Additional [usage limits](https://support.anthropic.com/en/articles/9797557-usage-limit-best-practices) apply. Prices shown do not include applicable tax.
431431

432432
* ### Anthropic API Pay as you go with standard Anthropic API pricing. Deploy to unlimited developers with no per-seat fee or platform charges. [Start building](https://console.anthropic.com/login?returnTo=%2F%3F)Start building Start building
433-
* ### Team $150 Per person / month. Minimum 5 members. Claude Code is included with Team plan premium seats. Includes self-serve seat management and additional usage at standard API rates, plus access to both Claude Sonnet 4 and Claude Opus 4.1. [Get the Team plan](https://claude.ai/redirect/website.v1.26319ac3-0876-4bb5-9ff6-5c9ce61de157/login)Get the Team plan Get the Team plan
433+
* ### Team $150 Per person / month. Minimum 5 members. Claude Code is included with Team plan premium seats. Includes self-serve seat management and additional usage at standard API rates, plus access to both Claude Sonnet 4 and Claude Opus 4.1. [Get the Team plan](https://claude.ai/redirect/website.v1.764972df-cf81-4d9c-8b06-5cec0cca7e1a/login)Get the Team plan Get the Team plan
434434
* ### Enterprise Enterprise plan premium seats include everything in the Team plan, plus advanced security, data, and user management. [Contact sales](https://anthropic.com/contact-sales)Contact sales Contact sales
435435

436436
Prices shown do not include applicable tax. [Usage limits](https://support.anthropic.com/en/articles/9797557-usage-limit-best-practices) may apply.
@@ -546,9 +546,9 @@ Footer
546546
* [Max plan](https://www.anthropic.com/max)
547547
* [Team plan](https://www.anthropic.com/team)
548548
* [Enterprise plan](https://www.anthropic.com/enterprise)
549-
* [Download Claude apps](https://claude.ai/redirect/website.v1.26319ac3-0876-4bb5-9ff6-5c9ce61de157/download)
549+
* [Download Claude apps](https://claude.ai/redirect/website.v1.764972df-cf81-4d9c-8b06-5cec0cca7e1a/download)
550550
* [Claude.ai pricing plans](https://www.anthropic.com/pricing)
551-
* [Claude.ai login](http://claude.ai/redirect/website.v1.26319ac3-0876-4bb5-9ff6-5c9ce61de157/login)
551+
* [Claude.ai login](http://claude.ai/redirect/website.v1.764972df-cf81-4d9c-8b06-5cec0cca7e1a/login)
552552

553553
### API Platform
554554

content/claude-code-docs/corporate-proxy.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,14 @@ export HTTPS_PROXY=https://proxy.example.com:8080
1616

1717
# HTTP proxy (if HTTPS not available)
1818
export HTTP_PROXY=http://proxy.example.com:8080
19-
```
2019

21-
<Note>
22-
Claude Code currently does not support the `NO_PROXY` environment variable. All traffic will be routed through the configured proxy.
23-
</Note>
20+
# Bypass proxy for specific requests - space-separated format
21+
export NO_PROXY="localhost 192.168.1.1 example.com .example.com"
22+
# Bypass proxy for specific requests - comma-separated format
23+
export NO_PROXY="localhost,192.168.1.1,example.com,.example.com"
24+
# Bypass proxy for all requests
25+
export NO_PROXY="*"
26+
```
2427

2528
<Note>
2629
Claude Code does not support SOCKS proxies.

content/claude-code-docs/hooks.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -141,18 +141,6 @@ the stoppage occurred due to a user interrupt.
141141

142142
Runs when a Claude Code subagent (Task tool call) has finished responding.
143143

144-
### SessionEnd
145-
146-
Runs when a Claude Code session ends. Useful for cleanup tasks, logging session
147-
statistics, or saving session state.
148-
149-
The `reason` field in the hook input will be one of:
150-
151-
* `clear` - Session cleared with /clear command
152-
* `logout` - User logged out
153-
* `prompt_input_exit` - User exited while prompt input was visible
154-
* `other` - Other exit reasons
155-
156144
### PreCompact
157145

158146
Runs before Claude Code is about to run a compact operation.
@@ -173,6 +161,19 @@ development context like existing issues or recent changes to your codebase.
173161
* `startup` - Invoked from startup
174162
* `resume` - Invoked from `--resume`, `--continue`, or `/resume`
175163
* `clear` - Invoked from `/clear`
164+
* `compact` - Invoked from auto or manual compact.
165+
166+
### SessionEnd
167+
168+
Runs when a Claude Code session ends. Useful for cleanup tasks, logging session
169+
statistics, or saving session state.
170+
171+
The `reason` field in the hook input will be one of:
172+
173+
* `clear` - Session cleared with /clear command
174+
* `logout` - User logged out
175+
* `prompt_input_exit` - User exited while prompt input was visible
176+
* `other` - Other exit reasons
176177

177178
## Hook Input
178179

content/claude-code-docs/interactive-mode.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,19 @@
2525
| Control sequence | `Ctrl+J` | Line feed character for multiline |
2626
| Paste mode | Paste directly | For code blocks, logs |
2727

28+
<Tip>
29+
Configure your preferred line break behavior in terminal settings. Run `/terminal-setup` to install Shift+Enter binding for iTerm2 and VS Code terminals.
30+
</Tip>
31+
2832
### Quick commands
2933

30-
| Shortcut | Description | Notes |
31-
| :----------- | :--------------------------------- | :-------------------------------------------------------- |
32-
| `#` at start | Memory shortcut - add to CLAUDE.md | Prompts for file selection |
33-
| `/` at start | Slash command | See [slash commands](/en/docs/claude-code/slash-commands) |
34+
| Shortcut | Description | Notes |
35+
| :----------- | :--------------------------------- | :------------------------------------------------------------ |
36+
| `#` at start | Memory shortcut - add to CLAUDE.md | Prompts for file selection |
37+
| `/` at start | Slash command | See [slash commands](/en/docs/claude-code/slash-commands) |
38+
| `!` at start | Bash mode | Run commands directly and add execution output to the session |
3439

35-
## Vim mode
40+
## Vim editor mode
3641

3742
Enable vim-style editing with `/vim` command or configure permanently via `/config`.
3843

@@ -75,10 +80,6 @@ Enable vim-style editing with `/vim` command or configure permanently via `/conf
7580
| `cw`/`ce`/`cb` | Change word/to end/back |
7681
| `.` | Repeat last change |
7782

78-
<Tip>
79-
Configure your preferred line break behavior in terminal settings. Run `/terminal-setup` to install Shift+Enter binding for iTerm2 and VS Code terminals.
80-
</Tip>
81-
8283
## Command history
8384

8485
Claude Code maintains command history for the current session:
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
# Model configuration
2+
3+
> Learn about the Claude Code model configuration, including model aliases like `opusplan`
4+
5+
## Available models
6+
7+
For the `model` setting in Claude Code, you can either configure:
8+
9+
* A **model alias**
10+
* A full **[model name](/en/docs/about-claude/models/overview#model-names)**
11+
* For Bedrock, an ARN
12+
13+
### Model aliases
14+
15+
Model aliases provide a convenient way to select model settings without
16+
remembering exact version numbers:
17+
18+
| Model alias | Behavior |
19+
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
20+
| **`default`** | Recommended model setting, depending on your account type |
21+
| **`sonnet`** | Uses the latest Sonnet model (currently Sonnet 4) for daily coding tasks |
22+
| **`opus`** | Uses the most capable Opus model (currently Opus 4.1) for complex reasoning |
23+
| **`haiku`** | Uses the fast and efficient Haiku model for simple tasks |
24+
| **`sonnet[1m]`** | Uses Sonnet with a [1 million token context window](/en/docs/build-with-claude/context-windows#1m-token-context-window) window for long sessions |
25+
| **`opusplan`** | Special mode that uses `opus` during plan mode, then switches to `sonnet` for execution |
26+
27+
### Setting your model
28+
29+
You can configure your model in several ways, listed in order of priority:
30+
31+
1. **During session** - Use `/model <alias|name>` to switch models mid-session
32+
2. **At startup** - Launch with `claude --model <alias|name>`
33+
3. **Environment variable** - Set `ANTHROPIC_MODEL=<alias|name>`
34+
4. **Settings** - Configure permanently in your settings file using the `model`
35+
field.
36+
37+
Example usage:
38+
39+
```bash
40+
# Start with Opus
41+
claude --model opus
42+
43+
# Switch to Sonnet during session
44+
/model sonnet
45+
```
46+
47+
Example settings file:
48+
49+
```
50+
{
51+
"permissions": {
52+
...
53+
},
54+
"model": "opus"
55+
}
56+
```
57+
58+
## Special model behavior
59+
60+
### `default` model setting
61+
62+
The behavior of `default` depends on your account type.
63+
64+
For certain Max users, Claude Code will automatically fall back to Sonnet if you
65+
hit a usage threshold with Opus.
66+
67+
### `opusplan` model setting
68+
69+
The `opusplan` model alias provides an automated hybrid approach:
70+
71+
* **In plan mode** - Uses `opus` for complex reasoning and architecture
72+
decisions
73+
* **In execution mode** - Automatically switches to `sonnet` for code generation
74+
and implementation
75+
76+
This gives you the best of both worlds: Opus's superior reasoning for planning,
77+
and Sonnet's efficiency for execution.
78+
79+
### Extended context with \[1m]
80+
81+
For Console/API users, the `[1m]` suffix can be added to full model names to
82+
enable a
83+
[1 million token context window](/en/docs/build-with-claude/context-windows#1m-token-context-window).
84+
85+
```bash
86+
# Example of using a full model name with the [1m] suffix
87+
/model anthropic.claude-sonnet-4-20250514-v1:0[1m]
88+
```
89+
90+
Note: Extended context models have
91+
[different pricing](/en/docs/about-claude/pricing#long-context-pricing).
92+
93+
## Checking your current model
94+
95+
You can see which model you're currently using in several ways:
96+
97+
1. In [status line](/en/docs/claude-code/statusline) (if configured)
98+
2. In `/status`, which also displays your account information.
99+
100+
## Environment variables
101+
102+
You can use the following environment variables, which must be full **model
103+
names**, to control the model names that the aliases map to.
104+
105+
| Env var | Description |
106+
| -------------------------------- | -------------------------------------------------------------------------------------------------------------- |
107+
| `ANTHROPIC_DEFAULT_OPUS_MODEL` | The model to use for `opus`, or for `opusplan` when Plan Mode is active. |
108+
| `ANTHROPIC_DEFAULT_SONNET_MODEL` | The model to use for `sonnet`, or for `opusplan` when Plan Mode is not active. |
109+
| `ANTHROPIC_DEFAULT_HAIKU_MODEL` | The model to use for `haiku`, or [background functionality](/en/docs/claude-code/costs#background-token-usage) |
110+
| `CLAUDE_CODE_SUBAGENT_MODEL` | The model to use for [subagents](/en/docs/claude-code/sub-agents) |
111+
112+
Note: `ANTHROPIC_SMALL_FAST_MODEL` is deprecated in favor of
113+
`ANTHROPIC_DEFAULT_HAIKU_MODEL`.

content/claude-code-docs/security.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ For full details, please review our [Commercial Terms of Service](https://www.an
5454
* **Network request approval**: Tools that make network requests require user approval by default
5555
* **Isolated context windows**: Web fetch uses a separate context window to avoid injecting potentially malicious prompts
5656
* **Trust verification**: First-time codebase runs and new MCP servers require trust verification
57+
* Note: Trust verification is disabled when running non-interactively with the `-p` flag
5758
* **Command injection detection**: Suspicious bash commands require manual approval even if previously allowlisted
5859
* **Fail-closed matching**: Unmatched commands default to requiring manual approval
5960
* **Natural language descriptions**: Complex bash commands include explanations for user understanding

0 commit comments

Comments
 (0)