@andorra-labs/code 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/dist/src/account-presentation.js +3 -3
  2. package/dist/src/agent-execution.d.ts +2 -0
  3. package/dist/src/agent-execution.js +126 -20
  4. package/dist/src/agent-mcp.d.ts +18 -1
  5. package/dist/src/agent-mcp.js +103 -8
  6. package/dist/src/app-server/protocol.d.ts +33 -3
  7. package/dist/src/app-server/protocol.js +14 -1
  8. package/dist/src/app-server/workspace.d.ts +1 -0
  9. package/dist/src/app-server/workspace.js +7 -1
  10. package/dist/src/app-server.d.ts +115 -41
  11. package/dist/src/app-server.js +1229 -219
  12. package/dist/src/automation-runner.d.ts +9 -0
  13. package/dist/src/automation-runner.js +22 -1
  14. package/dist/src/automation-tool.js +8 -1
  15. package/dist/src/automations.js +1 -1
  16. package/dist/src/browser-captcha-tool.d.ts +54 -0
  17. package/dist/src/browser-captcha-tool.js +374 -0
  18. package/dist/src/browser-panel-tool.d.ts +7 -0
  19. package/dist/src/browser-panel-tool.js +74 -3
  20. package/dist/src/browser-runner.js +19 -4
  21. package/dist/src/browser-server.js +21 -1
  22. package/dist/src/browser-session.d.ts +16 -0
  23. package/dist/src/browser-session.js +35 -0
  24. package/dist/src/browser-ui/app.js +193 -3
  25. package/dist/src/browser-ui/style.css +15 -1
  26. package/dist/src/browser-view.d.ts +72 -4
  27. package/dist/src/browser-view.js +229 -17
  28. package/dist/src/capabilities.js +13 -2
  29. package/dist/src/capsolver.d.ts +60 -0
  30. package/dist/src/capsolver.js +101 -0
  31. package/dist/src/claude-provider.d.ts +6 -0
  32. package/dist/src/claude-provider.js +34 -3
  33. package/dist/src/cli-executable.d.ts +33 -0
  34. package/dist/src/cli-executable.js +64 -0
  35. package/dist/src/cli-process.d.ts +47 -0
  36. package/dist/src/cli-process.js +113 -0
  37. package/dist/src/cli-sign-in.d.ts +68 -0
  38. package/dist/src/cli-sign-in.js +224 -0
  39. package/dist/src/cli.js +54 -23
  40. package/dist/src/code-intelligence/CodeIntelligenceManager.d.ts +1 -1
  41. package/dist/src/code-intelligence/CodeIntelligenceManager.js +5 -5
  42. package/dist/src/coding-tools.js +44 -5
  43. package/dist/src/command-output-tap.d.ts +16 -0
  44. package/dist/src/command-output-tap.js +45 -0
  45. package/dist/src/command-screens.js +3 -3
  46. package/dist/src/commands.d.ts +10 -1
  47. package/dist/src/commands.js +7 -7
  48. package/dist/src/completion.d.ts +23 -5
  49. package/dist/src/completion.js +334 -17
  50. package/dist/src/config.d.ts +13 -0
  51. package/dist/src/config.js +28 -2
  52. package/dist/src/deadline.js +6 -0
  53. package/dist/src/extensions.d.ts +1 -0
  54. package/dist/src/extensions.js +16 -3
  55. package/dist/src/graph-provider-portability.js +2 -2
  56. package/dist/src/graph-quota.d.ts +1 -1
  57. package/dist/src/graph-quota.js +1 -1
  58. package/dist/src/graph-runner.js +35 -21
  59. package/dist/src/graph-selection.d.ts +6 -0
  60. package/dist/src/graph-selection.js +10 -0
  61. package/dist/src/graph-server.d.ts +7 -0
  62. package/dist/src/graph-server.js +61 -3
  63. package/dist/src/graph-sync.d.ts +50 -0
  64. package/dist/src/graph-sync.js +383 -12
  65. package/dist/src/graph-ui/app.js +61 -8
  66. package/dist/src/graph-ui/icons.js +1 -0
  67. package/dist/src/graph-ui/index.html +1 -1
  68. package/dist/src/graph-ui/skill-picker.js +242 -0
  69. package/dist/src/graph-ui/style.css +19 -0
  70. package/dist/src/graphs.d.ts +46 -4
  71. package/dist/src/graphs.js +152 -27
  72. package/dist/src/grok-provider.d.ts +50 -0
  73. package/dist/src/grok-provider.js +186 -0
  74. package/dist/src/handoffs.d.ts +13 -0
  75. package/dist/src/handoffs.js +31 -1
  76. package/dist/src/managed-sign-in.d.ts +38 -0
  77. package/dist/src/managed-sign-in.js +169 -0
  78. package/dist/src/markdown.d.ts +5 -0
  79. package/dist/src/markdown.js +5 -2
  80. package/dist/src/mcp.js +11 -0
  81. package/dist/src/membership.d.ts +8 -1
  82. package/dist/src/membership.js +15 -5
  83. package/dist/src/model-metadata.js +14 -2
  84. package/dist/src/model-override.d.ts +10 -0
  85. package/dist/src/model-override.js +20 -0
  86. package/dist/src/opencode-cli-provider.d.ts +122 -0
  87. package/dist/src/opencode-cli-provider.js +415 -0
  88. package/dist/src/opencode-provider.js +23 -8
  89. package/dist/src/palette.d.ts +2 -0
  90. package/dist/src/palette.js +2 -0
  91. package/dist/src/permissions.d.ts +19 -1
  92. package/dist/src/permissions.js +30 -1
  93. package/dist/src/powershell-pool.d.ts +2 -2
  94. package/dist/src/powershell-pool.js +18 -5
  95. package/dist/src/provider-connection.js +36 -0
  96. package/dist/src/provider-engine.d.ts +2 -1
  97. package/dist/src/provider-engine.js +64 -13
  98. package/dist/src/provider-import.js +6 -1
  99. package/dist/src/provider-settings.js +22 -3
  100. package/dist/src/providers.d.ts +12 -1
  101. package/dist/src/providers.js +27 -8
  102. package/dist/src/pull-requests.d.ts +111 -17
  103. package/dist/src/pull-requests.js +308 -76
  104. package/dist/src/qa/qa-authorize.js +9 -1
  105. package/dist/src/react-runtime.js +76 -5
  106. package/dist/src/remote/engine-pool.js +1 -1
  107. package/dist/src/run-progress.js +6 -1
  108. package/dist/src/run-records.d.ts +133 -27
  109. package/dist/src/run-records.js +320 -40
  110. package/dist/src/runtime.d.ts +38 -1
  111. package/dist/src/runtime.js +27 -4
  112. package/dist/src/save-lock.d.ts +11 -0
  113. package/dist/src/save-lock.js +29 -2
  114. package/dist/src/sessions.js +4 -1
  115. package/dist/src/shell.js +4 -1
  116. package/dist/src/side-panel.d.ts +1 -1
  117. package/dist/src/side-panel.js +1 -1
  118. package/dist/src/skill-commands.d.ts +2 -0
  119. package/dist/src/skill-commands.js +2 -0
  120. package/dist/src/skills/bundled/create-agent/SKILL.md +81 -0
  121. package/dist/src/skills/bundled/create-skill/SKILL.md +81 -0
  122. package/dist/src/skills/bundled/doctor/SKILL.md +43 -0
  123. package/dist/src/skills/bundled/graph-manager/SKILL.md +97 -0
  124. package/dist/src/skills/bundled/graph-manager/errors.md +38 -0
  125. package/dist/src/skills/bundled/graph-manager/patterns.md +78 -0
  126. package/dist/src/skills/bundled/manage-mcp/SKILL.md +75 -0
  127. package/dist/src/skills/bundled/manage-mcp/probe.md +165 -0
  128. package/dist/src/skills/bundled/manage-skills/SKILL.md +67 -0
  129. package/dist/src/skills/bundled/provenance.json +50 -0
  130. package/dist/src/skills/bundled/write-instructions/SKILL.md +42 -0
  131. package/dist/src/skills/invocable-skills.d.ts +41 -0
  132. package/dist/src/skills/invocable-skills.js +49 -0
  133. package/dist/src/skills/prompt-skills.d.ts +1 -0
  134. package/dist/src/skills/prompt-skills.js +33 -0
  135. package/dist/src/skills/runtime-skills.d.ts +4 -0
  136. package/dist/src/skills/runtime-skills.js +21 -0
  137. package/dist/src/structured-step.d.ts +55 -0
  138. package/dist/src/structured-step.js +85 -0
  139. package/dist/src/subagent-run.d.ts +1 -1
  140. package/dist/src/subagent-run.js +29 -33
  141. package/dist/src/telemetry/schema.d.ts +2 -2
  142. package/dist/src/telemetry/schema.js +3 -2
  143. package/dist/src/terminal-ui.d.ts +29 -0
  144. package/dist/src/terminal-ui.js +112 -28
  145. package/dist/src/timers.d.ts +21 -2
  146. package/dist/src/timers.js +12 -4
  147. package/dist/src/tool-names.d.ts +18 -0
  148. package/dist/src/tool-names.js +26 -0
  149. package/dist/src/tools.js +45 -11
  150. package/dist/src/trajectory.js +32 -12
  151. package/dist/src/types.d.ts +23 -0
  152. package/dist/src/update.d.ts +26 -16
  153. package/dist/src/update.js +232 -275
  154. package/docs/agents/install-for-agents.md +15 -24
  155. package/docs/agents/mcp-server.md +13 -1
  156. package/docs/agents/subagent-mode.md +7 -4
  157. package/docs/concepts/security.md +2 -0
  158. package/docs/getting-started/README.md +14 -6
  159. package/docs/getting-started/configure-providers.md +29 -2
  160. package/docs/guides/README.md +1 -1
  161. package/docs/guides/browser.md +12 -0
  162. package/docs/guides/desktop-app.md +45 -9
  163. package/docs/guides/graph-builder.md +8 -0
  164. package/docs/guides/update.md +37 -16
  165. package/docs/reference/cli.md +1 -1
  166. package/docs/reference/config.md +2 -2
  167. package/docs/superpowers/plans/2026-11-06-graph-soft-delete.md +125 -0
  168. package/docs/superpowers/specs/2026-11-01-pr-section-design.md +7 -0
  169. package/docs/superpowers/specs/2026-11-06-bundled-skills-design.md +206 -0
  170. package/package.json +1 -1
  171. package/tests/permissions-test-plan.md +2 -1
