Skip to content

Latest commit

 

History

History
354 lines (262 loc) · 17.2 KB

File metadata and controls

354 lines (262 loc) · 17.2 KB

🦞 OpenClaw 입문 가이드 / Beginner Guide

🇰🇷 3분 안에: OpenClaw 가 뭔지, openclaw-workspace 와 뭐가 다른지, 처음 5분 동안 뭘 하면 되는지. 🇬🇧 In 3 minutes: what OpenClaw is, how it differs from openclaw-workspace, what to do in your first 5 minutes.

📖 목차 / Contents


🗺 이 문서를 처음 보신다면 / Document Map

이 문서는 OpenClaw 입문 가이드입니다 (3분 내 이해). "본체(OpenClaw) vs 워크스페이스(이 레포)" 구분을 먼저 잡고, 설치 후 "이제 뭐를 치면 되죠?" 까지 안내합니다.

🎯 권장 흐름: 위 TOC 의 처음 3개 항목 (정체 → 구분 → 첫 5분) 만 읽으면 개념 파악 완료. 설치는 QUICKSTART-ko.md / 수동 설치는 GUIDE-MANUAL-INSTALL.md / 웹에서 데이터 가져오기는 GUIDE-WEB-FETCH.md 클릭.


🇰🇷 한국어

OpenClaw 가 뭐예요?

OpenClaw = "내 컴퓨터 안에서 도는 코딩 비서 AI 에이전트" (오픈소스).

비유: ChatGPT 처럼 채팅으로 질문하면, OpenClaw 는 그냥 답만 하는 게 아니라 실제로 셸 명령을 실행하고 파일을 만들고 코드를 고칩니다. Cursor / Claude Code 같은 IDE 에이전트와 비슷하지만 백엔드를 자기 컴퓨터에 호스팅한다는 차이.

[사용자]  "이 폴더에 있는 파이썬 파일들 PEP8 로 정리해줘"
   │
   ▼
[OpenClaw]  ─▶ ollama / OpenAI 호출 → 계획 세움
            ─▶ 셸에서 black/ruff 실행
            ─▶ 결과를 사용자에게 보고

"OpenClaw" vs "openclaw-workspace" — 뭐가 달라요?

이건 처음에 다들 헷갈리는 부분입니다.

이름 누가 만듦 역할
OpenClaw OpenClaw 팀 AI 에이전트 본체 (Python, 웹UI). 저장소: github.com/openclaw/openclaw
openclaw-workspace (이 저장소) GoGoComputer OpenClaw 를 macOS 에서 한 줄로 설치·관리·보안하드닝 하는 래퍼

비유:

  • OpenClaw = 자동차
  • openclaw-workspace = "자동차 공장에서 차 꺼내고, 보험 들어주고, 매주 세차해주는 컨시어지"

여러분이 직접 OpenClaw 코드를 고치진 않을 가능성이 큼. 대부분의 사용자는 openclaw install 만 하면 OpenClaw 가 컨테이너에서 알아서 동작합니다.

처음 5분 동안 할 일

# 1) 설치 (git clone)
git clone https://github.com/GoGoComputer/openclaw-workspace.git ~/DEV/openclaw-workspace
mkdir -p ~/.local/bin
ln -sf ~/DEV/openclaw-workspace/openclaw-mgr/openclaw ~/.local/bin/openclaw

# 2) 시스템 점검
openclaw doctor

# 3) Docker · Ollama · OpenClaw 컨테이너까지 한 번에
openclaw install

# 4) 브라우저로 접속
open http://127.0.0.1:8000

이게 다입니다. 모르는 단어가 나오면:

OpenClaw 는 내 컴퓨터에 뭘 남기나요?

~/openclaw/                  # OpenClaw 소스코드 (git clone)
~/.openclaw-mgr/             # 이 도구의 상태·로그·.env (Homebrew 설치 시)
~/openclaw-backups/          # backup 명령 결과
~/.ollama/models/            # Ollama 모델 파일 (수 GB)
Docker Volumes               # OpenClaw 의 세션·DB (영구 데이터)

