Skip to main content

Sourced from docs/connectors.md in the firmware repo.

Connectors - external tools, per provider

Connectors let the Orchestrator (and the sub-agents it spawns) reach the outside world. With a connector enabled you can ask, over Telegram or voice, things like:

  • "Any new issues on my repo?" - GitHub returns the live list.
  • "How many unread emails do I have?" - Gmail answers.
  • "Publish that summary to my Notion workspace." - a page appears.

How it works: Nimbus does not call Gmail, Notion or GitHub itself. It attaches a small connector descriptor to the model request, and the provider runs the tool in its own cloud. What you can do is whatever your provider hosts; the credential either lives with the provider (Mistral Studio) or is pasted once into the device web UI.

Scope note. This page is the provider-attach model - the AI lab executes the tool in its own cloud. Nimbus can also dial a remote MCP server itself (the device as an MCP client): see MCP for that path, its approval model, and limits. Google Sheets/Slides have no hosted MCP anywhere, so they are not reachable either way today (they need direct REST - a future pass). Gmail, Calendar, and Drive are reachable.

Setting up a connector​

Every connector is a card under Assistant → Connectors in the web UI. Paste the credential once; the device stores it write-only and never shows it again. A credential with a space or a hidden character inside it (a line break, say), or one that is only spaces, is refused with a message saying so, because it would break every request that carries it. Google connectors (Gmail, Calendar, Drive) on OpenAI are the one exception: their card has no credential field, because they need an OAuth block rather than a single token (see Gmail). For every other connector:

  1. Create the credential once in a browser: for example a GitHub personal access token or a Linear API key, or connect the service in Mistral Studio.
  2. Open the device web UI → Assistant → Connectors.
  3. Pick the provider on the connector's card, paste the credential (or, for Mistral, just enable it), toggle enabled, Save.
  4. The card's badge shows what applies right now: live on your turns, via sessions (reachable through a sub-agent on that provider), or a key missing badge naming the provider (for example mistral key missing). A Mistral Studio connector can also show checking your Mistral workspace, Mistral workspace not checked, or connect it in Mistral (see below). An unsaved card reads not set and a disabled one off.

The model can never set a connector or read a secret - that rail is enforced in firmware (Security).

What each provider runs, and where​

On the Orchestrator's own turnsOn sub-agents it spawns
OpenAI✅ remote MCP (server_url + token) and first-party connectors (Gmail, Calendar, Drive…)✅ same
Anthropic- (the head turn is a single forced tool; MCP cannot run mid-turn)✅ remote MCP by URL (mcp_servers); a pasted token or a completed Sign in is forwarded as the server's authorization token
Mistral✅ Studio built-ins + Studio-named connectors - single-shot turns; ✗ when the Orchestrator's model is in the mistral-large-4 family (it refuses Mistral's built-in connectors, so those runs move to a sub-agent)✅ sub-agents run over the Conversations API; built-ins and Studio connectors attach to the spawn dispatch (server-side)

Two consequences:

  • The current provider matters. A Mistral connector is only live when Mistral is the Orchestrator's host. An Anthropic connector only runs on sub-agents. Assistant → Connectors badges each card with what applies right now, and the model is told the same thing every turn.
  • Mistral requires the least setup. Its connectors are authenticated in Mistral Studio and referenced by name - Nimbus stores no secret for them.
  • The head model can refuse them. The mistral-large-4 family (currently mistral-large-4-0) answers any request that carries Mistral's built-in connectors with an error, so with such a model as the Orchestrator's head no Mistral connector runs on its own turns: the card shows via sessions, and a task that needs one runs on a sub-agent, which Nimbus moves to a model that accepts the connectors and says so in its reply.

How Nimbus knows a connector is available​

Nimbus does not blindly trust that a pasted key works. Capability validation (Assistant → Tools → Tool use) controls how it confirms provider access before it tells the assistant a connector is available:

  • Off - trust the key as-is, and make no "verified" claim.
  • Passive (default) - mark a provider verified once a real call, or a manual Verify, succeeds; the result is cached.
  • Active - passive, plus a periodic re-verify on a slow schedule so a revoked key or changed access is caught. The re-check is a free metadata call (GET /v1/models, roughly $0), one provider per wake, spread so each keyed provider refreshes about every re-check interval (default 24 hours, range 1–168).

