by who96
Single-file bridge: talk to Claude Code CLI from Discord.
# Add to your Claude Code skills
git clone https://github.com/who96/claude_bridge_discordGuides for using cli tools skills like claude_bridge_discord.
Last scanned: 5/30/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-05-30T15:57:36.567Z",
"npmAuditRan": true,
"pipAuditRan": false
}claude_bridge_discord is an open-source cli tools skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by who96. Single-file bridge: talk to Claude Code CLI from Discord. It has 162 GitHub stars.
Yes. claude_bridge_discord passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/who96/claude_bridge_discord" and add it to your Claude Code skills directory (see the Installation section above).
claude_bridge_discord is primarily written in Python. It is open-source under who96 on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other CLI Tools skills you can browse and compare side by side. Open the CLI Tools category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh claude_bridge_discord against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Single-file bridge that connects one Discord channel to one Codex CLI process.
This repository keeps command compatibility with the previous Claude bridge:
/new /status /connect /handoff /help.
CHANNEL_IDDiscord message -> bridge.py -> codex exec/resume --json -> parse JSON events -> Discord reply
Bridge state:
~/.codex-discord-bridge/~/.codex-discord-bridge/session.json
thread_idsession_id~/.codex-discord-bridge/handoffs/codex exec --json --skip-git-repo-check [--dangerously-bypass-approvals-and-sandbox] [-m MODEL] "<prompt>"codex exec resume --json --skip-git-repo-check [--dangerously-bypass-approvals-and-sandbox] [-m MODEL] <thread_id> "<prompt>"thread.started.thread_id as authoritative thread IDitem.completed.item.type=="agent_message" text as reply body/connect safety:
/connect <thread_id> is strict.thread.started.thread_id, bridge treats it as failure and blocks auto-fallback.Implicit fallback:
| Variable | Required | Default | Description |
|---|---|---|---|
DISCORD_TOKEN |
Yes | — | Discord bot token |
CHANNEL_ID |
Yes | — | Discord channel ID |
CODEX_BIN |
No | codex |
Codex CLI binary path |
CODEX_MODEL |
No | empty | Optional model override |
CODEX_TIMEOUT |
No | 300 |
Max seconds per Codex call |
CODEX_CWD |
No | $HOME |
Working directory for Codex call |
CODEX_FULL_ACCESS |
No | 0 |
1 enables --dangerously-bypass-approvals-and-sandbox |
SELFTEST_ON_START |
No | 0 |
1 runs startup selftest |
Compatibility fallback (for smooth migration):
CLAUDE_CWD can still be used if CODEX_CWD is not setCLAUDE_TIMEOUT can still be used if CODEX_TIMEOUT is not set| Command | Behavior |
|---|---|
/new |
Clear current thread; next message creates a new thread |
/status |
Show current thread, cwd, timeout, backend |
/connect [thread-id] |
Bind explicit thread (no arg = reset) |
/handoff |
Summarize old thread -> coldstart new thread; rollback old thread if new bootstrap fails |
/help |
Show command help |
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
DISCORD_TOKEN="xxx" \
CHANNEL_ID="1234567890" \
CODEX_FULL_ACCESS="1" \
.venv/bin/python3 bridge.py
Keep old example for rollback:
com.claude.discord-bridge.plist.example (legacy)Use new Codex example for migration:
com.codex.discord-bridge.plist.exampleInstall example:
cp com.codex.discord-bridge.plist.example ~/Library/LaunchAgents/com.codex.discord-bridge.plist
# edit token/channel/paths
launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.codex.discord-bridge.plist
Stop:
launchctl bootout gui/$(id -u)/com.codex.discord-bridge
Logs:
tail -f ~/.codex-discord-bridge/bridge.log
tail -f ~/.codex-discord-bridge/bridge.err.log
Recommended migration sequence:
com.codex.discord-bridge in a new Discord channel.com.claude.discord-bridge running in parallel for observation.com.codex.discord-bridge and continuing with legacy service.CHANNEL_ID and state dirs.