전부 지우려면: openclaw uninstall --purge (Docker / Ollama 까지 제거).

모드 정리 — "내가 어떤 모드에서 쓰고 있지?"

질문
내가 OpenClaw 코드를 고치고 싶다 git clone openclaw/openclaw 직접 + 컨테이너 마운트로 dev 모드. 이 가이드 범위 밖
그냥 OpenClaw 를 잘 쓰고 싶다 (대부분) openclaw install → 끝. openclaw self-update 로 갱신
한국 모델 (EXAONE/Solar) 쓰고 싶다 openclaw models add exaone3.5:7.8b solar-pro:22b
회사 보안상 외부 통신 다 막고 싶다 기본 isolated 그대로. 모델 다운 시만 network online

"OpenClaw 가 내 파일을 망가뜨리지 않나요?"

기본 설정에서:

  • 컨테이너 루트는 read_only → 컨테이너 안의 시스템 파일도 못 고침
  • 호스트의 ~/Documents, ~/.ssh 등은 마운트 안 됨 → 접근 자체가 불가
  • isolated 모드 → 외부에 데이터 못 보냄
  • 작업할 폴더를 명시적으로 마운트해야 OpenClaw 가 그 폴더만 만질 수 있음

자세히는 메인 README 의 🔒 보안 주의 참조.

일상 사용 명령 5개

언제 명령
매일 아침 (자동 — openclaw schedule enable 해두면 새벽 3시에 자동 update)
새 모델 추가 openclaw models add <이름>
컨테이너 정지 openclaw stop
다시 켜기 openclaw start
디스크가 꽉 참 openclaw clean

설치 끝났습니다 — 이제 어떻게 대화하죠?

./openclaw install 이 끝나면 두 컨테이너가 떠 있습니다:

컨테이너 역할 접속
openclaw-gateway HTTP API · 웹소켓 · 헬스 http://127.0.0.1:18789 (UI 가 있으면 여기) / http://127.0.0.1:18790 (브리지)
openclaw-cli 대화형 에이전트 (TTY) docker exec -it openclaw-openclaw-cli-1 bash 또는 claude

3가지 사용 방식

# 1) 헬스 체크 (가장 먼저)
curl -s http://127.0.0.1:18789/healthz   # OK 나오면 살아 있음

# 2) 컨테이너 CLI 로 대화 (가장 흔한 사용)
cd ~/DEV/openclaw
docker compose run --rm openclaw-cli tui    # 터미널 UI 채팅 (gateway 에 연결)
# 또는 첫 설정:
# docker compose run --rm openclaw-cli onboard
# 또는 한 줄:
# docker compose run --rm openclaw-cli agent --message "안녕"
#
# ⚠ `exec` 가 아니라 `run --rm` — openclaw-cli 컨테이너의 entrypoint(`node dist/index.js`)는
#   인자 없이 뜨면 help 출력 후 즉시 종료(`Exited (1)`)됩니다. 매번 새 컨테이너로 띄우세요.

# 3) 로그 보기 (디버그·요청 추적)
cd ~/DEV/openclawAgent/openclaw-workspace
./openclaw logs                     # Ctrl+C 로 종료

컨테이너 이름은 docker compose ps 로 확인하세요. 보통 openclaw-openclaw-cli-1 / openclaw-openclaw-gateway-1 입니다.

작업 파일은 어디?

  • 컨테이너 안 /home/node/.openclaw/workspace ↔ 호스트 ~/DEV/openclawAgent 가 양방향 마운트.
  • 에이전트가 만든 파일은 Finder 에서 ~/DEV/openclawAgent 로 바로 열림.
  • 토큰·세션은 ~/.openclaw (숨김) 에 저장.

OpenClaw UI/API 자세한 사용법은 본체 저장소 github.com/openclaw/openclaw 의 README 를 참조하세요. 본 워크스페이스는 컨테이너 기동·격리·백업·업데이트 만 책임집니다.

