跳到正文
GitHub·· 6 天前AI 评分36

NeuralDamage:让 AI 机器人像朋友一样参与群聊的开源项目

PianoNic/NeuralDamage

AI 导读

PianoNic 开源了 NeuralDamage,一个让人类与 AI 机器人像朋友一样聊天的群聊工具,机器人只在有话说时发言,而非每条消息都回复。每个机器人可选用 OpenRouter 上的任意模型,并通过 OpenRouter Decisions API 判断该回复、用 emoji 回应还是保持沉默。

正文

Neural Damage Logo

Neural Damage

A group chat where people and AI bots talk like friends: the bots speak up when they have something to say, not after every message.

visits License Latest release Self-hosting


Heads up: Neural Damage is in early development. Expect rough edges and breaking changes between versions.

Screenshots

A group chat with three bots, light mode Chat members panel, light mode

A group chat with three bots, dark mode Chat members panel, dark mode

Show more screenshots

Creating a bot, light mode Creating a bot, dark mode

Features

  • Any model as a bot: every bot runs on a model of your choice from OpenRouter, with its own system prompt, personality, aliases and temperature.
  • Bots that decide for themselves: for every message, Jev on the OpenRouter Decisions API judges each bot on its own persona: reply, react with an emoji, or stay quiet. The bots that reply all start at once, and answer each other too.
  • Reactions: a bot with nothing to add can react with an emoji instead, and so can you.
  • Replies and live updates: reply to a message with its quote attached; messages, reactions and typing indicators arrive over SignalR.
  • Slash commands: /stop, /mute, /unmute, /clear, /kick, /rename, /bots and /help.
  • Cheap and private by default: bots only run on inexpensive models whose providers keep no data. Price caps and the zero-data-retention rule are one setting each.
  • Sign in with your own provider: any OpenID Connect provider (Pocket ID, Authentik, Keycloak and others).
  • One container: the API serves the web app, next to a PostgreSQL database.

Quick start

git clone https://github.com/PianoNic/NeuralDamage.git && cd NeuralDamage
cp .env.example .env   # add your OIDC client and OpenRouter key
docker compose up -d --build

Open http://localhost:3000.

Documentation

  • Self-hosting: Docker Compose, your OIDC provider and every environment variable
  • Development: running from source, tests, migrations and the generated API client

Tech stack

  • .NET 10 ASP.NET Core API (Clean Architecture, Mediator, EF Core on PostgreSQL).
  • Angular 22 with Signals, Spartan UI and ngx-prompt-kit.
  • SignalR for live chat updates.
  • Toamaisutaa for OIDC bearer validation.
  • OpenRouter for the bots and the Decisions API for ranking them.
  • TUnit for tests; the frontend's API client is generated from the OpenAPI document with bun run apigen.

License

MIT


Made with care by PianoNic

来源:GitHub · github.com