The assistant and your key

The assistant builds and changes dagboards and Logic Bricks for you, and answers questions about them. In the Logic Brick editor, Suggest Code also asks it for a Logic Brick's code from what you describe. It answers with your own API key from Anthropic, OpenAI, Google (Gemini) or xAI (Grok), which you get from your account with that provider. Its use counts toward that account.

Settings → AI has a tab for each way of using AI with dagboard.ai: Use AI in dagboard.ai, for the assistant and your key, and Use dagboard.ai from an AI app, for an AI app on your computer, such as Claude Desktop, Claude Code or Cursor, that works on your workspace with its own AI (below).

Set up your key

Choose Set up AI, at the foot of the sidebar while no AI is set up, or open Settings → AI. The assistant opens from the button at the end of a dagboard's or a Logic Brick's top bar, or with ⌘ + I, and shows a Set up AI card in place of its questions until an AI is set up. Settings → AI's Use AI in dagboard.ai tab asks for:

Then pick the Model, which has a default until you change it. Save keeps the key, and Remove key deletes it. Changing the provider asks for that provider's key, and saving it replaces the key you had, so a key never goes to another provider.

Where the key is kept

The key isn't part of your workspace: it never goes into a bundle, and your Logic Bricks never see it.

Who can read it

Any script that runs on the app's page can read the key from the browser's storage. That's the app's own code, and browser extensions that can read the pages you visit. The app loads scripts only from its own files, and its security policy stops the page from running scripts from anywhere else. The device's copy is kept unencrypted in your browser profile, so don't turn Remember on in a browser that others use.

Where the key goes

When you ask the assistant something, ask it for a Logic Brick's code, or convert code or a spreadsheet, the app sends the request from your browser straight to the API of the provider you chose, with your key: api.anthropic.com, api.openai.com, generativelanguage.googleapis.com or api.x.ai. The request carries your question, the conversation so far, and what the assistant reads from your workspace to answer, such as your dagboards and Logic Bricks. A conversion's form says what it sends (Converting code and spreadsheets). Before you trust code from outside your workspace, the app can also ask that provider to review it, once you agree to send that code. The key goes nowhere else.

What it does in your workspace

Use dagboard.ai from an AI app

An AI app on your computer, such as Claude Desktop, Claude Code, Cursor or VS Code, can work on your workspace too, through dagboard.ai's MCP server, @micro-quant/mcp. The AI app answers with its own AI and its own account, so it needs no key in dagboard.ai, and the assistant still answers only with the AI set up in dagboard.ai. AI apps that run in the cloud, such as Claude or ChatGPT in a web browser, can't reach a server on your computer.

  1. Add the server to the AI app, with the command npx -y @micro-quant/mcp, which needs Node 20 or later. In Claude Code, that's claude mcp add dagboard-ai -- npx -y @micro-quant/mcp. The AI app starts the server when it needs it.
  2. In Settings → AI's Use dagboard.ai from an AI app tab, turn on Let local AI apps use this workspace. The browser may ask to let dagboard.ai reach devices on the local network: allow it. The tab connects only to the server on your computer, at ws://127.0.0.1:8787.
  3. The first time, enter the pairing code that the server prints when it starts, such as 7K2Q-M9XD, and choose Pair. An AI app that doesn't show the server's log, such as Claude Code, can't show you the code: with the AI apps closed, run npx -y @micro-quant/mcp in a terminal, pair with the code it prints, then stop it with Ctrl + C. Pairing is once per computer, for every AI app that starts the server.

Settings then says Connected, and so does the foot of the sidebar, where AI app takes the place of Set up AI, and the assistant's panel, until an AI is set up in dagboard.ai, says AI app connected, with Set up AI here too. Ask the AI app to list your dagboards, open one, compute it or change it:

What the AI app reads of your workspace goes to the AI app, and from it to its AI provider, under that app's own terms. The server runs on your computer and keeps none of your work: only the pairing, in ~/.config/dagboard-mcp/relay.json. It listens on your computer alone, and lets only the app's page, and only the tab you paired, connect.

With no tab connected, an AI app that shows apps in its conversation, such as Claude Desktop, shows dagboard.ai there, with a workspace of its own, and asks you to confirm each change in it. R bricks don't run there (R bricks).

Next: Where your work is kept