by who96
CLI Discord bridge with Codex-first runtime and legacy Claude compatibility.
# Add to your Claude Code skills
git clone https://github.com/who96/cli-discord-bridgeGuides for using cli tools skills like cli-discord-bridge.
Last scanned: 5/30/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-05-30T16:23:40.864Z",
"npmAuditRan": true,
"pipAuditRan": false
}cli-discord-bridge is an open-source cli tools skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by who96. CLI Discord bridge with Codex-first runtime and legacy Claude compatibility. It has 125 GitHub stars.
Yes. cli-discord-bridge 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/cli-discord-bridge" and add it to your Claude Code skills directory (see the Installation section above).
cli-discord-bridge 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 cli-discord-bridge against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Single-file Discord bridge for Codex CLI operation.
The actively maintained runtime targets Codex: one Discord channel connects to one Codex CLI process. Legacy artifacts remain only for rollback and command continuity.
Command surface remains compatible with earlier bridge flows:
/new /status /connect /handoff /help.
CHANNEL_IDDiscord message -> bridge.py -> codex exec/resume --json -> parse JSON events -> Discord reply
Bridge state:
~/.cli-discord-bridge/~/.cli-discord-bridge/session.json
thread_idsession_id~/.cli-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
Legacy rollback example:
com.claude.discord-bridge.plist.example (legacy)Use the active CLI bridge example:
com.cli.discord-bridge.plist.exampleInstall example:
cp com.cli.discord-bridge.plist.example ~/Library/LaunchAgents/com.cli.discord-bridge.plist
# edit token/channel/paths
launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.cli.discord-bridge.plist
Stop:
launchctl bootout gui/$(id -u)/com.cli.discord-bridge
Logs:
tail -f ~/.cli-discord-bridge/bridge.log
tail -f ~/.cli-discord-bridge/bridge.err.log
Recommended migration sequence:
com.cli.discord-bridge in a new Discord channel.com.cli.discord-bridge and continuing with legacy service.CHANNEL_ID and state dirs.