惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Securelist
O
OpenAI News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Threat Research - Cisco Blogs
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Google Online Security Blog
Google Online Security Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
N
News and Events Feed by Topic
S
Security Affairs
SecWiki News
SecWiki News
Project Zero
Project Zero
L
Lohrmann on Cybersecurity
P
Proofpoint News Feed
P
Palo Alto Networks Blog
L
LINUX DO - 最新话题
H
Hacker News: Front Page
Recent Commits to openclaw:main
Recent Commits to openclaw:main
I
Intezer
Simon Willison's Weblog
Simon Willison's Weblog
W
WeLiveSecurity
T
The Exploit Database - CXSecurity.com
K
Kaspersky official blog
The GitHub Blog
The GitHub Blog
I
InfoQ
云风的 BLOG
云风的 BLOG
雷峰网
雷峰网
B
Blog
IT之家
IT之家
AWS News Blog
AWS News Blog
Jina AI
Jina AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Google DeepMind News
Google DeepMind News
Spread Privacy
Spread Privacy
N
News and Events Feed by Topic
Security Latest
Security Latest
美团技术团队
C
Check Point Blog
WordPress大学
WordPress大学
T
Tenable Blog
S
Security @ Cisco Blogs
Last Week in AI
Last Week in AI
博客园 - 聂微东
月光博客
月光博客
博客园 - 【当耐特】
S
Schneier on Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
Secure Thoughts
Schneier on Security
Schneier on Security
C
Cisco Blogs
Cyberwarzone
Cyberwarzone

Show HN

暂无文章

GitHub - AhmadTheTech/lark: Bridge Telegram and iMessage to Codex CLI. Chat with codex from your phone.
createwithah · 2026-06-13 · via Show HN

Lark Bridge connects Telegram or iMessage to an AI CLI so messages sent from your phone can be answered from your desktop workflow.

The current build is centered on OpenAI Codex CLI as the active AI backend.

What It Does

  • Receives messages from Telegram or iMessage
  • Forwards them to the configured AI CLI
  • Sends the AI response back to the same chat
  • Provides basic control commands for pausing, stopping, retrying, and checking status

Current Support

AI Provider

  • Codex CLI via @openai/codex

Messaging Platforms

  • Telegram on Windows, macOS, and Linux
  • iMessage on macOS only

Requirements

  • Node.js 16 or newer
  • A working installation of the Codex CLI
  • Telegram bot credentials if you use Telegram
  • macOS with Messages.app signed in if you use iMessage

Install

From npm

npm install -g lark-bridge

From source

git clone https://github.com/AhmadTheTech/lark
cd lark
npm install
npm link

Configure

Run the interactive setup:

You will choose:

  • The AI provider
  • The messaging platform
  • Platform-specific settings

Telegram Setup

  1. Open Telegram and start a chat with @BotFather
  2. Send /newbot and follow the prompts
  3. Copy the bot token it returns
  4. Find your Telegram user ID with @userinfobot
  5. Enter the token and allowed user IDs during lark configure

You can allow multiple users by entering comma-separated numeric IDs.

iMessage Setup

Lark uses AppleScript to interact with Messages.app.

Before starting:

  1. Sign in to iMessage on your Mac
  2. Allow Terminal to control Messages when prompted
  3. If needed, grant Contacts access as well

On iMessage, the bridge checks for new messages on a polling interval selected during setup.

Start

For verbose logging:

CLI Commands

lark configure   # Run interactive setup
lark start       # Launch the bridge
lark status      # Show saved configuration
lark reset       # Remove saved configuration

Telegram Commands

Once the bot is running, these commands are available in Telegram:

  • /start - show bridge status
  • /help - list commands
  • /status - show uptime, provider, and message stats
  • /ai - show the active AI provider
  • /pause - stop forwarding messages
  • /resume - resume forwarding
  • /stop - cancel the current AI request
  • /clear - clear conversation context
  • /retry - retry the last failed message
  • /ping - check that the bridge is alive
  • /version - display the installed Lark version
  • /shutdown - stop the bridge process

How It Works

You
  -> Telegram or iMessage
  -> Lark Bridge
  -> Codex CLI
  -> Lark Bridge
  -> Telegram or iMessage
  -> You

Configuration Location

Lark stores its config under:

Use lark status to inspect the saved values.

Contributing

License

For license details, see LICENSE.