
安卓手机安装配置 OpenClaw 龙虾养起来适用于Huawei / Android 手机 Termux Ubuntu (proot-distro) 环境其它安卓手机理论上也可以一、环境架构Huawei Phone │ Termux │ Ubuntu (proot-distro) │ OpenClaw │ LLM API (Gemini / DeepSeek / OpenAI) │ Telegram Bot │ 消息推送到手机OpenClaw 作用Agent 调度Cron 定时任务调用 LLM API调用 Telegram APIOpenClaw不运行大模型只是代理与自动化控制层。二、安装 Termux建议使用F-Droid 版本。初始化pkg update pkg upgrade pkginstallgitcurlwgetnodejs三、安装 Ubuntupkginstallproot-distro proot-distroinstallubuntu进入 Ubuntuproot-distro login ubuntu更新系统aptupdateaptupgrade四、安装 Node.jsaptinstallnodejsnpm检查版本node-v# v22.13.1#npm-v建议Node 18五、安装 OpenClawnpminstall-gopenclaw检查openclaw--version六、启动 OpenClawopenclaw start# 暴露到本机ssh主机ssh-L18789:127.0.0.1:18789 root{openclawhost}-p8022Web UIhttp://localhost:18789七、创建 Agent建议创建专门 AgentName: news-bot Description: Daily news sender建议配置配置 建议Model gemini-1.5-flashMemory 关闭Tools HTTP八、配置 Telegram Bot创建 Bot在 Telegram 搜索BotFather/newbot 输入bot的名称 输入bot的订阅id 获取到bot token获得BOT_TOKEN点击bot的订阅id开始对话获取 Chat ID给 Bot 发消息然后curlhttps://api.telegram.org/botBOT_TOKEN/getUpdates返回{chat:{id:123456789}}记录CHAT_ID九、添加 Telegram 工具{name:sendTelegram,type:http,description:Send message to telegram,config:{method:POST,url:https://api.telegram.org/bot${BOT_TOKEN}/sendMessage,headers:{Content-Type:application/json},bodyTemplate:{chat_id:${CHAT_ID},text:{{message}}}}}环境变量BOT_TOKENxxxx CHAT_IDxxxx十、创建 Cron 定时任务payload.kind agentTurn示例{schedule:0 8 * * *,isolated:true,payload:{kind:agentTurn,agentId:news-bot,input:{content:总结今天全球最重要的5条新闻每条不超过60字然后调用 sendTelegram 工具发送。}}}十一、常见错误cron 保存报错isolated cron jobs require payload.kindagentTurn解决kind agentTurn任务超时cron: job execution timed out解决使用 gemini-1.5-flash限制输出字数使用独立 agentBrowser Gateway Timeoutgateway timeout after 1500ms ws://127.0.0.1:18789关闭 browser{browser:{enabled:false}}十二、推荐架构OpenClaw ├─ main (聊天) ├─ news-bot (新闻 cron) └─ alert-bot (监控告警)十三、自动化流程Cron ↓ Agent ↓ LLM ↓ Telegram API ↓ 手机收到消息十四、安全建议不要公开 Bot Token\Token 放环境变量\不要写入 Prompt\定期 rotate tokenOpenClaw 可以作为自动化消息中心。