Approvals
기준일: 2026-07-26
공식 기준: Approvals
Approvals 문서는 OpenClaw 공식 문서(cli/approvals)를 한국어로 정리한 가이드입니다. CLI reference for openclaw approvals and openclaw exec-policy 명령·설정 키·코드 예시는 공식 문서를 그대로 보존하며, 해석과 절차 안내는 한국어로 제공합니다. 최종 동작은 설치된 CLI 버전과 공식 원문을 확인하세요.
핵심 요약
CLI reference for openclaw approvals and openclaw exec-policy
한국어 가이드 범위: cli/approvals 경로의 설정·명령·제약·예시를 학습용으로 재구성합니다.
문서 구성
공식 문서의 주요 섹션은 다음과 같습니다.
- Common commands
- Pending approvals
- Replace approvals from a file
- "Never prompt" / YOLO example
- Allowlist helpers
- Common options
- 참고
- 관련 문서
상세 내용
openclaw approvals
Manage exec approvals for the local host, gateway host, or a node host. With no target flag, commands read/write the local approvals file on disk. Use --gateway to target the gateway, or --node to target a specific node.
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
openclaw exec-policy
openclaw exec-policy is the local-only convenience command that keeps requested tools.exec.* config and the local host approvals file in sync in one step:
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
주요 항목:
- Updates the local config file and local approvals file together; does not push policy to the gateway or a node host.
--host nodeis rejected: node exec approvals are fetched from the node at runtime, so localexec-policycannot synchronize them. Useopenclaw approvals set --node <id|name|ip>instead.exec-policy showmarkshost=nodescopes as node-managed at runtime instead of deriving an effective policy from the local approvals file.
openclaw exec-policy show
openclaw exec-policy show --json
openclaw exec-policy preset yolo
openclaw exec-policy preset cautious --json
openclaw exec-policy set --host gateway --security full --ask off --ask-fallback full
Common commands
get shows the effective exec policy for the target: the requested tools.exec policy, the host approvals-file policy, and the merged effective result. Nodes with a host-native policy, such as the Windows companion, show that policy directly instead of applying OpenClaw approvals-file policy math.
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
주요 항목:
- The host approvals file is the enforceable source of truth.
- Requested
tools.execpolicy can narrow or broaden intent, but the effective result is derived from host rules. --nodecombines the node host approvals file with gatewaytools.execpolicy (both apply at runtime).- If gateway config is unavailable, the CLI falls back to the node approvals snapshot and notes that the final runtime policy could not be computed.
openclaw approvals get
openclaw approvals get --node <id|name|ip>
openclaw approvals get --gateway
openclaw approvals pending
openclaw approvals resolve <id> <allow-once|allow-always|deny>
Pending approvals
List pending exec, plugin, and OpenClaw system-agent approvals from the Gateway:
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
openclaw approvals pending
openclaw approvals pending --json
openclaw approvals resolve <id> allow-once
openclaw approvals resolve <id> allow-always
openclaw approvals resolve <id> deny --reason "Not expected during maintenance"
Replace approvals from a file
set accepts JSON5, not only strict JSON. Use either --file or --stdin, not both.
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
openclaw approvals set --file ./exec-approvals.json
openclaw approvals set --stdin <<'EOF'
{ version: 1, defaults: { security: "full", ask: "off", askFallback: "full" } }
EOF
openclaw approvals set --node <id|name|ip> --file ./exec-approvals.json
openclaw approvals set --gateway --file ./exec-approvals.json
openclaw approvals set --node <id|name|ip> --stdin <<'EOF'
{
defaultAction: "deny",
rules: [{ pattern: "hostname", action: "allow" }]
}
EOF
"Never prompt" / YOLO example
Set the host approvals defaults to full + off for a host that should never stop on exec approvals:
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
openclaw approvals set --stdin <<'EOF'
{
version: 1,
defaults: {
security: "full",
ask: "off",
askFallback: "full"
}
}
EOF
openclaw config set tools.exec.host gateway
openclaw config set tools.exec.mode full
openclaw exec-policy preset yolo
Allowlist helpers
openclaw approvals allowlist add "~/Projects/**/bin/rg"
openclaw approvals allowlist add --agent main --node <id|name|ip> "/usr/bin/uptime"
openclaw approvals allowlist add --agent "*" "/usr/bin/uname"
openclaw approvals allowlist remove "~/Projects/**/bin/rg"
Common options
get, set, and allowlist add|remove all support:
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
주요 항목:
--node <id|name|ip>(resolves id, name, IP, or id prefix; same resolver asopenclaw nodes)--gateway- shared node RPC options:
--url,--token,--timeout,--json
참고
주요 항목:
- The node host must advertise
system.execApprovals.get/set(macOS app, headless node host, or Windows companion). - Approvals files are stored per host in the OpenClaw state dir:
$OPENCLAW_STATE_DIR/exec-approvals.json, or~/.openclaw/exec-approvals.jsonwhen the variable is unset.
관련 문서
주요 항목:
- CLI reference
- Exec approvals
실습 체크리스트
- 공식 문서와 로컬 버전을 대조합니다:
https://docs.openclaw.ai/cli/approvals - 관련 CLI는
openclaw --help및 하위 명령--help로 옵션을 확인합니다. - 설정 변경 시
openclaw config/openclaw doctor로 유효성을 검사합니다. - Gateway·채널·플러그인 변경 후에는 필요 시 Gateway를 재시작합니다.
자주 쓰는 명령·설정 예시
openclaw exec-policy show
openclaw exec-policy show --json
openclaw exec-policy preset yolo
openclaw exec-policy preset cautious --json
openclaw exec-policy set --host gateway --security full --ask off --ask-fallback full
openclaw approvals get
openclaw approvals get --node <id|name|ip>
openclaw approvals get --gateway
openclaw approvals pending
openclaw approvals resolve <id> <allow-once|allow-always|deny>
openclaw approvals pending
openclaw approvals pending --json
openclaw approvals resolve <id> allow-once
openclaw approvals resolve <id> allow-always
openclaw approvals resolve <id> deny --reason "Not expected during maintenance"
openclaw approvals set --file ./exec-approvals.json
openclaw approvals set --stdin <<'EOF'
{ version: 1, defaults: { security: "full", ask: "off", askFallback: "full" } }
EOF
openclaw approvals set --node <id|name|ip> --file ./exec-approvals.json
openclaw approvals set --gateway --file ./exec-approvals.json
openclaw approvals set --node <id|name|ip> --stdin <<'EOF'
{
defaultAction: "deny",
rules: [{ pattern: "hostname", action: "allow" }]
}
EOF
관련 링크
- 공식 원문: cli/approvals
- OpenClaw 문서 홈
이 가이드는 공식 문서를 한국어 학습용으로 재구성한 것입니다. 옵션 기본값·플래그 이름은 설치 버전에 따라 달라질 수 있습니다.