Connect the Pi agent to Mattermost Team Edition

Install the Pi Mattermost bridge, configure it with a bot token, and stream Pi coding sessions into Mattermost channels with slash commands.

Deploy Mattermost Team Edition as a fully managed service starting at €9/month. Get automated backups, SSL, updates, monitoring, and human support, all included.

DANIAN runs Mattermost Team Edition as a fully managed service: installation, updates, backups, monitoring and security are handled for you.

For the two connection directions, channel-per-project layout, security shape and the trio workspace, see the deep guide The Pi agent on Mattermost: the complete guide.

See the mattermost hosting page for plans, pricing and a free trial.

 

Pi, the minimal coding agent from pi.dev, connects to Mattermost through a community bridge package. The bridge maps Pi coding sessions to Mattermost channels: you steer the agent with slash commands while its activity streams into the channel in real time.

What you need

Your DANIAN Mattermost URL, a Mattermost bot token, and Pi installed on your machine. Pi is a terminal-first agent; the bridge adds the chat surface. The package is MIT-licensed community software, so review its source before use, as you would with any third-party extension.

Step 1: Create a bot in Mattermost

Have a System Admin enable bot accounts in the System Console, then add a bot account from the Integrations menu with username pi. Copy the one-time bot token and note the ID of the team the bot joins.

Step 2: Install the bridge

Run pi install npm:@whonixnetworks/pi-mattermost, or install it globally with npm. Then run pi-mattermost path and add the printed export line to your shell profile so the command is on your PATH.

Step 3: Configure it

Run pi-mattermost config to generate the default file, then edit ~/.config/pi-mattermost/config.toml and set the mattermost url to your workspace, the bot_token, and the team_id.

Step 4: Start the service

Run pi-mattermost install, then reload and enable the user service: systemctl --user daemon-reload followed by systemctl --user enable --now pi-mattermost. The bridge now runs in the background.

Step 5: Connect a session

From the Pi terminal inside a project, type /connect to attach that project to a Mattermost channel. Or work from the chat side: type /pi-connect /path/to/your/project in any Mattermost channel and a live session opens there. Use /disconnect when done.

 

Where to read more

Version history, the source repository and configuration reference live on the

Pi package page for the Mattermost bridge.

 

Related guides:

connecting Hermes Agent to Mattermost and

connecting OpenClaw.

For the wider picture on private channels for AI agents, see the guide

The private chat platform for your AI agents.

Explore the platform

Find more information about our company, platform, and services on our website.

Visit danian.co