Lucarne 是做什么的?
Stop babysitting local AI agents. Just notifications, approve, and resume your Codex, Pi, or Claude code sessions anywhere. 0-Intrusion mobile control bridge via Telegram/Wechat/飞书. No hooks, no skills, no MCP.
Overview
Lucarne provides a lightweight, non-invasive way to manage your local AI coding agents from your mobile device. Instead of hovering over your terminal, you receive real-time notifications on Telegram, WeChat, or 飞书 when your agent needs input, and you can approve, reject, or provide instructions directly from your phone.
How It Works
- Install Lucarne via pip:
pip install lucarne - Configure your messaging platform (Telegram bot token, WeChat bot, or 飞书 webhook)
- Run your AI agent with Lucarne:
lucarne run --agent codex --task "refactor auth module" - Receive notifications on your phone when the agent requires approval or encounters an error
- Respond via chat:
/approve,/reject, or type custom instructions
Features
- Zero configuration: No hooks, no MCP, no custom skills required—works out of the box with Codex CLI, Pi, Claude Code, and other terminal-based AI agents
- Multi-platform support: Telegram, WeChat, 飞书 (Feishu/Lark)
- Real-time updates: Get notified when your agent starts a task, completes a step, or needs input
- Mobile control: Approve, reject, or modify the agent's actions from your phone
- Session persistence: Resume interrupted sessions from anywhere
- Privacy-first: Your code and API keys never leave your machine; only prompts and responses are relayed
Configuration
Create a lucarne.yaml in your project root:
notifier:
platform: telegram # telegram, wechat, or feishu
telegram:
bot_token: "YOUR_BOT_TOKEN"
chat_id: "YOUR_CHAT_ID"
wechat:
webhook_url: "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=YOUR_KEY"
feishu:
webhook_url: "https://open.feishu.cn/open-apis/bot/v2/hook/YOUR_HOOK"
agent:
type: codex # codex, pi, claude
working_dir: "./project"
Usage Examples
Basic run with Codex CLI
lucarne run --agent codex --task "Implement the user authentication API endpoints"
Run with Claude Code
lucarne run --agent claude --task "Analyze the codebase for security vulnerabilities"
Approve an action from Telegram
/approve
/reject
/instructions "Only use async functions"
/status
Supported Agents
| Agent | Status | Notes |
|---|---|---|
| Codex CLI | ✅ Full support | Recommended |
| Pi | ✅ Full support | |
| Claude Code | ✅ Full support | |
| Custom agents | ⚠️ Experimental | Requires stdin/stdout interface |
Why Lucarne?
- No more babysitting: Walk away from your desk while your agent works
- 0-Intrusion: Agents run exactly as they normally would; Lucarne only captures their output and forwards your input
- No vendor lock-in: Switch between Telegram, WeChat, or 飞书 freely
- Open source: MIT license, contributions welcome
Installation
pip install lucarne
Quick Start
- Set up a Telegram bot (or configure WeChat/飞书)
- Run
lucarne initto create the configuration file - Launch your first session:
lucarne run --agent codex --task "Hello World" - Approve the task from your phone via
/approve