Product / Bots

Control machines from chat

Telegram, Discord, and Slack bots that use your CMDOP API key and target registered machines — same security model as the CLI and SDK.

Install the Python package

Python Bot SDK documentation
cmdop · AI session
Connected
Cmdop·Session: ops-7ba102cd● live

You · 11:48

Spin up three agents to talk to each other, then paste the conversation here.

Cmdop · 11:49

✓ delegate_task (6.2s)

Delegate subagentagent_type: planner · background: false

Dialogue

A: Morning — what are we shipping today?

B: API cutover is green; watching error budget.

C: I will capture risks in the incident doc.

Message or /command…· /commands · esc clear · ctrl+c exit
CLI flow
AI chat
interactive
Machines
12 online
Delegation
subagents

What you ship

Channel adapters

Telegram, Discord, and Slack each map tokens and allow-lists to your CMDOP API key.

TelegramBot(token, allowed_users)

DiscordBot(token, guild_ids)

SlackApp(bot_token, app_token)

Machine targeting

Point a conversation at a registered machine name or let defaults apply from config.

machine="prod-01"

CMDOP_API_KEY from dashboard

same agent as CLI

Model tiers

Optional model selection for AI-backed bot flows when enabled.

Model.balanced()

per-channel config

rate limits via API

From install to first message

Step 1

Install agent & API key

Run the agent on your fleet and copy an API key from the dashboard.

Step 2

Install cmdop-bot

Add extras for the channels you need (Telegram, Discord, Slack, or all).

Step 3

Run and scope users

Start the bot process and restrict who can trigger remote actions.

Why teams add bots

On-call from phone

Approve or run safe commands from chat without opening a laptop.

/status prod

allowed user IDs

audit in dashboard

Shared visibility

Keep responses in-channel so the team sees the same machine output.

threaded replies

guild-scoped Discord

Slack workspace

Open source

Inspect and extend the same package we ship in docs.

PyPI: cmdop-bot

examples in docs

GitHub

Wire up your channels

Install the Python package, pick a channel, and scope access to approved users or guilds.