📋 전체 참조 · 2026

OpenClaw Commands: 전체 2026 참조 가이드(v2026.4.21)

실제 파이프라인 예제, CI/CD 패턴 및 전체 v2026.4.21 구문 차이점이 포함된 게이트웨이, 에이전트, 채널, 브라우저, 셸 및 파일 명령 등 수행할 작업별로 구성된 모든 OpenClaw CLI 명령입니다.

📅 업데이트 날짜: 2026년 4월⏱ 15분 읽기✍️ EasyClaw 사설
  • X(Twitter) icon
  • Facebook icon
  • LinkedIn icon
  • Copy link icon

OpenClaw Commands이란 무엇입니까? (그리고 문서만으로는 충분하지 않은 이유)

공식 OpenClaw 문서는 철저합니다. 또한 에이전트가 오후 11시에 다운되어 10초 안에 정확한 플래그 구문이 필요한 순간이 아닌 완전성을 위해 구조화되었습니다.

OpenClaw 명령은 메시징 채널, 브라우저, 파일 및 외부 API 전반에 걸쳐 워크플로를 자동화하는 AI 에이전트를 배포하기 위한 플랫폼인 OpenClaw 에이전트 런타임에 대한 CLI 인터페이스입니다. CLI는 초기 설정부터 생산 모니터링까지 모든 것을 다룹니다.

이 가이드는 공식 문서에서 하지 않는 작업을 수행합니다. 해야 할 일, 스크립팅의 출력 형식을 설명하고 실제 자동화 파이프라인에서 명령이 어떻게 연결되는지 보여줍니다.

60초 만에 알아보는 OpenClaw CLI 아키텍처

OpenClaw CLI는 표준 3단계 계층 구조를 따릅니다.

openclaw <command> <subcommand> [flags]
  • Entry point: openclaw
  • Commands: 명사 그룹 (gateway, agent, channel, skill, model, browser, file)
  • Flags: 동작 수정, 전역적이거나 명령별일 수 있음

Config File Precedence (highest to lowest)

  1. CLI 플래그가 직접 전달됨
  2. 환경 변수(OPENCLAW_*)
  3. 로컬 구성 파일(.openclaw/config.json)
  4. 전역 구성(~/.openclaw/config.json)

openclaw config show을 사용하여 런타임에 해결된 구성을 언제든지 검사할 수 있습니다.

Global Flags Reference

깃발 유형 Default 설명
--config ~/.openclaw/config.json Path to config file
--윤곽 기본 Named config profile to use
--산출 솔직한 Output 형식: plain, json, table
--로그 수준 정보 Log verbosity: debug, info, warn, error
--색상 없음 부울 거짓 Disable ANSI color output
--조용한 부울 거짓 Suppress non-essential output
--timeout 정수 30 Command timeout in seconds
--작업 공간 ./작업공간 Override workspace directory path
--드라이런 부울 거짓 Preview actions without executing
--예 부울 거짓 Skip confirmation prompts

핵심 명령 참조(완료할 작업별로 그룹화)

설치, 초기화 및 구성 명령

# Install OpenClaw CLI (npm) npm install -g openclaw # Initialize a new project with guided setup openclaw init # Initialize non-interactively with defaults openclaw init --yes --profile production # Show current resolved configuration openclaw config show # Set a config value openclaw config set gateway.port 8080 # Get a specific config value openclaw config get gateway.port # Generate a blank config file template openclaw config init --output .openclaw/config.json # Validate current config file openclaw config validate # List all environment variable overrides in effect openclaw config env

Environment variable pattern: 구성 키 앞에 OPENCLAW_을 붙이고 중첩하려면 밑줄을 사용하세요. 예: OPENCLAW_GATEWAY_PORT=8080.

Gateway & Agent Management Commands

게이트웨이는 HTTP/WebSocket 호스트 프로세스입니다. 에이전트는 에이전트가 관리하는 작업 실행 작업자입니다.