🌐 웹에서 뉴스·코스피 정보 가져오기 — 가능한가요?

네, 됩니다. 단 기본 isolated 모드에서는 차단되므로 잠깐 열어야 합니다.

openclaw network online --restart    # 1) 잠깐 열기
# OpenClaw UI 에서 "코스피 오늘 종가", "한겨레 1면 요약" 등 자유롭게
openclaw network isolated --restart   # 2) 끝나면 바로 잠그기 (습관화 권장)

📖 실전 예시(프롬프트 템플릿), 공식 API 연동, 자동화, 트러블슈팅은 GUIDE-WEB-FETCH.md 에 자세히 있습니다.

online 모드여도 여전히 보호되는

위험 online 에서도 차단됨?
다운로드한 악성 코드가 호스트(맥북) 파일 건드림 ✅ 차단 (컨테이너 격리, 호스트 마운트 없음)
~/.ssh, ~/Documents 등 접근 ✅ 차단 (마운트 자체 안 됨)
컨테이너 루트 파일시스템 영구 변경 ✅ 차단 (read_only: true)
권한 상승(sudo 류) ✅ 차단 (cap_drop, no-new-privileges)
LAN 의 다른 기기에서 접근 ✅ 차단 (127.0.0.1 만 바인딩)
임의 외부 서버 호출 ⚠️ 허용 (online 의 본질)
프롬프트 인젝션으로 데이터 외부 전송 ⚠️ 이론상 가능

즉, 도커 격리·파일 안전·권한 격리는 그대로 유지되고, 인터넷 통로만 해제됩니다. 작업 끝나면 바로 잠그는 습관이 핵심.

⚠️ 사용자가 직접 ~/Desktop/openclaw-share 같은 폴더를 마운트한 경우, 웹에서 받은 파일이 그 폴더에는 쓰일 수 있습니다 (그게 마운트의 목적). ~/.ssh 같은 민감 폴더는 절대 마운트하지 마세요.

다음에 읽을 것


🇬🇧 English

What is OpenClaw?

OpenClaw = "an open-source coding-assistant AI agent that runs on your own computer."

Like ChatGPT, but instead of just answering, OpenClaw actually runs shell commands, creates files, and edits code. Similar in spirit to Cursor / Claude Code, but you self-host the backend.

[user]  "tidy every Python file in this folder to PEP8"
   │
   ▼
[OpenClaw] ─▶ calls Ollama / OpenAI → plans
           ─▶ runs black/ruff in the shell
           ─▶ reports back

"OpenClaw" vs "openclaw-workspace" — what's the difference?

This trips up everyone at first.

Name Maintainer Role
OpenClaw OpenClaw team The AI agent itself (Python, web UI). Repo: github.com/openclaw/openclaw
openclaw-workspace (this repo) GoGoComputer A macOS wrapper that installs, manages, and security-hardens OpenClaw with one command

Analogy:

  • OpenClaw = the car
  • openclaw-workspace = "the concierge service that delivers it from the factory, insures it, and washes it every week"

Most users will never edit OpenClaw's code directly. Just run openclaw install and OpenClaw runs in a container by itself.

Your first 5 minutes

# 1) install (git clone)
git clone https://github.com/GoGoComputer/openclaw-workspace.git ~/DEV/openclaw-workspace
mkdir -p ~/.local/bin
ln -sf ~/DEV/openclaw-workspace/openclaw-mgr/openclaw ~/.local/bin/openclaw

# 2) check the system
openclaw doctor

# 3) Docker, Ollama, OpenClaw container — all in one step
openclaw install

# 4) open in your browser
open http://127.0.0.1:8000

That's it. If you hit unfamiliar terms:

What does OpenClaw leave on my computer?

~/openclaw/                  # OpenClaw source (git clone)
~/.openclaw-mgr/             # this tool's state, logs, .env (Homebrew install)
~/openclaw-backups/          # output of `openclaw backup`
~/.ollama/models/            # Ollama model files (several GB)
Docker Volumes               # OpenClaw sessions / DB (persistent data)

