{"slug": "show-hn-lark-use-codex-from-telegram-or-imessage", "title": "Show HN: Lark – Use Codex from Telegram or iMessage", "summary": "Lark Bridge, a new open-source tool, connects Telegram or iMessage to OpenAI's Codex CLI, allowing users to send messages from their phone and receive AI-powered responses via their desktop workflow. The tool supports basic control commands and is available on Windows, macOS, and Linux for Telegram, with iMessage support limited to macOS.", "body_md": "Lark Bridge connects Telegram or iMessage to an AI CLI so messages sent from your phone can be answered from your desktop workflow.\n\nThe current build is centered on OpenAI Codex CLI as the active AI backend.\n\n- Receives messages from Telegram or iMessage\n- Forwards them to the configured AI CLI\n- Sends the AI response back to the same chat\n- Provides basic control commands for pausing, stopping, retrying, and checking status\n\n`Codex CLI`\n\nvia`@openai/codex`\n\n`Telegram`\n\non Windows, macOS, and Linux`iMessage`\n\non macOS only\n\n- Node.js 16 or newer\n- A working installation of the Codex CLI\n- Telegram bot credentials if you use Telegram\n- macOS with Messages.app signed in if you use iMessage\n\n```\nnpm install -g lark-bridge\ngit clone https://github.com/AhmadTheTech/lark\ncd lark\nnpm install\nnpm link\n```\n\nRun the interactive setup:\n\n```\nlark configure\n```\n\nYou will choose:\n\n- The AI provider\n- The messaging platform\n- Platform-specific settings\n\n- Open Telegram and start a chat with\n`@BotFather`\n\n- Send\n`/newbot`\n\nand follow the prompts - Copy the bot token it returns\n- Find your Telegram user ID with\n`@userinfobot`\n\n- Enter the token and allowed user IDs during\n`lark configure`\n\nYou can allow multiple users by entering comma-separated numeric IDs.\n\nLark uses AppleScript to interact with Messages.app.\n\nBefore starting:\n\n- Sign in to iMessage on your Mac\n- Allow Terminal to control Messages when prompted\n- If needed, grant Contacts access as well\n\nOn iMessage, the bridge checks for new messages on a polling interval selected during setup.\n\n```\nlark start\n```\n\nFor verbose logging:\n\n```\nlark start --debug\nlark configure   # Run interactive setup\nlark start       # Launch the bridge\nlark status      # Show saved configuration\nlark reset       # Remove saved configuration\n```\n\nOnce the bot is running, these commands are available in Telegram:\n\n`/start`\n\n- show bridge status`/help`\n\n- list commands`/status`\n\n- show uptime, provider, and message stats`/ai`\n\n- show the active AI provider`/pause`\n\n- stop forwarding messages`/resume`\n\n- resume forwarding`/stop`\n\n- cancel the current AI request`/clear`\n\n- clear conversation context`/retry`\n\n- retry the last failed message`/ping`\n\n- check that the bridge is alive`/version`\n\n- display the installed Lark version`/shutdown`\n\n- stop the bridge process\n\n``` php\nYou\n  -> Telegram or iMessage\n  -> Lark Bridge\n  -> Codex CLI\n  -> Lark Bridge\n  -> Telegram or iMessage\n  -> You\n```\n\nLark stores its config under:\n\n```\n~/.lark/config\n```\n\nUse `lark status`\n\nto inspect the saved values.\n\n- If you found an issue,\n[open an issue](https://github.com/AhmadTheTech/lark/issues). - If you want to contribute, see\n[contribution.md](/AhmadTheTech/lark/blob/main/contribution.md).\n\nFor license details, see [LICENSE](/AhmadTheTech/lark/blob/main/LICENSE).", "url": "https://wpnews.pro/news/show-hn-lark-use-codex-from-telegram-or-imessage", "canonical_source": "https://github.com/AhmadTheTech/lark", "published_at": "2026-06-13 11:57:17+00:00", "updated_at": "2026-06-13 12:19:56.906511+00:00", "lang": "en", "topics": ["developer-tools", "ai-tools", "artificial-intelligence"], "entities": ["OpenAI", "Codex CLI", "Telegram", "iMessage", "Lark Bridge", "AppleScript", "BotFather"], "alternates": {"html": "https://wpnews.pro/news/show-hn-lark-use-codex-from-telegram-or-imessage", "markdown": "https://wpnews.pro/news/show-hn-lark-use-codex-from-telegram-or-imessage.md", "text": "https://wpnews.pro/news/show-hn-lark-use-codex-from-telegram-or-imessage.txt", "jsonld": "https://wpnews.pro/news/show-hn-lark-use-codex-from-telegram-or-imessage.jsonld"}}