# Start the gateway (foreground) openclaw gateway start # Start gateway as background daemon openclaw gateway start --daemon # Stop the gateway openclaw gateway stop # Restart the gateway (applies config changes) openclaw gateway restart # Check gateway status openclaw gateway status # Stream gateway logs openclaw gateway logs --follow # Tail last N lines openclaw gateway logs --tail 100 # List all registered agents openclaw agent list # Start a specific agent openclaw agent start my-agent # Stop an agent gracefully openclaw agent stop my-agent # Force-kill an unresponsive agent openclaw agent stop my-agent --force # View agent runtime status and uptime openclaw agent status my-agent # Stream logs for a specific agent openclaw agent logs my-agent --follow # Reload agent config without full restart openclaw agent reload my-agent

채널 설정 Commands(Telegram, WhatsApp, Discord, Google 채팅, Synology)

업데이트 날짜: v2026.4.21 구문 — --provider 플래그는 이전 2026 빌드의 레거시 --type 플래그를 대체합니다.

# List all configured channels openclaw channel list # Add a Telegram channel openclaw channel add --provider telegram --token YOUR_BOT_TOKEN --name my-telegram # Add a WhatsApp channel (via WhatsApp Cloud API) openclaw channel add --provider whatsapp --token YOUR_TOKEN --phone-id YOUR_PHONE_ID --name my-whatsapp # Add a Discord channel openclaw channel add --provider discord --token YOUR_BOT_TOKEN --guild-id YOUR_GUILD_ID --name my-discord # Add Google Chat channel openclaw channel add --provider google-chat --credentials ./service-account.json --space-id YOUR_SPACE --name my-gchat # Add Synology Chat channel openclaw channel add --provider synology --webhook-url YOUR_WEBHOOK_URL --name my-synology # Test a channel connection openclaw channel test my-telegram # Remove a channel openclaw channel remove my-telegram # Update channel config (e.g., rotate token) openclaw channel update my-telegram --token NEW_TOKEN # Enable/disable a channel without removing it openclaw channel disable my-telegram openclaw channel enable my-telegram

Skills & Model Management Commands

# List installed skills openclaw skill list # Search the skill registry openclaw skill search "web scrape" # Install a skill openclaw skill install web-scraper # Install a specific version openclaw skill install web-scraper@2.1.0 # Update a skill openclaw skill update web-scraper # Update all skills openclaw skill update --all # Remove a skill openclaw skill remove web-scraper # Show skill details and required config openclaw skill info web-scraper # List available models openclaw model list # Set the default model openclaw model use gpt-4o # Set model for a specific agent openclaw model use claude-3-7-sonnet --agent my-agent # Show current model config openclaw model show

Browser Control & Shell Execution Commands

이것이 바로 OpenClaw이 단순한 에이전트 플랫폼과 차별화되는 부분입니다. 브라우저 및 셸 명령을 사용하면 CLI를 종료하지 않고도 진정한 엔드투엔드 자동화가 가능합니다.

# Launch a managed browser session openclaw browser open --url https://example.com --session my-session # Take a screenshot openclaw browser screenshot --session my-session --output ./screenshot.png # Execute JavaScript in the browser context openclaw browser exec --session my-session --script "document.title" # Click an element by CSS selector openclaw browser click --session my-session --selector "#submit-btn" # Fill a form field openclaw browser fill --session my-session --selector "#email" --value "user@example.com" # Extract page content openclaw browser extract --session my-session --selector "article.main" --format text # Close a browser session openclaw browser close --session my-session # Run a shell command through the OpenClaw runtime openclaw shell exec --cmd "python process.py --input data.json" # Run shell command with timeout openclaw shell exec --cmd "npm run build" --timeout 120 # List active shell processes openclaw shell list

Note: 브라우저 세션은 --session ID별로 격리됩니다. 상태(쿠키, 인증 토큰, 페이지 컨텍스트)를 유지하기 위해 명령 전체에서 동일한 세션 ID를 재사용합니다.

File & Workspace Management Commands