To wipe everything: openclaw uninstall --purge (also removes Docker / Ollama).

Which mode am I in?

Question Answer
I want to modify OpenClaw's code Clone openclaw/openclaw directly and mount it as a dev volume. Out of scope here
I just want to use OpenClaw well (most users) openclaw install → done. Update with openclaw self-update
I want to use Korean models (EXAONE/Solar) openclaw models add exaone3.5:7.8b solar-pro:22b
Corporate policy blocks all outbound Stay on the default isolated mode. Use network online only when pulling models

"Will OpenClaw mess up my files?"

By default:

  • Container rootfs is read_only → can't even modify the container's own system files
  • Your host's ~/Documents, ~/.ssh, etc. are not mounted → genuinely unreachable
  • isolated mode → no outbound network, no exfiltration
  • You must explicitly mount any folder you want OpenClaw to touch

Details: see the main README's 🔒 Security section.

Five everyday commands

When Command
Every morning (automatic — openclaw schedule enable runs update at 3 AM)
Add a new model openclaw models add <name>
Stop the container openclaw stop
Start it again openclaw start
Disk getting full openclaw clean

🌐 Browsing the web for news / stock prices — does it work?

Yes — but the default isolated mode blocks the internet, so you have to flip it temporarily.

openclaw network online --restart    # 1) open the gate
# In the OpenClaw UI:  "summarize today's NYT front page", "what's KOSPI today?"
openclaw network isolated --restart   # 2) lock back down (build the habit)

📖 Real-world prompts, official APIs, automation, and troubleshooting live in GUIDE-WEB-FETCH.md.

What's still protected even in online mode

Risk Blocked in online?
Downloaded malware touching host (Mac) files ✅ Blocked (container isolation, no host mounts)
Access to ~/.ssh, ~/Documents, etc. ✅ Blocked (not mounted at all)
Persistent changes to container rootfs ✅ Blocked (read_only: true)
Privilege escalation (sudo-like) ✅ Blocked (cap_drop, no-new-privileges)
Other devices on your LAN reaching it ✅ Blocked (127.0.0.1 only)
Calling arbitrary external servers ⚠️ Allowed (that's the point of online)
Prompt-injection-driven exfiltration ⚠️ Theoretically possible

In other words, Docker isolation, file safety, and privilege boundaries stay intact; only the internet gate is opened. Habit: lock it back down right after you finish.

⚠️ If you've explicitly mounted a folder like ~/Desktop/openclaw-share, web-fetched files can land there (that's the mount's purpose). Never mount sensitive folders like ~/.ssh.

What to read next


🔗 관련 문서 / Related docs

문서 무엇이 있나
🌱 처음부터 / From zero 터미널·클릭·파일 개념부터 차근차근 (KO+EN)
🚀 빠른 시작 (KO) 터미널 열기 → 5개 명령 → 한 줄 설치
🚀 Quickstart (EN) Open terminal → 5 commands → one-liner install
🪜 완전 수동 설치 brew/스크립트 없이 직접 다운 (KO+EN, 프로덕션 부록)
🐳 Docker 기초 컨테이너·이미지·compose 3분 가이드
🧠 Ollama 기초 로컬 LLM 데몬 사용법
🌐 웹 정보 가져오기 / surf 코스피·뉴스·환율·논문 — surf 샌드박스 명령 포함
🎨 크리에이티브 파이프라인 Pinterest → 나노바나나(4창) → Figma 자동 배치
🎬 쇼츠 자동화 Pinterest → 미리캔버스 → CapCut → 9:16 MP4
🚑 트러블슈팅 흔한 오류와 해결 명령
🧠 아키텍처 디스패처·멱등 설계·compose override
🤝 기여 가이드 (입문) 오타·번역·베타테스트도 환영
🐙 기여 가이드 (코드) 코드 스타일·PR 절차
📦 릴리스 노트 v0.1.0 변경 사항

⬆️ README (KO) · README (EN)