Copy Ninja lets several bilibili accounts send danmaku together. Log a different account into each browser (or each profile of one browser) and connect them all to kakashi-server running on your machine: whenever the master account successfully sends a danmaku through Chatterbox, the mirror accounts copy it according to their own settings
Decay and Kanchi Ninjutsu only make the mirrors' content and timing less uniform — they are not anonymity. bilibili can still link accounts by IP and device, so mirror accounts may get muted or banned. Weigh the risk before using it
Features
- Local relay: every live room page connects over WebSocket to kakashi-server on your machine, which elects the master and relays its danmaku
- Segment-by-segment broadcast: the master broadcasts each danmaku segment once bilibili's send API reports success, so a long message split into segments goes out segment by segment; failed sends are never broadcast, and when an AI evasion retry succeeds, the evaded version is broadcast
- Copied verbatim: the broadcast carries exactly the text the master submitted, already including that send path's own processing (word replacement, YOLO polish, invisible random characters, and so on); mirrors send it as is by default, without applying their own word replacement, YOLO polish, random characters, or AI evasion
- Kanchi Ninjutsu (感知忍術): optionally, a mirror rewords each master danmaku through its own LLM before copying it, keeping the meaning without copying the text — see Kanchi Ninjutsu
- Per-source copying: each mirror chooses whether to copy the master's Normal Send, Auto Send, +1, emotes, memes, Auto Blend, AI Blend, and Simultaneous Interpretation
- Decay: a mirror can randomly ignore a share of the master's actions and add a random delay before each copy, so the mirrors don't all post the same thing at once
- Room following: optionally, mirrors follow the master into whichever live room it moves to
- Once per account: when an account has several live room pages open, the server delivers to only one of them — a visible page first, then the most recently active one
- Order preserved: mirrors copy one at a time in arrival order, so random delays never reorder copies; a long master danmaku split into segments is copied in its original order too
- Re-checked per account: each mirror re-checks emotes and length against its own account — emotes it can't use are skipped, and long text is re-split at its own length cap
- Auto-pause on failure: a mirror pauses itself after 3 consecutive failed copies (muted, risk control, and so on); resume it from the Ninja tab
- Result reporting: the member list on the master's panel shows each mirror's latest copy result in real time
- Single master: only one master account is active at a time; any other account set to master waits on standby. The master's seat is held for 15 seconds while its page reloads, so a standby can't take over
- No feedback loops: Auto Blend and AI Blend ignore danmaku from accounts in the group, so several mirrors copying one line never look like a trend
- Credentials stay in the browser: cookies and CSRF tokens never leave their browser; the server relays only the final danmaku text and room ID
Install kakashi-server
kakashi-server is the local relay behind Copy Ninja. It ships as a standalone executable, with no runtime to install
-
Download the server for your operating system:
- Windows:
kakashi-server-windows-x64.exe(Authenticode-signed) - macOS (Apple silicon):
kakashi-server-darwin-arm64(signed and notarized) - macOS (Intel):
kakashi-server-darwin-x64(signed and notarized) - Linux (x64):
kakashi-server-linux-x64 - Linux (arm64):
kakashi-server-linux-arm64
- Windows:
-
Run the server:
- Windows: double-click the
.exefile, and keep the console window open while you use Copy Ninja - macOS / Linux: make it executable in a terminal, then run it
chmod +x ./kakashi-server-darwin-arm64 ./kakashi-server-darwin-arm64 - Windows: double-click the
-
Check it's running: the console prints the listening address (
ws://127.0.0.1:9697by default) and the token status. You can also openhttp://127.0.0.1:9697/in a browser — a{ name, version, protocol }response means the server is up
Command-Line Options
kakashi-server [--port 9697] [--host 127.0.0.1] [--token <token>] [--allow-origin <origin>] [--debug]| Option | Environment Variable | Default | Description |
|---|---|---|---|
--port | KAKASHI_PORT | 9697 | Port to listen on |
--host | KAKASHI_HOST | 127.0.0.1 | Interface to bind; anything other than loopback also needs --token |
--token | KAKASHI_TOKEN | (none) | Require the same token from every page (Chatterbox → Ninja → Token) |
--allow-origin | KAKASHI_ALLOW_ORIGINS | (none) | Extra WebSocket origins to accept; repeatable, comma-separated in env |
--debug | DEBUG=1 | Off | Log every copy result and room follow |
Usage
Enable Copy Ninja
In each browser with an account logged in:
- Open a bilibili live room, click the "Live Assistant" floating button in the lower right corner to expand the panel, and switch to the "Ninja" tab
- Tick "Enable Copy Ninja". The default server address
ws://127.0.0.1:9697matches kakashi-server's defaults - If the server runs with
--token, enter the same value under "Token" - Once the status reads "Connected", the "Ninja" tab title shows a 🥷 indicator
Set the Role
Pick a role from the drop-down in the "This Account" section:
| Role | Description |
|---|---|
| Mirror (Follows Master) | Receives the master's danmaku and decides whether to copy them per its Follow Settings (default) |
| Master (Followed) | Danmaku this account successfully sends through Chatterbox are broadcast to every mirror |
- Set one account to master and leave the rest as mirrors
- If another master is already online, an account newly set to master goes on standby and takes over automatically when the current master leaves
- Roles are saved per account UID, so importing one browser's script settings into another account never turns it into a master too
Follow Settings
These options apply to mirrors only:
| Option | Description | Default |
|---|---|---|
| Master Actions to Follow | Tick the action sources to copy: Normal Send, Auto Send, +1, emotes, memes, Auto Blend, AI Blend, Simultaneous Interpretation | All ticked |
| Decay: Randomly Ignore | Percentage of master actions to ignore at random (0 to 100%) | 0% |
| Random Delay | Range of seconds to wait at random before each copy (0 to 60 seconds, in 0.5-second steps) | 1 to 4 s |
| Kanchi Ninjutsu | Reword through the LLM before copying, instead of copying the master's text — see Kanchi Ninjutsu | Off |
| Follow Master Into Live Room | When none of this account's pages is in the master's live room, one of them moves there after a random 2 to 5 second delay | Off |
- If the mirror's own Auto Send, Auto Blend, or AI Blend is still running, the panel warns you: they share the same send queue and bilibili rate limit as copying
- After repeated failures pause the mirror, the panel shows "Paused after repeated send failures"; click "Resume" to continue
Kanchi Ninjutsu
With Kanchi Ninjutsu (感知忍術) on, a mirror stops copying verbatim: it rewords each master danmaku through this account's LLM and Kanchi Ninjutsu prompt, posting the same meaning in different words
- Configure the API under Settings → LLM Settings first, then activate a prompt under Settings → LLM Prompts → Kanchi Ninjutsu; the built-in prompt is Reword (default), and the global prompt is prepended as usual
- With an LLM configured, a prompt picker appears next to the checkbox so you can switch the Kanchi Ninjutsu prompt in place; if the configuration is incomplete, the panel says what's missing in red
- The rewrite starts as soon as the master's action arrives, so the LLM call overlaps the random delay; copies still go out in the master's order, however long each rewrite takes
- Emotes are copied as is, never reworded
- The rewritten text goes through this account's word replacement, then is split at this account's length cap
- Never falls back to the original: an incomplete LLM configuration or an LLM error marks the copy Failed; an empty rewrite, or one still pending when the copy expires, marks it Skipped. Either way, the master's text is never posted
- On the master's member list, hover a mirror's Copied result to see what it posted
Member List
The "Members" section lists every connected account with its role (master / standby / mirror), its live rooms, and its page count. The master account also sees each mirror's latest copy result; hover it to see the reason:
| Result | Description |
|---|---|
| Copied | The mirror sent it successfully; with Kanchi Ninjutsu on, you can see the reworded text |
| Failed | bilibili rejected the danmaku (muted, risk control, and so on), or Kanchi Ninjutsu's LLM configuration is incomplete or the LLM call failed |
| Decayed | Ignored at random by decay |
| Skipped | Not attempted — for example the source isn't followed, the mirror is in another room, the account can't use the emote, the copy expired after a delay of more than 10 seconds, the pending queue is full, the mirror is paused, or Kanchi Ninjutsu returned nothing or timed out |
Notes
- Run it on the same computer as the browsers: bilibili pages are HTTPS, and browsers only let them open unencrypted WebSockets to loopback. Browsers on other computers need
wss://behind a TLS reverse proxy, with--tokenset on the server - Chrome asks once for local network access: Chrome 147 and later shows a "local network access" prompt the first time a live room connects to the server — allow it. If you denied it, re-allow it in the site settings for live.bilibili.com and refresh the page
- Origins are checked: the server only accepts WebSocket handshakes from
https://live.bilibili.com, so other websites, sandboxed pages, and unrelated extensions can't connect and drive your accounts. If your userscript manager connects from its own extension origin instead, the server logs the rejected origin; allow that exact origin with--allow-origin - Keep mirror pages alive: browsers throttle background tabs, and Chrome's Memory Saver may discard them. If mirrors keep dropping out, exempt live.bilibili.com. A copy still unsent more than 10 seconds after its planned time is skipped as expired
- Only Chatterbox sends are broadcast: danmaku typed straight into bilibili's native input box are not broadcast, and neither a mirror's copies nor sends relayed from the LAPLACE Chat dashboard are broadcast
- Send priority: copies share the send queue with the mirror's own Auto Send, Simultaneous Interpretation, manual sends, and so on — they jump ahead of automation but yield to manual sends
- Versions must match: when the script and kakashi-server speak different protocol versions, the connection is refused with a prompt to update both to the latest version. A wrong token also stops reconnecting until you change the settings
- Settings sync across pages: Copy Ninja settings stay in sync across every live room page in the same browser, so a stale page never keeps running with an outdated role or follow settings
To build your own client or server, see Kakashi Protocol
Last updated on November 29, 2026