Skip to content

Discord

Control the Discord Desktop App from the terminal via Chrome DevTools Protocol (CDP).

Prerequisites

Launch with remote debugging port:

bash
/Applications/Discord.app/Contents/MacOS/Discord --remote-debugging-port=9232

Setup

bash
export OPENCLI_CDP_ENDPOINT="http://127.0.0.1:9232"

Commands

CommandDescription
opencli discord-app statusCheck CDP connection
opencli discord-app send "message"Send a message in the active channel
opencli discord-app readRead recent messages
opencli discord-app channelsList channels in the current server
opencli discord-app serversList all joined servers
opencli discord-app search "query"Search messages (Cmd+F)
opencli discord-app membersList online members

Released under the Apache-2.0 License.