Multi-platform messaging CLI for AI agents (Slack, Discord, Teams)
npm install agent-messengerGive your AI agent the power to read and send messages across Slack, Discord, Teams and more
A unified, agent-friendly CLI for messaging platforms. Zero-config credential extraction from your desktop appsβno OAuth flows, no API keys, no admin approval needed. Works out of the box.
- π No API keys needed β Automatically extracts credentials from your installed desktop apps
- π One interface, multiple platforms β Learn once, use everywhere (Slack, Discord, Teams)
- π€ AI-agent friendly β JSON output by default, perfect for LLM tool use
- π€ Human friendly too β Add --pretty for readable output
- πͺ Token efficient β CLI, not MCP. Load only what you need. (Why not MCP?)
``bash`
npm install -g agent-messenger
Or use your favorite package manager.
This installs:
- agent-slack β Slack CLIagent-discord
- β Discord CLIagent-teams
- β Microsoft Teams CLI
Agent Messenger includes Agent Skills that teach your AI agent how to use these CLIs effectively.
`bash`
npx skills add devxoul/agent-messenger
See skills.sh for more details.
`bash`
claude plugin marketplace add devxoul/agent-messenger
claude plugin install agent-messenger
Or within Claude Code:
``
/plugin marketplace add devxoul/agent-messenger
/plugin install agent-messenger
Add to your opencode.jsonc:
`jsonc`
{
"plugins": [
"agent-messenger@1.3.0"
]
}
Get up and running in 30 seconds:
`bash1. Extract credentials from your Slack desktop app
agent-slack auth extract
That's it. No OAuth flows. No API tokens. No configuration files.
π Supported Platforms
| Feature | Slack | Discord | Teams |
|---------|:-----:|:-------:|:-----:|
| Auto credential extraction | β
| β
| β
|
| Send / List / Search messages | β
| β
| β
|
| Threads | β
| β
| β
|
| Channels & Users | β
| β
| β
|
| Reactions | β
| β
| β
|
| File uploads | β
| β
| β
|
| Workspace snapshots | β
| β
| β
|
| Multi-workspace | β
| β
| β
|
| Bot support | ποΈ | ποΈ | ποΈ |
> Note: Teams tokens expire in 60-90 minutes. See Teams Guide for token refresh patterns.
π Platform Guides
- Slack Guide β Full command reference for Slack
- Discord Guide β Full command reference for Discord
- Teams Guide β Full command reference for Microsoft Teams
π‘ Use Cases
π€ For AI Agents
- Give Claude, GPT, or your custom agent the ability to read and send messages
- Automate Slack/Discord/Teams workflows with simple CLI commands
- Build integrations without OAuth complexity
π©βπ» For Developers
- Quick message sending from terminal
- Scripted notifications and alerts
- Workspace snapshots for debugging
π₯ For Teams
- Automate standups and reminders
- Cross-post announcements to multiple platforms
- Build custom notification pipelines
π§ Philosophy
Why not MCP? MCP servers expose all tools at once, bloating context and confusing agents. Agent Skills + agent-friendly CLI offer a better approachβload what you need, when you need it. Fewer tokens, cleaner context, better output.
Why not OAuth? OAuth requires an app and it requires workspace admin approval to install, which can take days. This tool just worksβzero setup required. Bot support is on the roadmap for those who prefer it.
Inspired by agent-browser from Vercel Labs.
π€ Contributing
`bash
bun install # Install dependencies
bun link # Link CLI globally for local testing
bun test # Run tests
bun typecheck # Type check
bun lint # Lint
bun run build # Build
``MIT