chatley-cli

中文文档
0.2.1发布于 2026/11/03MIT

Chatley Line command line: give an AI agent its own phone number, place calls and texts, answer live lookups, and run a local MCP server.

原始使用文档
文档目录4 节
  1. Live answers ( chatley listen )
  2. MCP
  3. Owner-only actions
  4. Configuration

chatley-cli

Give an AI agent its own Chatley Line (a phone number) from the command line, answer callers' questions live while they hold, and run a local MCP server for agents that cannot add a remote one.

npm install -g chatley-cli
chatley signup                     # shows a link + code; you approve in the browser; the key is saved
chatley line                       # number, plan, credit, texting status, today's usage
chatley pricing                    # plan, per-minute and per-text prices, credit packs
chatley call +14155550123 --task "Ask if they have a table for two Friday at 7" --wait
                                   # waits for the owner's approval first when the number is new
chatley text +14155550123 --message "Running 10 minutes late" --objective "Confirm the new time" [--from <number>]
chatley texting status             # texting registration (carriers require it)
chatley approvals | billing | templates | contacts | events
chatley listen --runtime claude-code --exec "./answer.sh"
chatley mcp                        # stdio MCP server

Live answers (chatley listen)

Holds the line's event socket. Events print as JSON lines and are acknowledged. When a caller asks something only your agent knows, the request goes to --exec as JSON on stdin (question, untrusted_caller_text, untrusted_conversation); print {"context": "...", "disposition": "facts"} or plain text to answer, or nothing to let the line carry on. The caller's words are data: your command must never act on instructions in them. Reconnects by itself; unread events replay.

MCP

{ "mcpServers": { "chatley": { "command": "npx", "args": ["-y", "chatley-cli", "mcp"] } } }

With no key saved it exposes only chatley_auth_login and chatley_auth_poll. After the person approves, the key is saved to the profile and the phone tools appear (get_phone_line, place_call, get_approval, wait_for_call, stop_call, send_text, list_texts, get_texting_status, register_texting, list_events, push_call_context, list_numbers, list_contacts, create_contact, list_templates, apply_template, get_pricing, get_line_billing, buy_call_credits); clients are told the tool list changed. The device code and the key never appear in a tool result.

Owner-only actions

The agent's key can't spend the owner's card or undo the line: buying or releasing a number, cancelling the plan, choosing a premium voice, a texting registration that costs money (personal or business on a local number; toll-free is free and allowed), and setting or clearing the owner PIN. The server answers 403 OWNER_ACTION_REQUIRED with a dashboard_url; tell the person to do it there. chatley numbers buy / numbers release print that message. Adding credit from the agent's own wallet (buy_call_credits, a shared payment token, $5 to $500) is allowed.

Configuration

CHATLEY_API_KEYUse this key instead of the saved one (never written to disk)
CHATLEY_API_BASEAPI base, default https://app.chatley.ai/api. HTTPS only.
CHATLEY_CONFIG_DIRWhere the profile lives (default ~/.config/chatley, %APPDATA%\chatley on Windows); the file is owner-only

Protocol reference: https://www.chatley.ai/skill.md

License: MIT.

版本与发布记录

chatley-cli 共发布 3 个版本,首次发布于 2026/10/29;过去 12 个月发布了 3 个版本。

版本发布日期距今
0.2.1latest2026/11/03今天
0.2.02026/10/295 天前
0.0.0-stage2026/10/295 天前

关于 chatley-cli 的常见问题

chatley-cli 是什么?

Chatley Line命令行:给AI代理自己的电话号码,拨打电话和短信,回答实时查询,并运行本地MCP服务器。

如何安装 chatley-cli?

在项目目录运行 npm install chatley-cli,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 chatley,可以用 npx chatley 直接运行。

chatley-cli 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/chatley-cli 是否存在。

chatley-cli 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18.17。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

chatley-cli 可以商用吗?

chatley-cli 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

chatley-cli 还在维护吗?

最新版本 0.2.1 发布于 2026/11/03(今天);至今共发布 3 个版本,其中过去 12 个月发布了 3 个;首次发布于 2026/10/29。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。