CLI commands
Thiết lập
openclaw setup
Khởi tạo ~/.openclaw/openclaw.json và không gian làm việc của agent.
Liên quan:
- Bắt đầu: Bắt đầu
- Nhập môn CLI: Nhập môn (CLI)
Ví dụ
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>
Tùy chọn
--workspace <dir>: thư mục không gian làm việc của agent (được lưu dưới dạngagents.defaults.workspace)--wizard: chạy nhập môn--non-interactive: chạy nhập môn không có lời nhắc--mode <local|remote>: chế độ nhập môn--import-from <provider>: nhà cung cấp di chuyển sẽ chạy trong quá trình nhập môn--import-source <path>: thư mục chính của agent nguồn cho--import-from--import-secrets: nhập các bí mật được hỗ trợ trong quá trình di chuyển khi nhập môn--remote-url <url>: URL WebSocket Gateway từ xa--remote-token <token>: token Gateway từ xa
Để chạy nhập môn qua thiết lập:
openclaw setup --wizard
Ghi chú:
openclaw setupthông thường khởi tạo cấu hình + không gian làm việc mà không chạy toàn bộ luồng nhập môn.- Sau khi thiết lập thông thường, chạy
openclaw configuređể chọn mô hình, kênh, Gateway, plugins, skills hoặc kiểm tra tình trạng. - Nhập môn tự động chạy khi có bất kỳ cờ nhập môn nào (
--wizard,--non-interactive,--mode,--import-from,--import-source,--import-secrets,--remote-url,--remote-token). - Nếu phát hiện trạng thái Hermes, nhập môn tương tác có thể tự động đề xuất di chuyển. Nhập môn bằng cách nhập yêu cầu một thiết lập mới; dùng Di chuyển cho kế hoạch chạy thử, bản sao lưu và chế độ ghi đè bên ngoài nhập môn.