Active mode runs only in Orchestrator mode (the re-check needs the TLS heap) and shares the single verify worker with the web Verify button.

Per-connector credential state. Enabling a connector is a checkbox, not proof it works. The catalog the assistant reads marks the two states that need you: a connector whose OAuth sign-in failed on its last refresh ("sign-in FAILED - tell the owner") and a remote MCP or first-party connector with no credential at all ("NO credential - not usable until the owner adds one"), which is skipped rather than sent a request that cannot succeed. A bare name means no known problem; a successful OAuth refresh since the last restart is positive proof the credential works.

Mistral Studio connectors: the workspace listing decides. A Studio connector (Google Calendar, Notion, Slack, ...) has no credential on the device, so its state comes from Mistral. The device asks Mistral which connectors the key's workspace offers (GET /v1/connectors) on each Mistral Verify, and on its own when you Save a connector card and after a restart, whenever a Studio connector is not listed yet. That check needs no click from you:

  • Listed and active: usable. The assistant is told it can use it, and the Connectors tab shows where it runs.
  • Not listed, or listed as inactive: not usable, and it is no longer sent to Mistral at all (Mistral ignores a connector its workspace does not offer, so a sub-agent would answer without it). The Connectors tab shows connect it in Mistral with a line that says the workspace does not offer it yet, and a Check Now button for after you connect it in Mistral Studio.
  • Being checked (right after a save or a restart, including a re-check of a connector Mistral did not list before): the card shows checking your Mistral workspace and updates by itself when the check lands. Only the status updates, so a token you are typing or a provider you are picking on another card stays as it is. The check also steps aside for the assistant: if you send a message while it runs, it stops and tries again two minutes later.
  • Not checked (no Mistral key yet, or the check could not run): the card shows Mistral workspace not checked, says why the last check did not finish (the device was low on memory, the assistant was busy, the connection was busy, or Mistral did not answer) and when the next automatic check runs, with a Check Now button that runs the check alone, without a full Verify. The connector still rides Mistral sub-agents, and the assistant is told it is unconfirmed: it may try it through a Mistral sub-agent, and if the result says the connector was not called, it tells you it is not connected yet.

The last good answer is kept on the device (a small file in internal storage, tied to the Mistral key it was learned with, never the key itself), so a restart or a check that cannot finish never drops a confirmed connector back to "not checked". While a Studio connector is unconfirmed, the device checks again every 30 minutes on its own. With more than two Mistral connectors and built-ins on at once, the Connectors tab warns that Mistral answers slowly: each one rides the same Mistral call, which the device stops waiting for after about a minute. When you pick Mistral on a card, the connector-id field fills in Mistral's own name for it (Google Calendar is google_calendar, GitHub github_app).

Mistral's own "signed in" flag (is_authenticated) is a hint, not the rule: it can read false for connectors that work. So a listed connector is used for your own data in it, and only a reply asking to sign in is taken to mean the account still needs connecting in Mistral. The assistant and its Mistral sub-agents are told to use web search, never a connector, for facts from the public web (weather, travel, news, prices), and a Mistral sub-agent spawned for a web search carries only the connector its task names. A Virtual Nimbus runs the same check at startup, after a Mistral key is saved, and when its first Studio connector is added (the hosted page has no Verify button).

When a connector did not run, the result says so. A sub-agent can answer a calendar request from its own guess without ever calling the calendar connector. For a Mistral sub-agent the device reads Mistral's own record of the run (one entry per tool that ran). If the task asked for an attached connector (by its name, its id, or a phrase such as "my calendar" or "calendar events") and that connector never ran, the result opens with:

"The Google Calendar connector was NOT called. The text below is the model's own guess, not your calendar."

