
WireCat Telegram
dev.wirecat由 wirecat.dev 发布v0.117.0更新于 Nov 7, 2026
Your Telegram account for agents: read, search and send messages. Sign in with the tg CLI first.
概览
通过本地 tg CLI 把智能体接入你自己的 Telegram 账号,让它在你设定的限制内读取、搜索和发送消息。
- 可以做什么
- 读取聊天、历史记录、单条消息及其上下文、各聊天的未读消息,以及上次回顾以来的全部内容
- 在本地和 Telegram 上按关键词、人物、日期、文件、链接和标签搜索消息与笔记
- 发送、回复、编辑、转发、置顶、添加表情回应、删除,并发送文件、图片、语音消息和定时消息
- 管理群组:无人回答的问题、加入与退出事件、成员、话题、邀请链接和审核规则
- 管理联系人和配置档,并通过 Bot API 及其令牌操作机器人
- 转写语音消息、下载附件,以及导出或备份本地存储
- 适用场景
- 适合让助手跟进 Telegram 动态、查清何时与谁约定了什么、追踪承诺与未解决的问题,或以你的名义起草并发送回复。也适合需要访问整个账号而不只是机器人聊天的智能体。
- 运行要求
- 需在本机安装 tg CLI(npm 包,需要 Node 22.19+ 或 24+,或 Bun),支持 macOS、Linux 和 Windows。需在 my.telegram.org 自行注册 Telegram 应用,并通过二维码或手机号加两步验证登录;应用密钥存入系统钥匙串。MCP 服务器通过 tg personal mcp serve 命令启动。
安装
在 SourceWeft 中
- 打开 控制台中的 WireCat Telegram,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
tg — Telegram CLI for AI agents
Your whole Telegram account in the terminal, searchable on your computer, and ready for Claude Code, Codex, Cursor or any agent — within limits you set.
[npm] [CI] [Node] [Bun] [npm downloads] [License: Apache 2.0]
An example conversation (invented people, illustrative output):
Quick start
A global install does not install the agent skill: tg personal setup offers it, or run tg skill install --for all. npm may warn that install scripts are blocked or "not yet covered by allowScripts" (@wirecat/tg-cli,
better-sqlite3); that is harmless, and you need not allow them — why.
On Windows, if tg is not found, open a new terminal, or use the PowerShell installer in
the installation guide.
Allow about five minutes. tg personal setup registers your own Telegram app at
my.telegram.org, logs in by QR code, checks your first chats and installs
the agent skill. Downloading older history is a separate step.
It needs Node 22.19+ or 24+, or Bun, on macOS, Linux or Windows. Try it without installing:
npx @wirecat/tg-cli --help.
More: installation guide · on wirecat.dev
What can you do?
Catch up. "Use tg CLI. What came in since this morning, and who is waiting for my answer?"
Find anything. "Use tg CLI. When did we agree on the venue with Alice?" — an answer with the date and the message itself.
By default the words also go to Telegram's server search; add --offline to keep the query on this computer.
Keep your promises. "Use tg CLI. What did I promise, and what am I still waiting on?" tg personal review
hands over everything said since the last review in one call, your own messages too.
Run your groups. "Use tg CLI. Which questions in Hiking has nobody answered?"
More: recipes, with a schedule and limits for each · on wirecat.dev
Built for AI agents
Your agent. Your Telegram. Your rules.
- Agents with a terminal (for example Claude Code, Codex, Gemini CLI) run
tgcommands themselves. The bundled skill tells them how:tg personal setup --agent …ortg skill installputs it in place, andtg skill showprints it before login. - Apps without a terminal (for example Claude Desktop, Cursor and other MCP clients) connect to
tg personal mcp serve. It comes with ready prompts:/catch-up,/review,/reply,/find,/open-tasksand/link-conversations.
The profile can send by default, so mcp add stops first. Check the profile's permissions, then run
it again with --allow-writes.
More: the MCP server · on wirecat.dev
Why tg?
- Your whole account, not only bots. Every chat, group, channel and contact, with its history —
tgis one more of your devices. - Local-first search. Everything read is kept on your computer. Search reads that copy and, by default,
asks Telegram's own search too;
--offlinekeeps the query on your computer. - Made for agents. One operation per call, the same JSON shape every time with
--json, a fixed exit code for each kind of failure, an MCP server and a skill. - Safe by default. Reading marks nothing read. A profile decides which actions an agent may take,
which chats it may send to, and how many messages an hour (30 by default). When a send's outcome is
unknown,
tgsays so and gives a repeat command that Telegram does not deliver twice. - The full Bot API too. All 185 methods, next to the convenient bot commands.
More: compared with other tools · on wirecat.dev
Your account
tg works in your name, as one more of your devices. It is not a bot: it talks to Telegram over
MTProto, Telegram's own API for client apps, with an app you register yourself. It sees your chats,
their history, groups, channels and contacts.
- Read. Chats, history, one message with its neighbours, other people's unread messages in every
chat (
tg personal inbox), everything since the last review (tg personal review), new messages as they arrive (tg personal watch), a message's files, voice messages as text. - Write. Markdown, replies, files, photos, videos and voice messages, silent and scheduled messages (they go out even with this computer off), edits, forwards, pins, reactions, polls, deletion — for you or for everyone.
- Voice on your computer. Telegram transcribes for Premium accounts;
tgcan also run a speech model on this machine, downloaded only when you ask. - Contacts and the account. Add, rename, block and import contacts; your own aliases and notes for people; who you are logged in as, and every device logged in to the account.
- One person. Their profile, when they were last seen, their messages per shared chat, and whether the account looks like a bot or a spammer.
More: using tg · on wirecat.dev · one person · on wirecat.dev
Log in and profiles
Every user registers their own Telegram app; tg personal setup or tg personal session start does it for you. The
app keys go to the system keyring, and the session is a file only your user can read.
Several accounts are several profiles, and the profile is the first word, not an option:
tg never picks a profile for you, not even the only one: a command that uses an account and has no
profile named stops and lists the profiles on this computer. Name one, or set TG_PROFILE for a
whole shell session.
More: login and sessions · on wirecat.dev · profiles · on wirecat.dev
The local store and search
Everything tg reads is kept in a local store on your computer. Search runs over it and over
Telegram by default; --offline answers from the store without connecting.
Search by words, people, dates, files, links and tags; save searches; find discussions by topic.
More: search · on wirecat.dev · the local store · on wirecat.dev
Groups you run
Renaming a group, adding and removing members and admins, join requests, invite links, forum topics and moderation rules for links, forwards and floods are commands too.
More: groups you run · on wirecat.dev
A bot
tg personal bot works with a bot through Telegram's official Bot API and
its token from @BotFather. You can keep several bots; each has a name you
choose, and that name is the first word of the command.
- Every Bot API method.
tg <bot> bot api <method>takes native field flags or a JSON body. - One token per name, in the keyring, apart from your own login;
TG_BOT_TOKENfor CI. The token is never printed — not in an error, not with--trace, not in a run record. - Recipients and a journal. Each bot has its own list of chats it may write to, and a journal of what it did, without the text.
- Messages, admins, members, buttons, the menu, webhooks — send, edit, delete and pin;
bot chats admins,bot callbacks answer,bot commands,bot webhooks. - History.
bot watchprints and keeps what happens in the bot's chats;bot messages syncimports older channel and supergroup messages.
More: a Telegram bot · on wirecat.dev
Agent setup in detail
The skill. Claude Code reads ~/.claude/skills/tg-cli/; Codex, Gemini CLI and local Cursor read
~/.agents/skills/tg-cli/. Start a new agent session if it does not see the skill.
The MCP server. Commands stay discoverable with their arguments and current availability. The
profile's permissions decide which may run. readonly stops writes; at ask the server shows no
form, so set up approval in your agent app.
From the browser. ChatGPT or Claude in the browser reach tg personal mcp serve --http --public-url <url> behind
your tunnel, after a login with a one-time access code from your terminal.
More: the MCP server · on wirecat.dev · remote access · on wirecat.dev
Output for scripts and agents
With --json a command prints only data, as one JSON value — no tables, colour or hints; it does the
same when another program reads its output. --jsonl prints one object per line. Every list has one
shape:
An error goes to stderr as one line, with stdout empty, and the command exits with a fixed code: 4
log in, 5 the profile may not do this, 6 chat or message not found, 8 a limit, 9 Telegram did
not answer in time, 14 unknown whether a message went. tg commands --json is the whole command
tree. A partial read or download can exit 0: check complete in the JSON.
More: CLI contract · on wirecat.dev · every command and exit code · on wirecat.dev
Settings and permissions
More: permissions · on wirecat.dev · configuration · on wirecat.dev
Limits
Each profile has one request pace, shared by every command, background job and server at once, so bulk work stays under Telegram's limits. Short waits from Telegram are waited out; a long wait stops the run instead of being repeated.
More: limits and waits · on wirecat.dev
Security
- The session file is as good as your password, readable only by your user; the app keys are in the system keyring. No command takes a password, a login code or a phone number as an argument.
- The local store holds the full text of what was read, unencrypted and readable only by your user. It stays after logout; only whole-disk encryption protects it from a stolen disk.
- Every send, from a command or over MCP, passes the profile's limits and is written to a journal —
without its text.
--filerefuses credential files, CLI folders and the local store. - Control characters in names, titles and messages are shown as text, so other people's text cannot control your terminal.
- The limits stop an agent talked into sending by a message it read, not one that sets out to get round them: for that, run the agent in a sandbox or as a separate user.
To report a vulnerability: SECURITY.md.
More: security · on wirecat.dev
When something goes wrong
More: troubleshooting by symptom · on wirecat.dev · diagnostics · on wirecat.dev
How it differs
Telegram's own apps are made for a person; tg is made for a script and an agent. A Telegram bot sees
only the chats it was added to and speaks as the bot; tg is you, in your chats. Other open tools
connect a Telegram account to an agent too: tgcli, telegram-mcp and tdl.
More: compared with other tools · on wirecat.dev
Part of WireCat
WireCat is an open-source, local-first context layer for AI agents. tg is
where it starts; max-cli brings the MAX messenger into the
same local store. Start with Telegram. Add more context when you need it. Your context. Any agent.
Questions and setup help: join the WireCat Discord. Bugs go to this repository's issues.
Technical docs
Every page is on wirecat.dev/en/docs/tg and in
docs/:
What each version changed: CHANGELOG.md.
Development
Everything that is not specific to Telegram — the commands, the store, the send guard, the MCP
server — lives in cli-core, shared with
max-cli. Telegram-specific code lives only in src/telegram/.
More: ARCHITECTURE · TESTING
Contributing
Pull requests, bug reports and ideas are welcome in issues.
Custom automation with Telegram, other messengers and AI agents: [email protected].
License
Apache License 2.0 — see LICENSE.
来源:README.md,提交 517ef8e
工具
0版本历史
9- v0.117.0最新Nov 7, 2026
- v0.116.0Nov 5, 2026
- v0.115.0Nov 3, 2026
- v0.111.0Nov 1, 2026
- v0.110.0Nov 1, 2026
- v0.109.0Oct 31, 2026
- v0.108.0Oct 31, 2026
- v0.107.0Oct 30, 2026
- v0.106.0Oct 29, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Wire 集成
Wire Cash: bank wire fees and transfer costs
cash.wire官方发布者
Wire Cash 让助手查询美国银行公布的境内外电汇手续费、当日截止时间,以及向墨西哥、印度、菲律宾汇款的 World Bank 汇款成本。

TollWire Evidence
由 GitHub 账号 TollWire 发布
本地 MCP 服务器,把智能体的变更、扫描、审批和部署记录到防篡改哈希链日志中,并可校验该日志。

WireCat b24
dev.wirecat
一个本地 CLI 驱动的 MCP 服务器,让助手读取和修改 Bitrix24 门户的 CRM:交易、线索、联系人、公司、销售流程和产品。

SupportWire
由 GitHub 账号 supportwire 发布
托管式 SupportWire MCP 服务器,让助手分诊客服会话、回复客户,并管理客户、任务与团队设置。
Touchline Wire — FPL & Premier League Intelligence
由 GitHub 账号 Steven-Robinson 发布
免认证的 MCP 服务器,为助手提供 2026/27 赛季英超与梦幻英超(FPL)实时数据:队长人选、预计出场、首发阵容、伤病与统计。