← 🏠 Guide ပင်မ
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 ⚡