Отправка iMessage и SMS из shell через npm-пакет @sendblue/cli.

Звёзды49 917
Авторsickn33

Установка

SKILL.md

Sendblue CLI

Overview

@sendblue/cli is a Node CLI that creates a Sendblue account, provisions an iMessage-enabled number, and sends messages. It is the fastest way to text from a shell, script, or Claude Code hook — no API client, no webhook server, no credentials in env vars. Credentials live at ~/.sendblue/credentials.json (mode 600) and Node.js 18+ is required.

When to Use This Skill

  • Use when the user wants to text a phone number from a script, shell, hook, or agent turn (e.g. "text me when X finishes", "ping my phone", "notify on completion").
  • Use when the user mentions sendblue as a CLI/binary or asks to set up the @sendblue/cli package.
  • Prefer this skill over [[sendblue-api]] when the work happens in a shell context, one-shot script, cron job, or agent hook.
  • Reach for [[sendblue-api]] instead when writing application code that integrates Sendblue, receiving inbound webhooks, or needing features the CLI does not expose (send styles, reactions, group messages, status callbacks, media uploads).

How It Works

Step 1: Install

npm install -g @sendblue/cli       # global, exposes `sendblue`
# or one-shot:
npx @sendblue/cli <command>

Step 2: Set up an account

sendblue setup runs interactively by default. For CI/scripts, run it in two phases — the first call sends an 8-digit verification code by email, the second consumes it.

sendblue setup --email you@example.com                                       # sends code
sendblue setup --email you@example.com --code 12345678 \
               --company my-co --contact +15551234567                        # completes setup
FlagNotes
--emailEmail address
--code8-digit verification code (from the email)
--companyLowercase, hyphens/underscores, 3–64 chars
--contactFirst contact, E.164

Step 3: Send messages

sendblue send +15551234567 'Hello from Sendblue!'
sendblue messages --inbound --limit 20

Phone numbers must be E.164 (+ + country code + digits, no spaces or dashes).

Step 4: Manage contacts and plan

On the free plan, a contact must text your Sendblue number once before outbound sends to that contact will work. After sendblue setup ... --contact +15551234567, have that contact send any text to the printed Sendblue number, then run sendblue contacts to confirm verification.

Command Reference

CommandPurpose
sendblue setupCreate account, verify email, set company name, add first contact
sendblue loginLog in to an existing account
sendblue send <number> <message>Send an iMessage
sendblue messages [--inbound|--outbound] [-n <number>] [-l <count>]List recent messages
sendblue add-contact <number>Register a contact
sendblue contactsList contacts and their verification status
sendblue statusAccount/plan info
sendblue whoamiShow current credentials and verify validity

Examples

Example 1: Notify when a long task finishes

long_running_thing && sendblue send +15551234567 "✅ done: $(date)"

Example 2: Read recent inbound for a specific contact

sendblue messages -n +15551234567 --inbound --limit 50

Example 3: Verify creds are good before a batch send

sendblue whoami || sendblue login

Example 4: Wire to a Claude Code Stop hook

To text yourself at the end of every agent turn, register a Stop hook in settings.json that shells out to sendblue send. Defer the actual hook wiring to [[update-config]] and the trigger logic to [[sendblue-notify]] — this skill only owns the CLI invocation.

Best Practices

  • ✅ Use E.164 numbers everywhere. +15551234567, never 5551234567 or (555) 123-4567.
  • ✅ Run sendblue whoami before unattended batches to fail fast on stale or missing creds.
  • ✅ Re-run setup as the same OS user that owns ~/.sendblue/credentials.json.
  • ❌ Don't sudo — it writes creds to root's home and the next non-sudo run won't see them.
  • ❌ Don't embed creds in env vars when the CLI already reads them from the per-user credentials file.

Limitations

  • Outbound-first: there is no built-in webhook server for inbound. Use [[sendblue-api]] webhooks for full inbound handling.
  • The CLI does not expose send styles/effects, reactions, group messages, status callbacks, media uploads, or the contacts API beyond basic CRUD. Reach for the HTTP API for those.
  • Free-plan accounts require recipient verification before outbound sends succeed.

