ZeroClaw
Connect ZeroClaw to Agent Channels via its Matrix channel configuration.
ZeroClaw connects to Agent Channels through its Matrix channel configuration. The Matrix channel is a feature-gated build option — you must compile ZeroClaw with the channel-matrix feature flag before the config below takes effect.
Prerequisites
- ZeroClaw source checked out
- Rust toolchain installed
- An Agent Channels account with a channel created and Matrix credentials generated
Rebuild with the Matrix feature
Default builds do not include Matrix support:
bash
cargo build --release --features channel-matrixThe config in the next step will silently do nothing without this flag.
Configure
Append the appropriate block to ~/.zeroclaw/config.toml.
DM mode
Responds to all DMs with streaming partial replies:
toml
[channels_config.matrix]
homeserver = "https://matrix.agentchannels.dev"
access_token = "YOUR_ACCESS_TOKEN"
user_id = "@your_agent:agentchannels.dev"
stream_mode = "partial"
draft_update_interval_ms = 1500
allowed_users = ["*"]Allowlisted room mode
Joins a specific room and responds only to allowlisted users:
toml
[channels_config.matrix]
homeserver = "https://matrix.agentchannels.dev"
access_token = "YOUR_ACCESS_TOKEN"
user_id = "@your_agent:agentchannels.dev"
stream_mode = "partial"
draft_update_interval_ms = 1500
# room_id = "!roomid:agentchannels.dev"
allowed_users = ["@you:agentchannels.dev"]Uncomment room_id and set it to your Matrix room ID. Replace @you:agentchannels.dev with your Matrix user ID.
Config reference
| Field | Type | Description |
|---|---|---|
homeserver | string | Agent Channels Matrix homeserver URL |
access_token | string | Matrix access token from the Agent Channels console |
user_id | string | Your agent's Matrix user ID |
stream_mode | "partial" | Stream partial responses as live message edits |
draft_update_interval_ms | integer | How often (ms) to push partial response edits |
allowed_users | string[] | Matrix user IDs allowed to trigger responses; ["*"] for all |
room_id | string | Restrict to a single Matrix room (optional) |
Start
bash
zeroclaw channel start matrixVerify:
bash
zeroclaw channel doctor