一键导入
add-matrix
Add Matrix channel integration via Chat SDK. Works with any Matrix homeserver.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Add Matrix channel integration via Chat SDK. Works with any Matrix homeserver.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Use Codex (CLI + AppServer) as the full agent provider — planning, tool orchestration, native compaction, MCP tools, session resume — in place of the Claude Agent SDK. ChatGPT subscription or OPENAI_API_KEY. Per-group via agent_provider. Distinct from using OpenAI as an MCP tool (where Claude remains the planner).
Super-easy FamilyClaw family setup — base install (Telegram + native credential proxy) then auto-create a shared-memory family agent with an invite link for the rest of the household. Triggers on "set up family", "family setup", "setup familyclaw for my family".
Efficiently bring upstream FamilyClaw updates into a customized install, with preview, selective cherry-pick, and low token usage.
Add Atomic Chat MCP server so the container agent can call local models served by the Atomic Chat desktop app via its OpenAI-compatible API.
Add a monitoring dashboard to FamilyClaw. Installs @nanoco/nanoclaw-dashboard and a pusher that sends periodic JSON snapshots.
Add DeltaChat channel integration via @deltachat/stdio-rpc-server. Native adapter — no Chat SDK bridge. Email-based messaging with end-to-end encryption.
| name | add-matrix |
| description | Add Matrix channel integration via Chat SDK. Works with any Matrix homeserver. |
Adds Matrix support via the Chat SDK bridge.
FamilyClaw doesn't ship channels in trunk. This skill copies the Matrix adapter in from the channels branch.
Skip to Credentials if all of these are already in place:
src/channels/matrix.ts existssrc/channels/index.ts contains import './matrix.js';@beeper/chat-adapter-matrix is listed in package.json dependenciesOtherwise continue. Every step below is safe to re-run.
git fetch origin channels
git show origin/channels:src/channels/matrix.ts > src/channels/matrix.ts
Append to src/channels/index.ts (skip if the line is already present):
import './matrix.js';
pnpm install @beeper/chat-adapter-matrix@0.2.0
The adapter's published dist references matrix-js-sdk/lib/... without .js
extensions, which fails under Node 22 strict ESM resolution. Add the missing
extensions (idempotent — safe to re-run):
node -e '
const fs = require("fs"), path = require("path");
const root = "node_modules/.pnpm";
const dir = fs.readdirSync(root).find(d => d.startsWith("@beeper+chat-adapter-matrix@"));
if (!dir) { console.log("Matrix adapter not installed"); process.exit(0); }
const f = path.join(root, dir, "node_modules/@beeper/chat-adapter-matrix/dist/index.js");
fs.writeFileSync(f, fs.readFileSync(f, "utf8").replace(
/from "(matrix-js-sdk\/lib\/[^"]+?)(?<!\.js)"/g, "from \"$1.js\""
));
console.log("Patched", f);
'
Re-run this after every pnpm install that touches the adapter.
pnpm run build
The bot needs its own Matrix account — separate from the user's account. This is required because Matrix cannot send DMs to yourself.
andybot on matrix.org)@andybot:matrix.org)Option A: Username + Password (simpler)
No extra steps — just use the bot account's credentials directly. The adapter logs in automatically.
MATRIX_BASE_URL=https://matrix.org
MATRIX_USERNAME=andybot
MATRIX_PASSWORD=your-bot-password
MATRIX_USER_ID=@andybot:matrix.org
MATRIX_BOT_USERNAME=Andy
Option B: Access Token (recommended for production)
Get an access token from Element: sign into the bot account → Settings > Help & About > Access Token (under Advanced). Or via API:
curl -XPOST 'https://matrix.org/_matrix/client/r0/login' \
-d '{"type":"m.login.password","user":"andybot","password":"..."}'
MATRIX_BASE_URL=https://matrix.org
MATRIX_ACCESS_TOKEN=your-access-token
MATRIX_USER_ID=@andybot:matrix.org
MATRIX_BOT_USERNAME=Andy
MATRIX_INVITE_AUTOJOIN=true # Auto-accept room invites (default: true)
MATRIX_INVITE_AUTOJOIN_ALLOWLIST=@you:matrix.org # Only accept invites from these users
MATRIX_RECOVERY_KEY=your-recovery-key # Enable E2EE cross-signing
MATRIX_DEVICE_ID=FAMILYCLAW01 # Stable device ID across restarts
Add the chosen env vars to .env, then sync:
mkdir -p data/env && cp .env data/env/env
If you're in the middle of /setup, return to the setup flow now.
Otherwise, run /manage-channels to wire this channel to an agent group.
matrix!abc123:matrix.org) and optional aliases (like #general:matrix.org).openDM to resolve the room automatically. For group rooms, in Element click the room name > Settings > Advanced — the "Internal room ID" is the platform ID (starts with !). Or use a room alias like #general:matrix.org.