Skip to main content

Documentation Index

Fetch the complete documentation index at: https://openclaw.zhcndoc.com/llms.txt

Use this file to discover all available pages before exploring further.

openclaw setup

初始化 ~/.openclaw/openclaw.json 和代理工作区。 相关:

示例

openclaw setup
openclaw setup --workspace ~/.openclaw/workspace
openclaw setup --wizard
openclaw setup --wizard --import-from hermes --import-source ~/.hermes
openclaw setup --non-interactive --mode remote --remote-url wss://gateway-host:18789 --remote-token <token>

选项

  • --workspace <dir>: 代理工作区目录(存储为 agents.defaults.workspace
  • --wizard: 运行引导流程
  • --non-interactive: 无提示运行引导流程
  • --mode <local|remote>: 引导模式
  • --import-from <provider>: 在引导期间运行的迁移提供方
  • --import-source <path>: --import-from 的源代理主目录
  • --import-secrets: 在引导迁移期间导入受支持的密钥
  • --remote-url <url>: 远程 Gateway WebSocket URL
  • --remote-token <token>: 远程 Gateway 令牌
通过 setup 运行引导流程:
openclaw setup --wizard
说明:
  • 纯粹的 openclaw setup 会在不经过完整引导流程的情况下初始化配置 + 工作区。
  • 在完成纯粹的 setup 之后,运行 openclaw configure 以选择模型、通道、Gateway、插件、技能或健康检查。
  • 当存在任何引导标志时,系统会自动运行引导流程(--wizard--non-interactive--mode--import-from--import-source--import-secrets--remote-url--remote-token)。
  • 如果检测到 Hermes 状态,交互式引导可以自动提供迁移。导入引导需要全新安装;在引导之外使用 Migrate 进行 dry-run 计划、备份以及覆盖模式。

相关