That note rides into the saved document, the assistant's summary, the activity record and the raw results, and the assistant saves nothing to long-term memory in the turn that reads it, so the guess is not stored as a fact on its own. A result where the connector ran is delivered unchanged. The check matches words, so a task that never names the connector (say, "is Friday free?") is not marked; the sub-agent is also told never to invent records when a tool does not run. Linear, Notion and Slack are also everyday words, so for them only a phrase counts ("my Linear issues", "a Notion page", "the #eng Slack channel", "in Linear"): research on "linear regression" or "the notion of" is never marked. A custom Studio connector is matched by the name it has on the device, even though it is sent to Mistral by its id.

What validation does not do. It confirms the provider key works, not each connector's individual tools. Per-connector functional probing - actually calling a connector, which would spend tokens - is not implemented. A connector can be attached and still fail on a specific call (a private repo, a missing scope); the assistant is guided to verify writes by reading them back.

Whatever the mode, the model is told the truth every turn: its [PROVIDERS & CONNECTORS] block marks each provider available, verified / key present, not yet verified / key present but rejected on last check / no key - and with validation off, key present (validation off - trusting key presence). A provider that is paused right now is marked paused, with the reason and when it returns (its own monthly limit or the overall spending limit lifts, you resume it, credit is added, its key is replaced, its monthly budget resets, or a refused request is checked again); its tools are not listed, its connectors are named as waiting for it, and no sub-agent or PDF runs on it until then. A sub-agent that names it moves to an open provider or is refused with the same reason.

The Telegram bot token is watched live, not just at save time. The token is verified once (a getMe call) when you save it, and that verdict is cached. If the token is later revoked - a key rotation, say - the device keeps long-polling and Telegram answers every request with an authorization failure. Rather than keep reporting the bot as verified and live, Nimbus watches the poll: a short run of consecutive auth failures flips the token to rejected on the Home tab health panel ("Telegram token rejected - set a new bot token") and in the status the web app reads, and the next successful poll clears it. A one-off blip does not trip it, and a conflict with another device using the same token (a different condition) is not treated as a rejected token.


GitHub​

  • Providers: OpenAI / Anthropic (remote MCP by URL), Mistral (Studio).
  • Credential: a Personal Access Token (ghp_…) - GitHub → Settings → Developer settings → Personal access tokens. A PAT avoids the OAuth flow entirely: paste it once and the connector works.
  • MCP URL (OpenAI/Anthropic): https://api.githubcopilot.com/mcp/
  • Mistral: connect GitHub in Studio, then enable it by name here (no token on device).
  • Unlocks: issues, PRs and reviews, code and commit search, creating repositories, and pushing file contents through the GitHub API (releases are read-only; there are no Actions or Gists tools). Verified against the OpenAI/Anthropic MCP endpoint; the Mistral Studio connector's toolset may differ. For repo creation and file pushes the token needs the repo scope (or a fine-grained token with Administration and Contents read/write).
  • Try it: once the card is saved, ask the assistant to "create a private repo named test-repo and add a README" - it should come back with the new repo's URL.

