Claude Pro:Opus 模型仅在启用额外使用时可用。
Claude Pro: Opus model will only be available if extra usage is enabled

原始链接: https://support.claude.com/en/articles/11940350-claude-code-model-configuration

## 在 Claude Code 中更换模型 本指南详细介绍了在 Claude Code 中选择不同 Claude 模型的三种方法。最快的方法是在 Claude Code *内部* 使用 `/model` 命令,可以即时更改 – 使用 `/status` 检查当前模型。 对于会话期间的一次性模型更改,请在从终端启动 Claude Code 时使用 `--model` 标志(例如,`claude --model claude-opus-4-7`)。 要设置永久默认模型,请修改您的 shell 配置文件(macOS 上的 `.zshrc`,或 Linux 上的 `.bashrc`)。添加一行,例如 `export ANTHROPIC_MODEL="claude-opus-4-7"`,然后 source 该文件(Bash 的 `source ~/.bashrc`),并重新启动您的终端。 支持的模型包括 Opus 4.7、Sonnet 4.6、Opus 4.6、Opus 4.5、Haiku 4.5 和 Sonnet 4.5,每个模型都有一个特定的模型名称用于命令。这使您可以根据您的特定需求和偏好定制 Claude Code。

## Claude Pro Opus 模型访问更新 最近在Hacker News上的讨论澄清了关于Claude Pro计划中访问Anthropic的Opus模型的问题。最初,一个支持页面显示即使订阅了Pro计划,访问Opus也需要额外购买使用量。然而,Anthropic的代表表示这篇文章已过时,Opus 4.5已于一月份推广到Pro计划中。 尽管如此,当前的在线支持页面仍然显示需要额外购买使用量才能访问Claude Code中的Opus。用户指出这种模糊性以及存档链接加载缓慢的问题。 更广泛的讨论表明,人工智能模型的资金来源正在发生转变。投资者可能会从补贴推理成本(运行模型)转向资助*使用*模型的企业,专注于可证明的人工智能价值。人们也担心Opus的高成本可能会促使用户转向自托管的开源模型——尽管对来自中国的模型存在潜在的信任障碍。最终,Anthropic需要证明其持续的价值以证明其定价是合理的。
相关文章

原文

This guide shows you three ways to change which Claude model you're using with Claude Code: the quick /model command for instant changes, the --model flag for one-time session changes, and environment variables to set your preferred model as the permanent default.

Easiest method: Use /model command

The simplest way to change models is to use the /model command directly within Claude Code. This works immediately without restarting your terminal.

  1. Start Claude Code: claude

  2. Type /model and choose your desired model from the interactive menu.

  3. Your model change takes effect immediately.

Note: You can check your current model anytime by running /status in Claude Code.

Supported models

  • Opus 4.7, claude-opus-4-7

  • Sonnet 4.6, claude-sonnet-4-6

  • Opus 4.6, claude-opus-4-6

  • Opus 4.5, claude-opus-4-5-20251101

  • Haiku 4.5, claude-haiku-4-5-20251001

  • Sonnet 4.5, claude-sonnet-4-5-20250929

Change model for current session only

Use the --model flag when starting Claude Code.

  1. Start a fresh Terminal session.

  2. Enter the following commands (depending on the model you’d like to use for that session):

    • For Opus 4.7: claude --model claude-opus-4-7

    • For Sonnet 4.6: claude --model claude-sonnet-4-6

    • For Opus 4.6: claude --model claude-opus-4-6

    • For Opus 4.5: claude --model claude-opus-4-5-20251101

    • For Haiku 4.5: claude --model claude-haiku-4-5-20251001

    • For Sonnet 4.5: claude --model claude-sonnet-4-5-20250929

Change default model for all future sessions

Step 1) Check your shell type by running: echo $SHELL

  • /bin/zsh → You're using zsh (macOS default)

  • /bin/bash → You're using bash (Linux default)

Step 2) Add model setting to your shell config:

For ZSH users (macOS)

  • Opus 4.7: echo 'export ANTHROPIC_MODEL="claude-opus-4-7"' >> ~/.zshrc

  • Sonnet 4.6: echo 'export ANTHROPIC_MODEL="claude-sonnet-4-6"' >> ~/.zshrc

  • Opus 4.6: echo 'export ANTHROPIC_MODEL="claude-opus-4-6"' >> ~/.zshrc

  • Opus 4.5: echo 'export ANTHROPIC_MODEL="claude-opus-4-5-20251101"' >> ~/.zshrc

  • Haiku 4.5: echo 'export ANTHROPIC_MODEL="claude-haiku-4-5-20251001"' >> ~/.zshrc

  • Sonnet 4.5: echo 'export ANTHROPIC_MODEL="claude-sonnet-4-5-20250929"' >> ~/.zshrc

For BASH users (Linux)

  • Opus 4.7: echo 'export ANTHROPIC_MODEL="claude-opus-4-7"' >> ~/.bashrc

  • Sonnet 4.6: echo 'export ANTHROPIC_MODEL="claude-sonnet-4-6"' >> ~/.bashrc

  • Opus 4.6: echo 'export ANTHROPIC_MODEL="claude-opus-4-6"' >> ~/.bashrc

  • Opus 4.5: echo 'export ANTHROPIC_MODEL="claude-opus-4-5-20251101"' >> ~/.bashrc

  • Haiku 4.5: echo 'export ANTHROPIC_MODEL="claude-haiku-4-5-20251001"' >> ~/.bashrc

  • Sonnet 4.5: echo 'export ANTHROPIC_MODEL="claude-sonnet-4-5-20250929"' >> ~/.bashrc

Step 3) Apply the changes:

  • For BASH: source ~/.bashrc

Step 4) Close Terminal completely, then reopen it.

Step 5) Start Claude Code in a fresh Terminal session: claude.

Now your chosen model will be the default for all future Claude Code sessions.

联系我们 contact @ memedata.com