beeper-api-cli
Read and send messages via Beeper CLI. Supports WhatsApp, Telegram, Signal, Instagram, Twitter/X, LinkedIn, Facebook Messenger and more.
Install
mkdir -p .claude/skills/beeper-api-cli && curl -L -o skill.zip "https://mcp.directory/api/skills/download/8551" && unzip -o skill.zip -d .claude/skills/beeper-api-cli && rm skill.zipInstalls to .claude/skills/beeper-api-cli
About this skill
beeper-api-cli
LLM-friendly wrapper around the Beeper CLI for reading and sending messages across all connected chat networks.
⚠️ CRITICAL: Message Sending Policy
🚨 NEVER SEND ANY MESSAGE WITHOUT EXPLICIT USER APPROVAL 🚨
MANDATORY PROTOCOL FOR ALL MESSAGING:
- ALWAYS show the complete message draft first - display full content
- WAIT for explicit verbal approval - "send it", "looks good", "go ahead", etc.
- NEVER assume permission to send - even if user says "draft a message"
- Apply to ALL platforms: WhatsApp, Telegram, Signal, Instagram, Twitter, Facebook, LinkedIn, etc.
- NO EXCEPTIONS EVER - This applies to new messages, replies, and forwards
This rule is NON-NEGOTIABLE and applies to ALL beeper send commands.
Quick Start
Step 1: Get Your Token from Beeper Desktop
1. Open Beeper Desktop
2. Settings → Advanced → API
3. Enable API access
4. Copy the Bearer token
Step 2: Set Environment Variables
# REQUIRED: Set your token
export BEEPER_TOKEN="paste-your-token-here"
# OPTIONAL: Override default localhost URL
export BEEPER_API_URL="http://[::1]:23373" # Default
Step 3: Use the CLI
# Use the skill wrapper (recommended)
~/clawd/skills/beeper-api-cli/beeper.sh chats list --output json
# Or use the binary directly
/Users/ashrafali/clawd/beeper-api-cli/beeper chats list --output json
⚠️ Important: Without setting BEEPER_TOKEN, all commands will fail with "Unauthorized" errors.
Prerequisites
1. Beeper Desktop Must Be Running
The CLI connects to Beeper Desktop's local API server.
2. Enable API Access in Beeper Desktop
⚠️ REQUIRED: You must configure the API token in Beeper Desktop first!
- Open Beeper Desktop
- Go to Settings → Advanced → API
- Enable API access
- Generate and copy the Bearer token
- (Optional) Configure allowed IP addresses
- Default: Only
localhost(127.0.0.1 / ::1) is allowed - If running CLI from remote machine, add its IP address in Beeper settings
- Default: Only
3. Set Environment Variables
You must set the token before the CLI will work:
# REQUIRED: Set your token from Beeper Desktop
export BEEPER_TOKEN="your-token-from-beeper-settings"
# OPTIONAL: Override API URL (default: http://[::1]:23373)
export BEEPER_API_URL="http://[::1]:23373"
Where to get the token:
- Beeper Desktop → Settings → Advanced → API → Copy Bearer Token
Important:
- ❌ The CLI will NOT work without setting
BEEPER_TOKEN - ⚠️ Default API URL is
localhost(http://[::1]:23373) - 🔒 If accessing from another machine, you must:
- Add that machine's IP in Beeper Desktop API settings
- Update
BEEPER_API_URLto use the correct host IP
Commands
List All Chats
# JSON output (LLM-friendly)
~/clawd/skills/beeper-api-cli/beeper.sh chats list --output json
# Human-readable text
~/clawd/skills/beeper-api-cli/beeper.sh chats list --output text
# Markdown format
~/clawd/skills/beeper-api-cli/beeper.sh chats list --output markdown
Example JSON output:
[
{
"id": "!wcn4YMCOtKUEtxYXYAq1:beeper.local",
"title": "beeper-api-cli - Lion Bot",
"type": "group",
"network": "Telegram",
"unreadCount": 15
}
]
Get Specific Chat
~/clawd/skills/beeper-api-cli/beeper.sh chats get <chat-id> --output json
List Messages from Chat
# Get last 50 messages (default)
~/clawd/skills/beeper-api-cli/beeper.sh messages list --chat-id <chat-id>
# Get specific number of messages
~/clawd/skills/beeper-api-cli/beeper.sh messages list --chat-id <chat-id> --limit 20 --output json
Example JSON output:
[
{
"id": "42113",
"chatID": "!wcn4YMCOtKUEtxYXYAq1:beeper.local",
"senderName": "ClawdBot",
"text": "Hello world!",
"timestamp": "2026-01-19T22:17:38.000Z",
"isSender": true
}
]
Send a Message
# ⚠️ REQUIRES USER APPROVAL FIRST - see Message Sending Policy above
~/clawd/skills/beeper-api-cli/beeper.sh send --chat-id <chat-id> --message "Your message here"
Example output:
{
"success": true,
"message_id": "msg_123",
"chat_id": "!wcn4YMCOtKUEtxYXYAq1:beeper.local"
}
Search Messages
# Search across all chats
~/clawd/skills/beeper-api-cli/beeper.sh search --query "keyword" --limit 10 --output json
Auto-Discover API URL
~/clawd/skills/beeper-api-cli/beeper.sh discover
LLM Workflows
Find Chat and Send Message
# 1. List chats to find the right one
CHATS=$(~/clawd/skills/beeper-api-cli/beeper.sh chats list --output json)
# 2. Extract chat ID (using jq)
CHAT_ID=$(echo "$CHATS" | jq -r '.[] | select(.title | contains("Project")) | .id')
# 3. Send message
~/clawd/skills/beeper-api-cli/beeper.sh send --chat-id "$CHAT_ID" --message "Update ready!"
Get Conversation Context
# Get recent messages for context
~/clawd/skills/beeper-api-cli/beeper.sh messages list --chat-id <chat-id> --limit 20 --output json | jq
Monitor Unread Messages
# Get all chats with unread count
~/clawd/skills/beeper-api-cli/beeper.sh chats list --output json | jq '.[] | select(.unreadCount > 0) | {title, network, unread: .unreadCount}'
Output Formats
JSON (Default - LLM-Optimized)
- Structured data ready for parsing
- Perfect for programmatic use
- Pipe to
jqfor filtering
Text (Human-Readable)
ID: !wcn4YMCOtKUEtxYXYAq1:beeper.local
Title: beeper-api-cli - Lion Bot
Type: group
Network: Telegram
Unread: 15
Markdown (Documentation)
## beeper-api-cli - Lion Bot
- **ID**: !wcn4YMCOtKUEtxYXYAq1:beeper.local
- **Type**: group
- **Network**: Telegram
- **Unread**: 15
Chat ID Formats
Different networks use different ID formats:
- Telegram:
!wcn4YMCOtKUEtxYXYAq1:beeper.local - WhatsApp: Phone number format (e.g.,
15551234567@s.whatsapp.net) - Signal: Phone number (e.g.,
+15551234567) - Instagram/Twitter: Platform-specific IDs
Use chats list to discover the exact format for your chats.
Environment Variables
Required Configuration
You MUST set these environment variables before using the CLI:
BEEPER_TOKEN (Required)
export BEEPER_TOKEN="your-bearer-token-from-beeper-desktop"
How to get your token:
- Open Beeper Desktop
- Settings → Advanced → API
- Enable API access
- Copy the Bearer token shown in the settings
- Set it as an environment variable
Without this token, the CLI will return "Unauthorized" errors.
BEEPER_API_URL (Optional)
export BEEPER_API_URL="http://[::1]:23373" # Default value
Default behavior:
- Uses
http://[::1]:23373(localhost on IPv6) - This works when running CLI on the same machine as Beeper Desktop
When to change:
- Running CLI from a remote machine
- Beeper Desktop is on a different host
- Using a custom port
If running remotely:
- Find the IP address of the machine running Beeper Desktop
- In Beeper Desktop → Settings → Advanced → API → Add the remote machine's IP to allowed list
- Set
BEEPER_API_URLto:http://<beeper-host-ip>:23373
Example for remote access:
export BEEPER_API_URL="http://192.168.1.100:23373"
export BEEPER_TOKEN="your-token-here"
Skill Wrapper Behavior
The skill wrapper (beeper.sh) will:
- ✅ Use
$BEEPER_TOKENfrom environment (you must set this!) - ✅ Default
$BEEPER_API_URLtohttp://[::1]:23373if not set - ❌ Fail with error if
BEEPER_TOKENis not set
Troubleshooting
"Connection refused"
# Check if Beeper Desktop is running
ps aux | grep -i beeper
# Start Beeper Desktop
open -a "Beeper Desktop" # macOS
"Unauthorized" or "Invalid or missing token"
This means you haven't set BEEPER_TOKEN or it's invalid.
Fix:
# 1. Check if token is set
echo $BEEPER_TOKEN
# If empty or wrong, get a new token from Beeper Desktop:
# - Open Beeper Desktop
# - Settings → Advanced → API
# - Enable API if not already enabled
# - Copy the Bearer token shown
# - Set it in your environment:
export BEEPER_TOKEN="paste-the-token-here"
# Test it works:
~/clawd/skills/beeper-api-cli/beeper.sh chats list
Important Notes:
- The token is generated in Beeper Desktop settings, not in this CLI
- You must copy it exactly from Settings → Advanced → API
- Without a valid token, no commands will work
- Tokens don't expire unless you regenerate them in Beeper settings
"Chat not found"
# List all chats to find correct ID
~/clawd/skills/beeper-api-cli/beeper.sh chats list --output text | grep -i "search-term"
Remote Access (CLI on different machine than Beeper Desktop)
If you want to run the CLI from a different computer:
1. Configure Beeper Desktop to allow remote access:
- Open Beeper Desktop (on the machine running Beeper)
- Settings → Advanced → API
- Find the "Allowed IP Addresses" section
- Add the IP address of the machine running the CLI
- Example: 192.168.1.50
2. Set BEEPER_API_URL to point to the remote machine:
# On the machine running the CLI:
export BEEPER_API_URL="http://<beeper-desktop-ip>:23373"
export BEEPER_TOKEN="your-token"
# Example:
export BEEPER_API_URL="http://192.168.1.100:23373"
Default behavior (localhost only):
- Default URL:
http://[::1]:23373(IPv6 localhost) - Only works when CLI is on same machine as Beeper Desktop
- No remote access unless you configure allowed IPs in Beeper settings
Examples
Example 1: Check Unread Messages
#!/bin/bash
BEEPER="$HOME/clawd/skills/beeper-api-cli/beeper.sh"
# Get chats with unread messages
$BEEPER chats list --output json | \
jq -r '.[] | select(.unreadCount > 0) | "\(.title) (\(.network)): \(.unreadCount) unread"'
Example 2: Read Recent Messages
#!/bin/bash
BEEPER="$HOME/clawd/skills/beeper-api-cli/beeper.sh"
CHAT_ID="!wcn4YMCOtKU
---
*Content truncated.*
More by openclaw
View all skills by openclaw →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
pdf-to-markdown
aliceisjustplaying
Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions "load the whole PDF", "bring the PDF into context", "read the entire PDF", or when partial extraction/grepping would miss important context. This is the preferred method for PDF text extraction over page-by-page or grep approaches.
Related MCP Servers
Browse all serversPowerful MCP server for Slack with advanced API, message fetching, webhooks, and enterprise features. Robust Slack data
Use Mac Messages, the top iMessage app for PC, to send and read iMessages from your desktop with contact and group chat
Manage your emails effortlessly with Gmail, the email management software that organizes, sends, and retrieves messages
Securely access and manage your emails domains with IMAP Apple and SMTP. Enjoy reliable email delivery with IMAP/SMTP su
Access and manage your Instagram Direct Messages with a Python server. Send, read, and retrieve conversations easily usi
Comprehensive SendGrid MCP server with 59 tools covering email marketing, transactional email, template management, cont
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.