@@ -2,33 +2,27 @@
2
2
 
3
3
  If you use another AI coding agent (Codex, Claude Code, and so on), paste the block below into it. The agent can then install Andorra Code on your machine, configure a provider, and verify the install without further decisions from you.
4
4
 
5
- Before pasting, fill in the two bracketed values: which provider to configure, and where to clone the repository. Everything else is deterministic.
5
+ Before pasting, fill in the bracketed value: which provider to configure. Everything else is deterministic.
6
6
 
7
7
  ````markdown
8
8
  Install Andorra Code (a terminal-first coding agent) on this machine and verify it works.
9
9
 
10
10
  Prerequisites you must check first:
11
11
  - Node.js 22.19 or newer (`node --version`). If missing or older, install the current LTS
12
- from nodejs.org (or via the system's package manager) before continuing.
13
- - git on PATH (`git --version`).
14
- - Network access to github.com and to the model provider endpoint below.
12
+ from nodejs.org (or via the system's package manager) before continuing. npm ships with it.
13
+ - Network access to registry.npmjs.org and to the model provider endpoint below.
15
14
  - If the provider preset below is "Codex": the official OpenAI Codex CLI must already be
16
15
  installed and signed in with ChatGPT (install @openai/codex and run `codex login`), or
17
16
  ANDORRA_CODEX_PATH must point at its executable. Without it, configuring the Codex
18
- provider fails — check this before step 7 when that preset is chosen.
17
+ provider fails — check this before step 3 when that preset is chosen.
19
18
 
20
19
  Steps (run verbatim, stopping to report if any step fails):
21
- 1. git clone https://github.com/Andorra-Labs/Andorra-Code "<clone path, e.g. C:\dev\Andorra-Code>"
22
- 2. cd "<clone path>"
23
- 3. npm ci
24
- 4. npm run build
25
- 5. npm link
26
- 6. Verify: `andorra --version` must print a version number (currently 0.1.0). If `andorra`
27
- is not found, the npm global bin directory is not on PATH — report that; do not edit
28
- shell profiles silently.
20
+ 1. npm install -g @andorra-labs/code
21
+ 2. Verify: `andorra --version` must print a version number. If `andorra` is not found, the
22
+ npm global bin directory is not on PATH — report that; do not edit shell profiles silently.
29
23
 
30
24
  Provider configuration (interactive, needs the human once):
31
- 7. Tell the user to run `andorra` in any folder, type `/providers`, press Enter, choose
25
+ 3. Tell the user to run `andorra` in any folder, type `/providers`, press Enter, choose
32
26
  "Add provider", select the "<provider preset: DeepSeek | Kimi | Kimi For Coding | GLM Coding Plan | OpenAI | Anthropic | local | Codex>"
33
27
  preset, and provide credentials one of these two ways:
34
28
  - Paste their API key into the masked **API key** field (saved locally), or
@@ -38,18 +32,15 @@ Provider configuration (interactive, needs the human once):
38
32
  Settings save only after choosing "Save changes".
39
33
 
40
34
  Verification (optional, non-interactive):
41
- 8. `andorra --version`
42
- 9. `andorra auth status` — reports the Andorra account session (signed out is fine;
43
- accounts are optional and only needed for hosted Jev and paid graph features).
35
+ 4. `andorra --version`
36
+ 5. `andorra auth status` — reports the Andorra account session (signed out is fine;
37
+ accounts are optional and only needed for hosted Jev and paid graph features).
44
38
 
45
39
  Notes:
46
- - The npm package @andorra-labs/code is not published to npm yet; source install is the
47
- only supported path.
48
- - To update later: run `andorra update` from any directory (requires the checkout on
49
- branch main with a clean tree).
40
+ - To update later: run `andorra update` from any directory. It installs the latest npm
41
+ release of @andorra-labs/code and never downgrades.
50
42
  - Configuration lives in ~/.andorracode (override with ANDORRACODE_HOME). Saved API keys
51
43
  are plaintext in ~/.andorracode/config.json — never commit or share that file.
52
- - Do not modify anything under the clone's working tree other than what these commands do.
53
44
  ````
54
45
 
55
46
  ## What the human still has to do
@@ -59,6 +50,6 @@ Two things cannot be automated away:
59
50
  1. **The API key.** Provider keys are secrets; paste them yourself in the masked field, or export the environment variable yourself.
60
51
  2. **The optional account.** Run `andorra login` yourself if you want hosted Jev routing or paid graph features — the browser sign-in is interactive. See [Accounts](../getting-started/accounts.md).
61
52
 
62
- ## Why source install
53
+ ## Installing from source instead
63
54
 
64
- `@andorra-labs/code` is not yet on the public npm registry, so `npm install -g` does not work. The clone-and-link procedure above is exactly what the human-facing [Getting started](../getting-started/README.md) describes. When the package is published, this page gains a one-line `npm install -g @andorra-labs/code` alternative.
55
+ To run unreleased changes, clone and link the repository as [Getting started](../getting-started/README.md#install-from-source) describes. `andorra update` does not update a source checkout: pull and rebuild it yourself, or switch to the npm release with `npm install -g @andorra-labs/code@latest`.
@@ -63,7 +63,7 @@ its user and retry with the choice. The full contract is in [Subagent mode](suba
63
63
  | --- | --- |
64
64
  | andorra_graph_guide | Returns the architecture, examples, node ports and machine-readable error contract |
65
65
  | andorra_providers_list | Provider IDs, models and types, **no credentials** |
66
- | andorra_graphs_list | List published graph IDs, names and revisions |
66
+ | andorra_graphs_list | List published graph IDs, names and revisions; deleted graphs only with `includeDeleted: true` |
67
67
  | andorra_graph_get | Read the exact saved latest or selected immutable revision, without editor-only migration |
68
68
  | andorra_graph_begin | Begin new or existing graph draft (mode create/edit, id, name for create); returns draftId |
69
69
  | andorra_graph_node_upsert | Create/replace a whole node with prompt, provider, completion, permissions and other settings |
@@ -75,6 +75,8 @@ its user and retry with the choice. The full contract is in [Subagent mode](suba
75
75
  | andorra_graph_validate | Validate without saving; return all missing-provider and missing-outcome issues, plus structural error |
76
76
  | andorra_graph_publish | Validate and save the next immutable revision, or report revision conflict |
77
77
  | andorra_graph_discard | Drop an uncommitted draft |
78
+ | andorra_graph_delete | Soft-delete a graph (`id`, `expectedRevision`, `confirm` repeating the id) after the user confirms in chat |
79
+ | andorra_graph_restore | Restore a soft-deleted graph (`id`, `expectedRevision`) |
78
80
 
79
81
  Graph architecture is also exposed as a resource with URI andorra://graph/architecture. A third-party agent should read this before trying to design workflows. Agent completion outcomes may be pass/fail or custom names, Condition uses true/false ports, Loop uses body/done ports and bounded iteration counts, Approval uses approved/rejected, and Join all cannot wait for mutually exclusive branches. All nodes must be reachable from entry and every declared required outcome must route. See the resource for the full node and edge rules.
80
82
 
@@ -117,6 +119,16 @@ Graph architecture is also exposed as a resource with URI andorra://graph/archit
117
119
 
118
120
  To make a Loop, create a Loop node with loop.maxIterations and link its body and done ports. Node visits are unlimited by default: `graph.limits.maxNodeVisits` is absent, and `0` there means the same thing. A graph with a return connection still needs a ceiling, so set `graph.limits.maxNodeVisits` high enough for each cycle/reentry, or set `graph.limits.wallTimeMs` to bound the run by the clock instead. The existing graph validator remains the authority for reachable links, cycles, schemas and Join dependencies.
119
121
 
122
+ ### Deleting and restoring a graph
123
+
124
+ Deleting is a soft delete. `andorra_graph_delete` publishes the next revision with `metadata.deletedAt` set; no file is removed, and every earlier revision stays stored locally and in the cloud. Cloud sync carries that revision to the account's other machines like any publish. Removing the files instead would not work: sync restores every graph the account holds.
125
+
126
+ A deleted graph leaves `andorra_graphs_list` (unless `includeDeleted` is true), `/graph`, the desktop graph picker and the Graph Builder, and new runs refuse it with "Graph <name> was deleted. Restore it before running it." A saved default selection that names it falls back to the Default graph until it is restored. Sessions that already ran it keep resuming. `andorra_graph_get` still reads it and reports `deletedAt`; `andorra_graph_begin` with `mode=edit` refuses it.
127
+
128
+ `andorra_graph_restore` publishes the next revision without the marker. A deleted graph still counts toward a free account's one custom graph, so a free account restores it rather than replacing it.
129
+
130
+ Refusals: `DEFAULT_GRAPH` (the Default graph or the Andorra preset), `CONFIRMATION_MISMATCH` (`confirm` is not the id), `GRAPH_IN_USE` (an automation runs the graph; `automations` lists them), `GRAPH_DELETED` (already deleted, or an edit of a deleted graph), `GRAPH_NOT_DELETED` (restore of a live graph), and `REVISION_CONFLICT` when `expectedRevision` is not the latest. `metadata.deletedAt` is reserved: `andorra_graph_patch`, publishing and Graph Builder saves refuse it (`RESERVED_METADATA`), so a graph is deleted only through the delete tool.
131
+
120
132
  ### Validation errors
121
133
 
122
134
  Every MCP tool returns a JSON text payload with ok/data or ok/error. A failed call sets MCP isError=true. For example, omitting a fail branch yields:
@@ -124,10 +124,13 @@ classified by the same recovery as any other attempt. The run record carries `su
124
124
  the permission the run was bound to.
125
125
 
126
126
  A finished run leaves no conversation behind: the checkpoint a stopped attempt needs is deleted
127
- once the attempt succeeds, because a successful run has nothing to resume. An attempt whose
128
- journal or checkpoint could not be written is marked as one no resume may replay — the resume
129
- would re-enter the node from its opening task and repeat the tool calls it had already made — and
130
- a resume of it is refused with a message that says so.
127
+ once the attempt succeeds, because a successful run has nothing to resume. A journal append the
128
+ file refuses (a full disk, most often) is held and written once appends succeed again, and a
129
+ node's failed checkpoint write is healed by its next successful one. An attempt that stopped while
130
+ something was still missing is marked (`runs/<runId>.journal-error` or `.checkpoint-error`, and
131
+ `journalIntegrity` or `checkpointIntegrity` on the record). A resume of it still goes ahead, because
132
+ a session must always be resumable, and the resumed attempt opens with a warning that a step may
133
+ repeat.
131
134
 
132
135
  The run's own record is durable as it goes: an event is on disk before the run moves on, and the
133
136
  checkpoint is written before the run advances past the tool call it describes. A process killed
@@ -20,6 +20,8 @@ Headless runs without `--yolo` receive permission-denied observations for writes
20
20
 
21
21
  `/permissions` chooses a permission mode and remembers it per workspace (`workspacePermissions` in `config.json`).
22
22
 
23
+ A mode changed while a task runs applies to that task from its next decision on. In the desktop app (`run.setPermissions`), approvals the task is already waiting on are also checked again under the new mode: one the new mode allows goes through, and one it still requires is asked again. The change is recorded in the run journal as `run.permissions.changed`, followed by the decisions it led to. An escalated shell command approved this way runs on the host only while Full Access is still in force when it starts. A sandboxed command never leaves the sandbox because of a later switch.
24
+
23
25
  ## Secrets
24
26
 
25
27
  - Provider API keys are stored locally in `config.json` (plaintext — keep the file private) or referenced by environment-variable name. They are never added to command history or displayed in provider summaries.
@@ -1,6 +1,6 @@
1
1
  # Getting started
2
2
 
3
- This page installs Andorra Code from source, configures one model provider, and runs your first task. Total time is a few minutes on a machine that already has Node.js.
3
+ This page installs Andorra Code from npm, configures one model provider, and runs your first task. Total time is a few minutes on a machine that already has Node.js.
4
4
 
5
5
  If you want another AI coding agent to do this for you, skip to [Give these instructions to an AI agent](../agents/install-for-agents.md).
6
6
 
@@ -10,12 +10,20 @@ If you want another AI coding agent to do this for you, skip to [Give these inst
10
10
  | --- | --- |
11
11
  | Node.js 22.19 or newer | The engine declares `node >=22.19.0`. Check with `node --version`. |
12
12
  | npm | Ships with Node.js. |
13
- | git | Used to clone the repository; Andorra also reads Git state for its status displays. |
13
+ | git | Andorra reads Git state for its status displays; also needed to install from source. |
14
14
  | A model provider | An API key for an OpenAI-compatible or Anthropic endpoint, a ChatGPT subscription (Codex provider), or a local server such as LM Studio. See [Configure providers](configure-providers.md). |
15
15
 
16
- ## Install from source
16
+ ## Install
17
17
 
18
- `@andorra-labs/code` is not yet published to npm. Install from the GitHub repository:
18
+ ```sh
19
+ npm install -g @andorra-labs/code
20
+ ```
21
+
22
+ This installs two global commands, `andorra` and the alias `andorracode`. Keep them current with `andorra update`, which installs the latest npm release; see [Update](../guides/update.md).
23
+
24
+ ### Install from source
25
+
26
+ To run unreleased changes, build the GitHub repository instead:
19
27
 
20
28
  ```sh
21
29
  git clone https://github.com/Andorra-Labs/Andorra-Code
@@ -25,7 +33,7 @@ npm run build
25
33
  npm link
26
34
  ```
27
35
 
28
- This installs two global commands, `andorra` and the alias `andorracode`, both pointing at this checkout.
36
+ `npm link` points `andorra` and `andorracode` at this checkout. `andorra update` does not update a checkout; pull and rebuild it yourself (`git pull --ff-only`, `npm ci`, `npm run build`), or switch to the npm release with `npm install -g @andorra-labs/code@latest`.
29
37
 
30
38
  Alternatives without linking:
31
39
 
@@ -71,4 +79,4 @@ An Andorra account is optional: signing in enables hosted Jev decision routing a
71
79
  - [Concepts](../concepts/README.md) — how the graph, agents, and context routing fit together.
72
80
  - [Guides](../guides/README.md) — the TUI in depth, the Graph Builder, headless automation, skills/MCP/plugins.
73
81
  - [Reference](../reference/README.md) — every CLI flag, slash command, and configuration file.
74
- - [Update an existing installation](../guides/update.md) — `andorra update`.
82
+ - [Update an existing installation](../guides/update.md) — `andorra update` installs the latest npm release.
@@ -24,9 +24,22 @@ An **Anthropic** provider can sign in with a Claude Console account instead of a
24
24
 
25
25
  Andorra runs `ant auth login` with `ANTHROPIC_CONFIG_DIR` set to `~/.andorracode/anthropic-accounts/<provider id>`, so each provider keeps its own login and your own `ant` profiles are never read or changed. The Anthropic SDK refreshes the access token from that directory; Andorra never handles the OAuth exchange. **Sign out**, or removing the provider, deletes the directory. New Anthropic providers start on `claude-opus-5-5`; **Discover Models** lists the rest.
26
26
 
27
+ ### Sign in or use an API key
28
+
29
+ In Desktop, **+ Add Provider** lists one card per vendor. A vendor with a subscription sign-in shows two choices side by side before anything is saved: **Sign in with …** (a subscription the vendor's own CLI holds) or **Use an API key**. Choosing one switches the draft's type and endpoint; **Save provider** adds it to the list.
30
+
31
+ | Card | Sign in with … | Use an API key |
32
+ | --- | --- | --- |
33
+ | ChatGPT / OpenAI | ChatGPT Plus or Pro through Codex (`codex`) | OpenAI API key (`openai-compatible`) |
34
+ | Claude | Claude Pro or Max through Claude Code (`claude`) | Anthropic API key or Claude Console sign-in (`anthropic`) |
35
+ | Grok / xAI | SuperGrok through the Grok CLI (`grok`) | xAI API key (`openai-compatible`) |
36
+ | OpenCode | The providers connected in the OpenCode CLI (`opencode`) | OpenCode Go key (`opencode-go`) |
37
+
38
+ The sign-in panel runs the vendor CLI's own login on the engine's machine. The login and its tokens stay with that CLI; Andorra never copies them. After a sign-in in the add form, **Discover Models** runs once so the first model can be picked. Sign-in runs only for a local engine; for a remote workspace, sign in with the CLI on that machine.
39
+
27
40
  ### Claude subscription
28
41
 
29
- Choose **Claude (via Claude Code CLI)** in Desktop, or **Claude subscription** in `/providers`. Install the native Claude Code CLI and run `claude auth login` yourself first. Andorra reuses that CLI's managed sign-in; it never copies OAuth access or refresh tokens into its configuration. `ANDORRA_CLAUDE_PATH` can select a native CLI executable when it is not on PATH.
42
+ Choose **Claude**, then **Sign in with Claude**, in Desktop, or **Claude subscription** in `/providers`. Install the native Claude Code CLI. Desktop's **Sign in with Claude** runs `claude auth login --claudeai`, which opens your browser; if the page shows a code instead, paste it into the panel. In the terminal, run `claude auth login` yourself first. Andorra reuses that CLI's managed sign-in; it never copies OAuth access or refresh tokens into its configuration. `ANDORRA_CLAUDE_PATH` can select a native CLI executable when it is not on PATH.
30
43
 
31
44
  **Discover Models** reads the models available to the installed Claude CLI. The CLI must support safe mode, structured JSON output, and the stream-json control protocol. Andorra sends one model step at a time with native tools, MCP servers, hooks, plugins, and workspace customizations disabled. Andorra retains tool execution and permissions. Images use native image blocks. Changing providers does not change JEV or graph selection.
32
45
 
@@ -34,6 +47,20 @@ In Desktop, Claude and Go drafts can discover models before saving: choose the p
34
47
 
35
48
  Auxiliary requests such as titles, model-health checks, graph generation, and context summaries use a separate tool-free mode with an explicit output cap. This requires native output/budget controls and matching stream usage metadata; incompatible CLI behavior is rejected. An explicit output cap combined with tool execution is not supported.
36
49
 
50
+ ### Grok subscription
51
+
52
+ Choose **Grok / xAI**, then **Sign in with Grok**, in Desktop, or **Grok subscription (Grok CLI)** in `/providers`. Install the Grok CLI. Desktop runs `grok login --device-auth`, opens the xAI page and shows the code to confirm there; in the terminal, run `grok login` yourself. The fixed marker base is `https://api.x.ai`; requests go through the signed-in CLI. `ANDORRA_GROK_PATH` selects the executable when it is neither on PATH nor in `~/.grok/bin`.
53
+
54
+ Andorra sends one model step at a time through `grok --prompt-file … --output-format streaming-messages-json --json-schema …` with built-in tools, subagents, memory, plan mode and web search off, and refuses any native tool call. `XAI_API_KEY` is removed from the CLI's environment, so a signed-out CLI fails instead of billing an API key. Images in the conversation are not forwarded yet; the model is told how many were left out. To use an xAI API key instead, choose **Use an API key** on the same card.
55
+
56
+ ### OpenCode
57
+
58
+ Choose **OpenCode**, then **Sign in with OpenCode**, in Desktop, or **OpenCode (CLI sign-in)** in `/providers`. Install the OpenCode CLI (`npm install -g opencode-ai`). Andorra starts a private `opencode serve` on loopback behind a random password the first time it is needed, stops it after five idle minutes, and stops it when the engine exits. Models are every model of every provider OpenCode has connected, named `provider/model` (for example `opencode/big-pickle`).
59
+
60
+ The panel lists the providers OpenCode has connected and the browser sign-ins it offers (ChatGPT, GitHub Copilot, Poe, xAI SuperGrok and others); **Sign in to …** runs that provider's sign-in inside OpenCode and stores the credential where OpenCode keeps it. A sign-in that needs typed input, such as a GitHub Enterprise URL, is left to `opencode auth login` in a terminal. `ANDORRA_OPENCODE_PATH` selects the executable.
61
+
62
+ Each step is a throwaway OpenCode session on an Andorra agent with every built-in tool off and a JSON-schema answer; the session is deleted afterwards. When an upstream provider is rate limited, OpenCode retries on its own schedule, which can be hours away: Andorra fails the step with the provider's reason instead of waiting.
63
+
37
64
  ### OpenCode Go
38
65
 
39
66
  Choose **OpenCode Go (all model APIs)** and save your Go API key. Its fixed base is `https://opencode.ai/inference/go`. Discovery includes the live Go catalog. The adapter selects Chat Completions, Responses, Anthropic Messages, or Gemini according to verified model metadata. Requests stay on Go endpoints; failures never fall back to pay-as-you-go service. New models with unknown protocol metadata fail explicitly until their metadata is available.
@@ -100,4 +127,4 @@ Saving setup creates `~/.andorracode/config.json` (override the directory with `
100
127
  }
101
128
  ```
102
129
 
103
- Supported adapter types are `openai-compatible`, `anthropic`, `codex`, `claude`, and `opencode-go`. Managed CLI providers reject API-key overrides and HTTP timeout fields. The full configuration surface, including limits, memory, and request timeouts, is in [Reference: configuration](../reference/config.md).
130
+ Supported adapter types are `openai-compatible`, `anthropic`, `codex`, `claude`, `grok`, `opencode`, and `opencode-go`. Managed CLI providers reject API-key overrides and HTTP timeout fields. The full configuration surface, including limits, memory, and request timeouts, is in [Reference: configuration](../reference/config.md).
@@ -9,4 +9,4 @@ Task-oriented how-tos for every client and mode.
9
9
  - [Browser workspace](browser.md) — the `/browser` local web client.
10
10
  - [Desktop client](desktop-app.md) — the Tauri desktop application.
11
11
  - [Windows code signing](windows-code-signing.md) — Authenticode signing of the desktop bundles with Azure Artifact Signing, and how to verify a signature.
12
- - [Update](update.md) — keeping a source installation current with `andorra update`.
12
+ - [Update](update.md) — keeping the npm installation current with `andorra update`.
@@ -13,3 +13,15 @@ The application belongs to the CLI that launched it. Closing its browser tab lea
13
13
  The printed URL includes a capability token in its fragment. Keep it private. The server binds only to 127.0.0.1, validates request host/origin and bearer authorization, and uses existing trajectory sanitization for stored tool activity. It does not provide remote access or a cloud relay.
14
14
 
15
15
 
16
+
17
+ ## Captcha solving with CapSolver
18
+
19
+ Agents can solve captchas on pages open in their headless browser (`qa.browser_session`) with the `browser.solve_captcha` tool, using your own [CapSolver](https://www.capsolver.com/) account. The tool supports reCAPTCHA v2 and v3, Cloudflare Turnstile, and image-to-text captchas. With `type` left at `auto`, it reads the widget and its site key from the page, sends the task to CapSolver, writes the returned token into the page's response field and calls the widget's callback. The agent then submits the form. The desktop's Browser panel is not supported.
20
+
21
+ The key is optional. Without one, the tool reports that CapSolver is not configured. To add a key:
22
+
23
+ - In the desktop app, open **Settings → Browser**, paste the key and click **Save**. **Remove** deletes it.
24
+ - Or add `"browser": { "capsolverApiKey": "<key>" }` to `~/.andorracode/config.json`.
25
+ - Or set `CAPSOLVER_API_KEY` in the environment. It is used only when no key is saved.
26
+
27
+ The saved key lives in the configuration file alongside provider API keys. The engine reports only whether a key exists and which one is in use, never the key itself. Each solve spends CapSolver credit and goes through the run's normal approval for browser tools. Use it only on sites you are permitted to automate.
@@ -10,7 +10,7 @@ records, and the door to the graph editor. It does not reimplement any of them:
10
10
  | Requirement | Notes |
11
11
  | --- | --- |
12
12
  | Node.js 22.19 or newer | Needed to build from source or use a custom engine. Installed releases include their own supported Node runtime. |
13
- | The Andorra CLI | Installed releases include the engine built for that desktop version, with production dependencies. Source development links `@andorra-labs/code` from the checkout. Explicit custom engines must support `app-server --stdio`. |
13
+ | The Andorra CLI | Installed releases include the engine built for that desktop version, with production dependencies. Source development installs the latest npm release of `@andorra-labs/code` into `desktop/node_modules`. Explicit custom engines must support `app-server --stdio`. |
14
14
  | Rust 1.90+ and the Tauri CLI | Only to build the shell. The Tauri CLI is installed by `npm install` in `desktop/`. |
15
15
  | Platform webview | WebView2 on Windows, WKWebView on macOS, WebKitGTK on Linux. |
16
16
 
@@ -27,13 +27,42 @@ engine and remain your responsibility to update. The **Node executable** setting
27
27
  overrides the interpreter used for a JavaScript entry point, and `ANDORRA_NODE` applies when that
28
28
  field is empty.
29
29
 
30
- Source-development builds without a staged payload retain discovery of the checkout dependency,
31
- global npm installations, then `andorra` on `PATH`.
30
+ Source-development builds without a staged payload start the client's own dependency,
31
+ `desktop/node_modules/@andorra-labs/code`, then global npm installations, then `andorra` on `PATH`.
32
+ That dependency is the latest npm release, not the checkout: every `npm install` or `npm ci` in
33
+ `desktop/` ends by asking npm which release the `latest` tag names and, when it is newer than the
34
+ installed one, installing it with `--no-save`, so `package.json` and `package-lock.json` stay as
35
+ committed. The step never fails the install and never downgrades; offline, it keeps the installed
36
+ engine and says so. Set `ANDORRA_DESKTOP_ENGINE_LATEST=0` to keep the lockfile's engine for a
37
+ reproducible build. Installers are unaffected: `npm run desktop:build` still packages the
38
+ checkout's own engine at the desktop's version.
39
+
40
+ To drive this checkout's engine from a development window instead — to try engine changes in the
41
+ window — build it in the repository root (`npm install`, `npm run build`) and select its
42
+ `dist/src/cli.js` under **Settings → Appearance → Engine**, or set `ANDORRA_CLI` to that path.
32
43
 
33
44
  The engine the window resolved — interpreter and entry point — is shown as **Resolved command**
34
45
  under Settings → Appearance → Engine, which is how a window driving a checkout is told apart from
35
46
  one driving an installed CLI.
36
47
 
48
+ ### The terminal's `andorra`
49
+
50
+ The desktop and a global npm installation of the CLI share `~/.andorracode`, but updating the
51
+ desktop leaves the global installation where it was. When the global `andorra` is older than the
52
+ engine this desktop version ships, **Settings → Appearance & engine** shows a note, **Terminal CLI
53
+ is out of date**, with both versions and a copyable command to run in a terminal: `andorra update`
54
+ (see [Update](update.md)) for 0.1.5 and later, or `npm install -g @andorra-labs/code@latest` for an
55
+ older release, whose `andorra update` only updates a Git checkout and refuses an npm installation.
56
+ The window never runs npm or the global CLI itself: it reads the version from the installation's
57
+ `package.json`.
58
+
59
+ The note compares the first global installation found, in the order a source build searches them
60
+ (`%APPDATA%\npm`, `%LOCALAPPDATA%\npm`, `NPM_CONFIG_PREFIX`, `/usr/local`, `/usr/lib`,
61
+ `/opt/homebrew`, then nvm's default Node version and the rest newest first). It shows nothing when
62
+ there is no global installation, when that installation is the same version or newer, or when it
63
+ is a source checkout linked with `npm link`, whose `package.json` says nothing about the code that
64
+ was last built. The check runs each time the page opens.
65
+
37
66
  A checkout's own `cli.js` is never executed unless you select it: the launch directory is not
38
67
  searched, so starting the window from an untrusted checkout cannot run that checkout's engine. Set
39
68
  the **Entry point** setting, or `ANDORRA_CLI`, to point at a build you trust.
@@ -45,13 +74,13 @@ installation.
45
74
  ## Run it
46
75
 
47
76
  ```bash
48
- npm install # in the repository root: the engine's own dependencies
49
- npm run build # in the repository root: the built CLI, the client's engine
50
77
  cd desktop
51
- npm install # links @andorra-labs/code -> the checkout root, and the shell toolchain
78
+ npm install # the shell toolchain, and the latest npm release of @andorra-labs/code as the client's engine
52
79
  npm run desktop:dev # builds the shell and opens the window with the dev server
53
80
  ```
54
81
 
82
+ Run `npm install` in `desktop/` again to move the client's engine to a newer npm release.
83
+
55
84
  Other scripts:
56
85
 
57
86
  ```bash
@@ -136,6 +165,13 @@ each project's plus open; selecting a task replaces it with that task's conversa
136
165
  which becomes stop while a run holds the engine. The graph control is locked on **Default** without
137
166
  paid membership, because every other graph is refused by the run's own membership preflight. The
138
167
  metrics strip beneath the card is described below.
168
+ - **Changing permissions while a task runs.** A permission mode picked while a task is running applies
169
+ to that task at once, and is saved as the project's mode for the next task too. An approval card
170
+ waiting on screen is checked again under the new mode: switching to **Full Access** answers it, and
171
+ the tool runs without anyone pressing Approve. A stricter mode reaches the task's next tool call, so
172
+ a write that would have gone through asks first. The transcript notes where the change landed.
173
+ **Project default** names no mode of its own, so picking it changes only what the next task sends.
174
+ A scheduled job's run keeps such a change to itself, as it does its saved mode.
139
175
  - **Model override.** A multi-agent graph whose nodes each name their own provider decides its
140
176
  models by itself, which leaves the composer nothing to steer with. The **Override models** control
141
177
  on the New task screen's row asks for a provider and a model and widens that pair to the whole
@@ -253,7 +289,7 @@ framing allowance, or older engines will refuse to show it.
253
289
  The strip under the composer reports the following, measured from the run's own events:
254
290
 
255
291
  ```text
256
- 3 turns · 12 steps | LLM 45.2s · Tool call 2m42s | 75.2 tok/s | Cache hit 95% | Input 12.2K tok · Output 3.4K tok
292
+ 3 turns · 12 steps | LLM 45.2s · Tool call 2m42s | Cache hit 95% | Input 12.2K tok · Output 3.4K tok
257
293
  ```
258
294
 
259
295
  Groups are separated by a pipe and figures inside a group by a mid dot. A group whose measurement is
@@ -264,12 +300,12 @@ missing is dropped whole rather than printed as a zero. Sources:
264
300
  | Turns, steps | Assistant turns in the session record; iteration events for the run in flight. |
265
301
  | LLM time | Measured between an iteration starting and its model completion arriving. |
266
302
  | Tool time | Summed from each tool completion's own `durationMs`. |
267
- | tok/s | Output tokens over measured LLM time. |
268
303
  | Cache hit | Cache-read over prompt tokens, never rounded up to 100% while a miss exists; omitted entirely when the provider reported no cache traffic. |
269
304
  | Input / output | Session totals; the engine's saved usage is authoritative after each run. |
270
305
 
271
306
  Context occupancy lives on the ring beside the send button, and one fact has one home: the ring
272
- shows the last measured prompt size against the model's context window.
307
+ shows the last measured prompt size against the model's context window. Generation speed (tok/s)
308
+ lives on the node chips' usage line at the top of the transcript, not on this strip.
273
309
 
274
310
  ## Accounts
275
311
 
@@ -60,6 +60,14 @@ The visible **Conversation** selector defaults to **Reuse with the same provider
60
60
 
61
61
  Choose **Start an isolated conversation** to prevent reuse into and out of that node. Fan-out destinations receive separate snapshots of the shared predecessor history. Joins, intervening control/action nodes, and convergence of pending activations conservatively start isolated conversations. **Advanced → Context sharing → Include previous task summaries** controls summaries from earlier user tasks; it is separate from this run's conversation reuse.
62
62
 
63
+ ## Skills in prompts
64
+
65
+ Type `/` in an Agent's **Prompt**, its **Advanced → System prompt**, or the **Instructions** of **Add agent** to open the skills on this machine: the skills you installed (Settings → Skills) first, then Andorra's own. Keep typing to filter by command, name or description; Up/Down chooses, Enter or Tab inserts the `/command`, and Escape closes the list (a second Escape leaves full screen). A `/name` can sit anywhere in the prompt, for example `Check the diff with /review, then summarize.`
66
+
67
+ When the node runs, it loads every skill its prompts name with the `Skill` tool before working, and it is asked to load any it skipped before it completes. A skill loaded this way is active for later nodes like any other loaded skill (see below).
68
+
69
+ A `/name` that no skill on this machine answers to never blocks the graph. The editor shows a warning under the field instead of a validation error: **not found on this machine**, **turned off in Skills settings**, or **installed but cannot be loaded**. The graph still saves and runs; at run time the node is told to do the task without that skill, and the run shows a warning row naming it. A graph built on one machine can therefore run on another, and a project's own skills (`.agents/skills` or `.andorra/skills`) are found when the run starts in that project even though the editor cannot see them. Paths such as `/usr/bin` or `/notes.txt` and built-in commands such as `/model` are not treated as skills.
70
+
63
71
  ## Skill inheritance between graph nodes
64
72
 
65
73
  The **Skill inheritance** selector on each Agent defaults to **Inherit active workflow skills**. Explicit slash-invoked skills at run entry, and skills successfully loaded via `Skill` or `read_skill_resource` during the run, become available to later Agent nodes as active skill references. This context is separate from conversation history: it survives isolated conversations, different providers or models, control nodes, and parallel branches.
@@ -10,18 +10,46 @@ Run from any directory:
10
10
  andorra update
11
11
  ```
12
12
 
13
- This fetches GitHub `main`, fast-forwards the installation checkout, installs locked dependencies, and rebuilds the CLI. It updates the checkout that provides the command, regardless of your current project directory.
13
+ This asks npm which release the `latest` tag of `@andorra-labs/code` names and, when it is newer than the installed version, installs exactly that version globally with `npm install -g @andorra-labs/code@<version>`. It uses the npm that ships with the Node.js running Andorra, and it updates the global installation that provides the command, regardless of your current project directory.
14
+
15
+ - When the installed version is already the latest, nothing is installed: `Andorra 0.1.4 is already the latest release on npm; nothing was installed.`
16
+ - It never downgrades. If the `latest` tag points at an older release than the one installed, nothing changes and the message says so.
17
+ - If npm cannot be reached, nothing changes; fix the network or registry settings and run it again.
14
18
 
15
19
  Requirements:
16
20
 
17
- - The installation checkout must be on `main` with no local changes.
18
- - If installation or compilation fails, fix the reported problem and rerun `andorra update`; it also rebuilds when the source is already current.
21
+ - The `andorra` command must be the global npm installation, `npm install -g @andorra-labs/code`.
22
+ - It refuses, without changing anything, when `andorra` runs from a source checkout — one linked with `npm link`, or started as `node dist/src/cli.js` — and when it runs from any other copy, such as a project's own dependency or the desktop client's engine. The message names the path and the command to use instead.
23
+
24
+ ### Switching from a source checkout
25
+
26
+ An installation made by cloning the repository and running `npm link` is not updated by `andorra update`. To move it to the npm release:
27
+
28
+ ```sh
29
+ npm install -g @andorra-labs/code@latest
30
+ ```
31
+
32
+ That replaces the linked global command with the published package. The checkout itself is left as it is. To keep running the checkout instead, update it yourself from the checkout:
33
+
34
+ ```sh
35
+ git pull --ff-only
36
+ npm ci
37
+ npm run build
38
+ ```
39
+
40
+ ## A failed or blocked update
41
+
42
+ Before npm touches anything, the update checks that the installed package can be moved, because npm replaces it by moving it aside. On Windows a terminal or program whose working directory is inside the package keeps it in place; the update then refuses, names the path, and changes nothing. Close that program and run `andorra update` again.
43
+
44
+ Another Andorra session or CodeGraph that has a native module of the old release loaded does not block the update: npm installs the new release, but cannot delete the old copy it moved aside (`@andorra-labs/.code-<random>` beside the package) while that process runs, and warns about it. The update names that copy. It is no longer used by the `andorra` command, and the next `andorra update` deletes it once the process holding it has exited.
45
+
46
+ When `npm install` itself fails, npm moves the previous release back, and the message says which version is still installed. A failure that looks like a brief Windows sharing violation is retried a few times first.
19
47
 
20
48
  ## An interrupted update
21
49
 
22
- While it runs, `andorra update` holds a lock file, `.git/andorra-update.lock` in the installation checkout, so two updates cannot run at once. The lock records the updater's process id. If an update is cancelled with Ctrl+C, its terminal is closed, or it crashes, the lock stays behind.
50
+ While it runs, `andorra update` holds a lock file, `update.lock` in the Andorra home directory (`~/.andorracode`, or `ANDORRACODE_HOME` when set), so two updates cannot run at once. The lock records the updater's process id. If an update is cancelled with Ctrl+C, its terminal is closed, or it crashes, the lock stays behind.
23
51
 
24
- Run `andorra update` again. When the process the lock names has exited, the update removes the stale lock, prints `Removed a stale update lock left by process …`, and continues. Rerunning also finishes whatever the interrupted update left half done, because it rebuilds even when the source is already current.
52
+ Run `andorra update` again. When the process the lock names has exited, the update removes the stale lock, prints `Removed a stale update lock left by process …`, and continues.
25
53
 
26
54
  The update refuses to start when the lock names a process that is still running, or when the lock is empty or unreadable. If you are sure no update is running (a process id can be reused by an unrelated program), break the lock:
27
55
 
@@ -29,19 +57,12 @@ The update refuses to start when the lock names a process that is still running,
29
57
  andorra update --break-lock
30
58
  ```
31
59
 
32
- ## Older installations
33
-
34
- For an installation without the update command, run once from the installation checkout:
60
+ ## The desktop client's engine
35
61
 
36
- ```sh
37
- git pull --ff-only
38
- npm ci
39
- npm run build
40
- npm link
41
- ```
62
+ A source build of the desktop client has an engine of its own, `desktop/node_modules/@andorra-labs/code`, which `andorra update` does not touch. Every `npm install` or `npm ci` in `desktop/` moves it to the latest npm release; see [Desktop client](desktop-app.md#which-engine-the-window-starts).
42
63
 
43
- If you previously linked a checkout, run `npm link` again after major changes to refresh the global command.
64
+ The reverse holds too: updating the desktop app does not update the global `andorra`. When the global installation is older than the desktop's engine, the desktop says so under **Settings → Appearance & engine** and offers `andorra update` to copy, or `npm install -g @andorra-labs/code@latest` for a release before 0.1.5, whose updater predates npm releases; see [Desktop client](desktop-app.md#the-terminals-andorra).
44
65
 
45
66
  ## Version
46
67
 
47
- `andorra --version` prints the installed version, read from the package manifest of the checkout that provides the command.
68
+ `andorra --version` prints the installed version, read from the package manifest of the installation that provides the command.
@@ -54,7 +54,7 @@ andorra auth status
54
54
  | `andorra mcp-server --stdio` | Run the local stdio MCP server: the supported surface for an agent to author and edit graphs, plus session monitoring. See [Agent MCP server](../agents/mcp-server.md). |
55
55
  | `andorra app-server --stdio` | Run the JSON-lines app server that drives the desktop client. Not for humans; see [Desktop client](../guides/desktop-app.md). |
56
56
  | `andorra remote <subcommand>` | Remote workspace pairing and sharing — `serve`, `status`, `code`, `devices`, `revoke <device-id>`, `share <path>`, `unshare <share-id>`, `pair <pairing-code>`, `workspaces`, `unpair <workspace-id>`, `rotate-cert`, with the flags shown in the usage above. See [Remote workspace](../guides/desktop-app.md#remote-workspace). |
57
- | `andorra update [--break-lock]` | Update the linked source installation from GitHub `main`. `--break-lock` replaces a leftover updater lock; see [Update](../guides/update.md#an-interrupted-update). |
57
+ | `andorra update [--break-lock]` | Install the latest npm release of `@andorra-labs/code` into the global npm installation; a source checkout is refused. `--break-lock` replaces a leftover updater lock; see [Update](../guides/update.md#an-interrupted-update). |
58
58
  | `andorra login` | Open the browser to sign in to (or create) an Andorra account. |
59
59
  | `andorra logout` | Remove this machine's saved Andorra account session and revoke its refresh token. |
60
60
  | `andorra auth status` | Show the saved Andorra account session and membership. |
@@ -41,11 +41,11 @@ One exception to the configuration home: **trajectory journals** — the detaile
41
41
  }
42
42
  ```
43
43
 
44
- Provider entries support `id`, `type` (`openai-compatible` \| `anthropic` \| `codex` \| `claude` \| `opencode-go`), `baseUrl`, `apiKey` (stored plaintext — keep the file private), `apiKeyEnv` (a saved key takes precedence), `model`, `models[]`, and `modelContextWindows` (a map from model id to its token limit, used when the endpoint does not report one), plus per-provider HTTP request bounds `requestTimeoutMs` and `streamIdleTimeoutMs`.
44
+ Provider entries support `id`, `type` (`openai-compatible` \| `anthropic` \| `codex` \| `claude` \| `grok` \| `opencode` \| `opencode-go`), `baseUrl`, `apiKey` (stored plaintext — keep the file private), `apiKeyEnv` (a saved key takes precedence), `model`, `models[]`, and `modelContextWindows` (a map from model id to its token limit, used when the endpoint does not report one), plus per-provider HTTP request bounds `requestTimeoutMs` and `streamIdleTimeoutMs`.
45
45
 
46
46
  An `anthropic` provider may set `anthropicAuth: "console"` to authenticate with the Claude Console login that `ant auth login` stored in `<config home>/anthropic-accounts/<provider id>` instead of an API key. Such a provider must use `baseUrl: "https://api.anthropic.com/v1"` and may not carry `apiKey` or `apiKeyEnv`; two signed-in providers may not have ids that differ only by case. See [Configure providers](../getting-started/configure-providers.md#claude-console-sign-in).
47
47
 
48
- `claude` uses the installed Claude Code CLI's managed subscription sign-in, with fixed `baseUrl: "https://api.anthropic.com"`. Like `codex`, it rejects API keys, environment-key overrides, and HTTP timeout fields. `opencode-go` uses `baseUrl: "https://opencode.ai/inference/go"` and selects each model's supported API automatically. Other endpoints retain their existing protocol behavior.
48
+ `claude` uses the installed Claude Code CLI's managed subscription sign-in, with fixed `baseUrl: "https://api.anthropic.com"`. Like `codex`, it rejects API keys, environment-key overrides, and HTTP timeout fields. `grok` uses the installed Grok CLI's sign-in, with fixed `baseUrl: "https://api.x.ai"`; `opencode` uses the installed OpenCode CLI's connected providers, with fixed `baseUrl: "https://opencode.ai"` and every model named `provider/model`. Both reject API keys, environment-key overrides, and HTTP timeout fields, like `codex` and `claude`. `opencode-go` uses `baseUrl: "https://opencode.ai/inference/go"` and selects each model's supported API automatically. Other endpoints retain their existing protocol behavior.
49
49
 
50
50
  OpenAI-compatible and OpenCode Go entries also accept `reasoningEffort` (`none`, `minimal`, `low`, `medium`, `high`, `xhigh`, or `max`). Omitting it uses the provider default. Go checks the selected level against the model's verified catalog options before inference.
51
51