🦞

OpenClaw μΉ˜νŠΈμ‹œνŠΈ

μ˜€ν”ˆμ†ŒμŠ€ 자율 AI μ—μ΄μ „νŠΈ κ²Œμ΄νŠΈμ›¨μ΄ μ™„λ²½ κ°€μ΄λ“œ: OpenClaw μ•„ν‚€ν…μ²˜ 및 둜컬/Docker 배포, λ©€ν‹° ν”Œλž«νΌ 봇 연동(TelegramΒ·SlackΒ·DiscordΒ·WhatsApp), Bring-Your-Own-LLM(Ollama, LM Studio, Claude, GPT), μ‹œμŠ€ν…œ 도ꡬ μ‹€ν–‰(Shell 터미널, λΈŒλΌμš°μ € μ œμ–΄, 파일 IO), μŠ€ν‚¬(Skills) ν™•μž₯ 및 λ³΄μ•ˆ μƒŒλ“œλ°•μŠ€

--views
λ‹¨μˆ˜:
#openclaw#ai-agent#agentic#automation#local-ai#ollama#telegram#slack#tools#automationμ΅œμ’… μ—…λ°μ΄νŠΈ: 2026-10-11

1. ν•„μˆ˜ 사전 μ„€μΉ˜ μš”κ±΄ & 개발 ν™˜κ²½ ꡬ성 (Prerequisites)

πŸ’» μ‹œμŠ€ν…œ μ„€μΉ˜ 및 μ‹€ν–‰ μš”κ΅¬μ‚¬μ–‘ (System Requirements)

ν•­λͺ©μ΅œμ†Œ 사양 (Minimum)ꢌμž₯ 사양 (Recommended)μ°Έκ³  및 λΉ„κ³ 
운영체제 (OS)Linux (Ubuntu, Debian, Alpine), macOS 12+, Windows 10/11 (WSL2)Ubuntu 22.04 LTS 64-bit / macOS Sonoma데λͺ¬ 및 λ°±κ·ΈλΌμš΄λ“œ κ²Œμ΄νŠΈμ›¨μ΄ ꡬ동 ν™˜κ²½
CPU2 μ½”μ–΄ 이상4 μ½”μ–΄ ~ 8 μ½”μ–΄ 이상닀쀑 채널 λ©”μ‹œμ§€ μˆ˜μ‹  및 λΈŒλΌμš°μ € ν—€λ“œλ¦¬μŠ€ μ‹€ν–‰
λ©”λͺ¨λ¦¬ (RAM)4 GB 이상8 GB ~ 16 GB μ΄μƒλΈŒλΌμš°μ € μžλ™ν™”(Playwright) 및 둜컬 도ꡬ λ™μ‹œ μ‹€ν–‰
λ””μŠ€ν¬ (Storage)10 GB μ΄μƒμ˜ μ—¬μœ  곡간50 GB μ΄μƒμ˜ SSDμ—μ΄μ „νŠΈ μž‘μ—… 둜그, 파일 μΊμ‹œ 및 Playwright λ°”μ΄λ„ˆλ¦¬
λ„€νŠΈμ›Œν¬ / λŸ°νƒ€μž„Node.js 20+ (LTS), Docker 24.x+, Git 2.30+pnpm λ˜λŠ” npm, Python 3.10+μ•„μ›ƒλ°”μš΄λ“œ 인터넷 (LLM API 및 λ©”μ‹œμ§• μ›Ήν›… 톡신)

OpenClawλŠ” λ‹¨μˆœν•œ 챗봇이 μ•„λ‹ˆλΌ, μ‹€μ œ 컴퓨터 ν™˜κ²½(터미널 μ…Έ, 파일 μ‹œμŠ€ν…œ, μ›Ή λΈŒλΌμš°μ €)을 직접 μ‘°μž‘ν•˜μ—¬ μž‘μ—…μ„ 자율적으둜 μˆ˜ν–‰ν•˜λŠ” **개인용 자율 AI μ—μ΄μ „νŠΈ κ²Œμ΄νŠΈμ›¨μ΄(Autonomous AI Agent Framework)**μž…λ‹ˆλ‹€. μ‚¬μš©μžλŠ” Telegram, Discord, Slack λ“±μ˜ 일상 λ©”μ‹ μ €λ₯Ό 톡해 μž‘μ—…μ„ μ§€μ‹œν•˜κ³ , 둜컬 LLM(Ollama, LM Studio) λ˜λŠ” ν΄λΌμš°λ“œ LLM(Claude, GPT)을 β€œλ‘λ‡Œβ€λ‘œ μ—°κ²°ν•˜μ—¬ μ•ˆμ „ν•˜κ²Œ μž‘μ—…μ„ μžλ™ν™”ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

πŸ“₯ 1. OpenClaw μ„€μΉ˜ (npm λ˜λŠ” Docker)

# μ˜΅μ…˜ A: npm μ „μ—­ μ„€μΉ˜
npm install -g openclaw

# μ„€μΉ˜ 확인
openclaw --version

# μ˜΅μ…˜ B: Docker Composeλ₯Ό ν†΅ν•œ 원클릭 μ»¨ν…Œμ΄λ„ˆ μ‹€ν–‰
git clone https://github.com/openclaw/openclaw.git
cd openclaw
docker compose up -d

βš™οΈ 2. 초기 ν”„λ‘œμ νŠΈ μ„€μ • 및 λ§ˆλ²•μ‚¬ μ‹€ν–‰

# 1. λŒ€ν™”ν˜• μ„€μ • λ§ˆλ²•μ‚¬ μ‹€ν–‰ (LLM κ³΅κΈ‰μž, λ©”μ‹œμ§• 채널, κΆŒν•œ μ •μ±… ꡬ성)
openclaw init

# 2. 둜컬 κ²Œμ΄νŠΈμ›¨μ΄ μ„œλΉ„μŠ€ μ‹œμž‘
openclaw start

2. OpenClaw 핡심 μ•„ν‚€ν…μ²˜ & λ©˜νƒˆ λͺ¨λΈ (Mental Model)

OpenClawλŠ” **λ©”μ‹ μ € μΈν„°νŽ˜μ΄μŠ€(Inputs) βž” 인지 λ‘λ‡Œ(LLM Brain) βž” 도ꡬ μ‹€ν–‰ 손(Tools/Skills)**의 3단계 λ£¨ν”„λ‘œ μž‘λ™ν•©λ‹ˆλ‹€.

πŸ—οΈ OpenClaw μž‘λ™ μ•„ν‚€ν…μ²˜ λ‹€μ΄μ–΄κ·Έλž¨

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Channels & Interfaces (μ‚¬μš©μž μ§€μ‹œ μˆ˜μ‹ )                              β”‚
β”‚  β”œβ”€ Telegram Bot / Discord Bot / Slack App / WhatsApp Webhook          β”‚
β”‚  └─ Local Web Dashboard & CLI                                          β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                    β”‚ User Message ("였늘 μ„œλ²„ 둜그 λΆ„μ„ν•΄μ€˜")
                                    β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ OpenClaw Agent Gateway Core                                            β”‚
β”‚  β”œβ”€ Session & Memory Store (λŒ€ν™” μ»¨ν…μŠ€νŠΈ, μ‚¬μš©μž μ„ ν˜Έλ„ μ˜μ†ν™”)       β”‚
β”‚  β”œβ”€ Task Planner & Reflection (μž‘μ—… λΆ„ν•΄ 및 μ‹€ν–‰ κ³„νš 수립)            β”‚
β”‚  └─ Security & Permission Policy (인간 승인 Human-in-the-Loop κ²€λ¬Έμ†Œ)  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                    β”‚                                β”‚
    (μΆ”λ‘  & κ³„νš)   β”‚                                β”‚ (도ꡬ 호좜: Tool Call)
                    β–Ό                                β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ LLM Brain (Bring-Your-Own-Model)     β”‚  β”‚ Execution Hands (Tools/Skillsβ”‚
β”‚  β”œβ”€ Local: Ollama / LM Studio        β”‚  β”‚  β”œβ”€ Shell / Bash Exec        β”‚
β”‚  └─ Cloud: Anthropic Claude 3.5      β”‚  β”‚  β”œβ”€ Headless Browser (Web)   β”‚
β”‚            OpenAI GPT-4o             β”‚  β”‚  β”œβ”€ File System (Read/Write) β”‚
β”‚                                      β”‚  β”‚  └─ Calendar / Email API     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

3. [초보자 1단계] ν—¬λ‘œμ›”λ“œ & κΈ°λ³Έ μ„€μ • 파일 (Getting Started)

πŸ“ openclaw.json (κΈ°λ³Έ ꡬ성 파일)

μ €μž₯μ†Œ λ˜λŠ” μž‘μ—… 디렉토리에 openclaw.json을 μž‘μ„±ν•˜μ—¬ 둜컬 Ollama λͺ¨λΈκ³Ό Telegram 봇을 μ—°κ²°ν•©λ‹ˆλ‹€:

{
  "name": "Lucky-Assistant",
  "llm": {
    "provider": "ollama",
    "baseURL": "http://localhost:11434",
    "model": "llama3.2:3b",
    "temperature": 0.2
  },
  "channels": {
    "telegram": {
      "enabled": true,
      "botToken": "123456789:ABCdefGhIJKlmNoPQRstuVWXyz",
      "allowedUserIds": [987654321]
    }
  },
  "permissions": {
    "shell": "ask",
    "filesystem": "allow",
    "browser": "allow"
  }
}

πŸ’» μ‹€ν–‰ 및 ν…”λ ˆκ·Έλž¨ λͺ…λ Ή ν…ŒμŠ€νŠΈ

# μ„€μ • 파일 기반으둜 κ²Œμ΄νŠΈμ›¨μ΄ ꡬ동
openclaw start --config ./openclaw.json
[OpenClaw Gateway] Initializing core modules...
[LLM] Connected to Ollama at http://localhost:11434 (model: llama3.2:3b)
[Channel] Telegram bot @LuckyAgentBot is listening for incoming messages.
[Security] Shell execution mode: ASK (Human approval required)
Gateway ready!

ν…”λ ˆκ·Έλž¨ λ΄‡μœΌλ‘œ λ©”μ‹œμ§€λ₯Ό λ³΄λƒ…λ‹ˆλ‹€:

User: β€œν˜„μž¬ μ‹œμŠ€ν…œμ˜ λ””μŠ€ν¬ μ—¬μœ  곡간을 ν™•μΈν•΄μ„œ μ•Œλ €μ€˜.”
Bot: df -h λͺ…λ Ήμ–΄λ₯Ό μ‹€ν–‰ν•˜λ €κ³  ν•©λ‹ˆλ‹€. μŠΉμΈν•˜μ‹œκ² μŠ΅λ‹ˆκΉŒ? [승인 / κ±°λΆ€]
(승인 클릭 μ‹œ)
Bot: ν˜„μž¬ 루트 λ””μŠ€ν¬(/)의 총 μš©λŸ‰μ€ 100GB이며, 38GBλ₯Ό μ‚¬μš© μ€‘μœΌλ‘œ 62GB의 μ—¬μœ  곡간이 μžˆμŠ΅λ‹ˆλ‹€!


4. [2단계] 핡심 κΈ°λŠ₯ & 도ꡬ(Tools) μƒνƒœκ³„ (Core Features)

πŸ› οΈ 1. λ‚΄μž₯ μ‹œμŠ€ν…œ 도ꡬ (Built-in Tools)

OpenClawλŠ” 별도 ν”ŒλŸ¬κ·ΈμΈ 없이도 컴퓨터λ₯Ό μ‘°μž‘ν•  수 μžˆλŠ” ν‘œμ€€ 도ꡬ μ„ΈνŠΈλ₯Ό νƒ‘μž¬ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€:

# 1. μ…Έ λͺ…λ Ήμ–΄ 도ꡬ (Shell Command Tool)
# μ—μ΄μ „νŠΈκ°€ 직접 터미널 λͺ…령을 μ‹€ν–‰ν•˜κ³  ν‘œμ€€ 좜λ ₯을 νŒŒμ‹±
openclaw run-tool shell --command "git status --short"

# 2. λΈŒλΌμš°μ € μžλ™ν™” 도ꡬ (Browser Tool - Playwright 기반)
# μ›Ήμ‚¬μ΄νŠΈ λ°©λ¬Έ, μŠ€ν¬λ¦°μƒ· 캑처, ν…μŠ€νŠΈ 데이터 μŠ€ν¬λž˜ν•‘
openclaw run-tool browser --url "https://news.ycombinator.com" --action "scrape"

# 3. 파일 μ‹œμŠ€ν…œ 도ꡬ (Filesystem Tool)
# 파일 λ‚΄μš© 검색, 읽기, μ‹ κ·œ 슀크립트 μž‘μ„±
openclaw run-tool fs --action "read" --path "./package.json"

🧩 2. μ»€μŠ€ν…€ μŠ€ν‚¬(Skills) ν™•μž₯ μž‘μ„±

λ‚˜λ§Œμ˜ λΉ„μ¦ˆλ‹ˆμŠ€ λ‘œμ§μ΄λ‚˜ μ™ΈλΆ€ API 연동을 TypeScript/JavaScript μŠ€ν‚¬λ‘œ μ‰½κ²Œ μΆ”κ°€ν•  수 μžˆμŠ΅λ‹ˆλ‹€:

skills/weather.js (날씨 쑰회 μŠ€ν‚¬)

export default {
  name: "get_weather",
  description: "νŠΉμ • λ„μ‹œμ˜ ν˜„μž¬ 기온과 날씨 μƒνƒœλ₯Ό μ‘°νšŒν•©λ‹ˆλ‹€.",
  parameters: {
    type: "object",
    properties: {
      city: { type: "string", description: "μ‘°νšŒν•  λ„μ‹œ 이름 (예: Seoul, Tokyo)" }
    },
    required: ["city"]
  },
  async execute({ city }) {
    const res = await fetch(`https://wttr.in/${encodeURIComponent(city)}?format=j1`);
    const data = await res.json();
    const current = data.current_condition[0];
    return {
      city,
      temp_C: current.temp_C,
      condition: current.weatherDesc[0].value,
      humidity: current.humidity
    };
  }
};

5. [3단계] 싀무 μžλ™ν™” νŒŒμ΄ν”„λΌμΈ (Automation Pipeline)

🐳 1. Docker Compose 기반 ν”„λ‘œλ•μ…˜ 배포

OpenClaw κ²Œμ΄νŠΈμ›¨μ΄μ™€ Ollamaλ₯Ό μ»¨ν…Œμ΄λ„ˆ λ„€νŠΈμ›Œν¬λ‘œ λ¬Άμ–΄ 무쀑단 μš΄μ˜ν•©λ‹ˆλ‹€:

version: "3.8"

services:
  openclaw:
    image: openclaw/openclaw:latest
    container_name: openclaw-gateway
    restart: always
    environment:
      - OPENCLAW_LLM_PROVIDER=ollama
      - OPENCLAW_LLM_BASE_URL=http://ollama:11434
      - OPENCLAW_LLM_MODEL=llama3.2:3b
      - TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN}
    volumes:
      - ./config:/app/config
      - ./data:/app/data
      - /var/run/docker.sock:/var/run/docker.sock # 도컀 μ‘°μž‘ ν•„μš” μ‹œ
    depends_on:
      - ollama
    ports:
      - "3000:3000"

  ollama:
    image: ollama/ollama:latest
    container_name: openclaw-ollama
    restart: always
    volumes:
      - ollama_models:/root/.ollama
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: all
              capabilities: [gpu]

