CLI 자동화
openclaw onboard를 자동화하려면 --non-interactive를 사용하세요.
--json은 비대화형 모드를 암시하지 않습니다. 스크립트를 위해 --non-interactive (및 --workspace)를 사용하세요.
비대화형 기본 예제
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을 추가하여 기계가 읽을 수 있는 요약을 얻을 수 있습니다.
프로바이더 별 예제
openclaw onboard --non-interactive \
--mode local \
--auth-choice gemini-api-key \
--gemini-api-key "$GEMINI_API_KEY" \
--gateway-port 18789 \
--gateway-bind loopback
openclaw onboard --non-interactive \
--mode local \
--auth-choice zai-api-key \
--zai-api-key "$ZAI_API_KEY" \
--gateway-port 18789 \
--gateway-bind loopback
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 loopback
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 loopback
openclaw onboard --non-interactive \
--mode local \
--auth-choice moonshot-api-key \
--moonshot-api-key "$MOONSHOT_API_KEY" \
--gateway-port 18789 \
--gateway-bind loopback
openclaw onboard --non-interactive \
--mode local \
--auth-choice synthetic-api-key \
--synthetic-api-key "$SYNTHETIC_API_KEY" \
--gateway-port 18789 \
--gateway-bind loopback
openclaw onboard --non-interactive \
--mode local \
--auth-choice opencode-zen \
--opencode-zen-api-key "$OPENCODE_API_KEY" \
--gateway-port 18789 \
--gateway-bind loopback
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 없이 실행하면 마법사를 실행합니다.
openclaw agents add work \
--workspace ~/.openclaw/workspace-work \
--model openai/gpt-5.2 \
--bind whatsapp:biz \
--non-interactive \
--json
설정 내용:
agents.list[].name
agents.list[].workspace
agents.list[].agentDir
주의사항:
- 기본 작업공간은
~/.openclaw/workspace-<agentId>를 따릅니다.
- 수신 메시지를 라우팅하려면
bindings를 추가하세요 (마법사가 이를 수행할 수 있습니다).
- 비대화형 플래그:
--model, --agent-dir, --bind, --non-interactive.
관련 문서