Ko Pai ကို စက်အသစ်မှာ
တစ်ပုံစံထဲ ပြန်တင်နည်း

VPS အသစ် · Cloud Terminal · OpenClaw ရှိတဲ့ Linux တိုင်း — နည်းလမ်း ၂ ခုနဲ့ အဆင့်ဆင့် ရှင်းပြထားတယ်။

METHOD 1

⬇️ Full Setup — စက်အလွတ်ကနေ အစတင်

VPS အသစ်၊ Cloud Terminal လို ဘာမှမတင်ရသေးတဲ့ Linux အတွက်။ Node 22 → OpenClaw → config → service အကုန် installer က တင်ပေးမယ်။

🖥️ Terminal ဖွင့် 📦 Download + Install 🔑 Key တွေထည့် 🐙 Ko Pai အဆင်သင့်!
1

Linux terminal ဖွင့်

VPS အသစ် (SSH)၊ Google Cloud Shell၊ ဒါမှမဟုတ် ကိုယ့် Linux ကွန်ပျူတာ — terminal တစ်ခုရှိရင် လုံလောက်ပြီ။

2

One-liner run

အောက်က command ကို ကူး → paste → Enter။ Download → extract → install အကုန် သူ့ဘာသာလုပ်မယ် (sudo မလို)။

curl -fsSL https://kmnapps.xyz/dl/openclaw-setup.tar.gz | tar -xz && cd openclaw-setup && bash install.sh
3

Installer မေးတာ ဖြေ (စာရိုက်တာ မျက်စိမမြင်ရ)

• Telegram bot token — @BotFather → /newbot (bot အသစ်ပဲလုပ်)
• မင်း Telegram ID — @userinfobot ကနေ ယူ
• RelayModels API key — relaymodels.com က key
• Model — default relaymodels/claude-opus-5 (Enter ခေါက်ရုံ)

မှတ်ချက်: Key တွေက ~/.openclaw/openclaw.json (permission 600) ထဲပဲသိမ်းတယ် — ဘယ်မှမတင်ဘူး၊ log ထဲမကျန်ဘူး။
4

Telegram မှာ Ko Pai နဲ့ စကားပြော 🎉

Gateway auto-start ဖြစ်ပြီး bot online ဖြစ်ပြီ။ စမ်းကြည့်: "မင်္ဂလာပါ"

5

Memory ကို စက်အသစ်နဲ့ကိုက်အောင် ပြင်ခိုင်း

Ko Pai ကို ပြောလိုက်: "MEMORY.md ကို ဒီစက်နဲ့ကိုက်အောင် ပြင်ပေး" — IP/port/app စာရင်းတွေ သူ့ဘာသာ ပြင်မယ်။

METHOD 2

🐙 Profile Clone — OpenClaw ရှိပြီးသားစက်

Target machine မှာ OpenClaw တင်ပြီးသား ဆိုရင် Ko Pai ရဲ့ personality + rules + memory + skills ကို ဒီ private repo ကနေ ထပ်တင်ရုံပဲ။

🐙 OpenClaw init 📥 git clone 💾 Backup + Install 🔑 Key သီးသန့်ထည့်
1

OpenClaw ကို အရင် init လုပ်

npm i -g openclaw@2026.9.2 openclaw init
2

Private repo ကို clone (GitHub auth လိုမယ် — SSH key / token)

git clone git@github.com:mymyanmarland/ko-pai-clone-pack.git cd ko-pai-clone-pack
3

Profile install — အဟောင်း auto-backup ပါတယ်

./install-profile.sh က target မှာရှိတဲ့ SOUL/IDENTITY/USER/MEMORY/AGENTS + skills ကို ~/.openclaw/workspace-backup-…/ ထဲ အရင် backup လုပ်ပြီးမှ Ko Pai profile အစားထိုးမယ်။

./install-profile.sh
4

ဒီ instance အတွက် key + bot သီးသန့်ထည့်

~/.openclaw/openclaw.json ထဲမှာ model provider + API key၊ ပြီးတော့ bot အသစ် (@BotFather → /newbot) + owner ID ထည့်။

အရေးကြီး: Bot token တစ်ခုကို running gateway ၂ ခုမှာ တစ်ပြိုင်နက် မသုံး — Telegram က poller တစ်ခုပဲ ခွင့်ပြုတယ်။
5

Verify + memory ပြင်

node ~/.openclaw/scripts/kopai-ctl.js list

ပြီးရင် Ko Pai ကို: "MEMORY.md ကို ဒီစက်နဲ့ကိုက်အောင် ပြင်ပေး"

🔑

အဆင့် ၄ အသေးစိတ် — key + bot သီးသန့်ထည့်နည်း