volumes:
  ollama_models:

⏰ 2. Cron 기반 μ •κΈ° 업무 μžλ™ν™” (Scheduled Jobs)

μ—μ΄μ „νŠΈμ—κ²Œ 맀일 μ•„μΉ¨ 반볡 μˆ˜ν–‰ν•  μž‘μ—…μ„ μ˜ˆμ•½ν•©λ‹ˆλ‹€:

{
  "schedules": [
    {
      "name": "daily-morning-briefing",
      "cron": "0 9 * * 1-5",
      "prompt": "μ΅œμ‹  ν…Œν¬ λ‰΄μŠ€ ν—€λ“œλΌμΈ 5개λ₯Ό μš”μ•½ν•˜κ³ , 였늘 λ‚΄ μΊ˜λ¦°λ” 일정을 μ •λ¦¬ν•΄μ„œ ν…”λ ˆκ·Έλž¨μœΌλ‘œ λΈŒλ¦¬ν•‘ν•΄μ€˜.",
      "channel": "telegram"
    },
    {
      "name": "nightly-backup-check",
      "cron": "0 2 * * *",
      "prompt": "λ°μ΄ν„°λ² μ΄μŠ€ λ°±μ—… 디렉토리(/backups)의 파일 생성 μ‹œκ°μ„ ν™•μΈν•˜κ³  μš©λŸ‰μ΄ 1GB 이상인지 μ κ²€ν•΄μ€˜.",
      "channel": "slack"
    }
  ]
}

