company-brain README

The project's README from github.com/supermemoryai/company-brain. As one markdown file: README.md.

Company Brain

Company Brain

A teammate in your Slack that truly knows and understands your company, and can do anything.

Deploy · User guide · Permissions · Use cases · Discord

Apache 2.0 Memory by supermemory Runs on Cloudflare Workers

Used to be a paid product with thousands of users. Now it's free and open source.
Read the announcement →

Deploy to Cloudflare


A few weeks ago, we discontinued our Company Brain product at supermemory. This is that product, the whole thing, open sourced and rebuilt to run on your own Cloudflare account.

Your team's knowledge is scattered across Slack threads, docs, tickets and people's heads. Company Brain sits in Slack, remembers what your team says, and answers from it. Then it goes and does the work: opens the issue, reads the PR, digs into the repo. And when a conversation needs something it knows, it speaks up on its own.

#eng

Alex: is prod down? a couple of customers are pinging me

Company Brain: Not fully down. api/search is elevated, 42 errors in the last 15 minutes, and Kush is already on it. Probably this morning's deploy.

Nobody mentioned the bot. It spoke up because it knew the answer.

🧠 Remembers Decisions, projects, owners and context from the channels it's in, kept current as people talk. No one has to write anything down.
💬 Answers from your team Not from the internet, not from guesswork: from your own conversations and connected tools.
🛠️ Acts in your tools GitHub, Linear, Notion, Google Workspace and hundreds more over MCP. It opens the issue instead of telling you to.
📣 Speaks up Chimes in when a conversation needs something it knows. You decide how chatty it is, org-wide and per channel.
💻 Runs code Its own sandbox: clones repos, runs scripts, and hands back charts, CSVs and PDFs right in Slack.
🌙 Works while you sleep Scheduled digests to a channel or your DMs, plus research it kicks off on its own.
🎓 Learns your way Skills teach it your processes, formats and voice. A workspace prompt sets how it behaves everywhere.

Private by design

Memory isn't one big bucket. It's a permissions graph, and the brain only ever reads with the asker's own access.

Where you ask What it can draw on
A public channel The shared brain everyone in the org can see
A private channel That channel's memory, plus the shared brain
Your DMs Your personal memory, every private channel you're in, and the shared brain

So it can't leak something you couldn't see yourself. Tool access works the same way: writes always run under your own connection, and when a request needs a tool only a teammate has connected, it asks them first with an approve or deny card. Nothing is granted silently.


Get started

💬 I want it in my Slack

One click to deploy, two API keys, and a setup page that walks you through the Slack app. The database sets itself up.

→ Deploy in five minutes

🔧 I want to hack on it

TypeScript on Cloudflare Workers, Durable Objects and D1, with memory on supermemory. Run it all locally.

→ Local development


Deploy in five minutes

1. Click deploy. It asks for two secrets:

Everything else is provisioned for you: D1, KV, Durable Objects and Workers AI.

2. Open /setup on your new worker. It checks your keys, hands you a Slack app manifest with your URLs already filled in, and takes the Slack credentials back.

3. Sign in with Slack. The first person to sign in owns the deployment.

4. Install to Slack, and say hi. 👋

Your team signs in with Slack at / to see the brain's home, a live graph of everything it remembers, and settings for tools, models, proactivity, automations and skills.

Free plan or Workers Paid?

Company Brain runs on Cloudflare's free plan. Workers Paid ($5/mo) is better, and worth it if your team leans on the brain:

Free Workers Paid
Long, multi-step answers Can get cut short: the free plan allows 50 outbound calls per request Room for the brain's full tool loop
Code sandbox (shell, git, Python) With a Daytona key (DAYTONA_API_KEY) Built in, on a Cloudflare container. Daytona still works if you prefer it.

Everything else works the same on both, including Code Mode: when the brain writes code to chain tool calls or crunch your team directory, it runs in QuickJS inside the worker, not on paid Dynamic Workers.

To use the built-in container on Workers Paid, uncomment the Workers Paid block in wrangler.jsonc, set CONTAINER_SANDBOX to "on", and redeploy.


Local development

bun install
cp .dev.vars.example .dev.vars   # fill in the two keys
bun run dev

If you've enabled the Workers Paid block, Docker has to be running for the sandbox container. Slack has to reach your machine, so point a tunnel at the dev server, set PUBLIC_URL in .dev.vars to the tunnel's URL, and create the Slack app from the tunnel's /setup page.

After changing the schema in src/db/schema, run bun run db:generate. It writes the migration and bundles it into the worker, which applies it on its next request.


User guide · Architecture notes · supermemory

Built by supermemory. Apache 2.0.

company-brain (supermemoryai/company-brain)

Searching Database…

这是什么?Company Brain 是一位住在你 Slack 里的队友,它记住团队在频道、文档和工单中说过的每一件事,并且能据此采取行动——开 issue、读 PR、深入调查你的仓库。
这是托管 SaaS,还是我自己运行的东西?它是部署到你自己的 Cloudflare 账户的自托管应用,不是托管 SaaS:它以 Cloudflare Workers 形式运行,配合 Durable Objects 和 D1 数据库,并作为 Slack 应用安装到你的工作区。
怎么让它在我的 Slack 里跑起来?点击一键部署按钮,提供 SUPERMEMORYAPIKEY 和 MODELAPIKEY,然后在新 worker 上打开 /setup 生成 Slack 应用清单,并用 Slack 登录完成安装。
部署之前需要哪些账号或密钥?需要一个 Cloudflare 账户来托管,一个用于记忆功能的 supermemory API 密钥,以及一个模型 API 密钥(来自 Anthropic、OpenAI、Google、xAI,或者一张能覆盖所有这些的 OpenRouter 密钥)。
Cloudflare 免费套餐有什么限制吗?在 Cloudflare 免费套餐上,大脑每个请求最多 50 次外呼,长篇多步骤的回答可能被截断;Workers Paid(每月 5 美元)解除这一限制,还增加一个内置沙箱容器。
它会泄露我不在的私人频道里的内容吗?记忆按权限图谱划分作用域:公共频道使用共享大脑,私人频道会加上该频道自己的记忆,你的私聊再加上你的个人记忆,所以它绝不可能透露你原本看不到的东西。
它主动发言时会发生什么?当它掌握相关上下文时,可以不经提示就插话到频道里,比如确认某次故障已经在修复中;它的多话程度可以在整个组织或按频道调节。
它真的能运行代码,而不只是聊天吗?能——它有自己的沙箱(Daytona 密钥,或 Workers Paid 上的内置 Cloudflare 容器),可以克隆仓库、运行脚本,并把图表、CSV 和 PDF 直接发回 Slack。
supermemory 为什么免费发布这个?Company Brain 曾是一个拥有数千用户的付费产品;supermemory 停掉了它并把整个项目开源,让团队改为自托管。
它能连接哪些外部工具?通过 MCP 可以连接 GitHub、Linear、Notion、Google Workspace 等数百种工具,而且它执行的每次写入都以发起请求用户自己连接的账号运行,而不是共享账号。
Size
13 MB
Stars
1K
Updated
CommitSep 28
Age
22d
Commits · 90 Days