~/.openclaw/openclaw.json ထဲမှာ ဒီ instance အတွက် ၄ ခု ဖြည့်ရမယ်။ ဘယ်ဟာကို ဘယ်ကယူရမလဲ — animation နဲ့ ကြည့်:

① @BotFather → bot token ② @userinfobot → Telegram ID ③ relaymodels.com → API key ④ → model ရွေး
🤖 @BotFather /newbot Alright! Token ရပြီ 🎉 အောက်ကဟာကို ကူးထား: 1103••••••:AAH•••••••• ✓ ဒါကို openclaw.json ရဲ့ "botToken" ထဲ ထည့် token အစစ်ကို chat မှာ မပြဘူး ✂️

စုရမယ့် ၃ ခု

① Telegram မှာ @BotFather ကို /newbot ပို့ → bot အသစ်လုပ် → ပေးတဲ့ token ကို ကူး (အပေါ်က animation အတိုင်း)
② @userinfobot ကို စာပို့ → ပြန်လာတဲ့ numeric ID ကို ကူး
③ relaymodels.com က API key (dashboard → API keys)

သတိ: Token/key တွေကို ဘယ်မှာမှ paste မချနဲ့ — openclaw.json ထဲမှာပဲ တိုက်ရိုက်ထည့်။ Ko Pai chat ထဲမှာ key ပို့မိရင် message ကို delete လုပ်ဖို့ သူက သတိပေးမယ်။

📄 openclaw.json ထဲ ဖြည့်ပုံ — အစဉ်လိုက်

🔒 openclaw.json channels.telegram.botToken "……………………" "1103••••••:AAH••••••••••" @BotFather ✓ channels.telegram.allowFrom [ … ] [ 7380•••••• ] @userinfobot ✓ models.providers.relaymodels.apiKey "……………………" "sk-••••••••••••••••" relaymodels.com ✓ agents.defaults.model.primary "……………………" "relaymodels/claude-opus-5" default ✓
ပြီးရင် verify: node ~/.openclaw/scripts/kopai-ctl.js list → primary မှန်တာ စစ်။ ပြီးရင် gateway log မှာ agent model: relaymodels/claude-opus-5 တက်လာရမယ် — config ပြောင်းတိုင်း auto hot-reload ဖြစ်တယ် (restart မလို) ⚡
📄

openclaw.json — တစ်ဖိုင်လုံး ဘယ်လိုရေးရမလဲ

~/.openclaw/openclaw.json ဆိုတာ Ko Pai ရဲ့ ဦးနှောက် + တံခါး — ဘယ် model သုံးမလဲ၊ ဘယ် key နဲ့၊ ဘယ် Telegram bot လဲ ဆိုတာ ဒီဖိုင်က ဆုံးဖြတ်တယ်။ အောက်ကအတိုင်း ရေး → အဝါရောင် blank ၄ ခုပဲ ကိုယ့်ဟာနဲ့ အစားထိုး:

{ "agents": { "defaults": { "model": { "primary": "relaymodels/claude-opus-5" }, "userTimezone": "Asia/Yangon" }, "entries": { "main": { "identity": { "name": "Ko Pai", "emoji": "🐙", "theme": "A calm assistant in the machine" } } } }, "models": { "mode": "merge", "providers": { "relaymodels": { "baseUrl": "https://api.relaymodels.com/v1", "apiKey": "__PASTE_RELAYMODELS_KEY__", "api": "openai-completions", "models": [ { "id": "claude-opus-5", "name": "Claude Opus 5", "contextWindow": 200000, "maxTokens": 8192 } ] } } }, "gateway": { "mode": "local", "bind": "loopback", "auth": { "mode": "token", "token": "__GENERATE_RANDOM__" } }, "channels": { "telegram": { "enabled": true, "botToken": "__PASTE_BOT_TOKEN__", "dmPolicy": "allowlist", "allowFrom": [__YOUR_TELEGRAM_ID__] } } }

Block ၄ ခု — တစ်ခုချင်း အဓိပ္ပာယ်

🐙

agents

Ko Pai ရဲ့ နာမည် + ဘယ် model နဲ့ တွေးမလဲ (primary)။ Model ပြောင်းချင်ရင် ဒီတစ်ကြောင်းပဲ ပြင်ရုံပဲ။

🧠

models.providers

LLM relay — RelayModels လိပ်စာ + API key + သုံးမယ့် model စာရင်း။ Key မှားရင် Ko Pai စကားမပြောဘူး။

🔌

gateway

Ko Pai server ကိုယ်တိုင် — ဒီစက်ထဲကပဲ ဆက်သွယ် (loopback)၊ token ခံထားတယ်။

✈️

channels.telegram

Telegram ချိတ်ဆက်မှု — bot token + စကားပြောခွင့်ရှိသူ allowFrom (ကိုယ့် ID ပဲ)။

