CLI for the local Beeper Desktop HTTP API.
beeper-cli lets you search chats, read messages, send messages with attachments, react/edit/delete, manage reminders, upload/download media, and work across connected messaging accounts from the terminal.
It talks to the Beeper Desktop app running on your machine. It is not a hosted service and does not work unless Beeper Desktop is running locally.
- Authenticate against Beeper Desktop via OAuth
- Call low-level Beeper Desktop API endpoints when a dedicated command is unavailable
- List connected messaging accounts
- Search contacts on connected accounts
- List chats, inspect chat metadata, create chats, archive/unarchive chats
- Read messages in a chat
- Search messages across chats
- List poll messages and parse their question/options from chat history
- Send text messages and messages with file attachments
- Send one message under a supported disappearing-message timer
- Reply to a specific message
- Edit sent messages
- Delete sent messages
- React and unreact to messages
- Upload files and base64 content as Beeper assets
- Download cached media assets
- Render encrypted media assets into usable local files
- Set and clear chat reminders
- Focus Beeper Desktop on a chat or message
Supported account types depend on what you have connected in Beeper Desktop, for example WhatsApp, Telegram, Signal, Discord, Slack, Instagram, iMessage, and others exposed by Beeper.
The CLI uses Beeper Desktop's local API, which defaults to:
http://localhost:23373
You can override that with either:
--url http://host:portBEEPER_URL=http://host:port
Authentication is local and automatic:
- the first authenticated command triggers browser OAuth
- tokens are cached in
~/.beeper/token.json
git clone git@github.com:seahyc/beeper-cli.git
cd beeper-cli
make buildThis builds ./beeper.
make install- Beeper Desktop must be running
- You must already be logged into Beeper Desktop
- At least one messaging account should be connected in Beeper
Check that the local API is reachable:
beeper infoCheck auth status:
beeper auth statusList accounts:
beeper account listList recent chats:
beeper chat list --limit 10Read recent messages in a chat:
beeper msg list "!chatID:beeper.local" --limit 10Send a message:
beeper msg send "!chatID:beeper.local" --text "Hello!"Send a message under a disappearing-message timer, restoring the previous chat timer afterward:
beeper msg send "!chatID:beeper.local" --text "Secret" --disappear-after 24h--disappear-after is fail-closed: it validates the chat's advertised timer
values and verifies Beeper Desktop actually applied the timer before sending.
If the bridge rejects or silently ignores the timer, the message is not sent.
Send a message with an image:
beeper msg send "!chatID:beeper.local" --text "See attached" --file ./photo.jpgList recent polls in a chat:
beeper poll list "!chatID:beeper.local" --limit 10Reply to a specific message:
beeper msg send "!chatID:beeper.local" --text "Following up on this" --reply-to "73188"beeper infobeeper auth statusbeeper auth logoutbeeper api get /v1/info --no-authbeeper api get '/v1/chats?limit=5'
beeper api accepts relative Beeper API paths only. Use the global --url or
BEEPER_URL setting when targeting a different Beeper Desktop API host.
beeper account listbeeper contact search <accountID> <query>beeper contact list <accountID>
beeper chat listbeeper chat get "!chatID:beeper.local"beeper chat search "query"beeper chat create --account <id> --type single ...beeper chat create --account <id> --type group ...beeper chat archive "!chatID:beeper.local"beeper chat unarchive "!chatID:beeper.local"beeper chat pinned "!chatID:beeper.local"beeper chat set-expiry "!chatID:beeper.local" 24hbeeper chat clear-expiry "!chatID:beeper.local"
beeper msg list "!chatID:beeper.local" --limit 20beeper msg search "keyword" --chat "!chatID:beeper.local" --limit 20beeper msg search "keyword" --chat "!chatID:beeper.local" --local --pages 40beeper msg send "!chatID:beeper.local" --text "Hello"beeper msg send "!chatID:beeper.local" --text "Secret" --disappear-after 24hbeeper msg edit "!chatID:beeper.local" "msgID" --text "Edited"beeper msg delete "!chatID:beeper.local" "msgID"beeper msg react "!chatID:beeper.local" "msgID" '👍'beeper msg unreact "!chatID:beeper.local" "msgID" '👍'
For sensitive content, prefer beeper msg send --disappear-after <duration>
over manually calling chat set-expiry and then msg send. The one-shot
command fails before sending when disappearing messages are unsupported or
Beeper Desktop no-ops the timer.
beeper poll list "!chatID:beeper.local" --limit 10beeper poll list "!chatID:beeper.local" --pages 20 --page-size 100
beeper asset upload ./file.jpgbeeper asset upload-base64 --content <b64> --filename img.png --mime image/pngbeeper asset download <mxc://url>beeper asset download <mxc://url> --output ./downloads/beeper asset serve --url <mxc://url>beeper asset serve --url <mxc://url> --output ./preview.jpg
beeper reminder set "!chatID:beeper.local" --at "2026-05-04T10:00:00Z"beeper reminder clear "!chatID:beeper.local"beeper focus --chat "!chatID:beeper.local"beeper focus --chat "!chatID:beeper.local" --message "msgID"
There are two useful asset flows:
asset download resolves a Beeper asset into the local cached file that Beeper Desktop already has on disk.
Example:
beeper asset download "mxc://beeper.local/abc123"Typical output:
{
"url": "file:///Users/you/Library/Application%20Support/BeeperTexts/media/...",
"sourcePath": "/Users/you/Library/Application Support/BeeperTexts/media/...",
"savedPath": "/Users/you/Library/Application Support/BeeperTexts/media/..."
}If you pass --output, it copies the cached file to your chosen path.
beeper asset download "mxc://beeper.local/abc123" --output ./downloads/asset serve fetches the rendered media bytes from Beeper's serve endpoint and writes them to a local file.
This is especially useful when the message attachment exposes an encrypted mxc://...?...encryptedFileInfoJSON=... URL and you want a directly usable file.
beeper asset serve --url "mxc://beeper.local/abc123?encryptedFileInfoJSON=..." --output ./preview.jpgTypical output:
{
"contentType": "image/jpeg",
"savedPath": "/tmp/beeper-asset-12345.jpg",
"size": 75600
}This flow has been verified for:
- images
- encrypted images
- PDFs/files
- encrypted WhatsApp video
beeper poll list scans chat history and extracts poll question/options from messages where Beeper Desktop renders a WhatsApp poll as HTML text.
Example:
beeper poll list "!chatID:beeper.local" --limit 5Typical output includes:
{
"messageID": "94457",
"question": "RSVP: who has confirmed?",
"options": ["Alice", "Bob"],
"source": "beeper_api_text",
"voteCountsAvailable": false
}Beeper Desktop's local API currently exposes WhatsApp polls as text only. It does not expose native poll creation, live vote counts, or voter names. Use WhatsApp Web or the native WhatsApp app for those operations.
- Chat IDs look like
!abc123:beeper.local - The CLI URL-encodes Beeper path identifiers internally; quoting chat IDs in shell commands is still recommended
msg search --limitis effectively capped by the Beeper Desktop API at20; chat-scoped searches fall back to local history scanning when the API rejects the query or ignores--chat- Use
msg search --local --chat ... --pages Nwhen you need deterministic scoped search over older chat history chat pinnedprobes known Beeper Desktop pinned-message endpoints and reportssupported: falsewhen the local API does not expose pinned messagespoll listcan parse poll question/options from Beeper message text, but native poll creation and live vote counts are not exposed by Beeper Desktop's local APImsg edit,msg delete,msg react, andmsg unreactshould use the numeric message ID frommsg listasset downloadunderstands both Beeper response shapes:urlandsrcURLasset servereturns a local file path, not a remote URL- If you omit
--outputforasset serve, it writes to a temp file
Build locally:
make buildInstall locally:
make installClean local binary:
make clean