Files
zeekay acaeda400a Eradicate OpenClaw — resolve merge conflicts and finish the rebrand
Three coordinated things:

1. Resolve the committed upstream/main merge conflicts. 94 files were
   sitting with raw <<<<<<< HEAD ... >>>>>>> upstream/main blocks. Every
   conflict had HanzoBot/Bot on HEAD and OpenClaw on upstream. Resolved
   by keeping HEAD everywhere — 540 conflict blocks.

2. Rewrite remaining OpenClaw text refs.
     OPENCLAW   → HANZO_BOT
     OpenClaw   → HanzoBot          (PascalCase type identifiers)
     openclaw   → bot               (codebase convention — botToken,
                                    botUsername etc.; avoids invalid
                                    hyphenated JS identifiers)
     openclaw[_]/openclaw[A-Z] → bot[_]/bot[A-Z]   (compound)
     ai.openclaw.x → ai.hanzo.bot.x  (JVM package path)

3. Delete or rename openclaw-named file paths (116 of them). Dead
   duplicates with a Bot-named canonical from the partial migration:
   deleted. Otherwise renamed.
     ai/openclaw/**           → deleted (ai/hanzo/bot/** canonical)
     Sources/OpenClaw*/       → deleted (Sources/Bot* canonical)
     Tests/OpenClawIPCTests/  → deleted (Tests/BotIPCTests canonical)
     OpenClawKit/             → deleted (BotKit canonical)
     openclaw-tools.*.ts      → deleted (bot-tools.*.ts canonical)
     openclaw-root.ts etc.    → deleted (bot-root.ts canonical)
     types.openclaw.ts        → deleted (types.bot.ts canonical)
     extensions/*/openclaw.plugin.json → renamed hanzo-bot.plugin.json
     docs/start/openclaw.md   → renamed hanzo-bot.md (+ zh-CN)
     docs/assets/openclaw-*.png, whatsapp-openclaw*.jpg → deleted
     scripts/.../openclaw-*   → deleted (bot/hanzo-bot parallels)
     openclaw.mjs             → deleted (hanzo-bot.mjs is package.bin)

Then patched 65 broken JS/TS import strings where hanzo-bot had ended
up inside an import path ('./types.hanzo-bot.js' → './types.bot.js'
etc., since the on-disk filename uses the brand-neutral bot- prefix).

Pre-existing lint debt cleaned up to get oxlint --type-aware to 0/0:
removed the dead i18n test that referenced a path no longer existing;
defined the missing DIDConfig and WalletConfig types in types.base.ts
(they were imported but never declared); dropped unused imports;
collapsed redundant type assertion and a tautological meta.bot lookup
that the openclaw→bot rename made redundant.

The a2ui.bundle.js generated artifact is kept at its pre-rebrand
contents — it gets regenerated by 'pnpm canvas:a2ui:bundle' from
sources I cannot rebuild in this commit; the source side is clean.

Verified: 0 occurrences of openclaw (case-insensitive) in tree source
content, 0 file or directory paths with openclaw in the name; oxlint
--type-aware src test reports 0/0.
2026-05-11 17:56:29 -07:00

2.8 KiB
Raw Permalink Blame History

read_when, summary, title, x-i18n
read_when summary title x-i18n
你想更改默认模型或查看提供商认证状态
你想扫描可用的模型/提供商并调试认证配置
`hanzo-bot models` 的 CLI 参考(status/list/set/scan、别名、回退、认证) models
generated_at model provider source_hash source_path workflow
2026-02-01T20:21:16Z claude-opus-4-5 pi 923b6ffc7de382ba25bc6e699f0515607e74877b39f2136ccdba2d99e1b1e9c3 cli/models.md 14

hanzo-bot models

模型发现、扫描和配置(默认模型、回退、认证配置)。

相关内容:

常用命令

hanzo-bot models status
hanzo-bot models list
hanzo-bot models set <model-or-alias>
hanzo-bot models scan

hanzo-bot models status 显示已解析的默认模型/回退配置以及认证概览。 当提供商使用快照可用时,OAuth/令牌状态部分会包含提供商使用头信息。 添加 --probe 可对每个已配置的提供商配置运行实时认证探测。 探测会发送真实请求(可能消耗令牌并触发速率限制)。 使用 --agent <id> 可检查已配置智能体的模型/认证状态。省略时, 命令会使用 BOT_AGENT_DIR/PI_CODING_AGENT_DIR(如已设置),否则使用 已配置的默认智能体。

注意事项:

  • models set <model-or-alias> 接受 provider/model 或别名。
  • 模型引用通过在第一个 / 处拆分来解析。如果模型 ID 包含 /(OpenRouter 风格),需包含提供商前缀(示例:openrouter/moonshotai/kimi-k2)。
  • 如果省略提供商,HanzoBot 会将输入视为别名或默认提供商的模型(仅在模型 ID 不包含 / 时有效)。

models status

选项:

  • --json
  • --plain
  • --check(退出码 1=已过期/缺失,2=即将过期)
  • --probe(对已配置的认证配置进行实时探测)
  • --probe-provider <name>(探测单个提供商)
  • --probe-profile <id>(可重复或逗号分隔的配置 ID)
  • --probe-timeout <ms>
  • --probe-concurrency <n>
  • --probe-max-tokens <n>
  • --agent <id>(已配置的智能体 ID;覆盖 BOT_AGENT_DIR/PI_CODING_AGENT_DIR)

别名 + 回退

hanzo-bot models aliases list
hanzo-bot models fallbacks list

认证配置

hanzo-bot models auth add
hanzo-bot models auth login --provider <id>
hanzo-bot models auth setup-token
hanzo-bot models auth paste-token

models auth login 运行提供商插件的认证流程(OAuth/API 密钥)。使用 hanzo-bot plugins list 查看已安装的提供商。

注意事项:

  • setup-token 会提示输入 setup-token 值(在任意机器上使用 claude setup-token 生成)。
  • paste-token 接受在其他地方或通过自动化生成的令牌字符串。