# List workspace files openclaw file list # Read a file from the workspace openclaw file read output/report.md # Write content to a workspace file openclaw file write output/result.txt --content "processed" # Copy a file within the workspace openclaw file copy input/raw.json output/processed.json # Delete a workspace file openclaw file delete output/temp.json # Watch a file for changes (useful in pipelines) openclaw file watch output/result.txt --on-change "openclaw agent trigger my-agent" # Export workspace to a zip archive openclaw workspace export --output ./backup.zip # Import workspace from archive openclaw workspace import --input ./backup.zip

Real-World Workflow Examples (Command Chaining)

Automating a Content Pipeline End-to-End

이 파이프라인은 URL을 스크랩하고, LLM을 통해 콘텐츠를 처리하고, 결과를 Telegram 채널에 게시합니다. 이 모든 작업이 단일 셸 스크립트에서 이루어집니다.

#!/bin/bash set -e TARGET_URL="https://example.com/news" CHANNEL="my-telegram" WORKSPACE_OUT="output/summary.md" # Step 1: Scrape the page openclaw browser open --url "$TARGET_URL" --session scrape-session openclaw browser extract --session scrape-session --selector "article" --format text > workspace/input/raw.txt openclaw browser close --session scrape-session # Step 2: Process with LLM via agent openclaw agent trigger content-summarizer --input workspace/input/raw.txt --output "$WORKSPACE_OUT" --wait # Step 3: Post result to Telegram SUMMARY=$(openclaw file read "$WORKSPACE_OUT") openclaw channel send "$CHANNEL" --message "$SUMMARY" echo "Pipeline complete."

Cron + OpenClaw 명령을 사용하여 작업 예약

대부분의 팀은 예상보다 훨씬 늦게 크론에 도달합니다. 복사-붙여넣기 패턴은 다음과 같습니다.

# Run a daily content pipeline at 7am 0 7 * * * /usr/local/bin/openclaw agent trigger daily-report --wait --quiet >> /var/log/openclaw-cron.log 2>&1 # Restart gateway every Sunday at 2am (maintenance window) 0 2 * * 0 /usr/local/bin/openclaw gateway restart --yes >> /var/log/openclaw-restart.log 2>&1 # Health check every 5 minutes, alert if failing */5 * * * * /usr/local/bin/openclaw gateway status --output json | \\ grep -q '"status":"running"' || \\ /usr/local/bin/openclaw channel send ops-alerts --message "Gateway DOWN"

Idempotency tip: 예약하기 전에 --dry-run을 사용하여 cron 명령 동작을 확인하세요. 대화형 프롬프트를 건너뛰려면 모든 cron 명령에 --yes을 추가하세요. 로그에서 플래그 오류를 포착하려면 항상 stdout(2>&1)과 함께 stderr을 리디렉션하세요.

Scripting & CI/CD Integration

Output 형식 및 Exit Codes

모든 OpenClaw 명령은 기계가 읽을 수 있는 출력을 위해 --output json을 지원합니다.

# Get agent status as JSON openclaw agent status my-agent --output json # Example output: # {"agent":"my-agent","status":"running","uptime":3842,"pid":19204}

Exit Codes

암호 의미
0성공
1General error
2Config or flag validation failure
3Agent/gateway not reachable
4Timeout exceeded
5Permission denied

Piping into Shell Scripts and GitHub Actions

# Check agent health and branch on status STATUS=$(openclaw agent status my-agent --output json --quiet | jq -r '.status') if [ "$STATUS" != "running" ]; then openclaw agent start my-agent fi

GitHub Actions example:

- name: Trigger OpenClaw content agent run: | openclaw agent trigger content-agent --input ./keywords.json --output ./output/article.md --wait --timeout 300 --output-format json env: OPENCLAW_API_KEY: \ secrets.OPENCLAW_API_KEY OPENCLAW_GATEWAY_URL: \ secrets.OPENCLAW_GATEWAY_URL

프로덕션의 보안 및 권한

