Matrix bridge for Claude AI (Opus, Sonnet, Haiku). API key or Pro/Max subscription via Agent SDK.
3.3K
A Matrix bridge for Claude AI built on the mautrix bridge framework.
Chat with Claude models (Opus, Sonnet, Haiku) through any Matrix client.
docker run --rm -v ./data:/data wrongname/mautrix-claude
Edit data/config.yaml — set homeserver.address, homeserver.domain, and bridge.permissions.
docker run --rm -v ./data:/data wrongname/mautrix-claude
Register the generated data/registration.yaml with your homeserver.
docker run -d --restart unless-stopped \
-v ./data:/data \
-e UID=1000 \
-e GID=1000 \
wrongname/mautrix-claude
Or with docker compose:
services:
mautrix-claude:
image: wrongname/mautrix-claude:latest
restart: unless-stopped
volumes:
- ./data:/data
environment:
- UID=1000
- GID=1000
- NODE_OPTIONS=--max-old-space-size=2048
deploy:
resources:
limits:
memory: 4G
reservations:
memory: 1G
@claudebot:yourdomain.com to a Matrix roomloginUse a Claude Pro or Max subscription instead of paying per API call:
npm install -g @anthropic-ai/claude-code && claudecp -r ~/.claude/* ./data/.claude/network:
sidecar:
enabled: true
| Command | Description |
|---|---|
login | Start authentication |
logout | Remove current login |
models | List available Claude models |
model <name> | Switch model (opus, sonnet, haiku) |
system <prompt> | Set system prompt for this room |
temperature <0-1> | Adjust response randomness |
max_tokens <n> | Set max response tokens |
Matrix Client → Homeserver → mautrix-claude (Go)
├── Anthropic API (API key mode)
└── Python Sidecar (Pro/Max mode)
└── Claude Agent SDK → Anthropic
Each Claude model family appears as a separate ghost user in Matrix (e.g. @claude_sonnet:yourdomain.com).
Content type
Image
Digest
sha256:d14d4ae62…
Size
201.7 MB
Last updated
14 days ago
docker pull wrongname/mautrix-claude