Skip to content

Instantly share code, notes, and snippets.

@up1
Last active March 8, 2026 06:45
Show Gist options
  • Select an option

  • Save up1/a0bf1b19b3c2bce494befd98150a758b to your computer and use it in GitHub Desktop.

Select an option

Save up1/a0bf1b19b3c2bce494befd98150a758b to your computer and use it in GitHub Desktop.
Install openClaw
# ในการใช้งาน ไม่ควรใช้ root user นะครับ
# ดังนั้นให้ทำการสร้าง non-root user เข้ามาก่อนติดตั้ง เพื่อความปลอดภัย
$sudo adduser openclaw
$sudo usermod -aG sudo openclaw
$su openclaw
# NodeJS 22+
$npm install -g openclaw@latest
# ทำการตรวจสอบ OpenClaw ว่า
# ทำการ update OpenClaw
# ต้องทำการ config อะไรบ้าง สำหรับการเริ่มต้น จะแนะนำให้ config Gateway และ Gateway auth
$openclaw doctor
$openclaw -v
2026.3.2
$openclaw onboard --install-daemon
┌ OpenClaw onboarding
◇ Security ─────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Security warning — please read. │
│ │
│ OpenClaw is a hobby project and still in beta. Expect sharp edges. │
│ By default, OpenClaw is a personal agent: one trusted operator boundary. │
│ This bot can read files and run actions if tools are enabled. │
│ A bad prompt can trick it into doing unsafe things. │
│ │
│ OpenClaw is not a hostile multi-tenant boundary by default. │
│ If multiple users can message one tool-enabled agent, they share that delegated tool │
│ authority. │
│ │
│ If you’re not comfortable with security hardening and access control, don’t run │
│ OpenClaw. │
│ Ask someone experienced to help before enabling tools or exposing it to the internet. │
│ │
│ Recommended baseline: │
│ - Pairing/allowlists + mention gating. │
│ - Multi-user/shared inbox: split trust boundaries (separate gateway/credentials, ideally │
│ separate OS users/hosts). │
│ - Sandbox + least-privilege tools. │
│ - Shared inboxes: isolate DM sessions (`session.dmScope: per-channel-peer`) and keep │
│ tool access minimal. │
│ - Keep secrets out of the agent’s reachable filesystem. │
│ - Use the strongest available model for any bot with tools or untrusted inboxes. │
│ │
│ Run regularly: │
│ openclaw security audit --deep │
│ openclaw security audit --fix │
│ │
│ Must read: https://docs.openclaw.ai/gateway/security │
│ │
├────────────────────────────────────────────────────────────────────────────────────────────╯
◆ I understand this is personal-by-default and shared/multi-user use requires lock-down. Continue?
│ ○ Yes / ● No
# Config file หลักของ openClaw
Updated ~/.openclaw/openclaw.json
Workspace OK: ~/.openclaw/workspace
Sessions OK: ~/.openclaw/agents/main/sessions
# ตรวจสอบ status ของ OpenClaw ว่าเป็นอย่างไร
# มีปัญหาในระดับ critical และ warning อะไรบ้าง พร้อมแนวทางการแก้ไข
$openclaw status
# ทำการ run security เพื่อตรวจสอบความปลอดภัย
$openclaw security audit
# ถ้าทำการแก้ไข config หลัก ให้ทำการ reload และ start gateway ใหม่
$openclaw gateway install
$openclaw gateway status
# เป็น web dashboard (Control UI)
$openclaw dashboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment