DOCS / FEATURES
AI chat
Members can ask an assistant about their organization, from an Ask the assistant link on the org page. It looks up members, billing, invitations and the audit log with the MCP server's read tools, run as the member, and writes its reply as it goes.
Code: api/src/chat/. UI: web/src/features/chat/ and
web/src/routes/_app/orgs.$orgId_.chat.tsx. Tests: api/tests/chat.rs
and e2e/tests/chat.spec.ts.
Turning it on
Set ANTHROPIC_API_KEY. The chat uses claude-sonnet-5-5 unless
AI_MODEL names another, and calls https://api.anthropic.com unless
ANTHROPIC_BASE_URL points at a gateway. Without a key, the chat answers
503 not_configured, its page says so, and the plans offer no AI tokens.
AI_PROVIDER=fake answers with canned replies instead, for tests and
the browser suite. Production refuses it. See
Configuration.
The model sits behind one trait, chat::model::ChatModel: a request
(system prompt, messages, tools) in, a streamed turn (text, tool calls,
token usage) out. Another vendor is one more implementation of it,
selected in chat::from_config.
What it sees and does
The assistant gets the MCP server's read tools for what the member holds:
get_organization, list_members and get_billing for everyone,
list_audit_events and list_invitations for those whose role includes
them. Each runs through the same handler as its REST endpoint, as the
member, so it is held to their permissions, the plan's gates, and the
org's security policies. The reply runs after the
request's handler returns, so it carries the request's address with it:
an IP allowlist saved mid-reply still refuses the next lookup.
[ full guide ]
The rest of this guide comes with the repo.
- The allowance
- A reply
- Conversations
- Not yet