6. λ³΄μ•ˆ 체크리슀트 & ν”„λ‘œλ•μ…˜ 운영 μˆ˜μΉ™

πŸ”’ ν•„μˆ˜ λ³΄μ•ˆ 체크리슀트

  1. μΈκ°€λ˜μ§€ μ•Šμ€ μ‚¬μš©μž 차단 (allowedUserIds):
    • ν…”λ ˆκ·Έλž¨μ΄λ‚˜ λ””μŠ€μ½”λ“œ 봇을 곡용으둜 λ…ΈμΆœν•˜λ©΄ 제3μžκ°€ μ•…μ˜μ μΈ ν”„λ‘¬ν”„νŠΈ μΈμ μ…˜μœΌλ‘œ μ„œλ²„λ₯Ό μž₯μ•…ν•  수 μžˆμŠ΅λ‹ˆλ‹€. λ°˜λ“œμ‹œ 본인의 User IDλ₯Ό ν™”μ΄νŠΈλ¦¬μŠ€νŠΈλ‘œ λ“±λ‘ν•˜μ„Έμš”.
  2. μœ„ν—˜ν•œ λͺ…λ Ήμ–΄ μžλ™ μ‹€ν–‰ κΈˆμ§€ (permissions.shell: "ask"):
    • rm -rf, format, μ‹œμŠ€ν…œ μ„€μ • λ³€κ²½ λ“± 파괴적인 λͺ…λ Ήμ–΄κ°€ μ‹€ν–‰λ˜μ§€ μ•Šλ„λ‘ 승인 정책을 ask(Human-in-the-Loop) λͺ¨λ“œλ‘œ μœ μ§€ν•˜μ„Έμš”.
  3. ν™˜κ²½λ³€μˆ˜ 및 토큰 λ§ˆμŠ€ν‚Ή:
    • μ—μ΄μ „νŠΈκ°€ 터미널 좜λ ₯을 μ‚¬μš©μžμ—κ²Œ 전솑할 λ•Œ .env 파일의 API Keyλ‚˜ λΉ„λ°€λ²ˆν˜Έκ°€ κ·ΈλŒ€λ‘œ λ…ΈμΆœλ˜μ§€ μ•Šλ„λ‘ 둜그 λ§ˆμŠ€ν‚Ή κΈ°λŠ₯을 μΌœλ‘μ„Έμš”.
πŸ’¬

의견 및 질문

0
0 / 1500