다중 사용자 또는 서버 환경에서 OpenClaw을 실행하려면 의도적인 권한 범위 지정이 필요합니다. 기본값은 로컬 개발에 최적화되어 있습니다.

# Generate a scoped API key (read-only) openclaw auth key create --name ci-readonly --scopes "agent:read,channel:read" # Generate a key with specific agent access only openclaw auth key create --name deploy-bot --scopes "agent:trigger:my-agent" # List active API keys openclaw auth key list # Revoke a compromised key immediately openclaw auth key revoke KEY_ID # Store API key in system keychain (avoid plaintext in config) openclaw config set-secret api_key YOUR_KEY # Restrict workspace file access openclaw config set security.workspace_isolation true # Disable shell execution in production (if not needed) openclaw config set security.allow_shell_exec false # Enable audit logging openclaw config set logging.audit true openclaw config set logging.audit_path /var/log/openclaw/audit.log

생산 체크리스트

✅ 쉘 실행

사용 사례에서 명시적으로 요구하지 않는 한 security.allow_shell_exec false을 설정하세요.

✅ 범위가 지정된 API 키

API 키를 생성할 때 --scopes을 사용하십시오. CI/CD에서는 절대 루트 키를 사용하지 마십시오.

✅ 감사 로깅

첫 번째 프로덕션 배포 전에 logging.audit을 활성화하세요.

✅ 키 순환

노출이 의심되는 경우 openclaw auth key revoke + openclaw auth key create를 사용하여 키를 순환합니다.

Troubleshooting: 증상 → 명령 수정 결정 트리

Agent Not Responding

openclaw agent status my-agent → status: "stopped" → openclaw agent start my-agent → status: "error" → openclaw agent logs my-agent --tail 50 → status: "running" but unresponsive → openclaw agent stop my-agent --force && openclaw agent start my-agent

Channel Not Receiving Messages

openclaw channel test my-telegram → connection failed → openclaw channel update my-telegram --token NEW_TOKEN → connection ok but no messages → openclaw gateway logs --follow (check routing errors) → 403 error → check token scopes, re-add channel

Skill Not Loading

openclaw skill info my-skill → not installed → openclaw skill install my-skill → version conflict → openclaw skill update my-skill → config missing → openclaw skill info my-skill (check required fields), then openclaw config set

게이트웨이가 시작되지 않음

openclaw config validate → invalid config → fix reported field, retry → port conflict → openclaw config set gateway.port 8081 → permission error → check OPENCLAW_ env vars, run openclaw config env

v2026.4.21의 변경 사항 — 이전 2026 빌드와의 명령 차이점

2026년 1월 또는 2월 날짜의 치트시트로 작업하는 경우 다음 변경 사항으로 인해 스크립트가 중단됩니다.

영역 이전 구문(2026년 4월 이전) 새로운 구문(v2026.4.21)
Channel add --전보 유형 --공급자 전보
Model switch openclaw 에이전트 모델 사용 openclaw 모델 사용 --agent
Shell execute openclaw exec 쉘 openclaw 쉘 실행
Key creation openclaw 인증 생성 키 openclaw 인증 키 생성
Output flag --json 형식 --출력 JSON
Config secrets openclaw 구성 설정 키 openclaw 구성 비밀 설정

New in v2026.4.21

  • openclaw file watch 명령(파일 변경 트리거)
  • --dry-run 전역 플래그가 모든 변경 명령에 추가되었습니다.
  • security.workspace_isolation 구성 키
  • logging.audit을 통한 감사 로깅
  • openclaw channel disable / openclaw channel enable(이전에는 전체 제거 + 다시 추가가 필요함)

Deprecated (removed in v2026.4.21)

  • openclaw agent reload --hardopenclaw agent stop --force && openclaw agent start 사용
  • openclaw config get-allopenclaw config show로 대체됨

최종 참조: 인쇄 가능한 OpenClaw Commands 치트시트