Security & Safety Notes

  • Credentials are written to ~/.sendblue/credentials.json with mode 600. Treat that file like an API key — do not commit it, do not copy it across machines without the same posture.
  • Treat every outbound send, contact setup, login, or account setup action as state-changing. Preview the recipient, message body, and account/email target, then wait for explicit user confirmation before running it.
  • Run the CLI as the OS user that owns the credentials file. sudo writes a separate copy under root's home and silently desyncs.
  • Outbound messages to phone numbers are not free of consequence — wire sendblue send into hooks or loops only after gating on duration or success conditions to avoid spamming the recipient.
  • Verification codes arrive by email; treat the address you registered with as a recovery factor for the account.

Common Pitfalls

  • E.164 only. 5551234567 or (555) 123-4567 will fail — always +15551234567.
  • Free-plan unverified contacts. Outbound to a contact that hasn't texted in first returns an error — have them text your Sendblue number once, then confirm with sendblue contacts.
  • Two-step setup in non-interactive mode. --email alone only sends the code; you must run a second invocation with --code and the rest of the flags to finish.
  • Credentials are per-user. ~/.sendblue/credentials.json is owner-only (600). Don't sudo and pollute root's home — re-running as the same user that ran setup is what works.

Related Skills

  • @sendblue-api — HTTP/JSON alternative for application code, webhooks, and features the CLI does not expose.
  • @sendblue-notify — Patterns and copy rules for "text me when X is done" workflows that sit on top of this CLI.
  • @update-config — Wires sendblue send into Claude Code hooks (Stop, Notification) without owning the message logic.

Links

  • README & full flag reference: https://github.com/sendblue-api/sendblue-cli
  • Sendblue: https://sendblue.com
  • API docs (deeper protocol details): https://docs.sendblue.com

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: sendblue-cli](https://darkplay.ru/ai/skills/sickn33-agentic-awesome-skills-sendblue-cli)

Описание

Отправка iMessage и SMS из оболочки через npm-пакет @sendblue/cli — исходящие отправки, управление контактами и настройка аккаунта без необходимости в API-клиенте или сервере вебхуков.

Похожие скиллы и другие разделы каталога

Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

imessageanthropics · Мост для обмена сообщениями iMessage со встроенным контролем доступа. Читает chat.db…
100 комп.
bluebubbles-gatewayanthropics · Позволяет использовать iMessage через BlueBubbles в каналах Claude Code.
38 комп.
cloudplayplusanthropics · Плагин-канал, связывающий Claude Code с запущенным Flutter-приложением CloudPlayPlus…
38 комп.
imessageanthropics · Двусторонний мост iMessage для Claude Code: сообщения, фото, реакции и файлы.
38 комп.
imessage-mcpanthropics · MCP-сервер iMessage для macOS: чтение chat.db, расшифровка голосовых, поиск FTS5…
38 комп.
messages-for-aianthropics · Безопасная альтернатива автоматизации iMessage: каждое сообщение Claude через этот MCP…
38 комп.
autoMessage· Отправка и чтение iMessage с вашего Mac и Apple ID — черновики, история и контакты
—
BlooioBlooio · Отправка и приём iMessage, SMS, RCS и WhatsApp, управление контактами, чатами и номерами.
—
Blujayblujayhq · Чтение и отправка сообщений через iMessage, RCS и SMS с ваших номеров Blujay.
—
Chert· Чтение линий FaceTime и iMessage, звонков, расшифровок и сообщений в Chert.
—

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации изображений

Генерация изображений

Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты

MagviMagvi
По запросу
5.0
DALL-E 3OpenAI
По подписке
5.0
SupaLabSupalab
По запросу
5.0
Freestyling.aiFreestyling
Есть бесплатный тариф
4.9
ArtGeneration.meArtgeneration
Есть бесплатный тариф
4.9
BigjpgBigjpg
По запросу
4.9
Художник от VKVK
Бесплатно
4.9
Wonderink — ИИ-книги
Есть бесплатный тариф
4.8
Avato AI12ai
По запросу
4.8
Virton AIVirton
По запросу
4.8