who96

Single-file bridge: talk to Claude Code CLI from Discord. 单文件桥接:通过 Discord 与本地 Claude Code 对话。

98
22
100% credibility
Found Feb 27, 2026 at 98 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Python
AI Summary

A single Python script that connects a specific Discord channel to an AI coding command-line tool, enabling users to interact conversationally with the AI via Discord messages.

How It Works

1
🔍 Discover the Bridge

You find this handy tool on GitHub that lets you chat with a smart AI coding assistant right inside your Discord server.

2
🔗 Set Up Connections

You connect your Discord chat room and link it to your AI coding helper so they can talk to each other.

3
🚀 Launch the Connector

You start the bridge, and it quietly goes online, ready to relay messages back and forth.

4
💬 Send Your First Message

Type a question or coding task in the Discord channel, and watch the AI think and reply.

5
Handle Conversations
🔄
Start New Chat

Reset everything for a fresh conversation anytime.

🔗
Resume Previous

Jump back into an old session with its special code.

📋
Pass the Baton

Let the AI summarize and hand off context to a new chat seamlessly.

AI Helper in Discord

You now have a reliable coding partner in your Discord chats, picking up right where you left off.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 98 to 98 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is claude_bridge_discord?

This single-file Python bridge lets you talk to your local Claude Code CLI directly from a Discord channel, forwarding messages as prompts and streaming responses back in chat. It solves the hassle of switching between terminal and Discord for Claude-powered coding sessions, with built-in session persistence and commands like /new to reset, /connect for resuming UUID sessions, /handoff for context summaries, and /status for checks. Grab it as a single file from GitHub—easy to wget single file from github or pull single file from github—and run with env vars for token, channel, and Claude bin.

Why is it gaining traction?

As a true single-file GitHub project, it beats bloated alternatives: no deps beyond Discord.py and asyncio, instant setup vs multi-repo bridges or clunky wrappers. Devs dig the handoff feature that compresses session context into cold-start prompts for seamless switches, plus timeout handling and long-message splitting—practical for real Discord flows. Compare single file GitHub tools, and this single file bridge shines for Claude CLI-Discord glue without upload single file to github overhead or github single file diff hunting.

Who should use this?

Backend devs chaining Claude for code reviews during Discord standups, or indie hackers prototyping agents with solo Discord bots. Teams on Discord wanting a shared Claude Code lane without exposing APIs, especially if you're already running Claude CLI locally and need quick single file agents GitHub style.

Verdict

Solid for a 36-star single-file bridge if you need lightweight Claude-Discord talk—Python simplicity gets you running fast. But 1.0% credibility score flags low maturity; no tests or deep docs, so fork and vet before prod.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.