bots-garden/sidekickspublic Fork
⑂ da5f620
Commits
⬇ Clone ▾
git clone https://git.rickub.com/bots-garden/sidekicks.git
git clone ssh://git@rickub.com/bots-garden/sidekicks.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP

#105 #106 Claude sans clé d'API : /login dans le terminal de la sandbox

L'assistant des sandboxes dit qu'on peut continuer sans clé et se connecter
avec son compte Claude (claude puis /login dans le terminal de l'agent).
Quand une réponse se termine par « Authentication required », Sidekicks
ouvre le Terminal de l'agent, y lance claude et dit de taper /login ; un
bouton redémarre l'agent une fois connecté. En-têtes : logo et nom centrés
et espacés. Docs EN + FR, notes v1.6.0, #105 et #106 fermés (testés sur le Mac).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
agent committed 2026-11-15T09:48:24+01:00 Browse files
da5f620 parent: f025676
added .memory/handoffs/2026-11-15-105-106-claude-login.md +7 -0
new file mode 100644
@@ -0,0 +1,7 @@
1+# 2026-11-15 — #105 #106 Claude sign-in from the terminal
2+
3+- Branch `feature/105-106-claude-login`, not committed (bindings staged).
4+- To verify on the Mac: the terminal of a real Claude sandbox has `claude`; `/login` there works without a browser in the sandbox (URL to copy); after "I am signed in: restart the agent", claude-agent-acp sees the login (same ~/.claude). If it needs no restart, the button still works.
5+- Fake ACP agent for UI tests: a 10-line Python script answering initialize / session/new / session/prompt (error) — see history entry; fake sbx `exec` strips flags and the sandbox name then execs locally.
6+- #104 (choice in the key step, /login in the conversation) overlaps; #107 (Codex) not started.
7+- Closed: owner tested on the Mac, merged into main.
new file mode 100644
@@ -0,0 +1,7 @@
1+# 2026-11-15 — #105 #106 Claude sign-in from the terminal
2+
3+- Branch `feature/105-106-claude-login`, not committed (bindings staged).
4+- To verify on the Mac: the terminal of a real Claude sandbox has `claude`; `/login` there works without a browser in the sandbox (URL to copy); after "I am signed in: restart the agent", claude-agent-acp sees the login (same ~/.claude). If it needs no restart, the button still works.
5+- Fake ACP agent for UI tests: a 10-line Python script answering initialize / session/new / session/prompt (error) — see history entry; fake sbx `exec` strips flags and the sandbox name then execs locally.
6+- #104 (choice in the key step, /login in the conversation) overlaps; #107 (Codex) not started.
7+- Closed: owner tested on the Mac, merged into main.
modified .memory/history.md +11 -0
@@ -322,3 +322,14 @@
322322 - Not verified: a real Copilot sandbox (#103 tasks 1, 3 partly — no-subscription message —, 5). Not committed.
323323 - **2026-11-15 — #103 option (b)** (owner: auth as `sbx secret set github|copilot --command 'gh auth token'`, chose "b" = token to both services): `Kind.Shared`/`FromGH`, `sbxcreate.GH` (gh.go: Token, StartLogin via the generalized device-code `startLogin`; userPattern also reads "Logged in as"), `UseGitHub`, `GitHubLogin*`, `Options.GH`, `SbxLogin.svelte` `github` prop, key-step UI (use gh / sign in to GitHub / paste). Tests Go + vitest, lint, bindings staged; Xvfb run with fake sbx + gh (SHELL=fake shell so shellpath keeps the fakes first in PATH) went end to end. Docs EN/FR + release notes v1.6.0 updated (the token now also reaches GitHub).
324324 - **2026-11-15 — #103 closed** (owner tested Copilot on the Mac: it works); feature/103-copilot merged into main (not pushed).
325+- **2026-11-15 — ticket #104** (owner: Claude in the sandbox assistant should allow /login via the agent instead of an API key; key step not blocking, explain /login): #104 in v1.6.0 (listed in #102), epic Docker SBX. Not started.
326+- **2026-11-15 — tickets #105 and #106** (owner): #105 Claude without API key → message saying /login must be done in the agent's terminal; #106 on a Claude sbx authentication error, switch to the sandbox's Terminal, launch `claude` and say to type /login. Both v1.6.0 (listed in #102), related to #104. Not started.
327+- **2026-11-15 — ticket #107** (owner: Codex key must not block; sbx asks at sandbox creation whether to authenticate on the web — see how to handle it): Docker doc says sbx prompts on the host when no OpenAI credential is stored, and `sbx secret set openai --oauth` does the browser sign-in beforehand; lifecycle commands have no stdin. Proposal in #107 (wizard: ChatGPT sign-in / key / later; at creation: recognise the question, offer sign-in under the error, restart). v1.6.0, listed in #102. Not started.
328+
329+## 2026-11-15 — #105 and #106 Claude without API key: /login in the terminal (branch feature/105-106-claude-login)
330+
331+- Asked: "do 105 and 106; the error is 'The answer ended with an error. Authentication required'".
332+- Done: `agents.SignInProgram` → `Status.signIn` ("claude" for claude-agent-acp in sbx); `Kind.SignIn` (Claude); wizard texts `sbxCreator.signIn.choice|later`; `signin.ts` + `error.authRequired`; `signInInTerminal` (state.svelte.ts: workspace + new terminal typing `claude\r` once its shell opened, Terminal tab via `terminalRequest`, banner in AgentView, once per start), `signedIn` (Restart + conversation), button under the error in MessageView. Docs EN/FR (guide, reference), release notes v1.6.0.
333+- Checks: lint-go, svelte-check, lint-headers, all tests, bindings-check. Xvfb with a Python fake ACP agent answering -32000 "Authentication required" and a fake sbx (exec runs locally): auto switch, claude typed, restart, button. Not verified: real claude /login in a sandbox (#106 task 6). Not committed.
334+- **2026-11-15 — header spacing** (owner: in the header, the name of a wizard sbx agent with a logo is too close to it and not centred): ConversationPanel `.title` and AgentView/CreateSbxAgent `h2` are flex, centred, gap 8px (the space text node collapsed inside {#if}); member chips gap 5px; AgentView meta line: text in `.facts` so it wraps beside the state dot instead of under it. Checked under Xvfb. Same branch feature/105-106-claude-login, not committed.
335+- **2026-11-15 — #105 and #106 closed** (owner tested with Claude on the Mac: it works); feature/105-106-claude-login merged into main (not pushed). #104 (overlapping) left open.
@@ -322,3 +322,14 @@
322 - Not verified: a real Copilot sandbox (#103 tasks 1, 3 partly — no-subscription message —, 5). Not committed.322 - Not verified: a real Copilot sandbox (#103 tasks 1, 3 partly — no-subscription message —, 5). Not committed.
323 - **2026-11-15 — #103 option (b)** (owner: auth as `sbx secret set github|copilot --command 'gh auth token'`, chose "b" = token to both services): `Kind.Shared`/`FromGH`, `sbxcreate.GH` (gh.go: Token, StartLogin via the generalized device-code `startLogin`; userPattern also reads "Logged in as"), `UseGitHub`, `GitHubLogin*`, `Options.GH`, `SbxLogin.svelte` `github` prop, key-step UI (use gh / sign in to GitHub / paste). Tests Go + vitest, lint, bindings staged; Xvfb run with fake sbx + gh (SHELL=fake shell so shellpath keeps the fakes first in PATH) went end to end. Docs EN/FR + release notes v1.6.0 updated (the token now also reaches GitHub).323 - **2026-11-15 — #103 option (b)** (owner: auth as `sbx secret set github|copilot --command 'gh auth token'`, chose "b" = token to both services): `Kind.Shared`/`FromGH`, `sbxcreate.GH` (gh.go: Token, StartLogin via the generalized device-code `startLogin`; userPattern also reads "Logged in as"), `UseGitHub`, `GitHubLogin*`, `Options.GH`, `SbxLogin.svelte` `github` prop, key-step UI (use gh / sign in to GitHub / paste). Tests Go + vitest, lint, bindings staged; Xvfb run with fake sbx + gh (SHELL=fake shell so shellpath keeps the fakes first in PATH) went end to end. Docs EN/FR + release notes v1.6.0 updated (the token now also reaches GitHub).
324 - **2026-11-15 — #103 closed** (owner tested Copilot on the Mac: it works); feature/103-copilot merged into main (not pushed).324 - **2026-11-15 — #103 closed** (owner tested Copilot on the Mac: it works); feature/103-copilot merged into main (not pushed).
325+- **2026-11-15 — ticket #104** (owner: Claude in the sandbox assistant should allow /login via the agent instead of an API key; key step not blocking, explain /login): #104 in v1.6.0 (listed in #102), epic Docker SBX. Not started.
326+- **2026-11-15 — tickets #105 and #106** (owner): #105 Claude without API key → message saying /login must be done in the agent's terminal; #106 on a Claude sbx authentication error, switch to the sandbox's Terminal, launch `claude` and say to type /login. Both v1.6.0 (listed in #102), related to #104. Not started.
327+- **2026-11-15 — ticket #107** (owner: Codex key must not block; sbx asks at sandbox creation whether to authenticate on the web — see how to handle it): Docker doc says sbx prompts on the host when no OpenAI credential is stored, and `sbx secret set openai --oauth` does the browser sign-in beforehand; lifecycle commands have no stdin. Proposal in #107 (wizard: ChatGPT sign-in / key / later; at creation: recognise the question, offer sign-in under the error, restart). v1.6.0, listed in #102. Not started.
328+
329+## 2026-11-15 — #105 and #106 Claude without API key: /login in the terminal (branch feature/105-106-claude-login)
330+
331+- Asked: "do 105 and 106; the error is 'The answer ended with an error. Authentication required'".
332+- Done: `agents.SignInProgram` → `Status.signIn` ("claude" for claude-agent-acp in sbx); `Kind.SignIn` (Claude); wizard texts `sbxCreator.signIn.choice|later`; `signin.ts` + `error.authRequired`; `signInInTerminal` (state.svelte.ts: workspace + new terminal typing `claude\r` once its shell opened, Terminal tab via `terminalRequest`, banner in AgentView, once per start), `signedIn` (Restart + conversation), button under the error in MessageView. Docs EN/FR (guide, reference), release notes v1.6.0.
333+- Checks: lint-go, svelte-check, lint-headers, all tests, bindings-check. Xvfb with a Python fake ACP agent answering -32000 "Authentication required" and a fake sbx (exec runs locally): auto switch, claude typed, restart, button. Not verified: real claude /login in a sandbox (#106 task 6). Not committed.
334+- **2026-11-15 — header spacing** (owner: in the header, the name of a wizard sbx agent with a logo is too close to it and not centred): ConversationPanel `.title` and AgentView/CreateSbxAgent `h2` are flex, centred, gap 8px (the space text node collapsed inside {#if}); member chips gap 5px; AgentView meta line: text in `.facts` so it wraps beside the state dot instead of under it. Checked under Xvfb. Same branch feature/105-106-claude-login, not committed.
335+- **2026-11-15 — #105 and #106 closed** (owner tested with Claude on the Mac: it works); feature/105-106-claude-login merged into main (not pushed). #104 (overlapping) left open.
modified .tickets/issues/0102-publier-la-version-1-6-0.yaml +8 -0
@@ -15,9 +15,17 @@ epic: Qualité & Release
1515 related:
1616 - 93
1717 - 103
18+ - 104
19+ - 105
20+ - 106
21+ - 107
1822 body: |
1923 Publier Sidekicks 1.6.0 avec ce qui sera fait après la 1.5.0 (liste à compléter) :
2024 - [#103](.tickets/issues/0103-github-copilot-cli-dans-l-assistant-des-sandboxe.yaml) — GitHub Copilot CLI dans l'assistant des sandboxes
25+ - [#104](.tickets/issues/0104-assistant-des-sandboxes-claude-se-connecter-avec.yaml) — Claude : se connecter avec /login au lieu d'une clé d'API
26+ - [#105](.tickets/issues/0105-assistant-des-sandboxes-claude-sans-cle-d-api-di.yaml) — Claude sans clé : dire qu'il faudra faire /login dans le terminal
27+ - [#106](.tickets/issues/0106-claude-en-sandbox-sans-authentification-ouvrir-l.yaml) — Claude sans authentification : ouvrir le terminal de la sandbox et y lancer claude
28+ - [#107](.tickets/issues/0107-assistant-des-sandboxes-codex-cle-facultative-et.yaml) — Codex : clé facultative et connexion ChatGPT
2129
2230 Même déroulé que [#93 — Publier la version 1.5.0](.tickets/issues/0093-publier-la-version-1-5-0.yaml), en suivant
2331 [RELEASING.fr.md](RELEASING.fr.md) (scripts `local-ci-*.sh`), **kDrive en pause** pendant la construction.
@@ -15,9 +15,17 @@ epic: Qualité & Release
15 related:15 related:
16 - 9316 - 93
17 - 10317 - 103
18+ - 104
19+ - 105
20+ - 106
21+ - 107
18 body: |22 body: |
19 Publier Sidekicks 1.6.0 avec ce qui sera fait après la 1.5.0 (liste à compléter) :23 Publier Sidekicks 1.6.0 avec ce qui sera fait après la 1.5.0 (liste à compléter) :
20 - [#103](.tickets/issues/0103-github-copilot-cli-dans-l-assistant-des-sandboxe.yaml) — GitHub Copilot CLI dans l'assistant des sandboxes24 - [#103](.tickets/issues/0103-github-copilot-cli-dans-l-assistant-des-sandboxe.yaml) — GitHub Copilot CLI dans l'assistant des sandboxes
25+ - [#104](.tickets/issues/0104-assistant-des-sandboxes-claude-se-connecter-avec.yaml) — Claude : se connecter avec /login au lieu d'une clé d'API
26+ - [#105](.tickets/issues/0105-assistant-des-sandboxes-claude-sans-cle-d-api-di.yaml) — Claude sans clé : dire qu'il faudra faire /login dans le terminal
27+ - [#106](.tickets/issues/0106-claude-en-sandbox-sans-authentification-ouvrir-l.yaml) — Claude sans authentification : ouvrir le terminal de la sandbox et y lancer claude
28+ - [#107](.tickets/issues/0107-assistant-des-sandboxes-codex-cle-facultative-et.yaml) — Codex : clé facultative et connexion ChatGPT
21 29
22 Même déroulé que [#93 — Publier la version 1.5.0](.tickets/issues/0093-publier-la-version-1-5-0.yaml), en suivant30 Même déroulé que [#93 — Publier la version 1.5.0](.tickets/issues/0093-publier-la-version-1-5-0.yaml), en suivant
23 [RELEASING.fr.md](RELEASING.fr.md) (scripts `local-ci-*.sh`), **kDrive en pause** pendant la construction.31 [RELEASING.fr.md](RELEASING.fr.md) (scripts `local-ci-*.sh`), **kDrive en pause** pendant la construction.
added .tickets/issues/0104-assistant-des-sandboxes-claude-se-connecter-avec.yaml +95 -0
new file mode 100644
@@ -0,0 +1,95 @@
1+# Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2+id: 104
3+title: "Assistant des sandboxes, Claude : se connecter avec /login au lieu d'une clé d'API"
4+state: open
5+author:
6+ name: k33g
7+ email: ph.charriere@gmail.com
8+createdAt: 2026-11-15T08:00:42.000Z
9+updatedAt: 2026-11-15T08:00:42.000Z
10+labels:
11+ - kind::feature
12+ - area::ui
13+ - citizen-ux
14+ - real-agents
15+milestone: "v1.6.0 · Release"
16+epic: Docker SBX
17+related:
18+ - 96
19+ - 103
20+body: |
21+ Dans l'assistant « Créer un agent dans une sandbox »
22+ ([#96](.tickets/issues/0096-assistant-create-a-sbx-agent-claude-gemini-codex.yaml)), le type **Claude** ne propose
23+ que la clé d'API Anthropic. L'owner veut pouvoir choisir de **se connecter avec son compte Claude** (abonnement
24+ Pro/Max) en tapant `/login` à l'agent, dans sa conversation, une fois la sandbox créée.
25+
26+ Aujourd'hui, l'étape de la clé a déjà **Plus tard**, mais l'écran suivant affiche un avertissement
27+ (« l'agent ne pourra pas répondre tant que vous n'en aurez pas enregistré une ») : on ne sait pas qu'il existe une
28+ autre voie.
29+
30+ ## Demande (owner)
31+ - La saisie de la clé ne doit **pas être bloquante** : deux choix clairs à l'étape de la clé — **clé d'API** (comme
32+ aujourd'hui) ou **mon compte Claude** (continuer sans clé).
33+ - Expliquer en mots simples qu'on peut continuer sans clé et qu'il faudra taper **`/login`** à l'agent dans sa
34+ conversation pour se connecter.
35+ - Après création sans clé : un message (fin de l'assistant et/ou première conversation) qui rappelle `/login`, au
36+ lieu de l'avertissement actuel.
37+
38+ ## Points à vérifier
39+ - Que `/login` passe par ACP avec `claude-agent-acp` dans la sandbox (commande offerte par l'adaptateur ? méthodes
40+ d'authentification ACP `authMethods` / `authenticate` ?) et ce que l'utilisateur voit (URL à ouvrir, code à
41+ recopier).
42+ - Les `bindings` du `sbxenv.yaml` : le type Claude n'a que `apiKey` (api.anthropic.com, console.anthropic.com) ;
43+ la connexion par compte a peut-être besoin de domaines `oauth` (claude.ai, console.anthropic.com…) ou d'une
44+ règle réseau — lire la spec du kit `docker.io/sbx/claude-acp`.
45+ - Le jeton obtenu par `/login` survit-il à `sbx stop` / au recréation de la sandbox ?
46+ - Généraliser ? D'autres types ont une connexion par compte (Codex : ChatGPT ; Gemini : Google) — un champ du
47+ catalogue (`Login: "/login"`) plutôt qu'un cas Claude.
48+
49+ ## Critères d'acceptation
50+ - Pour Claude, l'étape de la clé propose les deux choix ; « mon compte Claude » continue sans clé, sans
51+ avertissement bloquant, avec l'explication `/login` (EN + FR).
52+ - L'agent créé sans clé peut être connecté avec `/login` dans sa conversation (vérifié sur le Mac).
53+ - Tests vitest / Go ; doc EN + FR (guide sandbox) ; notes de release v1.6.0.
54+tasks:
55+ - id: 1
56+ title: "Vérifier /login avec claude-agent-acp dans une sbx (ACP, URL/code, réseau, persistance)"
57+ state: open
58+ priority: high
59+ author:
60+ name: k33g
61+ email: ph.charriere@gmail.com
62+ createdAt: 2026-11-15T08:00:42.000Z
63+ - id: 2
64+ title: "Étape de la clé : deux choix (clé d'API / mon compte Claude) et texte qui explique /login (EN + FR)"
65+ state: open
66+ priority: high
67+ author:
68+ name: k33g
69+ email: ph.charriere@gmail.com
70+ createdAt: 2026-11-15T08:00:42.000Z
71+ - id: 3
72+ title: "Après création sans clé : rappel /login au lieu de l'avertissement ; bindings oauth si nécessaire"
73+ state: open
74+ priority: medium
75+ author:
76+ name: k33g
77+ email: ph.charriere@gmail.com
78+ createdAt: 2026-11-15T08:00:42.000Z
79+ - id: 4
80+ title: "Tests, doc EN + FR, notes de release v1.6.0"
81+ state: open
82+ priority: medium
83+ author:
84+ name: k33g
85+ email: ph.charriere@gmail.com
86+ createdAt: 2026-11-15T08:00:42.000Z
87+ - id: 5
88+ title: "Tester sur le Mac : créer un agent Claude sans clé, puis /login"
89+ state: open
90+ priority: high
91+ author:
92+ name: k33g
93+ email: ph.charriere@gmail.com
94+ createdAt: 2026-11-15T08:00:42.000Z
95+comments: []
new file mode 100644
@@ -0,0 +1,95 @@
1+# Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2+id: 104
3+title: "Assistant des sandboxes, Claude : se connecter avec /login au lieu d'une clé d'API"
4+state: open
5+author:
6+ name: k33g
7+ email: ph.charriere@gmail.com
8+createdAt: 2026-11-15T08:00:42.000Z
9+updatedAt: 2026-11-15T08:00:42.000Z
10+labels:
11+ - kind::feature
12+ - area::ui
13+ - citizen-ux
14+ - real-agents
15+milestone: "v1.6.0 · Release"
16+epic: Docker SBX
17+related:
18+ - 96
19+ - 103
20+body: |
21+ Dans l'assistant « Créer un agent dans une sandbox »
22+ ([#96](.tickets/issues/0096-assistant-create-a-sbx-agent-claude-gemini-codex.yaml)), le type **Claude** ne propose
23+ que la clé d'API Anthropic. L'owner veut pouvoir choisir de **se connecter avec son compte Claude** (abonnement
24+ Pro/Max) en tapant `/login` à l'agent, dans sa conversation, une fois la sandbox créée.
25+
26+ Aujourd'hui, l'étape de la clé a déjà **Plus tard**, mais l'écran suivant affiche un avertissement
27+ (« l'agent ne pourra pas répondre tant que vous n'en aurez pas enregistré une ») : on ne sait pas qu'il existe une
28+ autre voie.
29+
30+ ## Demande (owner)
31+ - La saisie de la clé ne doit **pas être bloquante** : deux choix clairs à l'étape de la clé — **clé d'API** (comme
32+ aujourd'hui) ou **mon compte Claude** (continuer sans clé).
33+ - Expliquer en mots simples qu'on peut continuer sans clé et qu'il faudra taper **`/login`** à l'agent dans sa
34+ conversation pour se connecter.
35+ - Après création sans clé : un message (fin de l'assistant et/ou première conversation) qui rappelle `/login`, au
36+ lieu de l'avertissement actuel.
37+
38+ ## Points à vérifier
39+ - Que `/login` passe par ACP avec `claude-agent-acp` dans la sandbox (commande offerte par l'adaptateur ? méthodes
40+ d'authentification ACP `authMethods` / `authenticate` ?) et ce que l'utilisateur voit (URL à ouvrir, code à
41+ recopier).
42+ - Les `bindings` du `sbxenv.yaml` : le type Claude n'a que `apiKey` (api.anthropic.com, console.anthropic.com) ;
43+ la connexion par compte a peut-être besoin de domaines `oauth` (claude.ai, console.anthropic.com…) ou d'une
44+ règle réseau — lire la spec du kit `docker.io/sbx/claude-acp`.
45+ - Le jeton obtenu par `/login` survit-il à `sbx stop` / au recréation de la sandbox ?
46+ - Généraliser ? D'autres types ont une connexion par compte (Codex : ChatGPT ; Gemini : Google) — un champ du
47+ catalogue (`Login: "/login"`) plutôt qu'un cas Claude.
48+
49+ ## Critères d'acceptation
50+ - Pour Claude, l'étape de la clé propose les deux choix ; « mon compte Claude » continue sans clé, sans
51+ avertissement bloquant, avec l'explication `/login` (EN + FR).
52+ - L'agent créé sans clé peut être connecté avec `/login` dans sa conversation (vérifié sur le Mac).
53+ - Tests vitest / Go ; doc EN + FR (guide sandbox) ; notes de release v1.6.0.
54+tasks:
55+ - id: 1
56+ title: "Vérifier /login avec claude-agent-acp dans une sbx (ACP, URL/code, réseau, persistance)"
57+ state: open
58+ priority: high
59+ author:
60+ name: k33g
61+ email: ph.charriere@gmail.com
62+ createdAt: 2026-11-15T08:00:42.000Z
63+ - id: 2
64+ title: "Étape de la clé : deux choix (clé d'API / mon compte Claude) et texte qui explique /login (EN + FR)"
65+ state: open
66+ priority: high
67+ author:
68+ name: k33g
69+ email: ph.charriere@gmail.com
70+ createdAt: 2026-11-15T08:00:42.000Z
71+ - id: 3
72+ title: "Après création sans clé : rappel /login au lieu de l'avertissement ; bindings oauth si nécessaire"
73+ state: open
74+ priority: medium
75+ author:
76+ name: k33g
77+ email: ph.charriere@gmail.com
78+ createdAt: 2026-11-15T08:00:42.000Z
79+ - id: 4
80+ title: "Tests, doc EN + FR, notes de release v1.6.0"
81+ state: open
82+ priority: medium
83+ author:
84+ name: k33g
85+ email: ph.charriere@gmail.com
86+ createdAt: 2026-11-15T08:00:42.000Z
87+ - id: 5
88+ title: "Tester sur le Mac : créer un agent Claude sans clé, puis /login"
89+ state: open
90+ priority: high
91+ author:
92+ name: k33g
93+ email: ph.charriere@gmail.com
94+ createdAt: 2026-11-15T08:00:42.000Z
95+comments: []
added .tickets/issues/0105-assistant-des-sandboxes-claude-sans-cle-d-api-di.yaml +86 -0
new file mode 100644
@@ -0,0 +1,86 @@
1+# Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2+id: 105
3+title: "Assistant des sandboxes, Claude sans clé d'API : dire qu'il faudra faire /login dans le terminal"
4+state: closed
5+author:
6+ name: k33g
7+ email: ph.charriere@gmail.com
8+createdAt: 2026-11-15T08:14:56.000Z
9+updatedAt: 2026-11-15T08:48:23.000Z
10+labels:
11+ - kind::feature
12+ - area::ui
13+ - citizen-ux
14+milestone: "v1.6.0 · Release"
15+epic: Docker SBX
16+related:
17+ - 96
18+ - 104
19+body: |
20+ Dans l'assistant « Créer un agent dans une sandbox », pour **Claude** : quand l'utilisateur n'enregistre pas de clé
21+ d'API (**Plus tard**) et qu'aucun secret `anthropic` n'est enregistré dans sbx, ajouter un message qui dit qu'il
22+ faudra se connecter avec son compte Claude en tapant **`/login`** dans le **terminal** de l'agent (onglet Terminal de
23+ son dossier), une fois la sandbox créée.
24+
25+ Aujourd'hui l'écran dit seulement « Pas encore de clé Claude dans sbx : l'agent ne pourra pas répondre tant que vous
26+ n'en aurez pas enregistré une » — sans autre voie.
27+
28+ Plus étroit que [#104](.tickets/issues/0104-assistant-des-sandboxes-claude-se-connecter-avec.yaml) (deux choix à
29+ l'étape de la clé, /login dans la conversation) : ici, seulement le message, et la connexion se fait dans le terminal.
30+ Voir aussi [#106](.tickets/issues/0106-claude-en-sandbox-sans-authentification-ouvrir-l.yaml) (bascule automatique
31+ vers le terminal).
32+
33+ ## Critères d'acceptation
34+ - Pour Claude, sans clé enregistrée dans sbx, l'assistant affiche (étape de la clé et écran suivant) un message clair :
35+ on peut continuer sans clé ; il faudra alors ouvrir le terminal de l'agent, lancer `claude` et taper `/login`.
36+ - Les autres types gardent leur message actuel.
37+ - Textes EN + FR (catalogue i18n), test vitest ; guide sandbox EN + FR ; notes de release v1.6.0.
38+tasks:
39+ - id: 1
40+ title: "Message Claude sans clé : continuer, puis /login dans le terminal de l'agent (EN + FR)"
41+ state: closed
42+ priority: high
43+ author:
44+ name: k33g
45+ email: ph.charriere@gmail.com
46+ createdAt: 2026-11-15T08:14:56.000Z
47+ updatedAt: 2026-11-15T08:26:17.000Z
48+ closedAt: 2026-11-15T08:26:17.000Z
49+ - id: 2
50+ title: "Afficher le message à l'étape de la clé et à la place de l'avertissement de l'écran suivant"
51+ state: closed
52+ priority: high
53+ author:
54+ name: k33g
55+ email: ph.charriere@gmail.com
56+ createdAt: 2026-11-15T08:14:56.000Z
57+ updatedAt: 2026-11-15T08:26:17.000Z
58+ closedAt: 2026-11-15T08:26:17.000Z
59+ - id: 3
60+ title: "Tests vitest, guide sandbox EN + FR, notes de release v1.6.0"
61+ state: closed
62+ priority: medium
63+ author:
64+ name: k33g
65+ email: ph.charriere@gmail.com
66+ createdAt: 2026-11-15T08:14:56.000Z
67+ updatedAt: 2026-11-15T08:26:17.000Z
68+ closedAt: 2026-11-15T08:26:17.000Z
69+comments:
70+ - id: 1
71+ author:
72+ name: k33g
73+ email: ph.charriere@gmail.com
74+ createdAt: 2026-11-15T08:26:17.000Z
75+ body: |
76+ Fait sur `feature/105-106-claude-login`, avec #106. Champ `signIn` du catalogue (`claude` pour Claude) ; à l'étape
77+ de la clé, un texte dit qu'on peut continuer sans clé (« Plus tard ») et se connecter avec son compte : terminal de
78+ l'agent, `claude`, `/login` ; l'écran suivant affiche ce rappel au lieu de l'avertissement (autres types inchangés).
79+ Vérifié sous Xvfb. Reste : le test de l'owner sur le Mac.
80+ - id: 2
81+ author:
82+ name: k33g
83+ email: ph.charriere@gmail.com
84+ createdAt: 2026-11-15T08:48:23.000Z
85+ body: |
86+ Testé sur le Mac par l'owner avec Claude : ça fonctionne. Mergé dans main. Ticket fermé.
new file mode 100644
@@ -0,0 +1,86 @@
1+# Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2+id: 105
3+title: "Assistant des sandboxes, Claude sans clé d'API : dire qu'il faudra faire /login dans le terminal"
4+state: closed
5+author:
6+ name: k33g
7+ email: ph.charriere@gmail.com
8+createdAt: 2026-11-15T08:14:56.000Z
9+updatedAt: 2026-11-15T08:48:23.000Z
10+labels:
11+ - kind::feature
12+ - area::ui
13+ - citizen-ux
14+milestone: "v1.6.0 · Release"
15+epic: Docker SBX
16+related:
17+ - 96
18+ - 104
19+body: |
20+ Dans l'assistant « Créer un agent dans une sandbox », pour **Claude** : quand l'utilisateur n'enregistre pas de clé
21+ d'API (**Plus tard**) et qu'aucun secret `anthropic` n'est enregistré dans sbx, ajouter un message qui dit qu'il
22+ faudra se connecter avec son compte Claude en tapant **`/login`** dans le **terminal** de l'agent (onglet Terminal de
23+ son dossier), une fois la sandbox créée.
24+
25+ Aujourd'hui l'écran dit seulement « Pas encore de clé Claude dans sbx : l'agent ne pourra pas répondre tant que vous
26+ n'en aurez pas enregistré une » — sans autre voie.
27+
28+ Plus étroit que [#104](.tickets/issues/0104-assistant-des-sandboxes-claude-se-connecter-avec.yaml) (deux choix à
29+ l'étape de la clé, /login dans la conversation) : ici, seulement le message, et la connexion se fait dans le terminal.
30+ Voir aussi [#106](.tickets/issues/0106-claude-en-sandbox-sans-authentification-ouvrir-l.yaml) (bascule automatique
31+ vers le terminal).
32+
33+ ## Critères d'acceptation
34+ - Pour Claude, sans clé enregistrée dans sbx, l'assistant affiche (étape de la clé et écran suivant) un message clair :
35+ on peut continuer sans clé ; il faudra alors ouvrir le terminal de l'agent, lancer `claude` et taper `/login`.
36+ - Les autres types gardent leur message actuel.
37+ - Textes EN + FR (catalogue i18n), test vitest ; guide sandbox EN + FR ; notes de release v1.6.0.
38+tasks:
39+ - id: 1
40+ title: "Message Claude sans clé : continuer, puis /login dans le terminal de l'agent (EN + FR)"
41+ state: closed
42+ priority: high
43+ author:
44+ name: k33g
45+ email: ph.charriere@gmail.com
46+ createdAt: 2026-11-15T08:14:56.000Z
47+ updatedAt: 2026-11-15T08:26:17.000Z
48+ closedAt: 2026-11-15T08:26:17.000Z
49+ - id: 2
50+ title: "Afficher le message à l'étape de la clé et à la place de l'avertissement de l'écran suivant"
51+ state: closed
52+ priority: high
53+ author:
54+ name: k33g
55+ email: ph.charriere@gmail.com
56+ createdAt: 2026-11-15T08:14:56.000Z
57+ updatedAt: 2026-11-15T08:26:17.000Z
58+ closedAt: 2026-11-15T08:26:17.000Z
59+ - id: 3
60+ title: "Tests vitest, guide sandbox EN + FR, notes de release v1.6.0"
61+ state: closed
62+ priority: medium
63+ author:
64+ name: k33g
65+ email: ph.charriere@gmail.com
66+ createdAt: 2026-11-15T08:14:56.000Z
67+ updatedAt: 2026-11-15T08:26:17.000Z
68+ closedAt: 2026-11-15T08:26:17.000Z
69+comments:
70+ - id: 1
71+ author:
72+ name: k33g
73+ email: ph.charriere@gmail.com
74+ createdAt: 2026-11-15T08:26:17.000Z
75+ body: |
76+ Fait sur `feature/105-106-claude-login`, avec #106. Champ `signIn` du catalogue (`claude` pour Claude) ; à l'étape
77+ de la clé, un texte dit qu'on peut continuer sans clé (« Plus tard ») et se connecter avec son compte : terminal de
78+ l'agent, `claude`, `/login` ; l'écran suivant affiche ce rappel au lieu de l'avertissement (autres types inchangés).
79+ Vérifié sous Xvfb. Reste : le test de l'owner sur le Mac.
80+ - id: 2
81+ author:
82+ name: k33g
83+ email: ph.charriere@gmail.com
84+ createdAt: 2026-11-15T08:48:23.000Z
85+ body: |
86+ Testé sur le Mac par l'owner avec Claude : ça fonctionne. Mergé dans main. Ticket fermé.
added .tickets/issues/0106-claude-en-sandbox-sans-authentification-ouvrir-l.yaml +134 -0
new file mode 100644
@@ -0,0 +1,134 @@
1+# Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2+id: 106
3+title: "Claude en sandbox sans authentification : ouvrir le terminal de la sandbox et y lancer claude pour /login"
4+state: closed
5+author:
6+ name: k33g
7+ email: ph.charriere@gmail.com
8+createdAt: 2026-11-15T08:14:56.000Z
9+updatedAt: 2026-11-15T08:48:23.000Z
10+labels:
11+ - kind::feature
12+ - area::workspace
13+ - citizen-ux
14+ - real-agents
15+milestone: "v1.6.0 · Release"
16+epic: Docker SBX
17+related:
18+ - 104
19+ - 105
20+body: |
21+ Quand un agent **Claude** dans une sandbox sbx échoue parce qu'il n'est pas authentifié (pas de clé d'API dans sbx,
22+ pas de `/login` fait), Sidekicks **bascule automatiquement sur le terminal de la sandbox** (vue de l'agent, onglet
23+ Terminal), y **lance `claude`**, et affiche un message qui dit de taper **`/login`** puis de suivre les étapes.
24+
25+ ## Ce qui existe
26+ - Le terminal d'un agent sbx : `TerminalService.Open(agent)` ouvre un shell dans la sandbox (`sbx exec -it`) ;
27+ `TerminalService.Write(id, data)` y écrit — lancer `claude` = écrire `claude\n`.
28+ - La vue de l'agent au centre : `openWorkspace(agent)` (Fichiers, Terminal, Journal).
29+ - Les erreurs reconnues : `frontend/src/lib/errors.ts` (règles → message + action, comme `sbx login` pour #97).
30+
31+ ## À vérifier / décider
32+ - Le texte exact de l'erreur d'authentification de `claude-agent-acp` (au démarrage ACP, à `session/new` ou au
33+ premier prompt ? `authMethods` / `authenticate` d'ACP ?) pour la reconnaître sans faux positif.
34+ - Que `claude` (Claude Code) est dans le PATH de la sandbox du kit `claude-acp`, et que `/login` y fonctionne
35+ sans navigateur (URL + code à recopier ; ouvrir l'URL côté Mac ?) — et que la connexion est vue ensuite par
36+ `claude-agent-acp` (même `~/.claude`).
37+ - Bascule automatique ou bouton « Se connecter dans le terminal » sous l'erreur ? (demande de l'owner :
38+ automatique). Ne pas relancer `claude` à chaque erreur : une fois par démarrage.
39+ - Après le `/login` : redémarrer l'agent (bouton, ou automatiquement quand `claude` se termine ?).
40+ - Domaines réseau de la connexion par compte (cf. [#104](.tickets/issues/0104-assistant-des-sandboxes-claude-se-connecter-avec.yaml)).
41+
42+ ## Critères d'acceptation
43+ - Un agent Claude sbx sans authentification : à l'erreur, la vue de l'agent s'ouvre sur le Terminal, `claude` y est
44+ lancé, et un message (EN + FR) dit de taper `/login`.
45+ - Après `/login`, l'agent répond dans sa conversation (après redémarrage si nécessaire).
46+ - Une autre erreur n'ouvre pas le terminal. Tests (reconnaissance de l'erreur, vitest) ; doc EN + FR ; notes v1.6.0.
47+tasks:
48+ - id: 1
49+ title: "Relever l'erreur d'authentification de claude-agent-acp et vérifier claude + /login dans la sandbox"
50+ state: closed
51+ priority: high
52+ author:
53+ name: k33g
54+ email: ph.charriere@gmail.com
55+ createdAt: 2026-11-15T08:14:56.000Z
56+ updatedAt: 2026-11-15T08:26:17.000Z
57+ closedAt: 2026-11-15T08:26:17.000Z
58+ - id: 2
59+ title: "Reconnaître l'erreur (errors.ts) et basculer sur le Terminal de l'agent, une fois par démarrage"
60+ state: closed
61+ priority: high
62+ author:
63+ name: k33g
64+ email: ph.charriere@gmail.com
65+ createdAt: 2026-11-15T08:14:56.000Z
66+ updatedAt: 2026-11-15T08:26:17.000Z
67+ closedAt: 2026-11-15T08:26:17.000Z
68+ - id: 3
69+ title: "Lancer claude dans le terminal (TerminalService.Write) et afficher le message /login (EN + FR)"
70+ state: closed
71+ priority: high
72+ author:
73+ name: k33g
74+ email: ph.charriere@gmail.com
75+ createdAt: 2026-11-15T08:14:56.000Z
76+ updatedAt: 2026-11-15T08:26:17.000Z
77+ closedAt: 2026-11-15T08:26:17.000Z
78+ - id: 4
79+ title: "Après /login : redémarrer l'agent (bouton ou automatique)"
80+ state: closed
81+ priority: medium
82+ author:
83+ name: k33g
84+ email: ph.charriere@gmail.com
85+ createdAt: 2026-11-15T08:14:56.000Z
86+ updatedAt: 2026-11-15T08:26:17.000Z
87+ closedAt: 2026-11-15T08:26:17.000Z
88+ - id: 5
89+ title: "Tests, doc EN + FR, notes de release v1.6.0"
90+ state: closed
91+ priority: medium
92+ author:
93+ name: k33g
94+ email: ph.charriere@gmail.com
95+ createdAt: 2026-11-15T08:14:56.000Z
96+ updatedAt: 2026-11-15T08:26:17.000Z
97+ closedAt: 2026-11-15T08:26:17.000Z
98+ - id: 6
99+ title: "Tester sur le Mac avec un agent Claude sans clé"
100+ state: closed
101+ priority: high
102+ author:
103+ name: k33g
104+ email: ph.charriere@gmail.com
105+ createdAt: 2026-11-15T08:14:56.000Z
106+ updatedAt: 2026-11-15T08:48:23.000Z
107+ closedAt: 2026-11-15T08:48:23.000Z
108+comments:
109+ - id: 1
110+ author:
111+ name: k33g
112+ email: ph.charriere@gmail.com
113+ createdAt: 2026-11-15T08:26:17.000Z
114+ body: |
115+ Fait sur `feature/105-106-claude-login`. Erreur relevée par l'owner : « The answer ended with an error.
116+ Authentication required » (`Authentication required` est le texte de l'agent).
117+
118+ - Go : `agents.SignInProgram` (`claude-agent-acp` dans une sandbox sbx → `claude`), exposé en `Status.signIn`.
119+ - Front : `signin.ts` (`needsSignIn`), règle `error.authRequired` d'errors.ts ; à la fin d'une réponse en erreur,
120+ une fois par démarrage (oublié à `starting`/`stopped`), `signInInTerminal` ouvre la vue de l'agent, un nouveau
121+ terminal qui tape `claude` + Entrée une fois son shell ouvert (`newTerminal(agent, input)`), l'onglet Terminal
122+ et un message (taper /login…). Bouton « Je suis connecté : redémarrer l'agent » (Restart + conversation) ;
123+ « Se connecter dans son terminal » sous l'erreur pour y revenir.
124+ - Vérifié sous Xvfb avec un faux agent ACP (erreur -32000 « Authentication required ») et un faux sbx : bascule,
125+ `claude` lancé, redémarrage, bouton sous l'erreur.
126+ - Non vérifié : un vrai `claude` + `/login` dans la sandbox et que `claude-agent-acp` voit ensuite la connexion
127+ (tâche 6, Mac).
128+ - id: 2
129+ author:
130+ name: k33g
131+ email: ph.charriere@gmail.com
132+ createdAt: 2026-11-15T08:48:23.000Z
133+ body: |
134+ Testé sur le Mac par l'owner avec Claude : ça fonctionne. Mergé dans main. Ticket fermé.
new file mode 100644
@@ -0,0 +1,134 @@
1+# Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2+id: 106
3+title: "Claude en sandbox sans authentification : ouvrir le terminal de la sandbox et y lancer claude pour /login"
4+state: closed
5+author:
6+ name: k33g
7+ email: ph.charriere@gmail.com
8+createdAt: 2026-11-15T08:14:56.000Z
9+updatedAt: 2026-11-15T08:48:23.000Z
10+labels:
11+ - kind::feature
12+ - area::workspace
13+ - citizen-ux
14+ - real-agents
15+milestone: "v1.6.0 · Release"
16+epic: Docker SBX
17+related:
18+ - 104
19+ - 105
20+body: |
21+ Quand un agent **Claude** dans une sandbox sbx échoue parce qu'il n'est pas authentifié (pas de clé d'API dans sbx,
22+ pas de `/login` fait), Sidekicks **bascule automatiquement sur le terminal de la sandbox** (vue de l'agent, onglet
23+ Terminal), y **lance `claude`**, et affiche un message qui dit de taper **`/login`** puis de suivre les étapes.
24+
25+ ## Ce qui existe
26+ - Le terminal d'un agent sbx : `TerminalService.Open(agent)` ouvre un shell dans la sandbox (`sbx exec -it`) ;
27+ `TerminalService.Write(id, data)` y écrit — lancer `claude` = écrire `claude\n`.
28+ - La vue de l'agent au centre : `openWorkspace(agent)` (Fichiers, Terminal, Journal).
29+ - Les erreurs reconnues : `frontend/src/lib/errors.ts` (règles → message + action, comme `sbx login` pour #97).
30+
31+ ## À vérifier / décider
32+ - Le texte exact de l'erreur d'authentification de `claude-agent-acp` (au démarrage ACP, à `session/new` ou au
33+ premier prompt ? `authMethods` / `authenticate` d'ACP ?) pour la reconnaître sans faux positif.
34+ - Que `claude` (Claude Code) est dans le PATH de la sandbox du kit `claude-acp`, et que `/login` y fonctionne
35+ sans navigateur (URL + code à recopier ; ouvrir l'URL côté Mac ?) — et que la connexion est vue ensuite par
36+ `claude-agent-acp` (même `~/.claude`).
37+ - Bascule automatique ou bouton « Se connecter dans le terminal » sous l'erreur ? (demande de l'owner :
38+ automatique). Ne pas relancer `claude` à chaque erreur : une fois par démarrage.
39+ - Après le `/login` : redémarrer l'agent (bouton, ou automatiquement quand `claude` se termine ?).
40+ - Domaines réseau de la connexion par compte (cf. [#104](.tickets/issues/0104-assistant-des-sandboxes-claude-se-connecter-avec.yaml)).
41+
42+ ## Critères d'acceptation
43+ - Un agent Claude sbx sans authentification : à l'erreur, la vue de l'agent s'ouvre sur le Terminal, `claude` y est
44+ lancé, et un message (EN + FR) dit de taper `/login`.
45+ - Après `/login`, l'agent répond dans sa conversation (après redémarrage si nécessaire).
46+ - Une autre erreur n'ouvre pas le terminal. Tests (reconnaissance de l'erreur, vitest) ; doc EN + FR ; notes v1.6.0.
47+tasks:
48+ - id: 1
49+ title: "Relever l'erreur d'authentification de claude-agent-acp et vérifier claude + /login dans la sandbox"
50+ state: closed
51+ priority: high
52+ author:
53+ name: k33g
54+ email: ph.charriere@gmail.com
55+ createdAt: 2026-11-15T08:14:56.000Z
56+ updatedAt: 2026-11-15T08:26:17.000Z
57+ closedAt: 2026-11-15T08:26:17.000Z
58+ - id: 2
59+ title: "Reconnaître l'erreur (errors.ts) et basculer sur le Terminal de l'agent, une fois par démarrage"
60+ state: closed
61+ priority: high
62+ author:
63+ name: k33g
64+ email: ph.charriere@gmail.com
65+ createdAt: 2026-11-15T08:14:56.000Z
66+ updatedAt: 2026-11-15T08:26:17.000Z
67+ closedAt: 2026-11-15T08:26:17.000Z
68+ - id: 3
69+ title: "Lancer claude dans le terminal (TerminalService.Write) et afficher le message /login (EN + FR)"
70+ state: closed
71+ priority: high
72+ author:
73+ name: k33g
74+ email: ph.charriere@gmail.com
75+ createdAt: 2026-11-15T08:14:56.000Z
76+ updatedAt: 2026-11-15T08:26:17.000Z
77+ closedAt: 2026-11-15T08:26:17.000Z
78+ - id: 4
79+ title: "Après /login : redémarrer l'agent (bouton ou automatique)"
80+ state: closed
81+ priority: medium
82+ author:
83+ name: k33g
84+ email: ph.charriere@gmail.com
85+ createdAt: 2026-11-15T08:14:56.000Z
86+ updatedAt: 2026-11-15T08:26:17.000Z
87+ closedAt: 2026-11-15T08:26:17.000Z
88+ - id: 5
89+ title: "Tests, doc EN + FR, notes de release v1.6.0"
90+ state: closed
91+ priority: medium
92+ author:
93+ name: k33g
94+ email: ph.charriere@gmail.com
95+ createdAt: 2026-11-15T08:14:56.000Z
96+ updatedAt: 2026-11-15T08:26:17.000Z
97+ closedAt: 2026-11-15T08:26:17.000Z
98+ - id: 6
99+ title: "Tester sur le Mac avec un agent Claude sans clé"
100+ state: closed
101+ priority: high
102+ author:
103+ name: k33g
104+ email: ph.charriere@gmail.com
105+ createdAt: 2026-11-15T08:14:56.000Z
106+ updatedAt: 2026-11-15T08:48:23.000Z
107+ closedAt: 2026-11-15T08:48:23.000Z
108+comments:
109+ - id: 1
110+ author:
111+ name: k33g
112+ email: ph.charriere@gmail.com
113+ createdAt: 2026-11-15T08:26:17.000Z
114+ body: |
115+ Fait sur `feature/105-106-claude-login`. Erreur relevée par l'owner : « The answer ended with an error.
116+ Authentication required » (`Authentication required` est le texte de l'agent).
117+
118+ - Go : `agents.SignInProgram` (`claude-agent-acp` dans une sandbox sbx → `claude`), exposé en `Status.signIn`.
119+ - Front : `signin.ts` (`needsSignIn`), règle `error.authRequired` d'errors.ts ; à la fin d'une réponse en erreur,
120+ une fois par démarrage (oublié à `starting`/`stopped`), `signInInTerminal` ouvre la vue de l'agent, un nouveau
121+ terminal qui tape `claude` + Entrée une fois son shell ouvert (`newTerminal(agent, input)`), l'onglet Terminal
122+ et un message (taper /login…). Bouton « Je suis connecté : redémarrer l'agent » (Restart + conversation) ;
123+ « Se connecter dans son terminal » sous l'erreur pour y revenir.
124+ - Vérifié sous Xvfb avec un faux agent ACP (erreur -32000 « Authentication required ») et un faux sbx : bascule,
125+ `claude` lancé, redémarrage, bouton sous l'erreur.
126+ - Non vérifié : un vrai `claude` + `/login` dans la sandbox et que `claude-agent-acp` voit ensuite la connexion
127+ (tâche 6, Mac).
128+ - id: 2
129+ author:
130+ name: k33g
131+ email: ph.charriere@gmail.com
132+ createdAt: 2026-11-15T08:48:23.000Z
133+ body: |
134+ Testé sur le Mac par l'owner avec Claude : ça fonctionne. Mergé dans main. Ticket fermé.
added .tickets/issues/0107-assistant-des-sandboxes-codex-cle-facultative-et.yaml +110 -0
new file mode 100644
@@ -0,0 +1,110 @@
1+# Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2+id: 107
3+title: "Assistant des sandboxes, Codex : clé facultative et connexion ChatGPT (sbx secret set openai --oauth)"
4+state: open
5+author:
6+ name: k33g
7+ email: ph.charriere@gmail.com
8+createdAt: 2026-11-15T08:16:29.000Z
9+updatedAt: 2026-11-15T08:16:29.000Z
10+labels:
11+ - kind::feature
12+ - area::workspace
13+ - citizen-ux
14+ - real-agents
15+milestone: "v1.6.0 · Release"
16+epic: Docker SBX
17+related:
18+ - 96
19+ - 98
20+ - 104
21+body: |
22+ Dans l'assistant « Créer un agent dans une sandbox », le type **Codex** (OpenAI) ne doit pas bloquer sur la clé
23+ d'API : on doit pouvoir continuer sans clé et se connecter avec son **compte ChatGPT**.
24+
25+ ## Ce qui se passe aujourd'hui (doc Docker, https://docs.docker.com/ai/sandboxes/agents/codex/)
26+ - Sans identifiant OpenAI dans sbx, la création de la sandbox Codex **demande, sur l'hôte, si l'on veut s'authentifier
27+ sur le web** (« prompts you to authenticate on your host if you haven't stored an OpenAI credential »). Ça se passe
28+ avant le lancement de la sandbox : les identifiants n'y entrent jamais.
29+ - Sidekicks lance `sbx env create --force` **sans entrée standard** (`lifecycle.Runner.command` : « a command that
30+ asks a question fails instead of waiting forever ») : la question reste sans réponse — échec, ou création sans
31+ identifiant, à vérifier.
32+ - La même connexion se fait à l'avance avec **`sbx secret set openai --oauth`** : « opens a browser window for
33+ authentication and stores the resulting tokens in your OS keychain ». Le `sbxenv.yaml` de Codex a déjà les
34+ domaines `oauth` (auth.openai.com, chatgpt.com).
35+
36+ ## Proposition
37+ 1. **À l'assistant (avant la création)** : l'étape de la clé de Codex propose trois voies, sans blocage —
38+ **Se connecter avec mon compte ChatGPT** (Sidekicks lance `sbx secret set openai --oauth`, qui ouvre le navigateur
39+ sur le Mac ; on suit sa sortie et on attend sa fin, comme `sbx login` en #97), **coller une clé d'API** (comme
40+ aujourd'hui), ou **Plus tard**. Une fois connecté, `sbx secret ls --service openai` montre le secret : la création
41+ ne pose plus la question.
42+ 2. **À la création (si « Plus tard »)** : reconnaître la question de sbx dans les lignes du cycle de vie (elles passent
43+ déjà par le journal et la carte de progression, #98) et, au lieu d'un échec obscur, afficher sous l'erreur le même
44+ bouton **Se connecter avec mon compte ChatGPT** ; une fois connecté, relancer le démarrage de l'agent.
45+ 3. Ne pas répondre « oui » à l'aveugle sur l'entrée standard : la connexion web demande un navigateur et l'utilisateur.
46+
47+ ## À vérifier sur le Mac (sortie réelle)
48+ - Le texte exact de la question de `sbx env create` (et de `sbx run codex`) sans identifiant, et ce que fait sbx
49+ quand l'entrée standard est vide (erreur ? continue sans ?).
50+ - La sortie de `sbx secret set openai --oauth` lancé sans terminal : ouvre-t-il le navigateur lui-même ? affiche-t-il
51+ une URL ? comment savoir qu'il a fini ? Ce que montre ensuite `sbx secret ls --service openai` (portée, type).
52+ - Que `codex-acp` dans la sandbox utilise bien ces jetons (sans `authenticate` ACP côté Sidekicks).
53+
54+ ## Critères d'acceptation
55+ - Pour Codex, l'étape de la clé n'est pas bloquante et propose la connexion ChatGPT ; textes EN + FR qui expliquent
56+ les choix.
57+ - Après « Se connecter avec mon compte ChatGPT », la sandbox se crée sans question et l'agent répond.
58+ - Sans identifiant, la création ne reste pas bloquée ni n'échoue en silence : l'erreur propose de se connecter, puis
59+ l'agent redémarre.
60+ - Tests Go (fausse sortie de sbx : question, oauth) et vitest ; doc EN + FR (guide sandbox) ; notes de release v1.6.0.
61+tasks:
62+ - id: 1
63+ title: "Relever sur le Mac la question de sbx env create sans identifiant OpenAI, et la sortie de sbx secret set openai --oauth"
64+ state: open
65+ priority: high
66+ author:
67+ name: k33g
68+ email: ph.charriere@gmail.com
69+ createdAt: 2026-11-15T08:16:29.000Z
70+ - id: 2
71+ title: "Go : lancer sbx secret set openai --oauth et suivre sa fin (comme sbx login) ; HasSecret avec un secret oauth"
72+ state: open
73+ priority: high
74+ author:
75+ name: k33g
76+ email: ph.charriere@gmail.com
77+ createdAt: 2026-11-15T08:16:29.000Z
78+ - id: 3
79+ title: "Étape de la clé Codex : connexion ChatGPT / clé d'API / plus tard, sans blocage (EN + FR)"
80+ state: open
81+ priority: high
82+ author:
83+ name: k33g
84+ email: ph.charriere@gmail.com
85+ createdAt: 2026-11-15T08:16:29.000Z
86+ - id: 4
87+ title: "Création : reconnaître la question d'authentification, proposer la connexion sous l'erreur, puis redémarrer l'agent"
88+ state: open
89+ priority: high
90+ author:
91+ name: k33g
92+ email: ph.charriere@gmail.com
93+ createdAt: 2026-11-15T08:16:29.000Z
94+ - id: 5
95+ title: "Tests Go + vitest, doc EN + FR, notes de release v1.6.0"
96+ state: open
97+ priority: medium
98+ author:
99+ name: k33g
100+ email: ph.charriere@gmail.com
101+ createdAt: 2026-11-15T08:16:29.000Z
102+ - id: 6
103+ title: "Tester sur le Mac : Codex avec compte ChatGPT, et Codex créé sans identifiant"
104+ state: open
105+ priority: high
106+ author:
107+ name: k33g
108+ email: ph.charriere@gmail.com
109+ createdAt: 2026-11-15T08:16:29.000Z
110+comments: []
new file mode 100644
@@ -0,0 +1,110 @@
1+# Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2+id: 107
3+title: "Assistant des sandboxes, Codex : clé facultative et connexion ChatGPT (sbx secret set openai --oauth)"
4+state: open
5+author:
6+ name: k33g
7+ email: ph.charriere@gmail.com
8+createdAt: 2026-11-15T08:16:29.000Z
9+updatedAt: 2026-11-15T08:16:29.000Z
10+labels:
11+ - kind::feature
12+ - area::workspace
13+ - citizen-ux
14+ - real-agents
15+milestone: "v1.6.0 · Release"
16+epic: Docker SBX
17+related:
18+ - 96
19+ - 98
20+ - 104
21+body: |
22+ Dans l'assistant « Créer un agent dans une sandbox », le type **Codex** (OpenAI) ne doit pas bloquer sur la clé
23+ d'API : on doit pouvoir continuer sans clé et se connecter avec son **compte ChatGPT**.
24+
25+ ## Ce qui se passe aujourd'hui (doc Docker, https://docs.docker.com/ai/sandboxes/agents/codex/)
26+ - Sans identifiant OpenAI dans sbx, la création de la sandbox Codex **demande, sur l'hôte, si l'on veut s'authentifier
27+ sur le web** (« prompts you to authenticate on your host if you haven't stored an OpenAI credential »). Ça se passe
28+ avant le lancement de la sandbox : les identifiants n'y entrent jamais.
29+ - Sidekicks lance `sbx env create --force` **sans entrée standard** (`lifecycle.Runner.command` : « a command that
30+ asks a question fails instead of waiting forever ») : la question reste sans réponse — échec, ou création sans
31+ identifiant, à vérifier.
32+ - La même connexion se fait à l'avance avec **`sbx secret set openai --oauth`** : « opens a browser window for
33+ authentication and stores the resulting tokens in your OS keychain ». Le `sbxenv.yaml` de Codex a déjà les
34+ domaines `oauth` (auth.openai.com, chatgpt.com).
35+
36+ ## Proposition
37+ 1. **À l'assistant (avant la création)** : l'étape de la clé de Codex propose trois voies, sans blocage —
38+ **Se connecter avec mon compte ChatGPT** (Sidekicks lance `sbx secret set openai --oauth`, qui ouvre le navigateur
39+ sur le Mac ; on suit sa sortie et on attend sa fin, comme `sbx login` en #97), **coller une clé d'API** (comme
40+ aujourd'hui), ou **Plus tard**. Une fois connecté, `sbx secret ls --service openai` montre le secret : la création
41+ ne pose plus la question.
42+ 2. **À la création (si « Plus tard »)** : reconnaître la question de sbx dans les lignes du cycle de vie (elles passent
43+ déjà par le journal et la carte de progression, #98) et, au lieu d'un échec obscur, afficher sous l'erreur le même
44+ bouton **Se connecter avec mon compte ChatGPT** ; une fois connecté, relancer le démarrage de l'agent.
45+ 3. Ne pas répondre « oui » à l'aveugle sur l'entrée standard : la connexion web demande un navigateur et l'utilisateur.
46+
47+ ## À vérifier sur le Mac (sortie réelle)
48+ - Le texte exact de la question de `sbx env create` (et de `sbx run codex`) sans identifiant, et ce que fait sbx
49+ quand l'entrée standard est vide (erreur ? continue sans ?).
50+ - La sortie de `sbx secret set openai --oauth` lancé sans terminal : ouvre-t-il le navigateur lui-même ? affiche-t-il
51+ une URL ? comment savoir qu'il a fini ? Ce que montre ensuite `sbx secret ls --service openai` (portée, type).
52+ - Que `codex-acp` dans la sandbox utilise bien ces jetons (sans `authenticate` ACP côté Sidekicks).
53+
54+ ## Critères d'acceptation
55+ - Pour Codex, l'étape de la clé n'est pas bloquante et propose la connexion ChatGPT ; textes EN + FR qui expliquent
56+ les choix.
57+ - Après « Se connecter avec mon compte ChatGPT », la sandbox se crée sans question et l'agent répond.
58+ - Sans identifiant, la création ne reste pas bloquée ni n'échoue en silence : l'erreur propose de se connecter, puis
59+ l'agent redémarre.
60+ - Tests Go (fausse sortie de sbx : question, oauth) et vitest ; doc EN + FR (guide sandbox) ; notes de release v1.6.0.
61+tasks:
62+ - id: 1
63+ title: "Relever sur le Mac la question de sbx env create sans identifiant OpenAI, et la sortie de sbx secret set openai --oauth"
64+ state: open
65+ priority: high
66+ author:
67+ name: k33g
68+ email: ph.charriere@gmail.com
69+ createdAt: 2026-11-15T08:16:29.000Z
70+ - id: 2
71+ title: "Go : lancer sbx secret set openai --oauth et suivre sa fin (comme sbx login) ; HasSecret avec un secret oauth"
72+ state: open
73+ priority: high
74+ author:
75+ name: k33g
76+ email: ph.charriere@gmail.com
77+ createdAt: 2026-11-15T08:16:29.000Z
78+ - id: 3
79+ title: "Étape de la clé Codex : connexion ChatGPT / clé d'API / plus tard, sans blocage (EN + FR)"
80+ state: open
81+ priority: high
82+ author:
83+ name: k33g
84+ email: ph.charriere@gmail.com
85+ createdAt: 2026-11-15T08:16:29.000Z
86+ - id: 4
87+ title: "Création : reconnaître la question d'authentification, proposer la connexion sous l'erreur, puis redémarrer l'agent"
88+ state: open
89+ priority: high
90+ author:
91+ name: k33g
92+ email: ph.charriere@gmail.com
93+ createdAt: 2026-11-15T08:16:29.000Z
94+ - id: 5
95+ title: "Tests Go + vitest, doc EN + FR, notes de release v1.6.0"
96+ state: open
97+ priority: medium
98+ author:
99+ name: k33g
100+ email: ph.charriere@gmail.com
101+ createdAt: 2026-11-15T08:16:29.000Z
102+ - id: 6
103+ title: "Tester sur le Mac : Codex avec compte ChatGPT, et Codex créé sans identifiant"
104+ state: open
105+ priority: high
106+ author:
107+ name: k33g
108+ email: ph.charriere@gmail.com
109+ createdAt: 2026-11-15T08:16:29.000Z
110+comments: []
modified docs/en/how-to/create-an-agent-in-a-sandbox.md +1 -0
@@ -19,6 +19,7 @@ The agent's folder is created in the **Sidekicks-Agents** folder of your Documen
1919 - **"sbx needs you to be signed in to Docker"**: click **Sign in to Docker**. Sidekicks shows a code: click **Open the sign-in page**, check that the page shows the same code, confirm and sign in with your Docker account (a free one is enough). The assistant goes on by itself once you are signed in. The same button appears under the error of an sbx agent that cannot start. If it does not work, type `sbx login` in a terminal once.
2020 - **"Another agent already has this name"**, **"A folder with this name already exists"** or **"A sandbox with this name already exists"**: change the **Name** and click **Add the agent** again. An existing folder or sandbox is never changed.
2121 - **"No … key in sbx yet"** (after **Later**): the agent cannot answer. Run the assistant again to save the key, or type `sbx secret set anthropic` (`google` for Gemini, `openai` for Codex, `mistral` for Vibe, `copilot` and `github` for Copilot — for example `sbx secret set copilot --command 'gh auth token'` then the same with `github`) in a terminal.
22+- **Claude without an API key** (issues #105 and #106): click **Later** and sign in with your Claude account instead. The assistant says so. At the first answer, Claude ends with "The agent is not signed in": Sidekicks opens the agent's **Terminal**, runs `claude` in its sandbox and tells you what to do — type `/login`, choose your account and follow the steps (copy the link into your browser if asked). Then click **I am signed in: restart the agent**: you are back in the conversation; send your message again. If you closed that terminal, **Sign in in its terminal** under the error opens it again.
2223
2324 ## Variants
2425
@@ -19,6 +19,7 @@ The agent's folder is created in the **Sidekicks-Agents** folder of your Documen
19 - **"sbx needs you to be signed in to Docker"**: click **Sign in to Docker**. Sidekicks shows a code: click **Open the sign-in page**, check that the page shows the same code, confirm and sign in with your Docker account (a free one is enough). The assistant goes on by itself once you are signed in. The same button appears under the error of an sbx agent that cannot start. If it does not work, type `sbx login` in a terminal once.19 - **"sbx needs you to be signed in to Docker"**: click **Sign in to Docker**. Sidekicks shows a code: click **Open the sign-in page**, check that the page shows the same code, confirm and sign in with your Docker account (a free one is enough). The assistant goes on by itself once you are signed in. The same button appears under the error of an sbx agent that cannot start. If it does not work, type `sbx login` in a terminal once.
20 - **"Another agent already has this name"**, **"A folder with this name already exists"** or **"A sandbox with this name already exists"**: change the **Name** and click **Add the agent** again. An existing folder or sandbox is never changed.20 - **"Another agent already has this name"**, **"A folder with this name already exists"** or **"A sandbox with this name already exists"**: change the **Name** and click **Add the agent** again. An existing folder or sandbox is never changed.
21 - **"No … key in sbx yet"** (after **Later**): the agent cannot answer. Run the assistant again to save the key, or type `sbx secret set anthropic` (`google` for Gemini, `openai` for Codex, `mistral` for Vibe, `copilot` and `github` for Copilot — for example `sbx secret set copilot --command 'gh auth token'` then the same with `github`) in a terminal.21 - **"No … key in sbx yet"** (after **Later**): the agent cannot answer. Run the assistant again to save the key, or type `sbx secret set anthropic` (`google` for Gemini, `openai` for Codex, `mistral` for Vibe, `copilot` and `github` for Copilot — for example `sbx secret set copilot --command 'gh auth token'` then the same with `github`) in a terminal.
22+- **Claude without an API key** (issues #105 and #106): click **Later** and sign in with your Claude account instead. The assistant says so. At the first answer, Claude ends with "The agent is not signed in": Sidekicks opens the agent's **Terminal**, runs `claude` in its sandbox and tells you what to do — type `/login`, choose your account and follow the steps (copy the link into your browser if asked). Then click **I am signed in: restart the agent**: you are back in the conversation; send your message again. If you closed that terminal, **Sign in in its terminal** under the error opens it again.
22 23
23 ## Variants24 ## Variants
24 25
modified docs/en/reference/agents-and-events.md +2 -2
@@ -47,7 +47,7 @@ The Go names and types are in `internal/events`; the TypeScript constants and ty
4747
4848 | Service | Method | Effect |
4949 | --- | --- | --- |
50-| `AgentService` | `List()` | Every agent with `name, title, icon, description, state, error, outdated, runtime, canStopSandbox, canRemoveSandbox` (and, while starting, `step, since` as `agent:progress` gives them), in configuration order. |
50+| `AgentService` | `List()` | Every agent with `name, title, icon, description, state, error, outdated, runtime, canStopSandbox, canRemoveSandbox` (and, while starting, `step, since` as `agent:progress` gives them; `signIn`: the program its terminal runs to sign in with an account instead of an API key — `claude` for `claude-agent-acp` in an sbx sandbox, issues #105 and #106), in configuration order. |
5151 | | `Start(name)`, `Stop(name)`, `Restart(name)` | As in the transitions above; an error is returned to the interface. A start first recreates a missing sandbox when `runtime.lifecycle.create` is set. |
5252 | | `StopSandbox(name)`, `RemoveSandbox(name)` | Stops the agent, then runs `runtime.lifecycle.stop` or `remove` (container or sandbox); the output goes to the agent's log. |
5353 | | `Unload(name)` | Has a running, idle agent that announced the `unload` command unload its model (issue #51): `/unload` is sent in a session of its own, which no conversation shows; the answer goes to the agent's log as `unload: …` lines. Errors: unknown agent, `the agent is not running…`, `the agent is answering…`, `this agent cannot unload its model…`. |
@@ -267,7 +267,7 @@ The assistant that creates an agent in a Docker Sandbox (issue #96, [How to crea
267267
268268 | Method | Effect |
269269 | --- | --- |
270-| `Kinds()` | The catalogue, in order: `{id, title, icon, agent, kit, program, service, keyUrl, token, fromGh}` (`token`: the secret is a token of the user's account, not an API key — Copilot; the assistant says "token"; `fromGh`: it can come from `gh auth token`). A kind may give its secret to more sbx services (Copilot: `github` too, with `api.github.com` and `github.com` in its `bindings`). |
270+| `Kinds()` | The catalogue, in order: `{id, title, icon, agent, kit, program, service, keyUrl, token, fromGh, signIn}` (`signIn`: the program to run in the agent's terminal to sign in with an account — Claude: `claude`, then `/login`, issue #105) (`token`: the secret is a token of the user's account, not an API key — Copilot; the assistant says "token"; `fromGh`: it can come from `gh auth token`). A kind may give its secret to more sbx services (Copilot: `github` too, with `api.github.com` and `github.com` in its `bindings`). |
271271 | `Check(kind)` | `sbx is not installed` when sbx cannot be found (`sbx` in PATH, `/usr/local/bin`, `/opt/homebrew/bin`). Returns `{hasKey, name, agentsFolder, taken[], gh, ghSignedIn}` (`hasKey`: every service of the kind holds a secret; `gh`, `ghSignedIn`: for a kind with `fromGh`, whether gh is installed and has a token) (`taken`: the names used by an agent, a folder or a sandbox, issue #99): whether `sbx secret ls --service <service>` shows a global secret, and the first free name among `<kind>`, `<kind>-2`… — free as an agent of the configuration, a folder of the agents' folder and a sandbox (`sbx ls -q`). |
272272 | `SetKey(kind, key)` | `sbx secret set <service>` for each service of the kind, with the key on its standard input — never in its arguments, a file or a log; an error never repeats it. Global: every sandbox gets it. |
273273 | `Login()` | Runs `sbx login` (issue #97) — or joins the one in progress — and returns once sbx printed its device code and URL, 20 seconds at most: `{code, url, done, user, error, output[]}`. The code is the first `XXXX-XXXX`, the URL the first `https://…` naming `login`; `output` keeps every line for when sbx prints something else. Its standard input is empty: a question asked on the keyboard gets no answer. |
@@ -47,7 +47,7 @@ The Go names and types are in `internal/events`; the TypeScript constants and ty
47 47
48 | Service | Method | Effect |48 | Service | Method | Effect |
49 | --- | --- | --- |49 | --- | --- | --- |
50-| `AgentService` | `List()` | Every agent with `name, title, icon, description, state, error, outdated, runtime, canStopSandbox, canRemoveSandbox` (and, while starting, `step, since` as `agent:progress` gives them), in configuration order. |50+| `AgentService` | `List()` | Every agent with `name, title, icon, description, state, error, outdated, runtime, canStopSandbox, canRemoveSandbox` (and, while starting, `step, since` as `agent:progress` gives them; `signIn`: the program its terminal runs to sign in with an account instead of an API key — `claude` for `claude-agent-acp` in an sbx sandbox, issues #105 and #106), in configuration order. |
51 | | `Start(name)`, `Stop(name)`, `Restart(name)` | As in the transitions above; an error is returned to the interface. A start first recreates a missing sandbox when `runtime.lifecycle.create` is set. |51 | | `Start(name)`, `Stop(name)`, `Restart(name)` | As in the transitions above; an error is returned to the interface. A start first recreates a missing sandbox when `runtime.lifecycle.create` is set. |
52 | | `StopSandbox(name)`, `RemoveSandbox(name)` | Stops the agent, then runs `runtime.lifecycle.stop` or `remove` (container or sandbox); the output goes to the agent's log. |52 | | `StopSandbox(name)`, `RemoveSandbox(name)` | Stops the agent, then runs `runtime.lifecycle.stop` or `remove` (container or sandbox); the output goes to the agent's log. |
53 | | `Unload(name)` | Has a running, idle agent that announced the `unload` command unload its model (issue #51): `/unload` is sent in a session of its own, which no conversation shows; the answer goes to the agent's log as `unload: …` lines. Errors: unknown agent, `the agent is not running…`, `the agent is answering…`, `this agent cannot unload its model…`. |53 | | `Unload(name)` | Has a running, idle agent that announced the `unload` command unload its model (issue #51): `/unload` is sent in a session of its own, which no conversation shows; the answer goes to the agent's log as `unload: …` lines. Errors: unknown agent, `the agent is not running…`, `the agent is answering…`, `this agent cannot unload its model…`. |
@@ -267,7 +267,7 @@ The assistant that creates an agent in a Docker Sandbox (issue #96, [How to crea
267 267
268 | Method | Effect |268 | Method | Effect |
269 | --- | --- |269 | --- | --- |
270-| `Kinds()` | The catalogue, in order: `{id, title, icon, agent, kit, program, service, keyUrl, token, fromGh}` (`token`: the secret is a token of the user's account, not an API key — Copilot; the assistant says "token"; `fromGh`: it can come from `gh auth token`). A kind may give its secret to more sbx services (Copilot: `github` too, with `api.github.com` and `github.com` in its `bindings`). |270+| `Kinds()` | The catalogue, in order: `{id, title, icon, agent, kit, program, service, keyUrl, token, fromGh, signIn}` (`signIn`: the program to run in the agent's terminal to sign in with an account — Claude: `claude`, then `/login`, issue #105) (`token`: the secret is a token of the user's account, not an API key — Copilot; the assistant says "token"; `fromGh`: it can come from `gh auth token`). A kind may give its secret to more sbx services (Copilot: `github` too, with `api.github.com` and `github.com` in its `bindings`). |
271 | `Check(kind)` | `sbx is not installed` when sbx cannot be found (`sbx` in PATH, `/usr/local/bin`, `/opt/homebrew/bin`). Returns `{hasKey, name, agentsFolder, taken[], gh, ghSignedIn}` (`hasKey`: every service of the kind holds a secret; `gh`, `ghSignedIn`: for a kind with `fromGh`, whether gh is installed and has a token) (`taken`: the names used by an agent, a folder or a sandbox, issue #99): whether `sbx secret ls --service <service>` shows a global secret, and the first free name among `<kind>`, `<kind>-2`… — free as an agent of the configuration, a folder of the agents' folder and a sandbox (`sbx ls -q`). |271 | `Check(kind)` | `sbx is not installed` when sbx cannot be found (`sbx` in PATH, `/usr/local/bin`, `/opt/homebrew/bin`). Returns `{hasKey, name, agentsFolder, taken[], gh, ghSignedIn}` (`hasKey`: every service of the kind holds a secret; `gh`, `ghSignedIn`: for a kind with `fromGh`, whether gh is installed and has a token) (`taken`: the names used by an agent, a folder or a sandbox, issue #99): whether `sbx secret ls --service <service>` shows a global secret, and the first free name among `<kind>`, `<kind>-2`… — free as an agent of the configuration, a folder of the agents' folder and a sandbox (`sbx ls -q`). |
272 | `SetKey(kind, key)` | `sbx secret set <service>` for each service of the kind, with the key on its standard input — never in its arguments, a file or a log; an error never repeats it. Global: every sandbox gets it. |272 | `SetKey(kind, key)` | `sbx secret set <service>` for each service of the kind, with the key on its standard input — never in its arguments, a file or a log; an error never repeats it. Global: every sandbox gets it. |
273 | `Login()` | Runs `sbx login` (issue #97) — or joins the one in progress — and returns once sbx printed its device code and URL, 20 seconds at most: `{code, url, done, user, error, output[]}`. The code is the first `XXXX-XXXX`, the URL the first `https://…` naming `login`; `output` keeps every line for when sbx prints something else. Its standard input is empty: a question asked on the keyboard gets no answer. |273 | `Login()` | Runs `sbx login` (issue #97) — or joins the one in progress — and returns once sbx printed its device code and URL, 20 seconds at most: `{code, url, done, user, error, output[]}`. The code is the first `XXXX-XXXX`, the URL the first `https://…` naming `login`; `output` keeps every line for when sbx prints something else. Its standard input is empty: a question asked on the keyboard gets no answer. |
modified docs/fr/how-to/creer-un-agent-dans-une-sandbox.md +1 -0
@@ -19,6 +19,7 @@ Le dossier de l'agent est créé dans le dossier **Sidekicks-Agents** de vos Doc
1919 - **« sbx a besoin que vous soyez connecté à Docker »** : cliquez sur **Se connecter à Docker**. Sidekicks affiche un code : cliquez sur **Ouvrir la page de connexion**, vérifiez que la page montre le même code, confirmez et connectez-vous avec votre compte Docker (un compte gratuit suffit). L'assistant continue tout seul une fois la connexion faite. Le même bouton apparaît sous l'erreur d'un agent sbx qui ne démarre pas. Si cela ne fonctionne pas, tapez une fois `sbx login` dans un terminal.
2020 - **« Un autre agent porte déjà ce nom »**, **« Un dossier porte déjà ce nom »** ou **« Une sandbox porte déjà ce nom »** : changez le **Nom** et cliquez de nouveau sur **Ajouter l'agent**. Un dossier ou une sandbox existants ne sont jamais modifiés.
2121 - **« Pas encore de clé … dans sbx »** (après **Plus tard**) : l'agent ne peut pas répondre. Relancez l'assistant pour enregistrer la clé, ou tapez `sbx secret set anthropic` (`google` pour Gemini, `openai` pour Codex, `mistral` pour Vibe, `copilot` et `github` pour Copilot — par exemple `sbx secret set copilot --command 'gh auth token'` puis la même avec `github`) dans un terminal.
22+- **Claude sans clé d'API** (issues #105 et #106) : cliquez sur **Plus tard** et connectez-vous plutôt avec votre compte Claude. L'assistant le dit. À la première réponse, Claude se termine par « L'agent n'est pas connecté » : Sidekicks ouvre le **Terminal** de l'agent, lance `claude` dans sa sandbox et vous dit quoi faire — tapez `/login`, choisissez votre compte et suivez les étapes (copiez le lien dans votre navigateur si on vous le demande). Cliquez ensuite sur **Je suis connecté : redémarrer l'agent** : vous revenez à la conversation ; renvoyez votre message. Si vous avez fermé ce terminal, **Se connecter dans son terminal** sous l'erreur le rouvre.
2223
2324 ## Variantes
2425
@@ -19,6 +19,7 @@ Le dossier de l'agent est créé dans le dossier **Sidekicks-Agents** de vos Doc
19 - **« sbx a besoin que vous soyez connecté à Docker »** : cliquez sur **Se connecter à Docker**. Sidekicks affiche un code : cliquez sur **Ouvrir la page de connexion**, vérifiez que la page montre le même code, confirmez et connectez-vous avec votre compte Docker (un compte gratuit suffit). L'assistant continue tout seul une fois la connexion faite. Le même bouton apparaît sous l'erreur d'un agent sbx qui ne démarre pas. Si cela ne fonctionne pas, tapez une fois `sbx login` dans un terminal.19 - **« sbx a besoin que vous soyez connecté à Docker »** : cliquez sur **Se connecter à Docker**. Sidekicks affiche un code : cliquez sur **Ouvrir la page de connexion**, vérifiez que la page montre le même code, confirmez et connectez-vous avec votre compte Docker (un compte gratuit suffit). L'assistant continue tout seul une fois la connexion faite. Le même bouton apparaît sous l'erreur d'un agent sbx qui ne démarre pas. Si cela ne fonctionne pas, tapez une fois `sbx login` dans un terminal.
20 - **« Un autre agent porte déjà ce nom »**, **« Un dossier porte déjà ce nom »** ou **« Une sandbox porte déjà ce nom »** : changez le **Nom** et cliquez de nouveau sur **Ajouter l'agent**. Un dossier ou une sandbox existants ne sont jamais modifiés.20 - **« Un autre agent porte déjà ce nom »**, **« Un dossier porte déjà ce nom »** ou **« Une sandbox porte déjà ce nom »** : changez le **Nom** et cliquez de nouveau sur **Ajouter l'agent**. Un dossier ou une sandbox existants ne sont jamais modifiés.
21 - **« Pas encore de clé … dans sbx »** (après **Plus tard**) : l'agent ne peut pas répondre. Relancez l'assistant pour enregistrer la clé, ou tapez `sbx secret set anthropic` (`google` pour Gemini, `openai` pour Codex, `mistral` pour Vibe, `copilot` et `github` pour Copilot — par exemple `sbx secret set copilot --command 'gh auth token'` puis la même avec `github`) dans un terminal.21 - **« Pas encore de clé … dans sbx »** (après **Plus tard**) : l'agent ne peut pas répondre. Relancez l'assistant pour enregistrer la clé, ou tapez `sbx secret set anthropic` (`google` pour Gemini, `openai` pour Codex, `mistral` pour Vibe, `copilot` et `github` pour Copilot — par exemple `sbx secret set copilot --command 'gh auth token'` puis la même avec `github`) dans un terminal.
22+- **Claude sans clé d'API** (issues #105 et #106) : cliquez sur **Plus tard** et connectez-vous plutôt avec votre compte Claude. L'assistant le dit. À la première réponse, Claude se termine par « L'agent n'est pas connecté » : Sidekicks ouvre le **Terminal** de l'agent, lance `claude` dans sa sandbox et vous dit quoi faire — tapez `/login`, choisissez votre compte et suivez les étapes (copiez le lien dans votre navigateur si on vous le demande). Cliquez ensuite sur **Je suis connecté : redémarrer l'agent** : vous revenez à la conversation ; renvoyez votre message. Si vous avez fermé ce terminal, **Se connecter dans son terminal** sous l'erreur le rouvre.
22 23
23 ## Variantes24 ## Variantes
24 25
modified docs/fr/reference/agents-et-evenements.md +2 -2
@@ -47,7 +47,7 @@ Les noms et types Go sont dans `internal/events` ; les constantes et types TypeS
4747
4848 | Service | Méthode | Effet |
4949 | --- | --- | --- |
50-| `AgentService` | `List()` | Tous les agents avec `name, title, icon, description, state, error, outdated, runtime, canStopSandbox, canRemoveSandbox` (et, pendant un démarrage, `step, since` comme les donne `agent:progress`), dans l'ordre de la configuration. |
50+| `AgentService` | `List()` | Tous les agents avec `name, title, icon, description, state, error, outdated, runtime, canStopSandbox, canRemoveSandbox` (et, pendant un démarrage, `step, since` comme les donne `agent:progress` ; `signIn` : le programme que son terminal lance pour se connecter avec un compte au lieu d'une clé d'API — `claude` pour `claude-agent-acp` dans une sandbox sbx, issues #105 et #106), dans l'ordre de la configuration. |
5151 | | `Start(name)`, `Stop(name)`, `Restart(name)` | Comme dans les transitions ci-dessus ; une erreur est renvoyée à l'interface. Un démarrage recrée d'abord une sandbox absente si `runtime.lifecycle.create` est défini. |
5252 | | `StopSandbox(name)`, `RemoveSandbox(name)` | Arrête l'agent, puis lance `runtime.lifecycle.stop` ou `remove` (conteneur ou sandbox) ; la sortie va dans le journal de l'agent. |
5353 | | `Unload(name)` | Demande à un agent en marche et inactif, qui a annoncé la commande `unload`, de décharger son modèle (ticket #51) : `/unload` est envoyé dans une session à part, qu'aucune conversation ne montre ; la réponse va dans le journal de l'agent, en lignes `unload: …`. Erreurs : agent inconnu, `the agent is not running…`, `the agent is answering…`, `this agent cannot unload its model…`. |
@@ -267,7 +267,7 @@ L'assistant qui crée un agent dans une Docker Sandbox (issue #96, [Créer un ag
267267
268268 | Méthode | Effet |
269269 | --- | --- |
270-| `Kinds()` | Le catalogue, dans l'ordre : `{id, title, icon, agent, kit, program, service, keyUrl, token, fromGh}` (`token` : le secret est un jeton du compte de l'utilisateur, pas une clé d'API — Copilot ; l'assistant dit « jeton » ; `fromGh` : il peut venir de `gh auth token`). Un type peut donner son secret à d'autres services sbx (Copilot : `github` aussi, avec `api.github.com` et `github.com` dans ses `bindings`). |
270+| `Kinds()` | Le catalogue, dans l'ordre : `{id, title, icon, agent, kit, program, service, keyUrl, token, fromGh, signIn}` (`signIn` : le programme à lancer dans le terminal de l'agent pour se connecter avec un compte — Claude : `claude`, puis `/login`, issue #105) (`token` : le secret est un jeton du compte de l'utilisateur, pas une clé d'API — Copilot ; l'assistant dit « jeton » ; `fromGh` : il peut venir de `gh auth token`). Un type peut donner son secret à d'autres services sbx (Copilot : `github` aussi, avec `api.github.com` et `github.com` dans ses `bindings`). |
271271 | `Check(kind)` | `sbx is not installed` quand sbx est introuvable (`sbx` dans le PATH, `/usr/local/bin`, `/opt/homebrew/bin`). Renvoie `{hasKey, name, agentsFolder, taken[], gh, ghSignedIn}` (`taken` : les noms pris par un agent, un dossier ou une sandbox, issue #99 ; `hasKey` : chaque service du type a un secret ; `gh`, `ghSignedIn` : pour un type avec `fromGh`, si gh est installé et a un jeton) : si `sbx secret ls --service <service>` montre un secret global, et le premier nom libre parmi `<type>`, `<type>-2`… — libre comme agent de la configuration, dossier du dossier des agents et sandbox (`sbx ls -q`). |
272272 | `SetKey(kind, key)` | `sbx secret set <service>`, pour chaque service du type, avec la clé sur son entrée standard — jamais dans ses arguments, un fichier ou un journal ; une erreur ne la répète jamais. Globale : toutes les sandboxes l'ont. |
273273 | `Login()` | Lance `sbx login` (issue #97) — ou rejoint celui en cours — et revient dès que sbx a affiché son code et son adresse, 20 secondes au plus : `{code, url, done, user, error, output[]}`. Le code est le premier `XXXX-XXXX`, l'adresse le premier `https://…` qui contient `login` ; `output` garde chaque ligne pour le cas où sbx affiche autre chose. Son entrée standard est vide : une question posée au clavier n'a pas de réponse. |
@@ -47,7 +47,7 @@ Les noms et types Go sont dans `internal/events` ; les constantes et types TypeS
47 47
48 | Service | Méthode | Effet |48 | Service | Méthode | Effet |
49 | --- | --- | --- |49 | --- | --- | --- |
50-| `AgentService` | `List()` | Tous les agents avec `name, title, icon, description, state, error, outdated, runtime, canStopSandbox, canRemoveSandbox` (et, pendant un démarrage, `step, since` comme les donne `agent:progress`), dans l'ordre de la configuration. |50+| `AgentService` | `List()` | Tous les agents avec `name, title, icon, description, state, error, outdated, runtime, canStopSandbox, canRemoveSandbox` (et, pendant un démarrage, `step, since` comme les donne `agent:progress` ; `signIn` : le programme que son terminal lance pour se connecter avec un compte au lieu d'une clé d'API — `claude` pour `claude-agent-acp` dans une sandbox sbx, issues #105 et #106), dans l'ordre de la configuration. |
51 | | `Start(name)`, `Stop(name)`, `Restart(name)` | Comme dans les transitions ci-dessus ; une erreur est renvoyée à l'interface. Un démarrage recrée d'abord une sandbox absente si `runtime.lifecycle.create` est défini. |51 | | `Start(name)`, `Stop(name)`, `Restart(name)` | Comme dans les transitions ci-dessus ; une erreur est renvoyée à l'interface. Un démarrage recrée d'abord une sandbox absente si `runtime.lifecycle.create` est défini. |
52 | | `StopSandbox(name)`, `RemoveSandbox(name)` | Arrête l'agent, puis lance `runtime.lifecycle.stop` ou `remove` (conteneur ou sandbox) ; la sortie va dans le journal de l'agent. |52 | | `StopSandbox(name)`, `RemoveSandbox(name)` | Arrête l'agent, puis lance `runtime.lifecycle.stop` ou `remove` (conteneur ou sandbox) ; la sortie va dans le journal de l'agent. |
53 | | `Unload(name)` | Demande à un agent en marche et inactif, qui a annoncé la commande `unload`, de décharger son modèle (ticket #51) : `/unload` est envoyé dans une session à part, qu'aucune conversation ne montre ; la réponse va dans le journal de l'agent, en lignes `unload: …`. Erreurs : agent inconnu, `the agent is not running…`, `the agent is answering…`, `this agent cannot unload its model…`. |53 | | `Unload(name)` | Demande à un agent en marche et inactif, qui a annoncé la commande `unload`, de décharger son modèle (ticket #51) : `/unload` est envoyé dans une session à part, qu'aucune conversation ne montre ; la réponse va dans le journal de l'agent, en lignes `unload: …`. Erreurs : agent inconnu, `the agent is not running…`, `the agent is answering…`, `this agent cannot unload its model…`. |
@@ -267,7 +267,7 @@ L'assistant qui crée un agent dans une Docker Sandbox (issue #96, [Créer un ag
267 267
268 | Méthode | Effet |268 | Méthode | Effet |
269 | --- | --- |269 | --- | --- |
270-| `Kinds()` | Le catalogue, dans l'ordre : `{id, title, icon, agent, kit, program, service, keyUrl, token, fromGh}` (`token` : le secret est un jeton du compte de l'utilisateur, pas une clé d'API — Copilot ; l'assistant dit « jeton » ; `fromGh` : il peut venir de `gh auth token`). Un type peut donner son secret à d'autres services sbx (Copilot : `github` aussi, avec `api.github.com` et `github.com` dans ses `bindings`). |270+| `Kinds()` | Le catalogue, dans l'ordre : `{id, title, icon, agent, kit, program, service, keyUrl, token, fromGh, signIn}` (`signIn` : le programme à lancer dans le terminal de l'agent pour se connecter avec un compte — Claude : `claude`, puis `/login`, issue #105) (`token` : le secret est un jeton du compte de l'utilisateur, pas une clé d'API — Copilot ; l'assistant dit « jeton » ; `fromGh` : il peut venir de `gh auth token`). Un type peut donner son secret à d'autres services sbx (Copilot : `github` aussi, avec `api.github.com` et `github.com` dans ses `bindings`). |
271 | `Check(kind)` | `sbx is not installed` quand sbx est introuvable (`sbx` dans le PATH, `/usr/local/bin`, `/opt/homebrew/bin`). Renvoie `{hasKey, name, agentsFolder, taken[], gh, ghSignedIn}` (`taken` : les noms pris par un agent, un dossier ou une sandbox, issue #99 ; `hasKey` : chaque service du type a un secret ; `gh`, `ghSignedIn` : pour un type avec `fromGh`, si gh est installé et a un jeton) : si `sbx secret ls --service <service>` montre un secret global, et le premier nom libre parmi `<type>`, `<type>-2`… — libre comme agent de la configuration, dossier du dossier des agents et sandbox (`sbx ls -q`). |271 | `Check(kind)` | `sbx is not installed` quand sbx est introuvable (`sbx` dans le PATH, `/usr/local/bin`, `/opt/homebrew/bin`). Renvoie `{hasKey, name, agentsFolder, taken[], gh, ghSignedIn}` (`taken` : les noms pris par un agent, un dossier ou une sandbox, issue #99 ; `hasKey` : chaque service du type a un secret ; `gh`, `ghSignedIn` : pour un type avec `fromGh`, si gh est installé et a un jeton) : si `sbx secret ls --service <service>` montre un secret global, et le premier nom libre parmi `<type>`, `<type>-2`… — libre comme agent de la configuration, dossier du dossier des agents et sandbox (`sbx ls -q`). |
272 | `SetKey(kind, key)` | `sbx secret set <service>`, pour chaque service du type, avec la clé sur son entrée standard — jamais dans ses arguments, un fichier ou un journal ; une erreur ne la répète jamais. Globale : toutes les sandboxes l'ont. |272 | `SetKey(kind, key)` | `sbx secret set <service>`, pour chaque service du type, avec la clé sur son entrée standard — jamais dans ses arguments, un fichier ou un journal ; une erreur ne la répète jamais. Globale : toutes les sandboxes l'ont. |
273 | `Login()` | Lance `sbx login` (issue #97) — ou rejoint celui en cours — et revient dès que sbx a affiché son code et son adresse, 20 secondes au plus : `{code, url, done, user, error, output[]}`. Le code est le premier `XXXX-XXXX`, l'adresse le premier `https://…` qui contient `login` ; `output` garde chaque ligne pour le cas où sbx affiche autre chose. Son entrée standard est vide : une question posée au clavier n'a pas de réponse. |273 | `Login()` | Lance `sbx login` (issue #97) — ou rejoint celui en cours — et revient dès que sbx a affiché son code et son adresse, 20 secondes au plus : `{code, url, done, user, error, output[]}`. Le code est le premier `XXXX-XXXX`, l'adresse le premier `https://…` qui contient `login` ; `output` garde chaque ligne pour le cas où sbx affiche autre chose. Son entrée standard est vide : une question posée au clavier n'a pas de réponse. |
modified docs/release-notes/v1.6.0.fr.md +6 -1
@@ -2,7 +2,7 @@
22
33 [English](https://rickub.com/bots-garden/sidekicks/blob/v1.6.0/docs/release-notes/v1.6.0.md)
44
5-Sidekicks 1.6.0 ajoute GitHub Copilot aux agents que crée l'assistant des sandboxes.
5+Sidekicks 1.6.0 ajoute GitHub Copilot aux agents que crée l'assistant des sandboxes, et permet à un agent Claude de se connecter avec votre compte Claude au lieu d'une clé d'API.
66
77 ## Nouveautés
88
@@ -12,6 +12,11 @@ Sidekicks 1.6.0 ajoute GitHub Copilot aux agents que crée l'assistant des sandb
1212 - Copilot passe par votre compte GitHub : au lieu d'une clé d'API, il lui faut un **jeton GitHub** autorisé à utiliser Copilot, et un abonnement Copilot. Si l'outil GitHub (gh) est installé, **Utiliser mon compte GitHub** prend son jeton (`gh auth token`) sans l'afficher — et **Se connecter à GitHub** lance `gh auth login` pour vous quand il n'est pas encore connecté : Sidekicks affiche le code et ouvre la page où vous le confirmez. Sans gh, collez un jeton « fine-grained » avec la permission **Copilot Requests**. sbx l'enregistre pour Copilot (`copilot`) et pour `git` et `gh` dans la sandbox (`github`) : l'agent peut travailler sur vos dépôts GitHub avec votre compte. Le jeton n'est jamais écrit dans un fichier ni dans un journal.
1313 - L'assistant « Ajouter un agent » reconnaît aussi une sandbox de Copilot (`agent: copilot` : `copilot --acp --stdio`).
1414
15+### Claude avec votre compte Claude (#105, #106)
16+
17+- Dans l'assistant des sandboxes, Claude n'exige plus de clé d'API : cliquez sur **Plus tard**, et l'assistant explique que vous vous connecterez avec votre compte Claude par `/login` dans le terminal de l'agent.
18+- Quand un agent Claude répond « Authentication required », Sidekicks ouvre son **Terminal**, lance `claude` dans la sandbox et vous dit de taper `/login`. **Je suis connecté : redémarrer l'agent** vous ramène à la conversation ; **Se connecter dans son terminal**, sous l'erreur, le rouvre.
19+
1520 → [Créer un agent Claude, Gemini, Codex, Vibe ou Copilot dans une sandbox](https://rickub.com/bots-garden/sidekicks/blob/v1.6.0/docs/fr/how-to/creer-un-agent-dans-une-sandbox.md)
1621
1722 ## Bon à savoir pour la mise à jour
@@ -2,7 +2,7 @@
2 2
3 [English](https://rickub.com/bots-garden/sidekicks/blob/v1.6.0/docs/release-notes/v1.6.0.md)3 [English](https://rickub.com/bots-garden/sidekicks/blob/v1.6.0/docs/release-notes/v1.6.0.md)
4 4
5-Sidekicks 1.6.0 ajoute GitHub Copilot aux agents que crée l'assistant des sandboxes.5+Sidekicks 1.6.0 ajoute GitHub Copilot aux agents que crée l'assistant des sandboxes, et permet à un agent Claude de se connecter avec votre compte Claude au lieu d'une clé d'API.
6 6
7 ## Nouveautés7 ## Nouveautés
8 8
@@ -12,6 +12,11 @@ Sidekicks 1.6.0 ajoute GitHub Copilot aux agents que crée l'assistant des sandb
12 - Copilot passe par votre compte GitHub : au lieu d'une clé d'API, il lui faut un **jeton GitHub** autorisé à utiliser Copilot, et un abonnement Copilot. Si l'outil GitHub (gh) est installé, **Utiliser mon compte GitHub** prend son jeton (`gh auth token`) sans l'afficher — et **Se connecter à GitHub** lance `gh auth login` pour vous quand il n'est pas encore connecté : Sidekicks affiche le code et ouvre la page où vous le confirmez. Sans gh, collez un jeton « fine-grained » avec la permission **Copilot Requests**. sbx l'enregistre pour Copilot (`copilot`) et pour `git` et `gh` dans la sandbox (`github`) : l'agent peut travailler sur vos dépôts GitHub avec votre compte. Le jeton n'est jamais écrit dans un fichier ni dans un journal.12 - Copilot passe par votre compte GitHub : au lieu d'une clé d'API, il lui faut un **jeton GitHub** autorisé à utiliser Copilot, et un abonnement Copilot. Si l'outil GitHub (gh) est installé, **Utiliser mon compte GitHub** prend son jeton (`gh auth token`) sans l'afficher — et **Se connecter à GitHub** lance `gh auth login` pour vous quand il n'est pas encore connecté : Sidekicks affiche le code et ouvre la page où vous le confirmez. Sans gh, collez un jeton « fine-grained » avec la permission **Copilot Requests**. sbx l'enregistre pour Copilot (`copilot`) et pour `git` et `gh` dans la sandbox (`github`) : l'agent peut travailler sur vos dépôts GitHub avec votre compte. Le jeton n'est jamais écrit dans un fichier ni dans un journal.
13 - L'assistant « Ajouter un agent » reconnaît aussi une sandbox de Copilot (`agent: copilot` : `copilot --acp --stdio`).13 - L'assistant « Ajouter un agent » reconnaît aussi une sandbox de Copilot (`agent: copilot` : `copilot --acp --stdio`).
14 14
15+### Claude avec votre compte Claude (#105, #106)
16+
17+- Dans l'assistant des sandboxes, Claude n'exige plus de clé d'API : cliquez sur **Plus tard**, et l'assistant explique que vous vous connecterez avec votre compte Claude par `/login` dans le terminal de l'agent.
18+- Quand un agent Claude répond « Authentication required », Sidekicks ouvre son **Terminal**, lance `claude` dans la sandbox et vous dit de taper `/login`. **Je suis connecté : redémarrer l'agent** vous ramène à la conversation ; **Se connecter dans son terminal**, sous l'erreur, le rouvre.
19+
15 → [Créer un agent Claude, Gemini, Codex, Vibe ou Copilot dans une sandbox](https://rickub.com/bots-garden/sidekicks/blob/v1.6.0/docs/fr/how-to/creer-un-agent-dans-une-sandbox.md)20 → [Créer un agent Claude, Gemini, Codex, Vibe ou Copilot dans une sandbox](https://rickub.com/bots-garden/sidekicks/blob/v1.6.0/docs/fr/how-to/creer-un-agent-dans-une-sandbox.md)
16 21
17 ## Bon à savoir pour la mise à jour22 ## Bon à savoir pour la mise à jour
modified docs/release-notes/v1.6.0.md +6 -1
@@ -2,7 +2,7 @@
22
33 [Français](https://rickub.com/bots-garden/sidekicks/blob/v1.6.0/docs/release-notes/v1.6.0.fr.md)
44
5-Sidekicks 1.6.0 adds GitHub Copilot to the agents the sandbox assistant creates.
5+Sidekicks 1.6.0 adds GitHub Copilot to the agents the sandbox assistant creates, and lets a Claude agent sign in with your Claude account instead of an API key.
66
77 ## What's new
88
@@ -12,6 +12,11 @@ Sidekicks 1.6.0 adds GitHub Copilot to the agents the sandbox assistant creates.
1212 - Copilot uses your GitHub account: instead of an API key, it needs a **GitHub token** allowed to use Copilot, and a Copilot subscription. If the GitHub CLI is installed, **Use my GitHub account** takes its token (`gh auth token`) without showing it — and **Sign in to GitHub** runs `gh auth login` for you when it is not signed in yet: Sidekicks shows the code and opens the page where you confirm it. Without gh, paste a fine-grained token with the **Copilot Requests** permission. sbx stores it for Copilot (`copilot`) and for `git` and `gh` in the sandbox (`github`): the agent can work on your GitHub repositories with your account. The token is never written in a file nor in a log.
1313 - The "Add an agent" assistant also recognises a sandbox of Copilot (`agent: copilot`: `copilot --acp --stdio`).
1414
15+### Claude with your Claude account (#105, #106)
16+
17+- In the sandbox assistant, Claude no longer needs an API key: click **Later**, and the assistant explains that you will sign in with your Claude account with `/login` in the agent's terminal.
18+- When a Claude agent answers "Authentication required", Sidekicks opens its **Terminal**, runs `claude` in the sandbox and tells you to type `/login`. **I am signed in: restart the agent** brings you back to the conversation; **Sign in in its terminal**, under the error, opens it again.
19+
1520 → [Create a Claude, Gemini, Codex, Vibe or Copilot agent in a sandbox](https://rickub.com/bots-garden/sidekicks/blob/v1.6.0/docs/en/how-to/create-an-agent-in-a-sandbox.md)
1621
1722 ## Worth knowing when upgrading
@@ -2,7 +2,7 @@
2 2
3 [Français](https://rickub.com/bots-garden/sidekicks/blob/v1.6.0/docs/release-notes/v1.6.0.fr.md)3 [Français](https://rickub.com/bots-garden/sidekicks/blob/v1.6.0/docs/release-notes/v1.6.0.fr.md)
4 4
5-Sidekicks 1.6.0 adds GitHub Copilot to the agents the sandbox assistant creates.5+Sidekicks 1.6.0 adds GitHub Copilot to the agents the sandbox assistant creates, and lets a Claude agent sign in with your Claude account instead of an API key.
6 6
7 ## What's new7 ## What's new
8 8
@@ -12,6 +12,11 @@ Sidekicks 1.6.0 adds GitHub Copilot to the agents the sandbox assistant creates.
12 - Copilot uses your GitHub account: instead of an API key, it needs a **GitHub token** allowed to use Copilot, and a Copilot subscription. If the GitHub CLI is installed, **Use my GitHub account** takes its token (`gh auth token`) without showing it — and **Sign in to GitHub** runs `gh auth login` for you when it is not signed in yet: Sidekicks shows the code and opens the page where you confirm it. Without gh, paste a fine-grained token with the **Copilot Requests** permission. sbx stores it for Copilot (`copilot`) and for `git` and `gh` in the sandbox (`github`): the agent can work on your GitHub repositories with your account. The token is never written in a file nor in a log.12 - Copilot uses your GitHub account: instead of an API key, it needs a **GitHub token** allowed to use Copilot, and a Copilot subscription. If the GitHub CLI is installed, **Use my GitHub account** takes its token (`gh auth token`) without showing it — and **Sign in to GitHub** runs `gh auth login` for you when it is not signed in yet: Sidekicks shows the code and opens the page where you confirm it. Without gh, paste a fine-grained token with the **Copilot Requests** permission. sbx stores it for Copilot (`copilot`) and for `git` and `gh` in the sandbox (`github`): the agent can work on your GitHub repositories with your account. The token is never written in a file nor in a log.
13 - The "Add an agent" assistant also recognises a sandbox of Copilot (`agent: copilot`: `copilot --acp --stdio`).13 - The "Add an agent" assistant also recognises a sandbox of Copilot (`agent: copilot`: `copilot --acp --stdio`).
14 14
15+### Claude with your Claude account (#105, #106)
16+
17+- In the sandbox assistant, Claude no longer needs an API key: click **Later**, and the assistant explains that you will sign in with your Claude account with `/login` in the agent's terminal.
18+- When a Claude agent answers "Authentication required", Sidekicks opens its **Terminal**, runs `claude` in the sandbox and tells you to type `/login`. **I am signed in: restart the agent** brings you back to the conversation; **Sign in in its terminal**, under the error, opens it again.
19+
15 → [Create a Claude, Gemini, Codex, Vibe or Copilot agent in a sandbox](https://rickub.com/bots-garden/sidekicks/blob/v1.6.0/docs/en/how-to/create-an-agent-in-a-sandbox.md)20 → [Create a Claude, Gemini, Codex, Vibe or Copilot agent in a sandbox](https://rickub.com/bots-garden/sidekicks/blob/v1.6.0/docs/en/how-to/create-an-agent-in-a-sandbox.md)
16 21
17 ## Worth knowing when upgrading22 ## Worth knowing when upgrading
modified frontend/bindings/git.rickub.com/bots-garden/sidekicks/internal/agents/models.ts +6 -0
@@ -58,4 +58,10 @@ export interface Status {
5858 */
5959 "step"?: string;
6060 "since"?: number;
61+
62+ /**
63+ * SignIn is the program its terminal runs to sign in with an account
64+ * instead of an API key ("claude", issues #105 and #106), or "".
65+ */
66+ "signIn"?: string;
6167 }
@@ -58,4 +58,10 @@ export interface Status {
58 */58 */
59 "step"?: string;59 "step"?: string;
60 "since"?: number;60 "since"?: number;
61+
62+ /**
63+ * SignIn is the program its terminal runs to sign in with an account
64+ * instead of an API key ("claude", issues #105 and #106), or "".
65+ */
66+ "signIn"?: string;
61 }67 }
modified frontend/bindings/git.rickub.com/bots-garden/sidekicks/internal/sbxcreate/models.ts +6 -0
@@ -48,6 +48,12 @@ export interface Kind {
4848 * (`gh auth token`, issue #103): the assistant offers it.
4949 */
5050 "fromGh": boolean;
51+
52+ /**
53+ * SignIn is the program to run in the agent's terminal to sign in with
54+ * an account instead of the key ("claude": then /login, issue #105).
55+ */
56+ "signIn": string;
5157 }
5258
5359 /**
@@ -48,6 +48,12 @@ export interface Kind {
48 * (`gh auth token`, issue #103): the assistant offers it.48 * (`gh auth token`, issue #103): the assistant offers it.
49 */49 */
50 "fromGh": boolean;50 "fromGh": boolean;
51+
52+ /**
53+ * SignIn is the program to run in the agent's terminal to sign in with
54+ * an account instead of the key ("claude": then /login, issue #105).
55+ */
56+ "signIn": string;
51 }57 }
52 58
53 /**59 /**
modified frontend/src/lib/agent/AgentView.svelte +26 -7
@@ -11,7 +11,7 @@
1111 import { onMount } from 'svelte'
1212 import { AgentService, WorkspaceService } from '../../../bindings/git.rickub.com/bots-garden/sidekicks/internal/app'
1313 import { hasMessage, t, type MessageKey } from '../i18n/index.svelte'
14- import { act, appState, loadCommands, openDirect } from '../state.svelte'
14+ import { act, appState, loadCommands, openDirect, signedIn } from '../state.svelte'
1515 import ActionError from '../chat/ActionError.svelte'
1616 import AgentAvatar from './AgentAvatar.svelte'
1717 import AgentLog from './AgentLog.svelte'
@@ -61,6 +61,12 @@
6161 if (next === 'terminal' && terminals.length === 0) newTerminal(name)
6262 }
6363
64+ // Signing in from the terminal (issue #106): the Terminal tab, where the
65+ // sign-in program already runs.
66+ $effect(() => {
67+ if (appState.terminalRequest > 0 && appState.signInAgent === name) show('terminal')
68+ })
69+
6470 onMount(async () => {
6571 void loadCommands(name)
6672 const info = await WorkspaceService.Info(name)
@@ -77,9 +83,11 @@
7783 <h2><AgentAvatar icon={agent.icon} title={agent.title} name={agent.name} size={22} /> {agent.title}</h2>
7884 <p class="meta">
7985 <span class="dot {agent.state}" aria-hidden="true"></span>
80- {hasMessage(stateKey) ? t(stateKey as MessageKey) : agent.state}
81- {#if location}· {location}{/if}
82- · {channels.length ? t('workspace.channels', { channels: channels.join(', ') }) : t('workspace.noChannel')}
86+ <span class="facts">
87+ {hasMessage(stateKey) ? t(stateKey as MessageKey) : agent.state}
88+ {#if location}· {location}{/if}
89+ · {channels.length ? t('workspace.channels', { channels: channels.join(', ') }) : t('workspace.noChannel')}
90+ </span>
8391 </p>
8492 </div>
8593 <button onclick={() => openDirect(name)}>{t('workspace.conversation')}</button>
@@ -127,6 +135,12 @@
127135 </div>
128136 {#if tab === 'terminal'}
129137 <div class="pane terminals">
138+ {#if appState.signInAgent === name}
139+ <div class="sign-in" role="status">
140+ <p>{t('signIn.terminal', { agent: agent.title, program: agent.signIn ?? '' })}</p>
141+ <button type="button" class="primary" onclick={() => signedIn(name)}>{t('signIn.done')}</button>
142+ </div>
143+ {/if}
130144 <div class="terminal-tabs" role="tablist" aria-label={t('terminal.list')}>
131145 {#each terminals as session (session.key)}
132146 <span class="terminal-tab" class:active={session.key === current?.key} class:ended={session.ended}>
@@ -159,9 +173,11 @@
159173 .agent { height: 100%; display: flex; flex-direction: column; background: var(--bg); }
160174 header { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-bottom: 1px solid var(--border); }
161175 .identity { flex: 1; min-width: 0; }
162- h2 { margin: 0; font-size: 15px; }
163- .meta { margin: 2px 0 0; color: var(--muted); font-size: 12px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
164- .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
176+ h2 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
177+ .meta { margin: 2px 0 0; color: var(--muted); font-size: 12px; display: flex; gap: 6px; align-items: baseline; }
178+ /* The state, where it runs and its channels: wraps next to the dot, never under it. */
179+ .facts { flex: 1; min-width: 0; overflow-wrap: anywhere; }
180+ .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
165181 .dot.ready { background: var(--ok); }
166182 .dot.busy, .dot.starting { background: var(--warn); }
167183 .dot.error { background: var(--danger); }
@@ -189,4 +205,7 @@
189205 .terminal-pane { flex: 1; min-height: 0; }
190206 .no-terminal { color: var(--muted); font-size: 13px; }
191207 .error { color: var(--danger); font-size: 13px; margin: 6px 18px; }
208+ .sign-in { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--panel); }
209+ .sign-in p { margin: 0; flex: 1; min-width: 240px; }
210+ .sign-in .primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
192211 </style>
@@ -11,7 +11,7 @@
11 import { onMount } from 'svelte'11 import { onMount } from 'svelte'
12 import { AgentService, WorkspaceService } from '../../../bindings/git.rickub.com/bots-garden/sidekicks/internal/app'12 import { AgentService, WorkspaceService } from '../../../bindings/git.rickub.com/bots-garden/sidekicks/internal/app'
13 import { hasMessage, t, type MessageKey } from '../i18n/index.svelte'13 import { hasMessage, t, type MessageKey } from '../i18n/index.svelte'
14- import { act, appState, loadCommands, openDirect } from '../state.svelte'14+ import { act, appState, loadCommands, openDirect, signedIn } from '../state.svelte'
15 import ActionError from '../chat/ActionError.svelte'15 import ActionError from '../chat/ActionError.svelte'
16 import AgentAvatar from './AgentAvatar.svelte'16 import AgentAvatar from './AgentAvatar.svelte'
17 import AgentLog from './AgentLog.svelte'17 import AgentLog from './AgentLog.svelte'
@@ -61,6 +61,12 @@
61 if (next === 'terminal' && terminals.length === 0) newTerminal(name)61 if (next === 'terminal' && terminals.length === 0) newTerminal(name)
62 }62 }
63 63
64+ // Signing in from the terminal (issue #106): the Terminal tab, where the
65+ // sign-in program already runs.
66+ $effect(() => {
67+ if (appState.terminalRequest > 0 && appState.signInAgent === name) show('terminal')
68+ })
69+
64 onMount(async () => {70 onMount(async () => {
65 void loadCommands(name)71 void loadCommands(name)
66 const info = await WorkspaceService.Info(name)72 const info = await WorkspaceService.Info(name)
@@ -77,9 +83,11 @@
77 <h2><AgentAvatar icon={agent.icon} title={agent.title} name={agent.name} size={22} /> {agent.title}</h2>83 <h2><AgentAvatar icon={agent.icon} title={agent.title} name={agent.name} size={22} /> {agent.title}</h2>
78 <p class="meta">84 <p class="meta">
79 <span class="dot {agent.state}" aria-hidden="true"></span>85 <span class="dot {agent.state}" aria-hidden="true"></span>
80- {hasMessage(stateKey) ? t(stateKey as MessageKey) : agent.state}86+ <span class="facts">
81- {#if location}· {location}{/if}87+ {hasMessage(stateKey) ? t(stateKey as MessageKey) : agent.state}
82- · {channels.length ? t('workspace.channels', { channels: channels.join(', ') }) : t('workspace.noChannel')}88+ {#if location}· {location}{/if}
89+ · {channels.length ? t('workspace.channels', { channels: channels.join(', ') }) : t('workspace.noChannel')}
90+ </span>
83 </p>91 </p>
84 </div>92 </div>
85 <button onclick={() => openDirect(name)}>{t('workspace.conversation')}</button>93 <button onclick={() => openDirect(name)}>{t('workspace.conversation')}</button>
@@ -127,6 +135,12 @@
127 </div>135 </div>
128 {#if tab === 'terminal'}136 {#if tab === 'terminal'}
129 <div class="pane terminals">137 <div class="pane terminals">
138+ {#if appState.signInAgent === name}
139+ <div class="sign-in" role="status">
140+ <p>{t('signIn.terminal', { agent: agent.title, program: agent.signIn ?? '' })}</p>
141+ <button type="button" class="primary" onclick={() => signedIn(name)}>{t('signIn.done')}</button>
142+ </div>
143+ {/if}
130 <div class="terminal-tabs" role="tablist" aria-label={t('terminal.list')}>144 <div class="terminal-tabs" role="tablist" aria-label={t('terminal.list')}>
131 {#each terminals as session (session.key)}145 {#each terminals as session (session.key)}
132 <span class="terminal-tab" class:active={session.key === current?.key} class:ended={session.ended}>146 <span class="terminal-tab" class:active={session.key === current?.key} class:ended={session.ended}>
@@ -159,9 +173,11 @@
159 .agent { height: 100%; display: flex; flex-direction: column; background: var(--bg); }173 .agent { height: 100%; display: flex; flex-direction: column; background: var(--bg); }
160 header { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-bottom: 1px solid var(--border); }174 header { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-bottom: 1px solid var(--border); }
161 .identity { flex: 1; min-width: 0; }175 .identity { flex: 1; min-width: 0; }
162- h2 { margin: 0; font-size: 15px; }176+ h2 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
163- .meta { margin: 2px 0 0; color: var(--muted); font-size: 12px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }177+ .meta { margin: 2px 0 0; color: var(--muted); font-size: 12px; display: flex; gap: 6px; align-items: baseline; }
164- .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }178+ /* The state, where it runs and its channels: wraps next to the dot, never under it. */
179+ .facts { flex: 1; min-width: 0; overflow-wrap: anywhere; }
180+ .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
165 .dot.ready { background: var(--ok); }181 .dot.ready { background: var(--ok); }
166 .dot.busy, .dot.starting { background: var(--warn); }182 .dot.busy, .dot.starting { background: var(--warn); }
167 .dot.error { background: var(--danger); }183 .dot.error { background: var(--danger); }
@@ -189,4 +205,7 @@
189 .terminal-pane { flex: 1; min-height: 0; }205 .terminal-pane { flex: 1; min-height: 0; }
190 .no-terminal { color: var(--muted); font-size: 13px; }206 .no-terminal { color: var(--muted); font-size: 13px; }
191 .error { color: var(--danger); font-size: 13px; margin: 6px 18px; }207 .error { color: var(--danger); font-size: 13px; margin: 6px 18px; }
208+ .sign-in { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--panel); }
209+ .sign-in p { margin: 0; flex: 1; min-width: 240px; }
210+ .sign-in .primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
192 </style>211 </style>
modified frontend/src/lib/agent/CreateSbxAgent.svelte +8 -2
@@ -177,6 +177,7 @@
177177 <form class="panel" onsubmit={saveKey}>
178178 <h2><AgentAvatar icon={kind.icon} title={kind.title} name={kind.id} size={20} /> {t(keyText('title', kind.token), { title: kind.title })}</h2>
179179 <p>{t(keyText('explain', kind.token), { title: kind.title, service: kind.service })}</p>
180+ {#if kind.signIn}<p class="hint">{t('sbxCreator.signIn.choice', { title: kind.title, program: kind.signIn })}</p>{/if}
180181 {#if kind.fromGh && gh}
181182 {#if ghSignedIn}
182183 <p><button type="button" class="primary" onclick={useGitHub} disabled={busy}>{t('sbxCreator.token.useGh')}</button></p>
@@ -206,7 +207,11 @@
206207 {#if hasKey}
207208 <p class="ok">{t(keyText('stored', kind.token), { title: kind.title })} <button type="button" class="link" onclick={() => (step = 'key')}>{t(keyText('replace', kind.token))}</button></p>
208209 {:else}
209- <p class="warning" role="alert">{t(keyText('missing', kind.token), { title: kind.title, service: kind.service })}</p>
210+ {#if kind.signIn}
211+ <p class="note" role="status">{t('sbxCreator.signIn.later', { title: kind.title, program: kind.signIn })}</p>
212+ {:else}
213+ <p class="warning" role="alert">{t(keyText('missing', kind.token), { title: kind.title, service: kind.service })}</p>
214+ {/if}
210215 {/if}
211216 <fieldset disabled={busy}>
212217 <div class="row">
@@ -254,7 +259,7 @@
254259 <style>
255260 .creator { max-width: 620px; width: 100%; margin: 0 auto; padding: 24px 24px 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; }
256261 h1 { font-size: 20px; margin: 0; }
257- h2 { font-size: 16px; margin: 0; display: flex; align-items: center; gap: 6px; }
262+ h2 { font-size: 16px; margin: 0; display: flex; align-items: center; gap: 8px; }
258263 .intro, .status { color: var(--muted); margin: 0; }
259264 .status { display: flex; align-items: center; gap: 8px; }
260265 .kinds { display: flex; flex-direction: column; gap: 8px; }
@@ -282,6 +287,7 @@
282287 .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
283288 .link { border: none; background: none; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; align-self: flex-start; }
284289 .hint { color: var(--muted); font-size: 12px; }
290+ .note { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; font-size: 13px; }
285291 .ok { margin: 0; color: var(--ok, var(--text)); }
286292 .warning { margin: 0; border: 1px solid var(--warn); border-radius: var(--radius); color: var(--warn); padding: 8px 12px; font-size: 13px; }
287293 .problem { border: 1px solid var(--danger); border-radius: var(--radius); color: var(--danger); padding: 8px 12px; font-size: 13px; }
@@ -177,6 +177,7 @@
177 <form class="panel" onsubmit={saveKey}>177 <form class="panel" onsubmit={saveKey}>
178 <h2><AgentAvatar icon={kind.icon} title={kind.title} name={kind.id} size={20} /> {t(keyText('title', kind.token), { title: kind.title })}</h2>178 <h2><AgentAvatar icon={kind.icon} title={kind.title} name={kind.id} size={20} /> {t(keyText('title', kind.token), { title: kind.title })}</h2>
179 <p>{t(keyText('explain', kind.token), { title: kind.title, service: kind.service })}</p>179 <p>{t(keyText('explain', kind.token), { title: kind.title, service: kind.service })}</p>
180+ {#if kind.signIn}<p class="hint">{t('sbxCreator.signIn.choice', { title: kind.title, program: kind.signIn })}</p>{/if}
180 {#if kind.fromGh && gh}181 {#if kind.fromGh && gh}
181 {#if ghSignedIn}182 {#if ghSignedIn}
182 <p><button type="button" class="primary" onclick={useGitHub} disabled={busy}>{t('sbxCreator.token.useGh')}</button></p>183 <p><button type="button" class="primary" onclick={useGitHub} disabled={busy}>{t('sbxCreator.token.useGh')}</button></p>
@@ -206,7 +207,11 @@
206 {#if hasKey}207 {#if hasKey}
207 <p class="ok">{t(keyText('stored', kind.token), { title: kind.title })} <button type="button" class="link" onclick={() => (step = 'key')}>{t(keyText('replace', kind.token))}</button></p>208 <p class="ok">{t(keyText('stored', kind.token), { title: kind.title })} <button type="button" class="link" onclick={() => (step = 'key')}>{t(keyText('replace', kind.token))}</button></p>
208 {:else}209 {:else}
209- <p class="warning" role="alert">{t(keyText('missing', kind.token), { title: kind.title, service: kind.service })}</p>210+ {#if kind.signIn}
211+ <p class="note" role="status">{t('sbxCreator.signIn.later', { title: kind.title, program: kind.signIn })}</p>
212+ {:else}
213+ <p class="warning" role="alert">{t(keyText('missing', kind.token), { title: kind.title, service: kind.service })}</p>
214+ {/if}
210 {/if}215 {/if}
211 <fieldset disabled={busy}>216 <fieldset disabled={busy}>
212 <div class="row">217 <div class="row">
@@ -254,7 +259,7 @@
254 <style>259 <style>
255 .creator { max-width: 620px; width: 100%; margin: 0 auto; padding: 24px 24px 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; }260 .creator { max-width: 620px; width: 100%; margin: 0 auto; padding: 24px 24px 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; }
256 h1 { font-size: 20px; margin: 0; }261 h1 { font-size: 20px; margin: 0; }
257- h2 { font-size: 16px; margin: 0; display: flex; align-items: center; gap: 6px; }262+ h2 { font-size: 16px; margin: 0; display: flex; align-items: center; gap: 8px; }
258 .intro, .status { color: var(--muted); margin: 0; }263 .intro, .status { color: var(--muted); margin: 0; }
259 .status { display: flex; align-items: center; gap: 8px; }264 .status { display: flex; align-items: center; gap: 8px; }
260 .kinds { display: flex; flex-direction: column; gap: 8px; }265 .kinds { display: flex; flex-direction: column; gap: 8px; }
@@ -282,6 +287,7 @@
282 .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }287 .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
283 .link { border: none; background: none; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; align-self: flex-start; }288 .link { border: none; background: none; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; align-self: flex-start; }
284 .hint { color: var(--muted); font-size: 12px; }289 .hint { color: var(--muted); font-size: 12px; }
290+ .note { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; font-size: 13px; }
285 .ok { margin: 0; color: var(--ok, var(--text)); }291 .ok { margin: 0; color: var(--ok, var(--text)); }
286 .warning { margin: 0; border: 1px solid var(--warn); border-radius: var(--radius); color: var(--warn); padding: 8px 12px; font-size: 13px; }292 .warning { margin: 0; border: 1px solid var(--warn); border-radius: var(--radius); color: var(--warn); padding: 8px 12px; font-size: 13px; }
287 .problem { border: 1px solid var(--danger); border-radius: var(--radius); color: var(--danger); padding: 8px 12px; font-size: 13px; }293 .problem { border: 1px solid var(--danger); border-radius: var(--radius); color: var(--danger); padding: 8px 12px; font-size: 13px; }
modified frontend/src/lib/chat/MessageView.svelte +8 -2
@@ -3,7 +3,8 @@
33 import { hasMessage, t } from '../i18n/index.svelte'
44 import type { Message } from '../../../bindings/git.rickub.com/bots-garden/sidekicks/internal/channels'
55 import { Browser } from '@wailsio/runtime'
6- import { agentTitle, appState, openLinkedFile, openWorkspace } from '../state.svelte'
6+ import { agentTitle, appState, openLinkedFile, openWorkspace, signInInTerminal } from '../state.svelte'
7+ import { needsSignIn } from '../signin'
78 import { answerLink } from '../preview'
89 import { splitMessage } from '../attachments'
910 import { activityOf, answerText } from '../conversation'
@@ -79,7 +80,11 @@
7980 <p class="ending">{t(stopKey)}</p>
8081 {/if}
8182 {#if message.error && message.role === 'agent'}
82- <div class="error">{t('message.error')} <ErrorText raw={message.error} /></div>
83+ <div class="error">{t('message.error')} <ErrorText raw={message.error} />
84+ {#if needsSignIn(message.error, appState.agents.find((candidate) => candidate.name === message.agent)?.signIn)}
85+ <button type="button" class="sign-in" onclick={() => message.agent && signInInTerminal(message.agent)}>{t('signIn.open')}</button>
86+ {/if}
87+ </div>
8388 {:else if message.error === 'cancelled'}
8489 <p class="ending">{t('message.notSent')}</p>
8590 {/if}
@@ -108,4 +113,5 @@
108113 .error { color: var(--danger); font-size: 13px; margin: 6px 0 0; }
109114 .copy { font-size: 11px; font-weight: 400; padding: 0 6px; color: var(--muted); background: none; opacity: 0; }
110115 .message:hover .copy, .copy:focus-visible { opacity: 1; }
116+ .sign-in { display: block; margin-top: 6px; }
111117 </style>
@@ -3,7 +3,8 @@
3 import { hasMessage, t } from '../i18n/index.svelte'3 import { hasMessage, t } from '../i18n/index.svelte'
4 import type { Message } from '../../../bindings/git.rickub.com/bots-garden/sidekicks/internal/channels'4 import type { Message } from '../../../bindings/git.rickub.com/bots-garden/sidekicks/internal/channels'
5 import { Browser } from '@wailsio/runtime'5 import { Browser } from '@wailsio/runtime'
6- import { agentTitle, appState, openLinkedFile, openWorkspace } from '../state.svelte'6+ import { agentTitle, appState, openLinkedFile, openWorkspace, signInInTerminal } from '../state.svelte'
7+ import { needsSignIn } from '../signin'
7 import { answerLink } from '../preview'8 import { answerLink } from '../preview'
8 import { splitMessage } from '../attachments'9 import { splitMessage } from '../attachments'
9 import { activityOf, answerText } from '../conversation'10 import { activityOf, answerText } from '../conversation'
@@ -79,7 +80,11 @@
79 <p class="ending">{t(stopKey)}</p>80 <p class="ending">{t(stopKey)}</p>
80 {/if}81 {/if}
81 {#if message.error && message.role === 'agent'}82 {#if message.error && message.role === 'agent'}
82- <div class="error">{t('message.error')} <ErrorText raw={message.error} /></div>83+ <div class="error">{t('message.error')} <ErrorText raw={message.error} />
84+ {#if needsSignIn(message.error, appState.agents.find((candidate) => candidate.name === message.agent)?.signIn)}
85+ <button type="button" class="sign-in" onclick={() => message.agent && signInInTerminal(message.agent)}>{t('signIn.open')}</button>
86+ {/if}
87+ </div>
83 {:else if message.error === 'cancelled'}88 {:else if message.error === 'cancelled'}
84 <p class="ending">{t('message.notSent')}</p>89 <p class="ending">{t('message.notSent')}</p>
85 {/if}90 {/if}
@@ -108,4 +113,5 @@
108 .error { color: var(--danger); font-size: 13px; margin: 6px 0 0; }113 .error { color: var(--danger); font-size: 13px; margin: 6px 0 0; }
109 .copy { font-size: 11px; font-weight: 400; padding: 0 6px; color: var(--muted); background: none; opacity: 0; }114 .copy { font-size: 11px; font-weight: 400; padding: 0 6px; color: var(--muted); background: none; opacity: 0; }
110 .message:hover .copy, .copy:focus-visible { opacity: 1; }115 .message:hover .copy, .copy:focus-visible { opacity: 1; }
116+ .sign-in { display: block; margin-top: 6px; }
111 </style>117 </style>
modified frontend/src/lib/errors.ts +2 -0
@@ -23,6 +23,8 @@ interface Rule {
2323 const rules: Rule[] = [
2424 // sbx before `sbx login` (issue #97): ErrorText offers to sign in.
2525 { pattern: /not signed in to Docker|not authenticated to Docker/i, key: 'error.sbxNotSignedIn' },
26+ // An agent without a key nor a signed-in account (issues #105, #106).
27+ { pattern: /Authentication required/i, key: 'error.authRequired' },
2628 // gh without a token (issue #103).
2729 { pattern: /gh is not signed in to GitHub/, key: 'error.ghNotSignedIn' },
2830 { pattern: /Cannot connect to the Docker daemon|docker daemon is not running|error during connect/i, key: 'error.dockerNotRunning' },
@@ -23,6 +23,8 @@ interface Rule {
23 const rules: Rule[] = [23 const rules: Rule[] = [
24 // sbx before `sbx login` (issue #97): ErrorText offers to sign in.24 // sbx before `sbx login` (issue #97): ErrorText offers to sign in.
25 { pattern: /not signed in to Docker|not authenticated to Docker/i, key: 'error.sbxNotSignedIn' },25 { pattern: /not signed in to Docker|not authenticated to Docker/i, key: 'error.sbxNotSignedIn' },
26+ // An agent without a key nor a signed-in account (issues #105, #106).
27+ { pattern: /Authentication required/i, key: 'error.authRequired' },
26 // gh without a token (issue #103).28 // gh without a token (issue #103).
27 { pattern: /gh is not signed in to GitHub/, key: 'error.ghNotSignedIn' },29 { pattern: /gh is not signed in to GitHub/, key: 'error.ghNotSignedIn' },
28 { pattern: /Cannot connect to the Docker daemon|docker daemon is not running|error during connect/i, key: 'error.dockerNotRunning' },30 { pattern: /Cannot connect to the Docker daemon|docker daemon is not running|error during connect/i, key: 'error.dockerNotRunning' },
modified frontend/src/lib/i18n/messages.ts +12 -0
@@ -182,6 +182,12 @@ export const en = {
182182 'ghLogin.signed': '✓ Signed in to GitHub as {user}.',
183183 'ghLogin.failed': 'The sign-in did not succeed. Try again, or type gh auth login in a terminal.',
184184 'error.ghNotSignedIn': 'The GitHub CLI (gh) is not signed in to GitHub: sign in with it first.',
185+ 'error.authRequired': 'The agent is not signed in: it has no API key, and nobody signed in with an account yet.',
186+ 'signIn.open': 'Sign in in its terminal',
187+ 'signIn.terminal': '{agent} is not signed in. {program} is starting in this terminal: type /login, choose your account and follow the steps (copy the link into your browser if asked). Then click the button: the agent restarts and you can send your message again.',
188+ 'signIn.done': 'I am signed in: restart the agent',
189+ 'sbxCreator.signIn.choice': 'No API key? You can go on without one ("Later") and sign in with your {title} account instead: once the agent is added, open its Terminal, run {program} and type /login. Sidekicks opens that terminal for you when the agent asks to be signed in.',
190+ 'sbxCreator.signIn.later': 'No {title} key in sbx: you will sign in with your {title} account. Once the agent is added, open its Terminal, run {program} and type /login — Sidekicks opens it for you at the first answer that asks for it.',
185191 'error.programNotFound': 'The program "{program}" cannot be found. Install it, or give its full path in the agent\'s settings (for example /opt/homebrew/bin/{program}).',
186192 'error.programNotExecutable': '"{program}" cannot be run: it is not executable. In a terminal: chmod +x {program}',
187193 'error.dockerNotRunning': 'Docker is not running. Start Docker Desktop (or the Docker service), then try again.',
@@ -689,6 +695,12 @@ export const fr: Record<MessageKey, string> = {
689695 'ghLogin.signed': '✓ Connecté à GitHub en tant que {user}.',
690696 'ghLogin.failed': "La connexion n'a pas abouti. Réessayez, ou tapez gh auth login dans un terminal.",
691697 'error.ghNotSignedIn': "L'outil GitHub (gh) n'est pas connecté à GitHub : connectez-le d'abord.",
698+ 'error.authRequired': "L'agent n'est pas connecté : il n'a pas de clé d'API, et personne ne s'est encore connecté avec un compte.",
699+ 'signIn.open': 'Se connecter dans son terminal',
700+ 'signIn.terminal': "{agent} n'est pas connecté. {program} démarre dans ce terminal : tapez /login, choisissez votre compte et suivez les étapes (copiez le lien dans votre navigateur si on vous le demande). Puis cliquez sur le bouton : l'agent redémarre et vous pouvez renvoyer votre message.",
701+ 'signIn.done': "Je suis connecté : redémarrer l'agent",
702+ 'sbxCreator.signIn.choice': "Pas de clé d'API ? Vous pouvez continuer sans (« Plus tard ») et vous connecter plutôt avec votre compte {title} : une fois l'agent ajouté, ouvrez son Terminal, lancez {program} et tapez /login. Sidekicks vous ouvre ce terminal quand l'agent demande à être connecté.",
703+ 'sbxCreator.signIn.later': "Pas de clé {title} dans sbx : vous vous connecterez avec votre compte {title}. Une fois l'agent ajouté, ouvrez son Terminal, lancez {program} et tapez /login — Sidekicks vous l'ouvre à la première réponse qui le demande.",
692704 'error.programNotFound': "Le programme « {program} » est introuvable. Installez-le, ou indiquez son chemin complet dans les réglages de l'agent (par exemple /opt/homebrew/bin/{program}).",
693705 'error.programNotExecutable': "« {program} » ne peut pas être lancé : il n'est pas exécutable. Dans un terminal : chmod +x {program}",
694706 'error.dockerNotRunning': "Docker n'est pas démarré. Lancez Docker Desktop (ou le service Docker), puis réessayez.",
@@ -182,6 +182,12 @@ export const en = {
182 'ghLogin.signed': '✓ Signed in to GitHub as {user}.',182 'ghLogin.signed': '✓ Signed in to GitHub as {user}.',
183 'ghLogin.failed': 'The sign-in did not succeed. Try again, or type gh auth login in a terminal.',183 'ghLogin.failed': 'The sign-in did not succeed. Try again, or type gh auth login in a terminal.',
184 'error.ghNotSignedIn': 'The GitHub CLI (gh) is not signed in to GitHub: sign in with it first.',184 'error.ghNotSignedIn': 'The GitHub CLI (gh) is not signed in to GitHub: sign in with it first.',
185+ 'error.authRequired': 'The agent is not signed in: it has no API key, and nobody signed in with an account yet.',
186+ 'signIn.open': 'Sign in in its terminal',
187+ 'signIn.terminal': '{agent} is not signed in. {program} is starting in this terminal: type /login, choose your account and follow the steps (copy the link into your browser if asked). Then click the button: the agent restarts and you can send your message again.',
188+ 'signIn.done': 'I am signed in: restart the agent',
189+ 'sbxCreator.signIn.choice': 'No API key? You can go on without one ("Later") and sign in with your {title} account instead: once the agent is added, open its Terminal, run {program} and type /login. Sidekicks opens that terminal for you when the agent asks to be signed in.',
190+ 'sbxCreator.signIn.later': 'No {title} key in sbx: you will sign in with your {title} account. Once the agent is added, open its Terminal, run {program} and type /login — Sidekicks opens it for you at the first answer that asks for it.',
185 'error.programNotFound': 'The program "{program}" cannot be found. Install it, or give its full path in the agent\'s settings (for example /opt/homebrew/bin/{program}).',191 'error.programNotFound': 'The program "{program}" cannot be found. Install it, or give its full path in the agent\'s settings (for example /opt/homebrew/bin/{program}).',
186 'error.programNotExecutable': '"{program}" cannot be run: it is not executable. In a terminal: chmod +x {program}',192 'error.programNotExecutable': '"{program}" cannot be run: it is not executable. In a terminal: chmod +x {program}',
187 'error.dockerNotRunning': 'Docker is not running. Start Docker Desktop (or the Docker service), then try again.',193 'error.dockerNotRunning': 'Docker is not running. Start Docker Desktop (or the Docker service), then try again.',
@@ -689,6 +695,12 @@ export const fr: Record<MessageKey, string> = {
689 'ghLogin.signed': '✓ Connecté à GitHub en tant que {user}.',695 'ghLogin.signed': '✓ Connecté à GitHub en tant que {user}.',
690 'ghLogin.failed': "La connexion n'a pas abouti. Réessayez, ou tapez gh auth login dans un terminal.",696 'ghLogin.failed': "La connexion n'a pas abouti. Réessayez, ou tapez gh auth login dans un terminal.",
691 'error.ghNotSignedIn': "L'outil GitHub (gh) n'est pas connecté à GitHub : connectez-le d'abord.",697 'error.ghNotSignedIn': "L'outil GitHub (gh) n'est pas connecté à GitHub : connectez-le d'abord.",
698+ 'error.authRequired': "L'agent n'est pas connecté : il n'a pas de clé d'API, et personne ne s'est encore connecté avec un compte.",
699+ 'signIn.open': 'Se connecter dans son terminal',
700+ 'signIn.terminal': "{agent} n'est pas connecté. {program} démarre dans ce terminal : tapez /login, choisissez votre compte et suivez les étapes (copiez le lien dans votre navigateur si on vous le demande). Puis cliquez sur le bouton : l'agent redémarre et vous pouvez renvoyer votre message.",
701+ 'signIn.done': "Je suis connecté : redémarrer l'agent",
702+ 'sbxCreator.signIn.choice': "Pas de clé d'API ? Vous pouvez continuer sans (« Plus tard ») et vous connecter plutôt avec votre compte {title} : une fois l'agent ajouté, ouvrez son Terminal, lancez {program} et tapez /login. Sidekicks vous ouvre ce terminal quand l'agent demande à être connecté.",
703+ 'sbxCreator.signIn.later': "Pas de clé {title} dans sbx : vous vous connecterez avec votre compte {title}. Une fois l'agent ajouté, ouvrez son Terminal, lancez {program} et tapez /login — Sidekicks vous l'ouvre à la première réponse qui le demande.",
692 'error.programNotFound': "Le programme « {program} » est introuvable. Installez-le, ou indiquez son chemin complet dans les réglages de l'agent (par exemple /opt/homebrew/bin/{program}).",704 'error.programNotFound': "Le programme « {program} » est introuvable. Installez-le, ou indiquez son chemin complet dans les réglages de l'agent (par exemple /opt/homebrew/bin/{program}).",
693 'error.programNotExecutable': "« {program} » ne peut pas être lancé : il n'est pas exécutable. Dans un terminal : chmod +x {program}",705 'error.programNotExecutable': "« {program} » ne peut pas être lancé : il n'est pas exécutable. Dans un terminal : chmod +x {program}",
694 'error.dockerNotRunning': "Docker n'est pas démarré. Lancez Docker Desktop (ou le service Docker), puis réessayez.",706 'error.dockerNotRunning': "Docker n'est pas démarré. Lancez Docker Desktop (ou le service Docker), puis réessayez.",
modified frontend/src/lib/panels/ConversationPanel.svelte +3 -4
@@ -380,11 +380,10 @@
380380 .banner { margin: 12px; padding: 10px 14px; border: 1px solid var(--danger); border-radius: var(--radius); color: var(--danger); }
381381 .banner.warning { border-color: var(--warn); color: var(--warn); }
382382 header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 18px; border-bottom: 1px solid var(--border); }
383- .title { font-weight: 600; font-size: 15px; }
384- /* A letter avatar needs a little more room than an emoji before the name. */
385- .title :global(.letter) { margin-right: 3px; }
383+ /* The avatar (logo, emoji or letter) and the name, centred on one line with room between them. */
384+ .title { font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
386385 .members { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
387- .member { font-size: 12px; border: 1px solid var(--border); border-radius: 10px; padding: 0 2px 0 8px; display: inline-flex; align-items: center; gap: 2px; }
386+ .member { font-size: 12px; border: 1px solid var(--border); border-radius: 10px; padding: 0 2px 0 6px; display: inline-flex; align-items: center; gap: 5px; }
388387 .member button { border: none; background: none; padding: 0 5px; color: var(--muted); font-size: 12px; }
389388 .member button:hover { color: var(--danger); }
390389 select { font: inherit; font-size: 12px; border: 1px dashed var(--border); border-radius: 10px; padding: 0 6px; background: var(--bg); color: var(--muted); }
@@ -380,11 +380,10 @@
380 .banner { margin: 12px; padding: 10px 14px; border: 1px solid var(--danger); border-radius: var(--radius); color: var(--danger); }380 .banner { margin: 12px; padding: 10px 14px; border: 1px solid var(--danger); border-radius: var(--radius); color: var(--danger); }
381 .banner.warning { border-color: var(--warn); color: var(--warn); }381 .banner.warning { border-color: var(--warn); color: var(--warn); }
382 header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 18px; border-bottom: 1px solid var(--border); }382 header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 18px; border-bottom: 1px solid var(--border); }
383- .title { font-weight: 600; font-size: 15px; }383+ /* The avatar (logo, emoji or letter) and the name, centred on one line with room between them. */
384- /* A letter avatar needs a little more room than an emoji before the name. */384+ .title { font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
385- .title :global(.letter) { margin-right: 3px; }
386 .members { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }385 .members { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
387- .member { font-size: 12px; border: 1px solid var(--border); border-radius: 10px; padding: 0 2px 0 8px; display: inline-flex; align-items: center; gap: 2px; }386+ .member { font-size: 12px; border: 1px solid var(--border); border-radius: 10px; padding: 0 2px 0 6px; display: inline-flex; align-items: center; gap: 5px; }
388 .member button { border: none; background: none; padding: 0 5px; color: var(--muted); font-size: 12px; }387 .member button { border: none; background: none; padding: 0 5px; color: var(--muted); font-size: 12px; }
389 .member button:hover { color: var(--danger); }388 .member button:hover { color: var(--danger); }
390 select { font: inherit; font-size: 12px; border: 1px dashed var(--border); border-radius: 10px; padding: 0 6px; background: var(--bg); color: var(--muted); }389 select { font: inherit; font-size: 12px; border: 1px dashed var(--border); border-radius: 10px; padding: 0 6px; background: var(--bg); color: var(--muted); }
added frontend/src/lib/signin.test.ts +22 -0
new file mode 100644
@@ -0,0 +1,22 @@
1+// Copyright (c) 2026 Philippe Charrière — Sidekicks Source-Available License 1.0, see LICENSE
2+import { describe, expect, it } from 'vitest'
3+import { needsSignIn, signInInput } from './signin'
4+import { explain } from './errors'
5+
6+describe('signing in from the terminal (issues #105, #106)', () => {
7+ it('sends a Claude agent without authentication to its terminal', () => {
8+ expect(needsSignIn('Authentication required', 'claude')).toBe(true)
9+ expect(needsSignIn('session/prompt: Authentication required', 'claude')).toBe(true)
10+ })
11+ it('does not for another error, or an agent with no sign-in program', () => {
12+ expect(needsSignIn('the agent stopped', 'claude')).toBe(false)
13+ expect(needsSignIn('Authentication required', '')).toBe(false)
14+ expect(needsSignIn(undefined, 'claude')).toBe(false)
15+ })
16+ it('types the program and Enter', () => {
17+ expect(signInInput('claude')).toBe('claude\r')
18+ })
19+ it('explains the error in plain words', () => {
20+ expect(explain('Authentication required')?.key).toBe('error.authRequired')
21+ })
22+})
new file mode 100644
@@ -0,0 +1,22 @@
1+// Copyright (c) 2026 Philippe Charrière — Sidekicks Source-Available License 1.0, see LICENSE
2+import { describe, expect, it } from 'vitest'
3+import { needsSignIn, signInInput } from './signin'
4+import { explain } from './errors'
5+
6+describe('signing in from the terminal (issues #105, #106)', () => {
7+ it('sends a Claude agent without authentication to its terminal', () => {
8+ expect(needsSignIn('Authentication required', 'claude')).toBe(true)
9+ expect(needsSignIn('session/prompt: Authentication required', 'claude')).toBe(true)
10+ })
11+ it('does not for another error, or an agent with no sign-in program', () => {
12+ expect(needsSignIn('the agent stopped', 'claude')).toBe(false)
13+ expect(needsSignIn('Authentication required', '')).toBe(false)
14+ expect(needsSignIn(undefined, 'claude')).toBe(false)
15+ })
16+ it('types the program and Enter', () => {
17+ expect(signInInput('claude')).toBe('claude\r')
18+ })
19+ it('explains the error in plain words', () => {
20+ expect(explain('Authentication required')?.key).toBe('error.authRequired')
21+ })
22+})
added frontend/src/lib/signin.ts +33 -0
new file mode 100644
@@ -0,0 +1,33 @@
1+// Copyright (c) 2026 Philippe Charrière — Sidekicks Source-Available License 1.0, see LICENSE
2+
3+// Signing in from the agent's terminal (issues #105 and #106): a Claude
4+// agent in a sandbox without an API key ends its answers with
5+// "Authentication required". Sidekicks then opens the sandbox's terminal,
6+// runs claude in it and tells the user to type /login.
7+
8+/** The error of an agent that has neither a key nor a signed-in account. */
9+export const authRequired = /Authentication required/i
10+
11+/**
12+ * Whether an answer's error should send the user to the agent's terminal to
13+ * sign in: the agent has a program for that (Status.signIn) and the error
14+ * says it is not authenticated.
15+ *
16+ * @example
17+ * needsSignIn('Authentication required', 'claude') // true
18+ * needsSignIn('Authentication required', '') // false: no terminal program
19+ * needsSignIn('the agent stopped', 'claude') // false
20+ */
21+export function needsSignIn(error: string | undefined, signIn: string | undefined): boolean {
22+ return Boolean(signIn) && authRequired.test(error ?? '')
23+}
24+
25+/**
26+ * What the terminal is given to start the program: its name and Enter.
27+ *
28+ * @example
29+ * signInInput('claude') // 'claude\r'
30+ */
31+export function signInInput(program: string): string {
32+ return `${program}\r`
33+}
new file mode 100644
@@ -0,0 +1,33 @@
1+// Copyright (c) 2026 Philippe Charrière — Sidekicks Source-Available License 1.0, see LICENSE
2+
3+// Signing in from the agent's terminal (issues #105 and #106): a Claude
4+// agent in a sandbox without an API key ends its answers with
5+// "Authentication required". Sidekicks then opens the sandbox's terminal,
6+// runs claude in it and tells the user to type /login.
7+
8+/** The error of an agent that has neither a key nor a signed-in account. */
9+export const authRequired = /Authentication required/i
10+
11+/**
12+ * Whether an answer's error should send the user to the agent's terminal to
13+ * sign in: the agent has a program for that (Status.signIn) and the error
14+ * says it is not authenticated.
15+ *
16+ * @example
17+ * needsSignIn('Authentication required', 'claude') // true
18+ * needsSignIn('Authentication required', '') // false: no terminal program
19+ * needsSignIn('the agent stopped', 'claude') // false
20+ */
21+export function needsSignIn(error: string | undefined, signIn: string | undefined): boolean {
22+ return Boolean(signIn) && authRequired.test(error ?? '')
23+}
24+
25+/**
26+ * What the terminal is given to start the program: its name and Enter.
27+ *
28+ * @example
29+ * signInInput('claude') // 'claude\r'
30+ */
31+export function signInInput(program: string): string {
32+ return `${program}\r`
33+}
modified frontend/src/lib/state.svelte.ts +42 -0
@@ -12,6 +12,8 @@ import type { AgentLogPayload, AgentProgressPayload, AgentStatePayload, ConfigCh
1212 import { nextProgress, type Progress } from './progress'
1313 import type { ExitPayload, OutputPayload } from '../../bindings/git.rickub.com/bots-garden/sidekicks/internal/workspace'
1414 import { terminalExit, terminalOutput } from './terminals'
15+import { newTerminal } from './terminalSessions.svelte'
16+import { needsSignIn, signInInput } from './signin'
1517 import type {
1618 Channel,
1719 ListPayload,
@@ -87,6 +89,13 @@ export const appState = $state({
8789 workspaceAgent: '',
8890 /** A file of that workspace to open, e.g. a file joined to a message; '' once opened. */
8991 workspaceFile: '',
92+ /**
93+ * The agent being signed in from its terminal (issue #106): its view shows
94+ * the Terminal tab and how to sign in; '' when none.
95+ */
96+ signInAgent: '',
97+ /** Incremented to ask the agent's view to show its Terminal tab. */
98+ terminalRequest: 0,
9099 /**
91100 * The file a link of an answer leads to, shown at the right of the
92101 * conversation (issue #65), by channel id: each channel and direct
@@ -227,6 +236,33 @@ export function openWorkspace(agent: string, file = '') {
227236 appState.workspaceFile = file
228237 }
229238
239+// The agents already sent to their terminal since they started: once per
240+// start, not at every failed answer (issue #106).
241+const signInOpened = new Set<string>()
242+
243+/**
244+ * Shows agent's workspace on a new terminal that runs its sign-in program
245+ * (claude), for the user to type /login (issues #105, #106).
246+ */
247+export function signInInTerminal(agent: string) {
248+ const program = appState.agents.find((candidate) => candidate.name === agent)?.signIn
249+ if (!program) return
250+ signInOpened.add(agent)
251+ openWorkspace(agent)
252+ newTerminal(agent, signInInput(program))
253+ appState.signInAgent = agent
254+ appState.terminalRequest++
255+}
256+
257+/** Restarts agent once signed in, and goes back to its conversation. */
258+export function signedIn(agent: string) {
259+ if (appState.signInAgent === agent) appState.signInAgent = ''
260+ return act(async () => {
261+ await AgentService.Restart(agent)
262+ await openDirect(agent)
263+ })
264+}
265+
230266 /** Opens the Log panel on agent's log (issue #98: "See the log"). */
231267 export function showLog(agent: string) {
232268 appState.logAgent = agent
@@ -418,6 +454,11 @@ export function connect(): () => void {
418454 if ('message' in item) {
419455 const { channel, message } = item.message
420456 applyMessage(conversationOf(channel), message)
457+ // Issue #106: an agent that is not signed in goes to its terminal, once per start.
458+ if (message.role === 'agent' && message.done && message.agent && !signInOpened.has(message.agent)) {
459+ const signIn = appState.agents.find((candidate) => candidate.name === message.agent)?.signIn
460+ if (needsSignIn(message.error, signIn)) signInInTerminal(message.agent)
461+ }
421462 if (message.role === 'agent' && message.done && channel !== appState.selectedChannel) {
422463 appState.unread[channel] = (appState.unread[channel] ?? 0) + 1
423464 }
@@ -454,6 +495,7 @@ export function connect(): () => void {
454495 agent.state = payload.state as Status['state']
455496 agent.error = payload.error ?? ''
456497 if (payload.state !== 'starting') delete appState.progress[payload.agent]
498+ if (payload.state === 'starting' || payload.state === 'stopped') signInOpened.delete(payload.agent)
457499 }),
458500 subscribe<AgentProgressPayload>(AgentProgress, (payload) => {
459501 appState.progress[payload.agent] = nextProgress(appState.progress[payload.agent], payload)
@@ -12,6 +12,8 @@ import type { AgentLogPayload, AgentProgressPayload, AgentStatePayload, ConfigCh
12 import { nextProgress, type Progress } from './progress'12 import { nextProgress, type Progress } from './progress'
13 import type { ExitPayload, OutputPayload } from '../../bindings/git.rickub.com/bots-garden/sidekicks/internal/workspace'13 import type { ExitPayload, OutputPayload } from '../../bindings/git.rickub.com/bots-garden/sidekicks/internal/workspace'
14 import { terminalExit, terminalOutput } from './terminals'14 import { terminalExit, terminalOutput } from './terminals'
15+import { newTerminal } from './terminalSessions.svelte'
16+import { needsSignIn, signInInput } from './signin'
15 import type {17 import type {
16 Channel,18 Channel,
17 ListPayload,19 ListPayload,
@@ -87,6 +89,13 @@ export const appState = $state({
87 workspaceAgent: '',89 workspaceAgent: '',
88 /** A file of that workspace to open, e.g. a file joined to a message; '' once opened. */90 /** A file of that workspace to open, e.g. a file joined to a message; '' once opened. */
89 workspaceFile: '',91 workspaceFile: '',
92+ /**
93+ * The agent being signed in from its terminal (issue #106): its view shows
94+ * the Terminal tab and how to sign in; '' when none.
95+ */
96+ signInAgent: '',
97+ /** Incremented to ask the agent's view to show its Terminal tab. */
98+ terminalRequest: 0,
90 /**99 /**
91 * The file a link of an answer leads to, shown at the right of the100 * The file a link of an answer leads to, shown at the right of the
92 * conversation (issue #65), by channel id: each channel and direct101 * conversation (issue #65), by channel id: each channel and direct
@@ -227,6 +236,33 @@ export function openWorkspace(agent: string, file = '') {
227 appState.workspaceFile = file236 appState.workspaceFile = file
228 }237 }
229 238
239+// The agents already sent to their terminal since they started: once per
240+// start, not at every failed answer (issue #106).
241+const signInOpened = new Set<string>()
242+
243+/**
244+ * Shows agent's workspace on a new terminal that runs its sign-in program
245+ * (claude), for the user to type /login (issues #105, #106).
246+ */
247+export function signInInTerminal(agent: string) {
248+ const program = appState.agents.find((candidate) => candidate.name === agent)?.signIn
249+ if (!program) return
250+ signInOpened.add(agent)
251+ openWorkspace(agent)
252+ newTerminal(agent, signInInput(program))
253+ appState.signInAgent = agent
254+ appState.terminalRequest++
255+}
256+
257+/** Restarts agent once signed in, and goes back to its conversation. */
258+export function signedIn(agent: string) {
259+ if (appState.signInAgent === agent) appState.signInAgent = ''
260+ return act(async () => {
261+ await AgentService.Restart(agent)
262+ await openDirect(agent)
263+ })
264+}
265+
230 /** Opens the Log panel on agent's log (issue #98: "See the log"). */266 /** Opens the Log panel on agent's log (issue #98: "See the log"). */
231 export function showLog(agent: string) {267 export function showLog(agent: string) {
232 appState.logAgent = agent268 appState.logAgent = agent
@@ -418,6 +454,11 @@ export function connect(): () => void {
418 if ('message' in item) {454 if ('message' in item) {
419 const { channel, message } = item.message455 const { channel, message } = item.message
420 applyMessage(conversationOf(channel), message)456 applyMessage(conversationOf(channel), message)
457+ // Issue #106: an agent that is not signed in goes to its terminal, once per start.
458+ if (message.role === 'agent' && message.done && message.agent && !signInOpened.has(message.agent)) {
459+ const signIn = appState.agents.find((candidate) => candidate.name === message.agent)?.signIn
460+ if (needsSignIn(message.error, signIn)) signInInTerminal(message.agent)
461+ }
421 if (message.role === 'agent' && message.done && channel !== appState.selectedChannel) {462 if (message.role === 'agent' && message.done && channel !== appState.selectedChannel) {
422 appState.unread[channel] = (appState.unread[channel] ?? 0) + 1463 appState.unread[channel] = (appState.unread[channel] ?? 0) + 1
423 }464 }
@@ -454,6 +495,7 @@ export function connect(): () => void {
454 agent.state = payload.state as Status['state']495 agent.state = payload.state as Status['state']
455 agent.error = payload.error ?? ''496 agent.error = payload.error ?? ''
456 if (payload.state !== 'starting') delete appState.progress[payload.agent]497 if (payload.state !== 'starting') delete appState.progress[payload.agent]
498+ if (payload.state === 'starting' || payload.state === 'stopped') signInOpened.delete(payload.agent)
457 }),499 }),
458 subscribe<AgentProgressPayload>(AgentProgress, (payload) => {500 subscribe<AgentProgressPayload>(AgentProgress, (payload) => {
459 appState.progress[payload.agent] = nextProgress(appState.progress[payload.agent], payload)501 appState.progress[payload.agent] = nextProgress(appState.progress[payload.agent], payload)
modified frontend/src/lib/terminalSessions.svelte.ts +9 -2
@@ -36,6 +36,8 @@ type Screen = {
3636 opened: boolean
3737 id: string
3838 stop: () => void
39+ /** Typed once its shell has started, e.g. "claude\r" to sign in (issue #106). */
40+ input: string
3941 }
4042
4143 /** The terminals of each agent, in the order they were opened. */
@@ -61,7 +63,7 @@ export function runningTerminals(agent: string): number {
6163 * has measured it. Returns its key, or "" when the agent has as many
6264 * terminals as allowed.
6365 */
64-export function newTerminal(agent: string): string {
66+export function newTerminal(agent: string, input = ''): string {
6567 const sessions = terminalsOf(agent)
6668 if (sessions.length >= maxTerminalsPerAgent) return ''
6769 const key = `term-${++sequence}`
@@ -76,7 +78,7 @@ export function newTerminal(agent: string): string {
7678 const element = document.createElement('div')
7779 element.className = 'terminal-screen'
7880 element.style.height = '100%'
79- const screen: Screen = { xterm, fit, element, opened: false, id: '', stop: () => {} }
81+ const screen: Screen = { xterm, fit, element, opened: false, id: '', stop: () => {}, input }
8082 xterm.onData((data) => {
8183 if (screen.id) void TerminalService.Write(screen.id, data)
8284 })
@@ -125,6 +127,11 @@ async function start(key: string) {
125127 if (ended) ended.ended = true
126128 },
127129 )
130+ // The sign-in program (issue #106), typed once the shell is there.
131+ if (screen.input) {
132+ void TerminalService.Write(screen.id, screen.input)
133+ screen.input = ''
134+ }
128135 }
129136
130137 /**
@@ -36,6 +36,8 @@ type Screen = {
36 opened: boolean36 opened: boolean
37 id: string37 id: string
38 stop: () => void38 stop: () => void
39+ /** Typed once its shell has started, e.g. "claude\r" to sign in (issue #106). */
40+ input: string
39 }41 }
40 42
41 /** The terminals of each agent, in the order they were opened. */43 /** The terminals of each agent, in the order they were opened. */
@@ -61,7 +63,7 @@ export function runningTerminals(agent: string): number {
61 * has measured it. Returns its key, or "" when the agent has as many63 * has measured it. Returns its key, or "" when the agent has as many
62 * terminals as allowed.64 * terminals as allowed.
63 */65 */
64-export function newTerminal(agent: string): string {66+export function newTerminal(agent: string, input = ''): string {
65 const sessions = terminalsOf(agent)67 const sessions = terminalsOf(agent)
66 if (sessions.length >= maxTerminalsPerAgent) return ''68 if (sessions.length >= maxTerminalsPerAgent) return ''
67 const key = `term-${++sequence}`69 const key = `term-${++sequence}`
@@ -76,7 +78,7 @@ export function newTerminal(agent: string): string {
76 const element = document.createElement('div')78 const element = document.createElement('div')
77 element.className = 'terminal-screen'79 element.className = 'terminal-screen'
78 element.style.height = '100%'80 element.style.height = '100%'
79- const screen: Screen = { xterm, fit, element, opened: false, id: '', stop: () => {} }81+ const screen: Screen = { xterm, fit, element, opened: false, id: '', stop: () => {}, input }
80 xterm.onData((data) => {82 xterm.onData((data) => {
81 if (screen.id) void TerminalService.Write(screen.id, data)83 if (screen.id) void TerminalService.Write(screen.id, data)
82 })84 })
@@ -125,6 +127,11 @@ async function start(key: string) {
125 if (ended) ended.ended = true127 if (ended) ended.ended = true
126 },128 },
127 )129 )
130+ // The sign-in program (issue #106), typed once the shell is there.
131+ if (screen.input) {
132+ void TerminalService.Write(screen.id, screen.input)
133+ screen.input = ''
134+ }
128 }135 }
129 136
130 /**137 /**
modified internal/agents/manager.go +4 -0
@@ -126,6 +126,9 @@ type Status struct {
126126 // (Unix milliseconds), as agent:progress gives them (issue #98).
127127 Step string `json:"step,omitempty"`
128128 Since int64 `json:"since,omitempty"`
129+ // SignIn is the program its terminal runs to sign in with an account
130+ // instead of an API key ("claude", issues #105 and #106), or "".
131+ SignIn string `json:"signIn,omitempty"`
129132 }
130133
131134 // Manager owns the agent processes. It is safe for concurrent use.
@@ -200,6 +203,7 @@ func (a *agent) status() Status {
200203 Runtime: a.definition.Runtime.Type,
201204 CanStopSandbox: len(a.definition.Runtime.Lifecycle.Stop) > 0,
202205 CanRemoveSandbox: len(a.definition.Runtime.Lifecycle.Remove) > 0,
206+ SignIn: SignInProgram(a.definition),
203207 }
204208 if a.state == StateStarting {
205209 status.Step, status.Since = a.step, a.since.UnixMilli()
@@ -126,6 +126,9 @@ type Status struct {
126 // (Unix milliseconds), as agent:progress gives them (issue #98).126 // (Unix milliseconds), as agent:progress gives them (issue #98).
127 Step string `json:"step,omitempty"`127 Step string `json:"step,omitempty"`
128 Since int64 `json:"since,omitempty"`128 Since int64 `json:"since,omitempty"`
129+ // SignIn is the program its terminal runs to sign in with an account
130+ // instead of an API key ("claude", issues #105 and #106), or "".
131+ SignIn string `json:"signIn,omitempty"`
129 }132 }
130 133
131 // Manager owns the agent processes. It is safe for concurrent use.134 // Manager owns the agent processes. It is safe for concurrent use.
@@ -200,6 +203,7 @@ func (a *agent) status() Status {
200 Runtime: a.definition.Runtime.Type,203 Runtime: a.definition.Runtime.Type,
201 CanStopSandbox: len(a.definition.Runtime.Lifecycle.Stop) > 0,204 CanStopSandbox: len(a.definition.Runtime.Lifecycle.Stop) > 0,
202 CanRemoveSandbox: len(a.definition.Runtime.Lifecycle.Remove) > 0,205 CanRemoveSandbox: len(a.definition.Runtime.Lifecycle.Remove) > 0,
206+ SignIn: SignInProgram(a.definition),
203 }207 }
204 if a.state == StateStarting {208 if a.state == StateStarting {
205 status.Step, status.Since = a.step, a.since.UnixMilli()209 status.Step, status.Since = a.step, a.since.UnixMilli()
added internal/agents/signin.go +36 -0
new file mode 100644
@@ -0,0 +1,36 @@
1+// Copyright (c) 2026 Philippe Charrière — Sidekicks Source-Available License 1.0, see LICENSE
2+
3+package agents
4+
5+import (
6+ "path"
7+ "strings"
8+
9+ "git.rickub.com/bots-garden/sidekicks/internal/config"
10+)
11+
12+// Signing in from the agent's terminal (issues #105 and #106): an agent that
13+// runs without an API key answers "Authentication required" until its user
14+// signs in with their account — for Claude, by running claude in the
15+// sandbox and typing /login there. signInPrograms maps the ACP program of
16+// such an agent to the program its terminal runs for that.
17+var signInPrograms = map[string]string{
18+ "claude-agent-acp": "claude",
19+}
20+
21+// SignInProgram is the program to run in the terminal of definition to sign
22+// in, or "" when there is none: only agents in an sbx sandbox, whose
23+// terminal is inside it.
24+//
25+// SignInProgram(config.Agent{Command: "sbx", Args: []string{"exec", "-i", "claude", "claude-agent-acp"}, Runtime: config.Runtime{Type: "sbx"}}) // "claude"
26+func SignInProgram(definition config.Agent) string {
27+ if definition.Runtime.Type != "sbx" {
28+ return ""
29+ }
30+ for _, word := range append([]string{definition.Command}, definition.Args...) {
31+ if program, ok := signInPrograms[path.Base(strings.TrimSpace(word))]; ok {
32+ return program
33+ }
34+ }
35+ return ""
36+}
new file mode 100644
@@ -0,0 +1,36 @@
1+// Copyright (c) 2026 Philippe Charrière — Sidekicks Source-Available License 1.0, see LICENSE
2+
3+package agents
4+
5+import (
6+ "path"
7+ "strings"
8+
9+ "git.rickub.com/bots-garden/sidekicks/internal/config"
10+)
11+
12+// Signing in from the agent's terminal (issues #105 and #106): an agent that
13+// runs without an API key answers "Authentication required" until its user
14+// signs in with their account — for Claude, by running claude in the
15+// sandbox and typing /login there. signInPrograms maps the ACP program of
16+// such an agent to the program its terminal runs for that.
17+var signInPrograms = map[string]string{
18+ "claude-agent-acp": "claude",
19+}
20+
21+// SignInProgram is the program to run in the terminal of definition to sign
22+// in, or "" when there is none: only agents in an sbx sandbox, whose
23+// terminal is inside it.
24+//
25+// SignInProgram(config.Agent{Command: "sbx", Args: []string{"exec", "-i", "claude", "claude-agent-acp"}, Runtime: config.Runtime{Type: "sbx"}}) // "claude"
26+func SignInProgram(definition config.Agent) string {
27+ if definition.Runtime.Type != "sbx" {
28+ return ""
29+ }
30+ for _, word := range append([]string{definition.Command}, definition.Args...) {
31+ if program, ok := signInPrograms[path.Base(strings.TrimSpace(word))]; ok {
32+ return program
33+ }
34+ }
35+ return ""
36+}
added internal/agents/signin_test.go +29 -0
new file mode 100644
@@ -0,0 +1,29 @@
1+// Copyright (c) 2026 Philippe Charrière — Sidekicks Source-Available License 1.0, see LICENSE
2+
3+package agents_test
4+
5+import (
6+ "testing"
7+
8+ "git.rickub.com/bots-garden/sidekicks/internal/agents"
9+ "git.rickub.com/bots-garden/sidekicks/internal/config"
10+)
11+
12+// Issues #105 and #106: a Claude agent in a sandbox signs in by running
13+// claude in its terminal; other agents have no such program.
14+func TestSignInProgramIsClaudeForClaudeInASandboxOnly(t *testing.T) {
15+ sbx := config.Runtime{Type: "sbx"}
16+ for _, test := range []struct {
17+ agent config.Agent
18+ want string
19+ }{
20+ {config.Agent{Command: "sbx", Args: []string{"exec", "-i", "claude", "claude-agent-acp"}, Runtime: sbx}, "claude"},
21+ {config.Agent{Command: "sbx", Args: []string{"exec", "-i", "claude", "/usr/local/bin/claude-agent-acp"}, Runtime: sbx}, "claude"},
22+ {config.Agent{Command: "sbx", Args: []string{"exec", "-i", "codex", "codex-acp"}, Runtime: sbx}, ""},
23+ {config.Agent{Command: "claude-agent-acp"}, ""},
24+ } {
25+ if got := agents.SignInProgram(test.agent); got != test.want {
26+ t.Errorf("%v: %q, want %q", test.agent.Args, got, test.want)
27+ }
28+ }
29+}
new file mode 100644
@@ -0,0 +1,29 @@
1+// Copyright (c) 2026 Philippe Charrière — Sidekicks Source-Available License 1.0, see LICENSE
2+
3+package agents_test
4+
5+import (
6+ "testing"
7+
8+ "git.rickub.com/bots-garden/sidekicks/internal/agents"
9+ "git.rickub.com/bots-garden/sidekicks/internal/config"
10+)
11+
12+// Issues #105 and #106: a Claude agent in a sandbox signs in by running
13+// claude in its terminal; other agents have no such program.
14+func TestSignInProgramIsClaudeForClaudeInASandboxOnly(t *testing.T) {
15+ sbx := config.Runtime{Type: "sbx"}
16+ for _, test := range []struct {
17+ agent config.Agent
18+ want string
19+ }{
20+ {config.Agent{Command: "sbx", Args: []string{"exec", "-i", "claude", "claude-agent-acp"}, Runtime: sbx}, "claude"},
21+ {config.Agent{Command: "sbx", Args: []string{"exec", "-i", "claude", "/usr/local/bin/claude-agent-acp"}, Runtime: sbx}, "claude"},
22+ {config.Agent{Command: "sbx", Args: []string{"exec", "-i", "codex", "codex-acp"}, Runtime: sbx}, ""},
23+ {config.Agent{Command: "claude-agent-acp"}, ""},
24+ } {
25+ if got := agents.SignInProgram(test.agent); got != test.want {
26+ t.Errorf("%v: %q, want %q", test.agent.Args, got, test.want)
27+ }
28+ }
29+}
modified internal/sbxcreate/sbxcreate.go +5 -2
@@ -54,7 +54,10 @@ type Kind struct {
5454 Token bool `json:"token"`
5555 // FromGH is true when the token can come from the GitHub CLI
5656 // (`gh auth token`, issue #103): the assistant offers it.
57- FromGH bool `json:"fromGh"`
57+ FromGH bool `json:"fromGh"`
58+ // SignIn is the program to run in the agent's terminal to sign in with
59+ // an account instead of the key ("claude": then /login, issue #105).
60+ SignIn string `json:"signIn"`
5861 Bindings Binding `json:"-"`
5962 // Shared is the other sbx services that get the same secret, each with
6063 // its domains (Copilot's token also goes to github, for git and gh).
@@ -82,7 +85,7 @@ var Catalogue = []Kind{
8285 {
8386 ID: "claude", Title: "Claude", Icon: "logo:claude",
8487 Agent: "claude", Kit: "docker.io/sbx/claude-acp:latest", Program: "claude-agent-acp",
85- Service: "anthropic", KeyURL: "https://console.anthropic.com/settings/keys",
88+ Service: "anthropic", KeyURL: "https://console.anthropic.com/settings/keys", SignIn: "claude",
8689 Bindings: Binding{APIKey: []string{"api.anthropic.com", "console.anthropic.com"}},
8790 },
8891 {
@@ -54,7 +54,10 @@ type Kind struct {
54 Token bool `json:"token"`54 Token bool `json:"token"`
55 // FromGH is true when the token can come from the GitHub CLI55 // FromGH is true when the token can come from the GitHub CLI
56 // (`gh auth token`, issue #103): the assistant offers it.56 // (`gh auth token`, issue #103): the assistant offers it.
57- FromGH bool `json:"fromGh"`57+ FromGH bool `json:"fromGh"`
58+ // SignIn is the program to run in the agent's terminal to sign in with
59+ // an account instead of the key ("claude": then /login, issue #105).
60+ SignIn string `json:"signIn"`
58 Bindings Binding `json:"-"`61 Bindings Binding `json:"-"`
59 // Shared is the other sbx services that get the same secret, each with62 // Shared is the other sbx services that get the same secret, each with
60 // its domains (Copilot's token also goes to github, for git and gh).63 // its domains (Copilot's token also goes to github, for git and gh).
@@ -82,7 +85,7 @@ var Catalogue = []Kind{
82 {85 {
83 ID: "claude", Title: "Claude", Icon: "logo:claude",86 ID: "claude", Title: "Claude", Icon: "logo:claude",
84 Agent: "claude", Kit: "docker.io/sbx/claude-acp:latest", Program: "claude-agent-acp",87 Agent: "claude", Kit: "docker.io/sbx/claude-acp:latest", Program: "claude-agent-acp",
85- Service: "anthropic", KeyURL: "https://console.anthropic.com/settings/keys",88+ Service: "anthropic", KeyURL: "https://console.anthropic.com/settings/keys", SignIn: "claude",
86 Bindings: Binding{APIKey: []string{"api.anthropic.com", "console.anthropic.com"}},89 Bindings: Binding{APIKey: []string{"api.anthropic.com", "console.anthropic.com"}},
87 },90 },
88 {91 {