CLI 자동화
--non-interactive을 사용하여 openclaw onboard를 자동화하세요.
INFO
--json는 비대화형 모드를 의미하지 않습니다. 스크립트에는 --non-interactive(및 --workspace)를 사용하세요.
기본 비대화형 예
bash
openclaw onboard --non-interactive \
--mode local \
--auth-choice apiKey \
--anthropic-api-key "$ANTHROPIC_API_KEY" \
--gateway-port 18789 \
--gateway-bind loopback \
--install-daemon \
--daemon-runtime node \
--skip-skills기계가 읽을 수 있는 요약을 위해 --json를 추가하세요.
제공자별 예시
Gemini example
bash
openclaw onboard --non-interactive \
--mode local \
--auth-choice gemini-api-key \
--gemini-api-key "$GEMINI_API_KEY" \
--gateway-port 18789 \
--gateway-bind loopbackZ.AI example
bash
openclaw onboard --non-interactive \
--mode local \
--auth-choice zai-api-key \
--zai-api-key "$ZAI_API_KEY" \
--gateway-port 18789 \
--gateway-bind loopbackVercel AI Gateway example
bash
openclaw onboard --non-interactive \
--mode local \
--auth-choice ai-gateway-api-key \
--ai-gateway-api-key "$AI_GATEWAY_API_KEY" \
--gateway-port 18789 \
--gateway-bind loopbackCloudflare AI Gateway example
bash
openclaw onboard --non-interactive \
--mode local \
--auth-choice cloudflare-ai-gateway-api-key \
--cloudflare-ai-gateway-account-id "your-account-id" \
--cloudflare-ai-gateway-gateway-id "your-gateway-id" \
--cloudflare-ai-gateway-api-key "$CLOUDFLARE_AI_GATEWAY_API_KEY" \
--gateway-port 18789 \
--gateway-bind loopbackMoonshot example
bash
openclaw onboard --non-interactive \
--mode local \
--auth-choice moonshot-api-key \
--moonshot-api-key "$MOONSHOT_API_KEY" \
--gateway-port 18789 \
--gateway-bind loopbackSynthetic example
bash
openclaw onboard --non-interactive \
--mode local \
--auth-choice synthetic-api-key \
--synthetic-api-key "$SYNTHETIC_API_KEY" \
--gateway-port 18789 \
--gateway-bind loopbackOpenCode Zen example
bash
openclaw onboard --non-interactive \
--mode local \
--auth-choice opencode-zen \
--opencode-zen-api-key "$OPENCODE_API_KEY" \
--gateway-port 18789 \
--gateway-bind loopbackCustom provider example
bash
openclaw onboard --non-interactive \
--mode local \
--auth-choice custom-api-key \
--custom-base-url "https://llm.example.com/v1" \
--custom-model-id "foo-large" \
--custom-api-key "$CUSTOM_API_KEY" \
--custom-provider-id "my-custom" \
--custom-compatibility anthropic \
--gateway-port 18789 \
--gateway-bind loopback--custom-api-key는 선택 사항입니다. 생략하면 온보딩에서 CUSTOM_API_KEY를 확인합니다.
다른 상담원 추가
openclaw agents add <name>를 사용하여 자체 작업공간이 있는 별도의 에이전트를 생성하고, 세션 및 인증 프로필. --workspace 없이 실행하면 마법사가 시작됩니다.
bash
openclaw agents add work \
--workspace ~/.openclaw/workspace-work \
--model openai/gpt-5.2 \
--bind whatsapp:biz \
--non-interactive \
--json설정 내용:
agents.list[].nameagents.list[].workspaceagents.list[].agentDir
참고:
- 기본 작업공간은
~/.openclaw/workspace-<agentId>를 따릅니다. bindings를 추가하여 인바운드 메시지를 라우팅합니다(마법사가 이를 수행할 수 있음).- 비대화형 플래그:
--model,--agent-dir,--bind,--non-interactive.
관련 문서
- 온보딩 허브: 온보딩 마법사(CLI)
- 전체 참조: CLI 온보딩 참조
- 명령 참조:
openclaw onboard