အဝါရောင် blank ၄ ခု — ဘယ်ကယူမလဲ

__PASTE_BOT_TOKEN__ → @BotFather → /newbot → ပေးတဲ့ token အပြည့်အစုံ __YOUR_TELEGRAM_ID__ → @userinfobot → ကိန်းဂဏန်း (quote မပါ — [7380270188] ပုံစံ) __PASTE_RELAYMODELS_KEY__ → relaymodels.com → API keys → sk-… အစ __GENERATE_RANDOM__ → terminal: openssl rand -hex 32 → ရတဲ့ စာသား
သိမ်းနည်း: file ကို ~/.openclaw/openclaw.json မှာ သိမ်း → chmod 600 ~/.openclaw/openclaw.json → save တာနဲ့ gateway auto hot-reload (restart မလို) ⚡ စစ်ရန်: node ~/.openclaw/scripts/kopai-ctl.js list → primary မှန်ရင် အောင်ပြီ။
⬇️ openclaw.json.example download

Download ဆွဲ → အဝါရောင် blank ၄ ခု ဖြည့် → ~/.openclaw/openclaw.json အဖြစ် သိမ်း → chmod 600

⚙️

Config Generator — ဖြည့် → Generate → Copy

အောက်က box ၄ ခုမှာ ကိုယ့်တန်ဖိုးတွေ ထည့် — openclaw.json အပြည့်အစုံ ဒီမှာ အလိုအလို ထွက်လာမယ်။ အကုန် ဒီ browser ထဲမှာပဲ လုပ်တာ — server ကို ဘာမှမပို့၊ ဘယ်မှာမှ မသိမ်း 🔒

📄 Generated openclaw.json

⬇️ Download

🔒 Key တွေက ဒီ page ရဲ့ memory ထဲမှာပဲ ရှိတယ် — refresh လုပ်ရင် ပျောက်မယ်။ ဘယ်သူနဲ့မှ share မလုပ်နဲ့။
သုံးနည်း: Copy/Download → target စက်မှာ ~/.openclaw/openclaw.json အဖြစ် သိမ်း → chmod 600 → gateway auto reload ⚡

COMPARE

ဘယ်နည်းလမ်းရွေးမလဲ?

⬇️ နည်း ၁ — Full Setup🐙 နည်း ၂ — Profile Clone
သုံးသင့်တာLinux အလွတ် (VPS အသစ်, Cloud Shell)OpenClaw တင်ပြီးသား စက်
လုပ်တာNode 22 → OpenClaw → config → service အကုန် autoPersonality/profile/skills ပဲ ထပ်
လိုတာcurl ပဲgit + GitHub auth (repo private)
SecretsInstaller က မေးပြီး 600 file ထဲ သိမ်းကိုယ့်ဘာသာ openclaw.json ထဲ ထည့်
အဟောင်း backup— (စက်အသစ်)✅ timestamp backup auto
AUTO-UPDATE

🔄 အမြဲ fresh — Training အသစ်ဆို ၂ ခုလုံး update

Ko Pai ကို နောက်ထပ် training ပေးပြီးတိုင်း sync-all.sh က နည်းလမ်း ၂ ခုလုံးကို အလိုအလို refresh လုပ်တယ် — secrets scan → tarball rebuild → upload → GitHub push (ပြောင်းလဲမှုရှိမှသာ) → download verify။

sync-all.sh 📦 tarball kmnapps.xyz/dl/ 🐙 GitHub repo ko-pai-clone-pack VPS Ko Pai 🐙
SECURITY

🛡️ လုံခြုံရေး စည်းကမ်း

🚫

Repo / bundle မှာ secret မပါ

API key, bot token, password, openclaw.json — commit တိုင်း scan စစ်ပြီးမှ push တယ်။ .gitignore မှာ အကုန်ပိတ်ထားတယ်။

🤖

Bot တစ်ကောင် = Token တစ်ခု

Token အတူတူကို gateway ၂ ခုမှာ တစ်ပြိုင်နက်မသုံး — Telegram က poller တစ်ခုပဲခွင့်ပြုတယ်။ စက်တိုင်းမှာ @BotFather ကနေ အသစ်လုပ်။

💬

Key ကို chat ကနေပဲ ပေး

Ko Pai က key ကို ပြန်မပြော၊ MEMORY ထဲ မသိမ်း၊ config (600) ထဲပဲထည့်တယ်။ ပို့ပြီးရင် Telegram message ကို delete လုပ်။

☁️

Cloud Shell = စမ်းသပ်ဖို့

Cloud Terminal မှာ တင်လို့ရပေမယ့် session ပိတ်ရင် bot ရပ်မယ်။ 24/7 လည်ချင်ရင် VPS လို always-on စက်လိုတယ်။