OpenClaw CLI 명령어: 전체 참조 가이드

OpenClaw's 명령줄 인터페이스는 AI 어시스턴트를 관리하는 기본 도구입니다. 게이트웨이 시작부터 채널 구성, 자동화 설정까지 CLI에서 모두 처리할 수 있습니다.
이 참조 문서는 실용적인 예제와 함께 중요한 모든 명령어를 다룹니다. 필요할 때 빠르게 찾아볼 수 있도록 북마크해 두세요.
설치 및 확인
OpenClaw를 설치하고 정상 작동하는지 확인하세요
OpenClaw 설치:
npm install -g openclaw
설치 확인:
openclaw --version
openclaw --help
워크스페이스 초기화:
cd ~/.openclaw # Or your preferred location
openclaw init
기본 구성 파일이 포함된 워크스페이스 구조가 생성됩니다.
게이트웨이 명령어
OpenClaw 게이트웨이 데몬 제어
게이트웨이는 모든 메시징과 AI 상호작용을 처리하는 핵심 서비스입니다.
게이트웨이 시작:
openclaw gateway start
게이트웨이 중지:
openclaw gateway stop
게이트웨이 재시작:
openclaw gateway restart
게이트웨이 상태 확인:
openclaw gateway status
게이트웨이 로그 보기:
openclaw gateway logs
openclaw gateway logs --follow # Tail logs
openclaw gateway logs --lines 100 # Last 100 lines
채널 구성
메시징 플랫폼을 OpenClaw에 연결하세요
연결된 채널 목록 보기:
openclaw channels status
Telegram 구성:
openclaw config set telegram.enabled true
openclaw config set telegram.botToken "your-token"
Discord 구성:
openclaw config set discord.enabled true
openclaw config set discord.botToken "your-token"
Slack 구성:
openclaw config set slack.enabled true
openclaw config set slack.botToken "xoxb-your-token"
openclaw config set slack.signingSecret "your-secret"
채널 연결 테스트:
openclaw channels test telegram
크론 작업 (예약 작업)
반복되는 AI 작업 예약하기
모든 크론 작업 목록 보기:
openclaw cron list
크론 작업 추가:
openclaw cron add "job-name" "0 9 * * *" "Your prompt here"
크론 표현식 형식:
* * * * *
│ │ │ │ │
│ │ │ │ └── 요일 (0-7, 0과 7은 일요일)
│ │ │ └──── 월 (1-12)
│ │ └────── 일 (1-31)
│ └──────── 시 (0-23)
└────────── 분 (0-59)
일반적인 스케줄:
0 9 * * *- 매일 오전 9시0 9 * * 1-5- 평일 오전 9시0 */2 * * *- 2시간마다0 0 1 * *- 매월 1일
크론 작업 삭제:
openclaw cron remove "job-name"
크론 작업 즉시 실행:
openclaw cron run "job-name"
설정 관리
OpenClaw 설정 관리하기
현재 설정 보기:
openclaw config show
특정 설정 값 가져오기:
openclaw config get ai.model
설정 값 지정하기:
openclaw config set ai.model "claude-sonnet-4-20250514"
일반적인 설정:
openclaw config set ai.provider anthropic
openclaw config set ai.model claude-sonnet-4-20250514
openclaw config set anthropic.apiKey "sk-ant-..."
openclaw config set tools.browser.enabled true
openclaw config set tools.filesystem.enabled true
openclaw config set tools.exec.enabled true
openclaw config set memory.enabled true
openclaw config set memory.maxAge "30d"
설정 초기화:
openclaw config reset
페어링 및 접근 제어
AI 어시스턴트에 접근할 수 있는 사용자 관리하기
대기 중인 페어링 요청 목록 보기:
openclaw pairing list
페어링 요청 승인:
openclaw pairing approve telegram ABC123
페어링 요청 거부:
openclaw pairing reject telegram ABC123
승인된 사용자 목록:
openclaw pairing approved
접근 권한 취소:
openclaw pairing revoke telegram user_id
도구 관리
AI 도구 활성화 및 설정
사용 가능한 도구 목록:
openclaw tools list
도구 활성화:
openclaw tools enable browser
openclaw tools enable gmail
openclaw tools enable exec
도구 비활성화:
openclaw tools disable exec
도구 설정 구성:
openclaw tools config browser.headless true
openclaw tools config exec.approvalMode prompt
도구 테스트:
openclaw tools test browser
문제 해결 명령어
일반적인 문제 진단 및 해결
시스템 상태 확인:
openclaw doctor
API 연결 확인:
openclaw test api
세션 데이터 삭제:
openclaw sessions clear
기본값으로 초기화:
openclaw reset --soft # Keep data, reset config
openclaw reset --hard # Full reset (destructive)
디버그 모드:
openclaw gateway start --debug
설정 내보내기:
openclaw config export > backup.json
설정 가져오기:
openclaw config import backup.json
결론
효율적인 AI 어시스턴트 관리를 위한 OpenClaw CLI 마스터하기
이 문서는 OpenClaw를 매일 사용하는 데 필요한 핵심 CLI 명령어를 다룹니다. AI 어시스턴트를 관리할 때 빠르게 찾아볼 수 있도록 북마크해 두세요.
기억해야 할 주요 명령어:
openclaw gateway start/stop/status- 데몬 관리openclaw config set/get- 설정 구성openclaw cron add/list/remove- 작업 예약openclaw channels status- 연결 상태 확인openclaw doctor- 문제 해결
계속 학습하기:
- VPS 설정 가이드 배포를 위한
- 자동화 가이드 크론 작업을 위한
- Telegram 설정 모바일 접속을 위한
CLI를 마스터하면 AI 어시스턴트가 여러분의 작업 흐름의 확장이 됩니다.
자주 묻는 질문
CLI 관련 자주 묻는 질문
설정 파일은 어디에 저장되나요?
기본적으로 ~/.openclaw/에 저장됩니다. 변경하려면 OPENCLAW_HOME 환경 변수를 사용하세요.
OpenClaw는 어떻게 업데이트하나요?
npm update -g openclaw
openclaw gateway restart
여러 인스턴스를 실행할 수 있나요?
네, 각 인스턴스마다 서로 다른 워크스페이스 디렉터리와 포트를 사용하세요.
설정은 어떻게 백업하나요?
cp -r ~/.openclaw ~/.openclaw-backup
또는 openclaw config export 를 사용하여 설정만 백업할 수 있습니다.
명령어가 멈추면 어떻게 하나요?
다음 명령으로 게이트웨이 로그를 확인하세요: openclaw gateway logs에 저장됩니다. 변경하려면 --debug 플래그를 사용하면 상세한 출력을 볼 수 있습니다.
더 많은 글
OpenClaw AWS 설정 완벽 가이드

AWS에서 OpenClaw를 설정하기 위한 완벽 가이드입니다. 스팟 인스턴스 구성, 비용 최적화 및 단계별 안내가 포함되어 있습니다.
OpenClaw에서 도구 체이닝으로 AI 워크플로 구축하기
도구와 함수 호출을 연결하여 데이터 추출부터 콘텐츠 생성 및 배포까지 강력한 다단계 AI 자동화 워크플로를 구축하는 기술을 마스터하세요.
셀프 호스팅 AI 어시스턴트를 위한 비용 최적화 가이드: 적은 예산으로 Claude 운영하기
스마트 모델 라우팅, 캐싱, 배치 처리, OpenClaw 전용 최적화 등 셀프 호스팅 AI 어시스턴트의 API 비용을 줄여 Claude를 저렴하게 운영하기 위한 실용적인 전략을 소개합니다.