Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

docs(control-key): document the Control Key feature end to end

Ruben Lütke318ba143e3e9
diff --git a/docs/authoring/public-docs-manifest.yaml b/docs/authoring/public-docs-manifest.yaml
index b3d179855e..3ea9f52b95 100644
--- a/docs/authoring/public-docs-manifest.yaml
+++ b/docs/authoring/public-docs-manifest.yaml
@@ -1,7 +1,7 @@
version: 1
language: en
content_root: docs/product
-page_count: 42
+page_count: 43
navigation_principle: reader-journey
authoring_contract:
audience: People using Personal Jarvis, including readers with no software background.
@@ -712,7 +712,7 @@ pages:
related:
- providers-and-api-keys
- privacy-and-local-data
- - mcp-connections
+ - control-key
- troubleshooting
reader_level: beginner
maturity: stable
@@ -781,6 +781,28 @@ pages:
reader_level: beginner
maturity: stable
+ - section: Privacy, safety, and support
+ section_order: 6
+ order: 6
+ slug: control-key
+ file: docs/product/privacy-safety-and-support/control-key.md
+ title: "Your Assistant's Key (Control Key)"
+ diataxis: howto
+ summary: Find, use, replace, and regenerate the one key that unlocks Jarvis in a browser and authenticates local agents.
+ authoritative_sources:
+ - jarvis/core/control_key.py
+ - jarvis/ui/web/control_routes.py
+ - jarvis/ui/web/surface_security.py
+ - jarvis/ui/web/frontend/src/views/settings/JarvisApiGroup.tsx
+ - jarvis/ui/web/frontend/src/components/AuthGate.tsx
+ related:
+ - credentials-and-secrets
+ - control-api-reference
+ - providers-and-api-keys
+ - troubleshooting
+ reader_level: beginner
+ maturity: stable
+
- section: Reference
section_order: 7
order: 1
diff --git a/docs/product/privacy-safety-and-support/control-key.md b/docs/product/privacy-safety-and-support/control-key.md
new file mode 100644
index 0000000000..aa39dd2f2c
--- /dev/null
+++ b/docs/product/privacy-safety-and-support/control-key.md
@@ -0,0 +1,142 @@
+---
+title: "Your Assistant's Key (Control Key)"
+slug: control-key
+summary: Find, use, replace, and regenerate the one key that unlocks Jarvis in a browser and authenticates local agents.
+section: "Privacy, safety, and support"
+section_order: 6
+order: 6
+diataxis: howto
+status: active
+owner: maintainers
+last_reviewed: 2026-07-16
+phase: "-"
+audience: end-user
+tags: [control-key, authentication, unlock, browser, security, api-keys]
+related: [credentials-and-secrets, control-api-reference, providers-and-api-keys, troubleshooting]
+---
+
+Every Personal Jarvis installation protects itself with one private key, the
+**Control Key**. It has exactly two jobs:
+
+- **Unlock the interface.** When you open Jarvis in a normal browser — on the
+ same computer or from another device — a lock screen asks for this key once,
+ then keeps you signed in with a session cookie.
+- **Authenticate local agents.** Terminal tools and coding agents (the Jarvis
+ CLI, Codex, Claude Code) present the same key to drive Jarvis over the
+ Control API instead of clicking through the screen.
+
+The desktop app itself never asks for the key: it proves it belongs to the
+installation through a private startup handshake.
+
+## You Already Have a Key
+
+Nobody sends you a Control Key, and there is no account behind it. The moment
+Jarvis starts for the first time, it generates a long random key **for this
+installation only** and stores it in your operating system's credential store
+(Credential Manager on Windows, Keychain on macOS, Secret Service on Linux),
+with a restricted file in the Jarvis data directory as the fallback on systems
+without such a store. No two installations share a key, and the key never
+leaves your machine by itself.
+
+## Find the Key
+
+The key lives in its own section, named after your assistant: if your wake
+word is "Nico", the tab is called **Nico Key**.
+
+1. Open Jarvis on the computer it is installed on.
+2. Open **API Keys & Providers**.
+3. Select the key tab named after your assistant (for example **Nico Key**).
+4. Use **Show** to reveal the key, or **Copy** to put it on the clipboard.
+
+The lock screen in the browser points to this same place, so anyone who hits
+it can find their way here.
+
+## Unlock Jarvis in a Browser
+
+1. Open the Jarvis address in the browser. The lock screen appears.
+2. Paste the Control Key and select **Unlock**.
+3. The browser receives a private session cookie; the key itself is not stored
+ in the browser.
+
+The exchange requires a direct same-computer connection or an encrypted
+(HTTPS) one, so the key never crosses a sniffable network hop in the clear.
+
+## Choose Your Own Key
+
+If you would rather remember the key than copy a generated one:
+
+1. In the key section, select **Choose my own key**.
+2. Enter the new key twice. It must be at least 12 characters long and may use
+ letters, digits, and `. _ ~ -` (no spaces).
+3. Select **Set this key**.
+
+The new key replaces the old one immediately and everywhere: the browser lock
+screen, other devices, and every agent using the old key need the new value.
+Sessions that are already signed in stay signed in.
+
+## Regenerate the Key
+
+If the key may have leaked — it appeared in a screenshot, a chat, or a log —
+generate a fresh random one:
+
+1. In the key section, select **Generate random key**.
+2. Confirm the dialog. The old key stops working immediately, everywhere.
+3. Copy the new key and update every device and agent that used the old one.
+
+Regeneration is deliberately behind a confirmation dialog because it is a
+lockout-grade action for every client that still holds the old key.
+
+## On a Headless Server
+
+A server installation without a display has no settings screen, so two other
+paths exist:
+
+- Read the fallback file `.control_api_key` in the Jarvis data directory.
+- Ask a running instance over the loopback interface:
+ `GET /api/control/api-key` (see the
+ [Control API Reference](control-api-reference)).
+
+A public (non-loopback) listener refuses to start without a key, so a server
+install can never be exposed unlocked by accident.
+
+## Keep It Safe
+
+Treat the Control Key like an administrator password. Whoever has it can
+operate your Jarvis: read settings, switch providers, and use every protected
+operation of the instance. Never put it in chat or voice input, source code,
+URLs, logs, screenshots, documentation, or shell history. Store copies only in
+a trusted password manager.
+
+## How It Fits Together
+
+| Feature | Relationship to the Control Key |
+|---|---|
+| [Credentials and Secrets](credentials-and-secrets) | The key is stored like every other credential — operating-system store first, restricted file fallback — but it is the one value the UI may reveal and copy. |
+| [Control API Reference](control-api-reference) | Agents and scripts present the key as the Bearer credential for `/api/control/*` operations. |
+| [Providers and API Keys](providers-and-api-keys) | Provider keys connect external services to Jarvis; the Control Key protects your own Jarvis. Different credentials for different doors. |
+
+## Check That It Works
+
+1. Open **API Keys & Providers** and select the key tab named after your
+ assistant.
+2. Select **Show**, then **Copy**.
+3. Open the Jarvis address in a private browser window. The lock screen
+ appears.
+4. Paste the key and select **Unlock**. The interface loads, which proves the
+ stored key and the unlock exchange both work.
+
+## Troubleshooting
+
+| What you see | What it usually means | What to do |
+|---|---|---|
+| The lock screen rejects your key | The key was regenerated or replaced since you copied it | Read the current key in the key section on the install computer and try again |
+| You never received a key | Expected — keys are generated locally, not sent | Follow [Find the Key](#find-the-key) above |
+| **Setting the key failed** | Neither the OS credential store nor the fallback file accepted the new value | Unlock the credential store, check that Jarvis can write to its data directory, and retry; the old key stays active until a new one is stored |
+| An agent or CLI suddenly gets `401` errors | The key was regenerated or replaced after the agent stored it | Update the agent's stored key with the current value |
+
+## Next Steps
+
+- Read [Credentials and Secrets](credentials-and-secrets) for how Jarvis
+ stores private values in general.
+- Use the [Control API Reference](control-api-reference) to drive Jarvis from
+ scripts and agents with this key.
diff --git a/docs/product/privacy-safety-and-support/credentials-and-secrets.md b/docs/product/privacy-safety-and-support/credentials-and-secrets.md
index 800818281c..16cd435f02 100644
--- a/docs/product/privacy-safety-and-support/credentials-and-secrets.md
+++ b/docs/product/privacy-safety-and-support/credentials-and-secrets.md
@@ -12,7 +12,7 @@ last_reviewed: 2026-07-15
phase: "-"
audience: end-user
tags: [credentials, secrets, api-keys, tokens, privacy, security]
-related: [providers-and-api-keys, privacy-and-local-data, mcp-connections, troubleshooting]
+related: [providers-and-api-keys, privacy-and-local-data, control-key, troubleshooting]
---
Credentials are private values that let Jarvis use an account or service on
@@ -40,7 +40,7 @@ at the service that issued the credential.
| Plugin or messaging channel | **Plugins > Connect**, including the browser sign-in or protected token field | Plugin descriptions, feedback, screenshots, or source files |
| Command-line tool | **CLIs**, open the tool, then use **Connect** or **Set API Key** | A shell command, command history, or a custom command definition |
| Phone service | **API Keys & Providers > Advanced > Telephony** | Greeting text, call scripts, logs, or phone-call transcripts |
-| Jarvis Control API | **API Keys & Providers > Advanced**, on the API card named for your assistant | Chat, docs, issue reports, or an untrusted client |
+| Jarvis Control API | **API Keys & Providers**, on the dedicated key tab named for your assistant (see [Your Assistant's Key](control-key)) | Chat, docs, issue reports, or an untrusted client |
| Manual MCP server | Use a protected plugin connection when one is available | A literal value in `mcp.json`, including its environment and header fields |
> [!warning] A chat box and a password box may look similar, but they have
@@ -101,8 +101,9 @@ The normal path is short:
connection uses it for its own authenticated request.
5. **The UI receives status, not the secret.** Provider cards show whether a
credential is set. The Control API key is the deliberate exception: its
- panel can reveal or copy the full value and can regenerate it, which
- immediately invalidates the previous Control API key.
+ panel can reveal or copy the full value, replace it with a key you choose,
+ or regenerate it — replacement and regeneration immediately invalidate the
+ previous Control API key.
If no usable operating-system store exists, or it is locked when you save,
Jarvis falls back to a restricted file in its data directory. This keeps
diff --git a/docs/product/reference/control-api-reference.md b/docs/product/reference/control-api-reference.md
index bdfec6e022..9cf1dd792d 100644
--- a/docs/product/reference/control-api-reference.md
+++ b/docs/product/reference/control-api-reference.md
@@ -94,15 +94,20 @@ interface.
The outer security boundary accepts a valid Control key or app session for most
protected `/api/*` requests. Most `/api/control/*` routes then apply a narrower
-route guard and require the Control key specifically. Key reveal and rotation
-are the exception: an authenticated app session may use them so the in-app key
-card can work.
-
-Open **API Keys & Providers > Advanced**, then choose the API card named for
-your assistant. There you can view the masked key, copy it into a trusted secret
-manager, or regenerate it. Regeneration immediately invalidates the previous
-Control key, so every CLI profile and integration using the old value must be
-updated.
+route guard and require the Control key specifically. Key reveal, rotation, and
+replacement are the exception: an authenticated app session may use them so the
+in-app key panel can work.
+
+Open **API Keys & Providers**, then choose the dedicated key tab named for
+your assistant (for example **Nico Key**). There you can view the masked key,
+copy it into a trusted secret manager, replace it with a key you choose (at
+least 12 characters; letters, digits, and `. _ ~ -`), or regenerate a random
+one behind a confirmation dialog. Replacement and regeneration immediately
+invalidate the previous Control key, so every CLI profile and integration
+using the old value must be updated. Over HTTP the same actions are
+`GET /api/control/api-key`, `PUT /api/control/api-key`
+(`{value, confirm: true}`), and `POST /api/control/api-key/rotate`
+(`{confirm: true}`).
## Follow the Request Lifecycle