x.com/steipete/status/2040495786438635541?s=46
1 correction found
models auth login --provider anthropic --method cli --set-default
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:
- The CLI reference defines the command tree as
openclaw [--dev] [--profile <name>] <command>and listsmodelsunder that tree, which means the documented invocation starts withopenclaw. - 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`