Gmail​

  • Providers: OpenAI (first-party connector connector_gmail), Mistral (Studio).
  • Credential: an OAuth refresh token created off-device (Google's device flow excludes Gmail scopes, so do the one-time auth-code consent in a browser to get a refresh token, then enter it as an OAuth block, below). For Mistral, connect Google in Studio instead.
  • Unlocks: read, search, draft, and label email.

Entering the OAuth block (OpenAI). Open Advanced - edit raw JSON below the cards and add one entry per Google connector, for example:

{"name":"gmail","prov":"openai","kind":"connector","cid":"connector_gmail","oauth":{"rurl":"https://oauth2.googleapis.com/token","cid":"<client id>","sec":"<client secret>","rtok":"<refresh token>"},"en":1}

For Calendar use "name":"gcal" and "cid":"connector_googlecalendar"; for Drive use "name":"gdrive" and "cid":"connector_googledrive". Save JSON replaces the whole connector list and keeps no stored tokens, so include every connector you want to keep, with its credential.

Google Calendar​

  • Providers: OpenAI (first-party connector_googlecalendar), Mistral (Studio).
  • Credential: OAuth refresh token (as Gmail), or Studio-side for Mistral.
  • Unlocks: read and manage events; calendar digests.

Google Drive​

  • Providers: OpenAI (first-party connector_googledrive), Mistral (Studio).
  • Credential: OAuth refresh token (as Gmail), or Studio-side for Mistral.
  • Unlocks: read and write Drive files - report and research-corpus storage.
  • Note: Google Sheets/Slides are not covered by the hosted connector; they need direct REST (out of scope today).

Notion​

  • Providers: Mistral (Studio) requires the least setup; OpenAI/Anthropic via a remote MCP URL work too.
  • Credential: for OpenAI/Anthropic, nothing to paste for Notion's hosted MCP server: enter https://mcp.notion.com/mcp as the card's MCP server URL, select Save, then use the card's Sign in button and approve on a phone or laptop on the same network (see Signing in to a hosted server). A Notion Internal Integration token (Notion → Settings → Connections → Develop integrations) goes in the token field only for a Notion MCP server that accepts a fixed token; share each target page with the integration once. For Mistral, connect Notion in Studio instead.
  • Unlocks: create and query pages and databases - report publishing, research corpora.

Slack​

  • Providers: Mistral (Studio); elsewhere needs a small REST adapter (future).
  • Credential: none on the device: connect Slack in Mistral Studio, then enable it by name here.
  • Unlocks: read channel/DM history, search, post messages, reactions.

Linear​

  • Providers: OpenAI / Anthropic (remote MCP https://mcp.linear.app/mcp), Mistral (Studio).
  • Credential: either a Linear API key (Linear → Settings → API) pasted into the card's token field, or none: save the card with the URL, then use its Sign in button and approve on a phone or laptop on the same network (see Signing in to a hosted server).
  • Unlocks: find, create, and update issues, projects, and comments.

Mistral built-ins​

Hosted tools that run inside Mistral with no device secret - just toggle them on here (provider = Mistral). They attach as {type:"<name>"} to the Orchestrator's own single-shot Mistral turns.

  • web_search - hosted web search with citations.
  • image_generation - hosted image generation.
  • document_library - RAG over the Libraries you make in Mistral Studio.

Hosted Python (code_interpreter) is not a card here: the Code sandbox switch under Assistant > Tools > Tool use is its one control, for OpenAI and Mistral together. A Code Interpreter card saved by an older version is moved into that switch once, on the first start after the update (an enabled card turns the switch on). See Make a PDF and get it on Telegram.

Make a PDF and get it on Telegram​

The assistant can hand you a PDF (or another generated file) as a Telegram document. It picks the first route your device has:

  1. OpenAI's sandbox - with your own OpenAI API key and Code sandbox on (Assistant > Tools > Tool use). An OpenAI sub-agent writes the file in Python; it can hold charts and images.
  2. Anthropic's sandbox - with your own Anthropic API key. An Anthropic sub-agent saves the file in its sandbox and the device collects it.
  3. The device's own PDF writer - with no OpenAI or Anthropic key. The device writes the PDF itself: headings, text and simple tables, no charts or images.

Every route needs an SD card: the file is kept under Files (Memory) and sent from there. A paused provider is skipped: the next route is used, and with none left the assistant says a PDF is not possible until the pause lifts. The Code sandbox switch shows which route is ready right now (for example "Ready. PDFs go through OpenAI.", "Your PDF provider is paused, so PDFs are made on the device for now: text and tables only." or "Insert an SD card to keep files."). A Cumulo Nimbus key on its own cannot bring a sub-agent's file back, and Mistral's sandbox cannot make PDF or CSV files (images and text only).

To try it, ask on Telegram: "Make a one-page PDF about X and send it here." The assistant's reply names the saved file; if Telegram cannot take the document, the file stays under Files. A Virtual Nimbus cannot collect a sub-agent's file yet, so it shows no Code sandbox switch and says plainly that a PDF is not possible.

Mistral Studio connectors​

Third-party connectors (GitHub, Gmail, Notion, and custom MCP servers) are authenticated in Mistral Studio (console.mistral.ai/build/connectors), not on the device - no secret is stored here. Two kinds:

  • Built-in connectors (GitHub, Gmail/Calendar/Outlook): pre-registered - you authorize the account in Studio, then reference the connector by its name here.
  • Custom MCP (e.g. Notion, DeepWiki): register the MCP server once via client.beta.connectors.create(...) in the Mistral SDK → you get a connector name/UUID → reference it here.

Either way, on the device: add the connector with provider = Mistral, and put the Studio connector name or UUID in the connector-id field. It attaches as {type:"connector", connector_id:"<name-or-uuid>"} on single-shot Mistral turns.

The agentic tool-loop turns cannot carry Mistral built-ins or Studio connectors: the loop forces tool-choice (the model must call a tool every round), which Mistral rejects alongside built-in connectors - a documented provider limitation. Those attach on the single-shot Conversations turn and on sub-agent dispatch instead. So on loop turns the Orchestrator has only its registry tools (web.search runs on Tavily when configured, else on Mistral's own search as a separate request) and should delegate connector work to a Mistral sub-agent.


Operational notes​

  • Mistral connectors attach on single-shot turns (tool loop off) and on sub-agent dispatch - not on the agentic tool-loop, which forces tool-choice (rejected alongside built-in connectors). Set the Orchestrator host to Mistral and the tool loop off to use them on your own turns, or spawn a Mistral sub-agent for connector work while the loop is on.
  • Studio connectors are most reliable on a Mistral sub-agent. A single-shot turn that carries a Studio connector together with the structured reply format tends to time out, while the same request without the structured format (which is what a sub-agent sends) answers in seconds. A Virtual Nimbus therefore attaches Studio connectors only to Mistral sub-agents, and its assistant is told to spawn one for connector work. On the device, a single-shot Mistral turn that carries a Studio connector leaves the structured format off (the model gets the same reply format in its instructions instead), so it answers rather than timing out. When the model answers in plain text, that text is the whole reply: no device action, memory write or sub-agent rides that turn. Built-in connectors alone keep the structured format.
  • A Mistral key's Studio connectors have their own quota. Mistral reports it in the x-ratelimit-limit-custom-minute / -custom-day headers (one individual plan allowed 5 connector requests per minute and 50 per day, with the daily count resetting at midnight UTC). Past it, every connector call answers HTTP 429.
  • A refused turn says which limit it hit. When a provider answers HTTP 429, the device's reply names the window from the provider's rate-limit headers or error text: a per-minute limit ("wait a minute and ask again"), a daily limit (for Mistral Studio connectors, "it resets at midnight UTC"), a plan that allows no requests of that kind ("waiting won't help"), or a spent quota ("check the plan and billing"). When the provider does not say, the reply makes no promise about when. A Virtual Nimbus reads the same headers. A sub-agent the provider refuses at start says it couldn't start on that provider and names the window the same way, so a Mistral sub refused by a spent connector day says it resets at midnight UTC.
  • Keep it to about 2 enabled Mistral connectors at a time. One or two work reliably. With around 4 enabled at once the Conversations response can come back with no message output and the turn fails over to another provider: no crash, but the connector call does not run.
  • Changing a connector takes effect on the next turn - the device resets the Mistral conversation whenever you add, toggle, or remove a connector (connectors are pinned at conversation creation, so this is required for a change to apply).
  • Private repos: a Studio GitHub connector only sees repos its authorized account or org can access - a private repo returns "not accessible" even though the connector itself is working.
  • Heavy connector writes are streamed, not buffered. The device parses every provider response off the socket (only the filter-retained fields are stored), so a large connector-write response no longer exhausts the board's memory - the Notion page-create that used to restart it now completes. For heavy writes and large fetches, prefer spawning a sub-agent (the Orchestrator is guided to): the work runs on the provider's compute and only a short result returns.

Security​

  • Secrets are write-only: the web UI never echoes a token back (it shows a "saved" state); editing a card and leaving the credential blank keeps the stored secret.
  • The model cannot configure connectors or read their secrets - the connector config key is a protected key, refused at the wire.
  • Everything is behind the device sign-in (once per browser).

Finance connectors​

Any broker or finance connector (e.g. Alpaca) must stay read-only - Nimbus never places trades or moves money on its own. Keep write scopes off.