Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Docs: correct key order and data flow from review
Ousmane Tourébc421a088501
diff --git a/README.md b/README.mdindex 78762a3d38..2cea8be726 100644--- a/README.md+++ b/README.md@@ -183,7 +183,7 @@ channel and its bots under a named context, then rename it or change its members### ⚡ Fast decisions with Jev-Add a Cloudflare Workers AI token, a TypeSafe Jev key, or an OpenRouter key and model, in **Settings → Decision and extraction** and rooms set to **Auto** pick the bot+Add a Cloudflare Workers AI token with its account ID, a TypeSafe Jev key, or an OpenRouter key and model, in **Settings → Decision and extraction** and rooms set to **Auto** pick the botthat fits each un-mentioned message in a few hundred milliseconds, falling back to the room's lead whenever the decision model is off or unsure.See [docs/decision-model.md](docs/decision-model.md).diff --git a/docs/cloud-pro.md b/docs/cloud-pro.mdindex 0c74b7613f..242336e707 100644--- a/docs/cloud-pro.md+++ b/docs/cloud-pro.md@@ -1418,10 +1418,11 @@ computers belong to this machine on every request.JSON). `server/decider/relay.ts` checks each request before it is sent; onethat does not fit is not sent, and the room falls back as for any otherdecision-model failure. Any other decision job, now or added later, uses- only the person's own Jev key until the relay accepts it too. The relay- speaks Jev's API only: included decisions are Jev's, and with OpenRouter- selected in **Settings → Decision and extraction** nothing is included (it needs an- OpenRouter key: one saved there, or the one under **Settings → API keys**).+ only a key of the person's own (Jev, Workers AI or OpenRouter) until the+ relay accepts it too. The relay speaks Jev's API only: included decisions+ are Jev's. An own Jev or Workers AI key comes before them; an OpenRouter key+ comes after them, whichever provider is selected in+ **Settings → Decision and extraction**.- **Included decisions are on until switched off.** While the decision modelruns on the included token, its master switch counts as on unless the personswitched it off in **Settings → Decision and extraction**; an explicit off alwaysdiff --git a/docs/decision-model.md b/docs/decision-model.mdindex c560c3435f..001cb77476 100644--- a/docs/decision-model.md+++ b/docs/decision-model.md@@ -172,10 +172,10 @@ The log stays on this machine: workspace backups leave it out.(`OMB_CLOUD_DECIDER_TOKEN`), sent only to the Admin's relay, never to Jevor `baseUrl`, and only for room routing and the key check (other jobs needa key of the person's own). Settings says **Included with your Cloud plan**, and- the master switch is on until someone switches it off. A key saved here- always wins; clearing it falls back to the included decisions. The relay- speaks Jev's API only, so the included decisions are Jev's: with OpenRouter- selected nothing is included and you need an OpenRouter key. See+ the master switch is on until someone switches it off. A Jev or Workers AI+ key saved here wins; clearing it falls back to the included decisions. The+ relay speaks Jev's API only, so the included decisions are Jev's, and they+ come before an OpenRouter key whichever provider is selected. See[cloud-pro.md](cloud-pro.md), "Included Boat computers, voice anddecisions".@@ -191,11 +191,17 @@ usually a similar fraction of a cent.Each decision sends the state described above (the room's name, its people,recent room lines and the new message) and the bots' descriptions to the-selected provider. With Workers AI that is Cloudflare, which also receives the-emails Clairic reads for the inbox. With OpenRouter that is OpenRouter and the-host it routes the model to, under OpenRouter's privacy settings and your account's data-policy; OpenMausBot does not set a data-collection preference. Use Jev, or-leave the job off, for rooms that must not leave the machine.+provider whose key decides (see the key order above). With Workers AI that is+Cloudflare, or the server `workersAiBaseUrl` points to, which also receives the+token. With OpenRouter that is OpenRouter and the host it routes the model to,+under OpenRouter's privacy settings and your account's data policy;+OpenMausBot does not set a data-collection preference.++Inbox triage sends each new email's sender, subject and preview twice: to the+provider whose key decides, and first to the one that reads it, the first of+your own Workers AI key, Cloud's included relay, then OpenRouter (a Jev key is+not used for reading). Leave a job off when its data must not leave the+machine.## Turning it off@@ -250,8 +256,9 @@ API is alpha at OpenRouter and may change. The model list comes from`GET /api/decider/models`, which needs no key and spends nothing.`workersAiAccountId` is 32 hexadecimal characters. `workersAiBaseUrl` has no-Settings UI, follows the same https-or-loopback rule, and must include-`/client/v4`. Requests go to+Settings UI and follows the same https-or-loopback rule. It is the REST root+the account path is added to; Cloudflare's own includes `/client/v4`.+Requests go to`{workersAiBaseUrl}/accounts/{workersAiAccountId}/ai/run/@cf/cloudflare/clef-flash`(or `clef`, or `clairic` for extraction).