명령 통사론 키 Flags Example
Init project 오픈 클로 초기화 --예, --profile openclaw init --예
Show config openclaw 구성 표시 --출력 JSON openclaw 구성 표시
Start gateway OpenClaw 게이트웨이 시작 --악마 openclaw 게이트웨이 시작 --daemon
Agent status OpenClaw 에이전트 상태 --출력 JSON openclaw 에이전트 상태 my-agent --output json
Agent logs openclaw 에이전트 로그 --따라가다, --tail openclaw 에이전트는 my-agent --tail 50을 기록합니다.
Add channel openclaw 채널 추가 --공급자, --token openclaw 채널 추가 --provider 텔레그램 --token XXX
테스트 채널 OpenClaw 채널 테스트 openclaw 채널 테스트 my-telegram
Send message openclaw 채널 전송 --메시지 openclaw 채널에서 my-telegram --message "done" 보내기
Install skill OpenClaw 스킬 설치 @버전 openclaw 기술 설치 web-scraper@2.1.0
Set model OpenClaw 모델 사용 --대리인 openclaw 모델은 gpt-4o --agent my-agent를 사용합니다.
Browser open openclaw 브라우저 열기 --url, --session openclaw 브라우저 열기 --url https://example.com --session s1
Extract content OpenClaw 브라우저 추출 --선택기, --format openclaw 브라우저 extract --session s1 --selector "article"
Run shell cmd openclaw 쉘 실행 --cmd, --timeout openclaw 쉘 exec --cmd "python run.py"
Read file openclaw 파일 읽기 openclaw 파일 읽기 출력/result.md
Trigger agent openclaw 에이전트 트리거 --입력, --출력, --대기 openclaw 에이전트 트리거 파이프라인 --기다림
Create API key openclaw 인증 키 생성 --이름, --범위 openclaw 인증 키 생성 --name ci --scopes "agent:read"
Validate config openclaw 구성 검증 openclaw 구성 검증

EasyClaw이 에이전트 워크플로를 실행하는 더 스마트한 방법인 이유

OpenClaw은 강력한 CLI 기본 요소를 제공합니다. EasyClaw은 자정에 bash 스크립트를 함께 연결하지 않고도 브라우저 자동화, LLM 처리, 채널 전달 등의 파이프라인을 실행하는 데스크톱 기반 AI 에이전트 레이어를 제공합니다.

  • OpenClaw 기본 요소 위에 시각적 파이프라인 빌더
  • 로컬로 실행 - 클라우드 공급업체에 종속되지 않고 사용자당 가격 책정이 없음
  • 내장된 기술 마켓플레이스: 몇 초 만에 설치, 구성, 실행
  • 기본 예약, 재시도 논리 및 즉시 사용 가능한 감사 로그
  • GPT-4o, Claude, Gemini 또는 자체 호스팅 LLM 등 모든 모델에서 작동합니다.
EasyClaw을 무료로 사용해 보세요 →

Frequently Asked Questions

Q: openclaw gateway startopenclaw agent start의 차이점은 무엇입니까?

A: 게이트웨이는 HTTP/WebSocket 런타임을 관리하는 호스트 프로세스입니다. 한번 시작해 보세요. 에이전트는 해당 게이트웨이에 등록된 개별 작업 작업자입니다. 에이전트를 독립적으로 시작, 중지 및 모니터링할 수 있습니다. 게이트웨이를 서버로 생각하고 에이전트를 여기서 실행되는 애플리케이션 프로세스로 생각하세요.

Q: v2026.4.21로 업그레이드한 후 스크립트가 손상되었습니다. 무엇이 바뀌었나요?

A: v2026.4.21에서는 여러 명령 서명이 변경되었습니다. 가장 일반적인 주요 변경 사항은 채널 추가의 경우 --type--provider, 전역적으로는 --format json--output json, openclaw exec shellopenclaw shell exec입니다. 위의 변경 로그 섹션에서 전체 차이점 표를 참조하세요.

Q: CI/CD 파이프라인에서 OpenClaw 명령을 비대화형으로 실행하려면 어떻게 해야 합니까?

A: --yes 플래그를 추가하여 확인 프롬프트를 건너뛰고, 컴퓨터에서 구문 분석 가능한 출력에 --output json을 사용하고, OPENCLAW_API_KEYOPENCLAW_GATEWAY_URL 환경 변수를 통해 자격 증명을 전달합니다. 버전 관리용으로 커밋된 구성 파일에 원시 키를 저장하지 마세요.

Q: 기존 인증 세션에서 OpenClaw 브라우저 명령을 사용할 수 있습니까?

답: 그렇습니다. 브라우저 세션은 --session ID로 격리됩니다. 명령 전반에 걸쳐 동일한 세션 ID를 재사용하는 한 쿠키, 인증 토큰 및 페이지 상태는 유지됩니다. 세션은 명시적으로 openclaw browser close --session SESSION_ID을 호출하거나 게이트웨이가 다시 시작될 때까지 지속됩니다.

Q: 프로덕션에서 API 키 순환을 처리하는 가장 안전한 방법은 무엇입니까?

A: 먼저 openclaw auth key create --name new-key --scopes "..."을 사용하여 새 키를 생성하고 비밀 저장소를 업데이트하고 새 키가 작동하는지 확인한 다음 openclaw auth key revoke OLD_KEY_ID을 사용하여 이전 키를 취소합니다. 새 키가 작동하는지 확인하기 전에 이전 키를 취소하지 마십시오.

Q: cron에서 자동으로 실패하는 파이프라인을 디버깅하려면 어떻게 해야 합니까?

A: 항상 cron 항목(>> /var/log/openclaw-cron.log 2>&1)에서 stdout과 stderr을 모두 리디렉션하십시오. 숨겨진 오류를 표시하려면 먼저 --log-level debug을 사용하여 정확한 cron 명령을 수동으로 실행하세요. openclaw config env을 사용하여 cron 실행 컨텍스트에서 환경 변수가 올바르게 확인되는지 확인하세요.

Q: CI/CD 키가 트리거할 수 있는 에이전트를 제한할 수 있습니까?

답: 그렇습니다. 키를 생성할 때 세분화된 범위를 사용하세요: openclaw auth key create --name deploy-bot --scopes "agent:trigger:my-specific-agent". 이렇게 하면 손상된 CI 키가 관련 없는 에이전트를 트리거하거나 채널 구성에 액세스하는 것을 방지할 수 있습니다.

최종 생각

OpenClaw CLI는 최초 설정부터 프로덕션 보안 강화까지 완벽한 런타임 제어 표면입니다. 도전은 결코 능력이 아니었습니다. 불편한 시간에 무언가가 중단될 때 어떤 명령에 도달해야 하는지 항상 알고 있었습니다.

이 페이지를 북마크에 추가하세요. 치트시트 표를 빠른 참조로 사용하세요. 파이프라인이 실패하면 문제 해결 결정 트리부터 시작하세요. 그러면 1분 안에 올바른 명령을 내릴 수 있습니다.

그리고 실제 워크플로를 구축하는 것보다 파이프라인 스크립트를 유지 관리하는 데 더 많은 시간을 소비하는 경우 EasyClaw을 사용해 보세요. 이는 오케스트레이션 계층을 처리하므로 에이전트가 실제로 수행하는 작업에 집중할 수 있습니다.

빠른 요약: 북마크에 추가할 Commands 키

  • openclaw config validate — 게이트웨이를 다시 시작하기 전에 항상 이를 실행합니다.
  • openclaw agent logs my-agent --tail 50 — 에이전트가 잘못된 행동을 할 때 첫 번째 중지
  • openclaw channel test my-channel — 채널 문제를 확인하기 위해 로그를 읽는 것보다 빠릅니다.
  • openclaw config show --output json — 모든 환경에서 해결된 구성을 확인합니다.
  • openclaw auth key revoke KEY_ID — 의심되는 키 노출에 대한 즉각적인 대응