English

User guide Working together

AI models and keys

Connect an AI provider with your own key, choose where the key is kept, and set how the router picks a model.

On this page

The Architect, Explain and story mode use AI models. Archipelego brings no AI keys of its own: you bring your own key. This is called bring your own key, or BYOK.

The first time you ask the AI something and no key is available to you, a guided setup opens: why a key is needed, which provider, paste and test, and who may use it. Your question waits and leaves as soon as the key is stored. You can also start it from AI models and keys with Guided setup.

On an on-premises Archipelego, your organisation's operator may provide keys for everyone. In that case, the AI works without a key of yours.

Open the dialog

Select Save & export in the top bar, then AI models and keys. The dialog has two columns: Providers and Router.

Providers

Archipelego supports eight providers. Each one shows a letter, never a logo.

Letter Provider
A Anthropic
O OpenAI
G Google
X xAI
D DeepSeek
K Moonshot
M Mistral
Q Qwen

Each provider row lists its models and a status, such as Not connected.

Add a key

  1. Select a provider to open it.
  2. Paste the key in API key. The get one link opens the provider's page for keys.
  3. Some providers need an extra field. Qwen needs a Workspace ID.
  4. Choose who may use the key in Keep the key (see the levels below).
  5. Select Save key.

Select Test to check the key. Archipelego sends one short request to the provider's fastest model. It tests the key you typed, or the key already stored for this provider when the field is empty. The answer says which model answered and how many milliseconds it took, or shows the provider's error.

Where the key is kept

A key lives at one of five levels, from the narrowest to the widest. When several levels have a key for the same provider, the most personal one is used first.

Level Who may use it Where it is kept Who can add or remove it
This browser Only you, in this browser In this browser, encrypted with AES-GCM by a device key that cannot be exported. It travels to the server only with each of your own AI requests You
This board Everyone who can open this board, for questions about it On the server, encrypted with AES-256-GCM and bound to this board People who can edit the board add one; the person who stored it removes it
My workspace You, on all your boards and devices On the server, encrypted and bound to your account. Needs an account You
My organisation Every member of your organisation, on any board On the server, encrypted and bound to the organisation Its admins
This instance Everyone on this Archipelego Set by the operator of an on-premises instance. Never on archipelego.app The operator

After you save a key, Archipelego shows only its last four characters, such as this board ••a1b2. Nobody can read a stored key back.

Organisations

A company, a group of companies, or a collective such as a network of mutuals or non-profits can share governed keys with its people. Signed in, open AI models and keys and use Declare an organisation at the bottom of the Router column.

  • Domains: add your domain; Archipelego gives you a TXT record to add at your registrar, then Verify. Everyone who signs in with a verified email of that domain becomes a member.
  • Invited members: add people by email, for those outside your domains. They join only when they accept, signed in with that email verified (they see the invitation in their own AI models and keys).
  • Allow personal keys: turn it off and members use only the organisation's keys, never their own browser or workspace keys.

On archipelego.app, anyone signed in can declare an organisation. On an on-premises instance, its administrators do.

Remove a key

Open the provider and select Remove key. A key kept on the server can be removed only by the person who stored it, from the browser they stored it with.

The router

The router picks the model that answers. Its settings belong to the canvas, so everyone in the room shares them.

Mode What it does
Auto Flagship models for architecture questions, fast models for quick replies.
Fixed One model for everything. If that model has no key, the AI does not answer with another model.

In Auto, you can choose a model per role:

Role Used for
@architect Questions in the chat, the canvas highlights, and feature drafts.
Explain and story Narration for the room.

Leave a role on Auto (router decides) to let the router choose.

Fallback order

Under When a model fails or has no key, try, add the models to try when the first choice fails. Move a model earlier with the arrow, or remove it. After these models, the router tries the connected providers by tier on its own.

Learn more

Administrators can read how keys are stored, encrypted and routed in AI providers and keys.