Gateway lifecycle on macOS
기준일: 2026-07-26
공식 기준: Gateway lifecycle on macOS
Gateway lifecycle on macOS 문서는 OpenClaw 공식 문서(platforms/mac/child-process)를 한국어로 정리한 가이드입니다. Gateway lifecycle on macOS (launchd) 명령·설정 키·코드 예시는 공식 문서를 그대로 보존하며, 해석과 절차 안내는 한국어로 제공합니다. 최종 동작은 설치된 CLI 버전과 공식 원문을 확인하세요.
핵심 요약
Gateway lifecycle on macOS (launchd)
한국어 가이드 범위: platforms/mac/child-process 경로의 설정·명령·제약·예시를 학습용으로 재구성합니다.
문서 구성
공식 문서의 주요 섹션은 다음과 같습니다.
- Default behavior (launchd)
- Unsigned dev builds
- Attach-only mode
- Remote mode
- Why we prefer launchd
- 관련 문서
상세 내용
본문
The macOS app manages the Gateway via launchd by default and does not spawn the Gateway as a child process. It first tries to attach to an already-running Gateway on the configured port; if none is reachable, it enables the launchd service via the external openclaw CLI (no embedded runtime). This gives reliable auto-start at login and restart on crashes.
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
Default behavior (launchd)
ai.openclaw. when using --profile/OPENCLAW_PROFILE).
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
주요 항목:
- The app installs a per-user LaunchAgent labeled
ai.openclaw.gateway(or - When Local mode is enabled, the app ensures the LaunchAgent is loaded and
- Logs are written to the launchd gateway log path (visible in Debug Settings).
launchctl kickstart -k gui/$UID/ai.openclaw.gateway
launchctl bootout gui/$UID/ai.openclaw.gateway
Unsigned dev builds
scripts/restart-mac.sh --no-sign is for fast local builds without signing keys. To stop launchd from pointing at an unsigned relay binary, it writes ~/.openclaw/disable-launchagent.
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
rm ~/.openclaw/disable-launchagent
Attach-only mode
To force the macOS app to never install or manage launchd, launch it with --attach-only (or --no-launchd). This sets ~/.openclaw/disable-launchagent, so the app only attaches to an already running Gateway. Toggle the same behavior in Debug Settings.
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
Remote mode
Remote mode never starts a local Gateway. The app uses an SSH tunnel to the remote host and connects over that tunnel.
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
Why we prefer launchd
If a true child-process mode is ever needed again, it should be documented as a separate, explicit dev-only mode.
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
주요 항목:
- Auto-start at login.
- Built-in restart/KeepAlive semantics.
- Predictable logs and supervision.
관련 문서
주요 항목:
- macOS app
- Gateway runbook
실습 체크리스트
- 공식 문서와 로컬 버전을 대조합니다:
https://docs.openclaw.ai/platforms/mac/child-process - 관련 CLI는
openclaw --help및 하위 명령--help로 옵션을 확인합니다. - 설정 변경 시
openclaw config/openclaw doctor로 유효성을 검사합니다. - Gateway·채널·플러그인 변경 후에는 필요 시 Gateway를 재시작합니다.
자주 쓰는 명령·설정 예시
launchctl kickstart -k gui/$UID/ai.openclaw.gateway
launchctl bootout gui/$UID/ai.openclaw.gateway
rm ~/.openclaw/disable-launchagent
관련 링크
이 가이드는 공식 문서를 한국어 학습용으로 재구성한 것입니다. 옵션 기본값·플래그 이름은 설치 버전에 따라 달라질 수 있습니다.