Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content
Get started

Keys and projects

This page is for anyone deciding which key to create. Mubit uses three kinds of key, and each does one job.

KeyPrefixSent byWhat it does
Mubit inference keymbt_ (older keys: mw_)Your app, in place of the provider keySends model calls through Mubit, and calls runtime calibration
Management keymwm_Scripts, CI and developer toolsReads and changes your organization's records through the management API
Provider keyThe provider's ownMubit, to the providerPays for the calls Mubit passes on to your provider

Your provider's key never goes in your app. You add it in the console, and Mubit sends it with the calls it passes on.

Mubit inference keys

Your app sends an inference key in place of a provider key. Create one under Mubit keys, or in the first-time setup. A key works for one project only, and the console shows the whole key once, when you create it.

An inference key has one of two permissions:

  • Inference: calls this project. For apps that send calls.
  • Read only: reads its records. Reads this project's records. A call sent with it is refused with 403 key_permission.

New keys start with mbt_. Keys issued earlier may start with mw_. Mubit accepts both on model calls. Inference keys work on the model-call paths (/openai, /anthropic, /gemini) and on runtime calibration. They don't work on the management API, which answers 403.

Mubit keys shows how to create, rotate and revoke an inference key.

Management keys

A management key calls the management API (/api/v1) and the tools built on it, such as the command line tool and the MCP server. It looks like mwm_<instance>_<key id>_<secret>. It is not a way to send model calls: a management key on the model-call paths answers 403.

An admin creates management keys in the console, under Management keys in the workspace. The console shows the secret once. Each key has a role, and can be limited to one project:

RoleCan do
readEvery read operation except the list of management keys.
memberEverything read can, and the data writes: rating a call, reviewing an example, starting an import and cancelling one.
adminEverything member can, and management keys, inference and provider keys, projects, settings and fine-tuning controls.

A key's role never exceeds the role of whoever created it. Revoking a key ends it within a minute, and ends the keys that were created with it. Rotating a key gives it a new secret and stops the old one within a minute.

The API reference lists the calls.

Provider keys

A provider key is the key your provider issued, such as an OpenAI, Anthropic or Gemini key. Add it under Provider keys in the console, or in the first-time setup. Mubit refuses a Mubit key pasted there, and refuses sign-in tokens such as a Claude or ChatGPT subscription login. See Provider keys.

Projects

A project holds your calls, tasks, adapters and keys. An inference key belongs to one project. A management key belongs to the organization, or to one project when you scope it. See Projects and Members and roles.

ℹ️Note

Treat every key as a secret. Keep it in an environment variable or a secret store, never in code you commit, and never in a chat with a coding agent. If a key leaks, revoke it and create a new one.

Next