All corrections
X April 7, 2026 at 11:21 PM

x.com/steipete/status/2040495786438635541?s=46

1 correction found

1
Claim
models auth login --provider anthropic --method cli --set-default
Correction

This command is missing the required `openclaw` executable prefix. OpenClaw’s official docs show the Anthropic CLI login command as `openclaw models auth login --provider anthropic --method cli --set-default`.

Full reasoning

The post presents a shell command, but OpenClaw’s official documentation shows that models is a subcommand of the openclaw CLI, not a standalone executable.

Two separate official docs pages confirm this:

  1. The CLI reference defines the command tree as openclaw [--dev] [--profile <name>] <command> and lists models under that tree, which means the documented invocation starts with openclaw.
  2. The Anthropic provider docs give the exact migration/login command for Claude CLI auth as:
openclaw models auth login --provider anthropic --method cli --set-default

The post omits openclaw, so the posted command is incomplete relative to the official syntax and would not match the documented command users are supposed to run.

3 sources
  • CLI 参考 - OpenClaw

    命令树 openclaw [--dev] [--profile <name>] <command> ... models ... auth add|login|login-github-copilot|setup-token|paste-token

  • Install - OpenClaw

    Verify the install: openclaw --version # confirm the CLI is available

  • Anthropic - OpenClaw

    ثم شغّل: `openclaw models auth login --provider anthropic --method cli --set-default`

Model: OPENAI_GPT_5 Prompt: v1.16.0