#83 Guide : ajouter un agent Claude ACP dans une sandbox sbx (EN + FR)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7a52349 parent: 24a7fc9 added
.tickets/issues/0083-guide-ajouter-un-agent-claude-acp-dans-une-sandbox.yaml +44 -0 | new file mode 100644 | ||
| @@ -0,0 +1,44 @@ | ||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | |
| 2 | +id: 83 | |
| 3 | +title: "Guide : ajouter un agent Claude ACP dans une sandbox sbx" | |
| 4 | +state: closed | |
| 5 | +author: | |
| 6 | + name: k33g | |
| 7 | + email: ph.charriere@gmail.com | |
| 8 | +createdAt: 2026-11-09T06:48:45.000Z | |
| 9 | +updatedAt: 2026-11-09T06:50:02.000Z | |
| 10 | +labels: | |
| 11 | + - documentation | |
| 12 | + - citizen-ux | |
| 13 | +milestone: "M8 · Divers ajouts" | |
| 14 | +epic: Docker SBX | |
| 15 | +related: | |
| 16 | + - 81 | |
| 17 | +body: | | |
| 18 | + Un exemple existe dans [agents/snippets/clauce-acp](agents/snippets/clauce-acp/README.md) : un `sbxenv.yaml` | |
| 19 | + (kit `docker.io/sbx/claude-acp`, clé Anthropic injectée par sbx via `bindings`) et l'entrée à ajouter | |
| 20 | + dans la liste des agents de Sidekicks (`sbx exec -i claude-acp claude-agent-acp`, `runtime.lifecycle`). | |
| 21 | + | |
| 22 | + Écrire un guide pratique (EN + FR) qui explique, pas à pas, comment ajouter ce type d'agent : | |
| 23 | + avec l'assistant **Add an agent** (dépôt du `sbxenv.yaml`), ou à la main dans **Settings**. | |
| 24 | + | |
| 25 | + ## Critères d'acceptation | |
| 26 | + - Guide EN `docs/en/how-to/add-a-claude-agent-in-a-sandbox.md` et FR | |
| 27 | + `docs/fr/how-to/ajouter-un-agent-claude-dans-une-sandbox.md`, au format Diátaxis (how-to). | |
| 28 | + - Le `sbxenv.yaml` et l'entrée YAML complets, la clé Anthropic hors de la configuration de Sidekicks. | |
| 29 | + - Vérifier que tout marche, variantes, et liens vers le guide sbx général ; guide listé dans les index EN + FR. | |
| 30 | +tasks: [] | |
| 31 | +comments: | |
| 32 | + - id: 1 | |
| 33 | + author: | |
| 34 | + name: k33g | |
| 35 | + email: ph.charriere@gmail.com | |
| 36 | + createdAt: 2026-11-09T06:50:02.000Z | |
| 37 | + body: | | |
| 38 | + Fait : [guide EN](docs/en/how-to/add-a-claude-agent-in-a-sandbox.md) et [guide FR](docs/fr/how-to/ajouter-un-agent-claude-dans-une-sandbox.md), | |
| 39 | + listés dans les index et liés depuis le guide sbx général. | |
| 40 | + - Deux chemins : l'assistant (dépôt du `sbxenv.yaml`, programme `claude-agent-acp`, arguments vides — il produit | |
| 41 | + exactement l'entrée de l'exemple) ou l'entrée YAML dans **Settings**. | |
| 42 | + - L'exemple [agents/snippets/clauce-acp](agents/snippets/clauce-acp/README.md) est versionné avec le guide. | |
| 43 | + - Non vérifié (pas de sbx ici) : la commande exacte qui enregistre la clé Anthropic dans sbx ; le guide renvoie à | |
| 44 | + `sbx secret --help`. À compléter après un essai sur le Mac. | |
| new file mode 100644 | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | ||
| 2 | +id: 83 | ||
| 3 | +title: "Guide : ajouter un agent Claude ACP dans une sandbox sbx" | ||
| 4 | +state: closed | ||
| 5 | +author: | ||
| 6 | + name: k33g | ||
| 7 | + email: ph.charriere@gmail.com | ||
| 8 | +createdAt: 2026-11-09T06:48:45.000Z | ||
| 9 | +updatedAt: 2026-11-09T06:50:02.000Z | ||
| 10 | +labels: | ||
| 11 | + - documentation | ||
| 12 | + - citizen-ux | ||
| 13 | +milestone: "M8 · Divers ajouts" | ||
| 14 | +epic: Docker SBX | ||
| 15 | +related: | ||
| 16 | + - 81 | ||
| 17 | +body: | | ||
| 18 | + Un exemple existe dans [agents/snippets/clauce-acp](agents/snippets/clauce-acp/README.md) : un `sbxenv.yaml` | ||
| 19 | + (kit `docker.io/sbx/claude-acp`, clé Anthropic injectée par sbx via `bindings`) et l'entrée à ajouter | ||
| 20 | + dans la liste des agents de Sidekicks (`sbx exec -i claude-acp claude-agent-acp`, `runtime.lifecycle`). | ||
| 21 | + | ||
| 22 | + Écrire un guide pratique (EN + FR) qui explique, pas à pas, comment ajouter ce type d'agent : | ||
| 23 | + avec l'assistant **Add an agent** (dépôt du `sbxenv.yaml`), ou à la main dans **Settings**. | ||
| 24 | + | ||
| 25 | + ## Critères d'acceptation | ||
| 26 | + - Guide EN `docs/en/how-to/add-a-claude-agent-in-a-sandbox.md` et FR | ||
| 27 | + `docs/fr/how-to/ajouter-un-agent-claude-dans-une-sandbox.md`, au format Diátaxis (how-to). | ||
| 28 | + - Le `sbxenv.yaml` et l'entrée YAML complets, la clé Anthropic hors de la configuration de Sidekicks. | ||
| 29 | + - Vérifier que tout marche, variantes, et liens vers le guide sbx général ; guide listé dans les index EN + FR. | ||
| 30 | +tasks: [] | ||
| 31 | +comments: | ||
| 32 | + - id: 1 | ||
| 33 | + author: | ||
| 34 | + name: k33g | ||
| 35 | + email: ph.charriere@gmail.com | ||
| 36 | + createdAt: 2026-11-09T06:50:02.000Z | ||
| 37 | + body: | | ||
| 38 | + Fait : [guide EN](docs/en/how-to/add-a-claude-agent-in-a-sandbox.md) et [guide FR](docs/fr/how-to/ajouter-un-agent-claude-dans-une-sandbox.md), | ||
| 39 | + listés dans les index et liés depuis le guide sbx général. | ||
| 40 | + - Deux chemins : l'assistant (dépôt du `sbxenv.yaml`, programme `claude-agent-acp`, arguments vides — il produit | ||
| 41 | + exactement l'entrée de l'exemple) ou l'entrée YAML dans **Settings**. | ||
| 42 | + - L'exemple [agents/snippets/clauce-acp](agents/snippets/clauce-acp/README.md) est versionné avec le guide. | ||
| 43 | + - Non vérifié (pas de sbx ici) : la commande exacte qui enregistre la clé Anthropic dans sbx ; le guide renvoie à | ||
| 44 | + `sbx secret --help`. À compléter après un essai sur le Mac. | ||
added
agents/snippets/clauce-acp/README.md +18 -0 | new file mode 100644 | ||
| @@ -0,0 +1,18 @@ | ||
| 1 | +# Add Claude ACP Agent | |
| 2 | + | |
| 3 | +```yaml | |
| 4 | + - name: claude | |
| 5 | + title: Claude | |
| 6 | + icon: "📙" | |
| 7 | + command: sbx | |
| 8 | + args: [exec, -i, claude-acp, claude-agent-acp] | |
| 9 | + workspace: /Users/k33g/kDrive/citizen-developers/clauce-acp/workspace | |
| 10 | + runtime: | |
| 11 | + type: sbx | |
| 12 | + sandbox: claude-acp | |
| 13 | + lifecycle: | |
| 14 | + folder: /Users/k33g/kDrive/citizen-developers/clauce-acp | |
| 15 | + create: [sbx, env, create, --force] | |
| 16 | + stop: [sbx, stop, claude-acp] | |
| 17 | + remove: [sbx, env, rm, --force] | |
| 18 | +``` | |
| \ No newline at end of file | ||
| new file mode 100644 | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | +# Add Claude ACP Agent | ||
| 2 | + | ||
| 3 | +```yaml | ||
| 4 | + - name: claude | ||
| 5 | + title: Claude | ||
| 6 | + icon: "📙" | ||
| 7 | + command: sbx | ||
| 8 | + args: [exec, -i, claude-acp, claude-agent-acp] | ||
| 9 | + workspace: /Users/k33g/kDrive/citizen-developers/clauce-acp/workspace | ||
| 10 | + runtime: | ||
| 11 | + type: sbx | ||
| 12 | + sandbox: claude-acp | ||
| 13 | + lifecycle: | ||
| 14 | + folder: /Users/k33g/kDrive/citizen-developers/clauce-acp | ||
| 15 | + create: [sbx, env, create, --force] | ||
| 16 | + stop: [sbx, stop, claude-acp] | ||
| 17 | + remove: [sbx, env, rm, --force] | ||
| 18 | +``` | ||
| \ No newline at end of file | \ No newline at end of file | ||
added
agents/snippets/clauce-acp/sbxenv.yaml +21 -0 | new file mode 100644 | ||
| @@ -0,0 +1,21 @@ | ||
| 1 | +schemaVersion: "1" | |
| 2 | + | |
| 3 | +name: claude-acp | |
| 4 | +agent: claude | |
| 5 | + | |
| 6 | +# Répertoire du projet, relatif à ce fichier. | |
| 7 | +workspace: ./workspace | |
| 8 | + | |
| 9 | +kits: | |
| 10 | + - docker.io/sbx/claude-acp:latest | |
| 11 | + | |
| 12 | +# Autorise l’injection de la clé Anthropic pour ces domaines. | |
| 13 | +bindings: | |
| 14 | + anthropic: | |
| 15 | + apiKey: | |
| 16 | + domains: | |
| 17 | + - api.anthropic.com | |
| 18 | + - console.anthropic.com | |
| 19 | + | |
| 20 | +sandboxOptions: | |
| 21 | + pullPolicy: always | |
| new file mode 100644 | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | +schemaVersion: "1" | ||
| 2 | + | ||
| 3 | +name: claude-acp | ||
| 4 | +agent: claude | ||
| 5 | + | ||
| 6 | +# Répertoire du projet, relatif à ce fichier. | ||
| 7 | +workspace: ./workspace | ||
| 8 | + | ||
| 9 | +kits: | ||
| 10 | + - docker.io/sbx/claude-acp:latest | ||
| 11 | + | ||
| 12 | +# Autorise l’injection de la clé Anthropic pour ces domaines. | ||
| 13 | +bindings: | ||
| 14 | + anthropic: | ||
| 15 | + apiKey: | ||
| 16 | + domains: | ||
| 17 | + - api.anthropic.com | ||
| 18 | + - console.anthropic.com | ||
| 19 | + | ||
| 20 | +sandboxOptions: | ||
| 21 | + pullPolicy: always | ||
added
agents/snippets/clauce-acp/workspace/notes/hello.txt +0 -0 | new file mode 100644 |
| new file mode 100644 |
modified
docs/en/README.md +1 -1 | @@ -7,7 +7,7 @@ This documentation follows [Diátaxis](https://diataxis.fr): pick the section th | ||
| 7 | 7 | | You want to… | Section | Pages | |
| 8 | 8 | | --- | --- | --- | |
| 9 | 9 | | **learn** by doing | Tutorials | [Your first agent, without writing any configuration](tutorials/your-first-agent.md) · [A channel with two agents](tutorials/first-channel.md) · [Your first conversation with an agent](tutorials/first-conversation.md) · [Your first launch of Sidekicks](tutorials/first-launch.md) · [Your first ACP exchange with a test agent](tutorials/first-acp-exchange.md) | |
| 10 | -| **do** a specific task | How-to guides | [Install Sidekicks](how-to/install-sidekicks.md) · [Add an agent](how-to/add-an-agent.md) · [Work with an agent's files and terminal](how-to/work-with-an-agents-files.md) · [Run an agent in a Docker container](how-to/run-an-agent-in-docker.md) · [Run an agent in an sbx sandbox](how-to/run-an-agent-in-a-sandbox.md) · [Join files to a message](how-to/join-files-to-a-message.md) · [Manage channels and their agents](how-to/manage-channels.md) · [Edit or switch the configuration](how-to/edit-or-switch-the-configuration.md) · [Reset Sidekicks](how-to/reset-sidekicks.md) · [Watch the memory pressure](how-to/watch-the-memory-pressure.md) · [Develop the application](how-to/develop-the-application.md) · [Run the tests](how-to/run-the-tests.md) · [Check a change before merging it](how-to/check-before-merging.md) · [Run a test agent](how-to/run-a-test-agent.md) · [Run the end-to-end scenarios (v0.1)](how-to/run-the-end-to-end-scenarios.md) · [Set the version](how-to/set-the-version.md) · [Publish a release](how-to/publish-a-release.md) · [Sign and notarize for macOS](how-to/sign-and-notarize-on-macos.md) · [Test issue #52 on macOS](how-to/test-issue-52-on-macos.md) · [Test issues #49 and #50 on macOS](how-to/test-issues-49-and-50-on-macos.md) · [Test issue #47 on macOS](how-to/test-issue-47-on-macos.md) · [Test milestone M4 on macOS](how-to/test-milestone-m4-on-macos.md) · [Test milestone M3 on macOS](how-to/test-milestone-m3-on-macos.md) · [Test milestone M2 on macOS](how-to/test-milestone-m2-on-macos.md) · [Test milestone M1 on macOS](how-to/test-milestone-m1-on-macos.md) · [Test milestone Initialize on macOS](how-to/test-milestone-initialize-on-macos.md) | | |
| 10 | +| **do** a specific task | How-to guides | [Install Sidekicks](how-to/install-sidekicks.md) · [Add an agent](how-to/add-an-agent.md) · [Work with an agent's files and terminal](how-to/work-with-an-agents-files.md) · [Run an agent in a Docker container](how-to/run-an-agent-in-docker.md) · [Run an agent in an sbx sandbox](how-to/run-an-agent-in-a-sandbox.md) · [Add a Claude agent in an sbx sandbox](how-to/add-a-claude-agent-in-a-sandbox.md) · [Join files to a message](how-to/join-files-to-a-message.md) · [Manage channels and their agents](how-to/manage-channels.md) · [Edit or switch the configuration](how-to/edit-or-switch-the-configuration.md) · [Reset Sidekicks](how-to/reset-sidekicks.md) · [Watch the memory pressure](how-to/watch-the-memory-pressure.md) · [Develop the application](how-to/develop-the-application.md) · [Run the tests](how-to/run-the-tests.md) · [Check a change before merging it](how-to/check-before-merging.md) · [Run a test agent](how-to/run-a-test-agent.md) · [Run the end-to-end scenarios (v0.1)](how-to/run-the-end-to-end-scenarios.md) · [Set the version](how-to/set-the-version.md) · [Publish a release](how-to/publish-a-release.md) · [Sign and notarize for macOS](how-to/sign-and-notarize-on-macos.md) · [Test issue #52 on macOS](how-to/test-issue-52-on-macos.md) · [Test issues #49 and #50 on macOS](how-to/test-issues-49-and-50-on-macos.md) · [Test issue #47 on macOS](how-to/test-issue-47-on-macos.md) · [Test milestone M4 on macOS](how-to/test-milestone-m4-on-macos.md) · [Test milestone M3 on macOS](how-to/test-milestone-m3-on-macos.md) · [Test milestone M2 on macOS](how-to/test-milestone-m2-on-macos.md) · [Test milestone M1 on macOS](how-to/test-milestone-m1-on-macos.md) · [Test milestone Initialize on macOS](how-to/test-milestone-initialize-on-macos.md) | | |
| 11 | 11 | | **look up** an exact detail | Reference | [The configuration file](reference/configuration.md) · [Keyboard shortcuts](reference/keyboard-shortcuts.md) · [Agents, channels and events](reference/agents-and-events.md) · [Commands](reference/commands.md) · [scripts/agents.sh](reference/agents-script.md) | |
| 12 | 12 | | **understand** why | Explanation | [Workspaces and terminals](explanation/workspaces-and-terminals.md) · [Channels and what each agent knows](explanation/channels-and-context.md) · [Permissions and trust](explanation/permissions.md) · [Why ACP](explanation/why-acp.md) · [The interface stack](explanation/ui-stack.md) · [Architecture](explanation/architecture.md) · [Memory and local models](explanation/memory-and-local-models.md) | |
| 13 | 13 | |
| @@ -7,7 +7,7 @@ This documentation follows [Diátaxis](https://diataxis.fr): pick the section th | |||
| 7 | | You want to… | Section | Pages | | 7 | | You want to… | Section | Pages | |
| 8 | | --- | --- | --- | | 8 | | --- | --- | --- | |
| 9 | | **learn** by doing | Tutorials | [Your first agent, without writing any configuration](tutorials/your-first-agent.md) · [A channel with two agents](tutorials/first-channel.md) · [Your first conversation with an agent](tutorials/first-conversation.md) · [Your first launch of Sidekicks](tutorials/first-launch.md) · [Your first ACP exchange with a test agent](tutorials/first-acp-exchange.md) | | 9 | | **learn** by doing | Tutorials | [Your first agent, without writing any configuration](tutorials/your-first-agent.md) · [A channel with two agents](tutorials/first-channel.md) · [Your first conversation with an agent](tutorials/first-conversation.md) · [Your first launch of Sidekicks](tutorials/first-launch.md) · [Your first ACP exchange with a test agent](tutorials/first-acp-exchange.md) | |
| 10 | -| **do** a specific task | How-to guides | [Install Sidekicks](how-to/install-sidekicks.md) · [Add an agent](how-to/add-an-agent.md) · [Work with an agent's files and terminal](how-to/work-with-an-agents-files.md) · [Run an agent in a Docker container](how-to/run-an-agent-in-docker.md) · [Run an agent in an sbx sandbox](how-to/run-an-agent-in-a-sandbox.md) · [Join files to a message](how-to/join-files-to-a-message.md) · [Manage channels and their agents](how-to/manage-channels.md) · [Edit or switch the configuration](how-to/edit-or-switch-the-configuration.md) · [Reset Sidekicks](how-to/reset-sidekicks.md) · [Watch the memory pressure](how-to/watch-the-memory-pressure.md) · [Develop the application](how-to/develop-the-application.md) · [Run the tests](how-to/run-the-tests.md) · [Check a change before merging it](how-to/check-before-merging.md) · [Run a test agent](how-to/run-a-test-agent.md) · [Run the end-to-end scenarios (v0.1)](how-to/run-the-end-to-end-scenarios.md) · [Set the version](how-to/set-the-version.md) · [Publish a release](how-to/publish-a-release.md) · [Sign and notarize for macOS](how-to/sign-and-notarize-on-macos.md) · [Test issue #52 on macOS](how-to/test-issue-52-on-macos.md) · [Test issues #49 and #50 on macOS](how-to/test-issues-49-and-50-on-macos.md) · [Test issue #47 on macOS](how-to/test-issue-47-on-macos.md) · [Test milestone M4 on macOS](how-to/test-milestone-m4-on-macos.md) · [Test milestone M3 on macOS](how-to/test-milestone-m3-on-macos.md) · [Test milestone M2 on macOS](how-to/test-milestone-m2-on-macos.md) · [Test milestone M1 on macOS](how-to/test-milestone-m1-on-macos.md) · [Test milestone Initialize on macOS](how-to/test-milestone-initialize-on-macos.md) | | 10 | +| **do** a specific task | How-to guides | [Install Sidekicks](how-to/install-sidekicks.md) · [Add an agent](how-to/add-an-agent.md) · [Work with an agent's files and terminal](how-to/work-with-an-agents-files.md) · [Run an agent in a Docker container](how-to/run-an-agent-in-docker.md) · [Run an agent in an sbx sandbox](how-to/run-an-agent-in-a-sandbox.md) · [Add a Claude agent in an sbx sandbox](how-to/add-a-claude-agent-in-a-sandbox.md) · [Join files to a message](how-to/join-files-to-a-message.md) · [Manage channels and their agents](how-to/manage-channels.md) · [Edit or switch the configuration](how-to/edit-or-switch-the-configuration.md) · [Reset Sidekicks](how-to/reset-sidekicks.md) · [Watch the memory pressure](how-to/watch-the-memory-pressure.md) · [Develop the application](how-to/develop-the-application.md) · [Run the tests](how-to/run-the-tests.md) · [Check a change before merging it](how-to/check-before-merging.md) · [Run a test agent](how-to/run-a-test-agent.md) · [Run the end-to-end scenarios (v0.1)](how-to/run-the-end-to-end-scenarios.md) · [Set the version](how-to/set-the-version.md) · [Publish a release](how-to/publish-a-release.md) · [Sign and notarize for macOS](how-to/sign-and-notarize-on-macos.md) · [Test issue #52 on macOS](how-to/test-issue-52-on-macos.md) · [Test issues #49 and #50 on macOS](how-to/test-issues-49-and-50-on-macos.md) · [Test issue #47 on macOS](how-to/test-issue-47-on-macos.md) · [Test milestone M4 on macOS](how-to/test-milestone-m4-on-macos.md) · [Test milestone M3 on macOS](how-to/test-milestone-m3-on-macos.md) · [Test milestone M2 on macOS](how-to/test-milestone-m2-on-macos.md) · [Test milestone M1 on macOS](how-to/test-milestone-m1-on-macos.md) · [Test milestone Initialize on macOS](how-to/test-milestone-initialize-on-macos.md) | |
| 11 | | **look up** an exact detail | Reference | [The configuration file](reference/configuration.md) · [Keyboard shortcuts](reference/keyboard-shortcuts.md) · [Agents, channels and events](reference/agents-and-events.md) · [Commands](reference/commands.md) · [scripts/agents.sh](reference/agents-script.md) | | 11 | | **look up** an exact detail | Reference | [The configuration file](reference/configuration.md) · [Keyboard shortcuts](reference/keyboard-shortcuts.md) · [Agents, channels and events](reference/agents-and-events.md) · [Commands](reference/commands.md) · [scripts/agents.sh](reference/agents-script.md) | |
| 12 | | **understand** why | Explanation | [Workspaces and terminals](explanation/workspaces-and-terminals.md) · [Channels and what each agent knows](explanation/channels-and-context.md) · [Permissions and trust](explanation/permissions.md) · [Why ACP](explanation/why-acp.md) · [The interface stack](explanation/ui-stack.md) · [Architecture](explanation/architecture.md) · [Memory and local models](explanation/memory-and-local-models.md) | | 12 | | **understand** why | Explanation | [Workspaces and terminals](explanation/workspaces-and-terminals.md) · [Channels and what each agent knows](explanation/channels-and-context.md) · [Permissions and trust](explanation/permissions.md) · [Why ACP](explanation/why-acp.md) · [The interface stack](explanation/ui-stack.md) · [Architecture](explanation/architecture.md) · [Memory and local models](explanation/memory-and-local-models.md) | |
| 13 | 13 | ||
added
docs/en/how-to/add-a-claude-agent-in-a-sandbox.md +102 -0 | new file mode 100644 | ||
| @@ -0,0 +1,102 @@ | ||
| 1 | +# How to add a Claude agent in an sbx sandbox | |
| 2 | + | |
| 3 | +This guide shows how to add Claude (Claude Code, through its ACP adapter `claude-agent-acp`) as a Sidekicks agent that runs inside a Docker sandbox (`sbx`). Claude then works in its own folder, isolated from the rest of your computer, and Sidekicks shows its files and a terminal like for any other agent. It assumes `sbx` is installed and that you have an Anthropic API key. | |
| 4 | + | |
| 5 | +A ready-made example is in the repository: [`agents/snippets/clauce-acp`](../../../agents/snippets/clauce-acp/README.md). | |
| 6 | + | |
| 7 | +## What you need | |
| 8 | + | |
| 9 | +| | Role | | |
| 10 | +| --- | --- | | |
| 11 | +| A folder for the agent, e.g. `/Users/me/agents/claude-acp` | holds the sandbox's `sbxenv.yaml` and the `workspace/` folder Claude works in. | | |
| 12 | +| The `docker.io/sbx/claude-acp` kit | the sandbox's image, with Claude Code and `claude-agent-acp` installed. | | |
| 13 | +| Your Anthropic API key, stored in sbx | sbx adds it to Claude's requests to Anthropic: it is written neither in the sandbox nor in Sidekicks' configuration. | | |
| 14 | + | |
| 15 | +## Steps | |
| 16 | + | |
| 17 | +1. **Create the agent's folder** with an empty `workspace/` inside: | |
| 18 | + | |
| 19 | + ```bash | |
| 20 | + mkdir -p /Users/me/agents/claude-acp/workspace | |
| 21 | + ``` | |
| 22 | + | |
| 23 | +2. **Write the sandbox's `sbxenv.yaml`** in `/Users/me/agents/claude-acp`: | |
| 24 | + | |
| 25 | + ```yaml | |
| 26 | + schemaVersion: "1" | |
| 27 | + | |
| 28 | + name: claude-acp | |
| 29 | + agent: claude | |
| 30 | + | |
| 31 | + # The folder Claude works in, relative to this file. | |
| 32 | + workspace: ./workspace | |
| 33 | + | |
| 34 | + kits: | |
| 35 | + - docker.io/sbx/claude-acp:latest | |
| 36 | + | |
| 37 | + # sbx injects the Anthropic key into the requests to these domains. | |
| 38 | + bindings: | |
| 39 | + anthropic: | |
| 40 | + apiKey: | |
| 41 | + domains: | |
| 42 | + - api.anthropic.com | |
| 43 | + - console.anthropic.com | |
| 44 | + | |
| 45 | + sandboxOptions: | |
| 46 | + pullPolicy: always | |
| 47 | + ``` | |
| 48 | + | |
| 49 | + `name` is the name of the sandbox: Sidekicks uses the same one. | |
| 50 | + | |
| 51 | +3. **Give your Anthropic API key to sbx**, so that it can inject it (the `bindings` above). The key is kept by sbx, on this computer, never in a file of the folder. See `sbx secret --help` for the exact command of your sbx version. | |
| 52 | + | |
| 53 | +4. **Add the agent with the assistant**: in the **Agents** panel, click **+ Add an agent**, then: | |
| 54 | + 1. Title `Claude`, an icon if you like (📙). | |
| 55 | + 2. **Where does it run?** **In an sbx sandbox**. | |
| 56 | + 3. Drop `/Users/me/agents/claude-acp/sbxenv.yaml` on the **Recreate the sandbox when it is gone (optional)** area (or click **Choose an sbxenv.yaml…**). The sandbox (`claude-acp`), the agent's folder (`/Users/me/agents/claude-acp/workspace`) and the `sbx env` commands are filled in. | |
| 57 | + 4. **Program**: type `claude-agent-acp`. Leave **Arguments** empty. | |
| 58 | + 5. Click **Add the agent**. | |
| 59 | + | |
| 60 | + Or **in Settings**, add this entry under `agents:` and save: | |
| 61 | + | |
| 62 | + ```yaml | |
| 63 | + - name: claude | |
| 64 | + title: Claude | |
| 65 | + icon: "📙" | |
| 66 | + command: sbx | |
| 67 | + args: [exec, -i, claude-acp, claude-agent-acp] | |
| 68 | + workspace: /Users/me/agents/claude-acp/workspace | |
| 69 | + runtime: | |
| 70 | + type: sbx | |
| 71 | + sandbox: claude-acp | |
| 72 | + lifecycle: | |
| 73 | + folder: /Users/me/agents/claude-acp | |
| 74 | + create: [sbx, env, create, --force] | |
| 75 | + stop: [sbx, stop, claude-acp] | |
| 76 | + remove: [sbx, env, rm, --force] | |
| 77 | + ``` | |
| 78 | + | |
| 79 | + `workspace` is the folder Claude works in, on this computer; sbx shares it with the sandbox at the same path. `lifecycle.folder` is the folder of the `sbxenv.yaml`, where the `sbx env` commands run. | |
| 80 | + | |
| 81 | +5. **Start Claude** from the **Agents** panel (▶), or write to it. The first time, the sandbox does not exist yet: the **Log** tab shows `sandbox claude-acp not found: creating it`, then the kit being pulled — this can take a minute or two. Then Claude answers. | |
| 82 | + | |
| 83 | +## Check that it works | |
| 84 | + | |
| 85 | +- Ask Claude to write a file, e.g. "Write `notes/hello.md` with a greeting". The file appears in the agent's **Files** tab (📂) and in `/Users/me/agents/claude-acp/workspace` on this computer. | |
| 86 | +- In the **Terminal** tab, `ls` shows the same folder, from inside the sandbox. | |
| 87 | +- When Claude asks for permission to change a file or run a command, Sidekicks shows the request and waits for your answer. | |
| 88 | + | |
| 89 | +## Variants | |
| 90 | + | |
| 91 | +- **Another name for the sandbox**: change `name:` in the `sbxenv.yaml` and, in the agent's entry, the sandbox name in `args`, `runtime.sandbox` and `lifecycle.stop`. All of them must be the same. | |
| 92 | +- **Several Claude agents**: one folder, one `sbxenv.yaml` and one sandbox name each, and a different `name` for each agent (`claude`, `claude-docs`…). | |
| 93 | +- **Claude answers with an authentication error** (see the **Log** tab): the key is not stored in sbx, or not where the `bindings` expect it. Store it again, then **🗑 Remove the sandbox** and start the agent: the sandbox is created again with the key. | |
| 94 | +- **Sidekicks opened from the Finder does not find `sbx`**: write its full path in `command` (see `which sbx`), as in [How to run an agent in an sbx sandbox](run-an-agent-in-a-sandbox.md#variants). | |
| 95 | +- **Start from scratch**: **🗑 Remove the sandbox** in the agent's header removes it; the files of `workspace/` stay on this computer. | |
| 96 | + | |
| 97 | +## See also | |
| 98 | + | |
| 99 | +- [How to run an agent in an sbx sandbox](run-an-agent-in-a-sandbox.md) | |
| 100 | +- [How to add an agent](add-an-agent.md) | |
| 101 | +- [How to work with an agent's files and terminal](work-with-an-agents-files.md) | |
| 102 | +- [Reference: `runtime.lifecycle`](../reference/configuration.md#runtimelifecycle-container-and-sbx) | |
| new file mode 100644 | |||
| @@ -0,0 +1,102 @@ | |||
| 1 | +# How to add a Claude agent in an sbx sandbox | ||
| 2 | + | ||
| 3 | +This guide shows how to add Claude (Claude Code, through its ACP adapter `claude-agent-acp`) as a Sidekicks agent that runs inside a Docker sandbox (`sbx`). Claude then works in its own folder, isolated from the rest of your computer, and Sidekicks shows its files and a terminal like for any other agent. It assumes `sbx` is installed and that you have an Anthropic API key. | ||
| 4 | + | ||
| 5 | +A ready-made example is in the repository: [`agents/snippets/clauce-acp`](../../../agents/snippets/clauce-acp/README.md). | ||
| 6 | + | ||
| 7 | +## What you need | ||
| 8 | + | ||
| 9 | +| | Role | | ||
| 10 | +| --- | --- | | ||
| 11 | +| A folder for the agent, e.g. `/Users/me/agents/claude-acp` | holds the sandbox's `sbxenv.yaml` and the `workspace/` folder Claude works in. | | ||
| 12 | +| The `docker.io/sbx/claude-acp` kit | the sandbox's image, with Claude Code and `claude-agent-acp` installed. | | ||
| 13 | +| Your Anthropic API key, stored in sbx | sbx adds it to Claude's requests to Anthropic: it is written neither in the sandbox nor in Sidekicks' configuration. | | ||
| 14 | + | ||
| 15 | +## Steps | ||
| 16 | + | ||
| 17 | +1. **Create the agent's folder** with an empty `workspace/` inside: | ||
| 18 | + | ||
| 19 | + ```bash | ||
| 20 | + mkdir -p /Users/me/agents/claude-acp/workspace | ||
| 21 | + ``` | ||
| 22 | + | ||
| 23 | +2. **Write the sandbox's `sbxenv.yaml`** in `/Users/me/agents/claude-acp`: | ||
| 24 | + | ||
| 25 | + ```yaml | ||
| 26 | + schemaVersion: "1" | ||
| 27 | + | ||
| 28 | + name: claude-acp | ||
| 29 | + agent: claude | ||
| 30 | + | ||
| 31 | + # The folder Claude works in, relative to this file. | ||
| 32 | + workspace: ./workspace | ||
| 33 | + | ||
| 34 | + kits: | ||
| 35 | + - docker.io/sbx/claude-acp:latest | ||
| 36 | + | ||
| 37 | + # sbx injects the Anthropic key into the requests to these domains. | ||
| 38 | + bindings: | ||
| 39 | + anthropic: | ||
| 40 | + apiKey: | ||
| 41 | + domains: | ||
| 42 | + - api.anthropic.com | ||
| 43 | + - console.anthropic.com | ||
| 44 | + | ||
| 45 | + sandboxOptions: | ||
| 46 | + pullPolicy: always | ||
| 47 | + ``` | ||
| 48 | + | ||
| 49 | + `name` is the name of the sandbox: Sidekicks uses the same one. | ||
| 50 | + | ||
| 51 | +3. **Give your Anthropic API key to sbx**, so that it can inject it (the `bindings` above). The key is kept by sbx, on this computer, never in a file of the folder. See `sbx secret --help` for the exact command of your sbx version. | ||
| 52 | + | ||
| 53 | +4. **Add the agent with the assistant**: in the **Agents** panel, click **+ Add an agent**, then: | ||
| 54 | + 1. Title `Claude`, an icon if you like (📙). | ||
| 55 | + 2. **Where does it run?** **In an sbx sandbox**. | ||
| 56 | + 3. Drop `/Users/me/agents/claude-acp/sbxenv.yaml` on the **Recreate the sandbox when it is gone (optional)** area (or click **Choose an sbxenv.yaml…**). The sandbox (`claude-acp`), the agent's folder (`/Users/me/agents/claude-acp/workspace`) and the `sbx env` commands are filled in. | ||
| 57 | + 4. **Program**: type `claude-agent-acp`. Leave **Arguments** empty. | ||
| 58 | + 5. Click **Add the agent**. | ||
| 59 | + | ||
| 60 | + Or **in Settings**, add this entry under `agents:` and save: | ||
| 61 | + | ||
| 62 | + ```yaml | ||
| 63 | + - name: claude | ||
| 64 | + title: Claude | ||
| 65 | + icon: "📙" | ||
| 66 | + command: sbx | ||
| 67 | + args: [exec, -i, claude-acp, claude-agent-acp] | ||
| 68 | + workspace: /Users/me/agents/claude-acp/workspace | ||
| 69 | + runtime: | ||
| 70 | + type: sbx | ||
| 71 | + sandbox: claude-acp | ||
| 72 | + lifecycle: | ||
| 73 | + folder: /Users/me/agents/claude-acp | ||
| 74 | + create: [sbx, env, create, --force] | ||
| 75 | + stop: [sbx, stop, claude-acp] | ||
| 76 | + remove: [sbx, env, rm, --force] | ||
| 77 | + ``` | ||
| 78 | + | ||
| 79 | + `workspace` is the folder Claude works in, on this computer; sbx shares it with the sandbox at the same path. `lifecycle.folder` is the folder of the `sbxenv.yaml`, where the `sbx env` commands run. | ||
| 80 | + | ||
| 81 | +5. **Start Claude** from the **Agents** panel (▶), or write to it. The first time, the sandbox does not exist yet: the **Log** tab shows `sandbox claude-acp not found: creating it`, then the kit being pulled — this can take a minute or two. Then Claude answers. | ||
| 82 | + | ||
| 83 | +## Check that it works | ||
| 84 | + | ||
| 85 | +- Ask Claude to write a file, e.g. "Write `notes/hello.md` with a greeting". The file appears in the agent's **Files** tab (📂) and in `/Users/me/agents/claude-acp/workspace` on this computer. | ||
| 86 | +- In the **Terminal** tab, `ls` shows the same folder, from inside the sandbox. | ||
| 87 | +- When Claude asks for permission to change a file or run a command, Sidekicks shows the request and waits for your answer. | ||
| 88 | + | ||
| 89 | +## Variants | ||
| 90 | + | ||
| 91 | +- **Another name for the sandbox**: change `name:` in the `sbxenv.yaml` and, in the agent's entry, the sandbox name in `args`, `runtime.sandbox` and `lifecycle.stop`. All of them must be the same. | ||
| 92 | +- **Several Claude agents**: one folder, one `sbxenv.yaml` and one sandbox name each, and a different `name` for each agent (`claude`, `claude-docs`…). | ||
| 93 | +- **Claude answers with an authentication error** (see the **Log** tab): the key is not stored in sbx, or not where the `bindings` expect it. Store it again, then **🗑 Remove the sandbox** and start the agent: the sandbox is created again with the key. | ||
| 94 | +- **Sidekicks opened from the Finder does not find `sbx`**: write its full path in `command` (see `which sbx`), as in [How to run an agent in an sbx sandbox](run-an-agent-in-a-sandbox.md#variants). | ||
| 95 | +- **Start from scratch**: **🗑 Remove the sandbox** in the agent's header removes it; the files of `workspace/` stay on this computer. | ||
| 96 | + | ||
| 97 | +## See also | ||
| 98 | + | ||
| 99 | +- [How to run an agent in an sbx sandbox](run-an-agent-in-a-sandbox.md) | ||
| 100 | +- [How to add an agent](add-an-agent.md) | ||
| 101 | +- [How to work with an agent's files and terminal](work-with-an-agents-files.md) | ||
| 102 | +- [Reference: `runtime.lifecycle`](../reference/configuration.md#runtimelifecycle-container-and-sbx) | ||
modified
docs/en/how-to/run-an-agent-in-a-sandbox.md +1 -1 | @@ -64,7 +64,7 @@ The **■ Stop the sandbox** and **🗑 Remove the sandbox** buttons appear in t | ||
| 64 | 64 | - **The sandbox name is not the `name:` of the sbxenv.yaml**: after `create`, Sidekicks still finds no sandbox and says so. Make `sandbox` and `name:` the same. |
| 65 | 65 | - **Sidekicks opened from the Finder**: it may not find `sbx` in its short `PATH`. Write its full path (`command: /usr/local/bin/sbx`, see `which sbx`) or add `env: {PATH: "…"}` to the agent. |
| 66 | 66 | - **The model server runs on this computer**: from inside the sandbox, reach it through `host.docker.internal`, as from a container. |
| 67 | -- **Another program than mm** (docker-agent, for instance): only `args` change, e.g. `[exec, -i, my-sandbox, docker-agent, serve, acp, /path/to/agent.yaml]`. | |
| 67 | +- **Another program than mm** (docker-agent, for instance): only `args` change, e.g. `[exec, -i, my-sandbox, docker-agent, serve, acp, /path/to/agent.yaml]`. For Claude, see [How to add a Claude agent in an sbx sandbox](add-a-claude-agent-in-a-sandbox.md). | |
| 68 | 68 | - **Check without Sidekicks**: `sbx exec -it <sandbox> bash` opens the same kind of shell as the Terminal tab. |
| 69 | 69 | |
| 70 | 70 | ## See also |
| @@ -64,7 +64,7 @@ The **■ Stop the sandbox** and **🗑 Remove the sandbox** buttons appear in t | |||
| 64 | - **The sandbox name is not the `name:` of the sbxenv.yaml**: after `create`, Sidekicks still finds no sandbox and says so. Make `sandbox` and `name:` the same. | 64 | - **The sandbox name is not the `name:` of the sbxenv.yaml**: after `create`, Sidekicks still finds no sandbox and says so. Make `sandbox` and `name:` the same. |
| 65 | - **Sidekicks opened from the Finder**: it may not find `sbx` in its short `PATH`. Write its full path (`command: /usr/local/bin/sbx`, see `which sbx`) or add `env: {PATH: "…"}` to the agent. | 65 | - **Sidekicks opened from the Finder**: it may not find `sbx` in its short `PATH`. Write its full path (`command: /usr/local/bin/sbx`, see `which sbx`) or add `env: {PATH: "…"}` to the agent. |
| 66 | - **The model server runs on this computer**: from inside the sandbox, reach it through `host.docker.internal`, as from a container. | 66 | - **The model server runs on this computer**: from inside the sandbox, reach it through `host.docker.internal`, as from a container. |
| 67 | -- **Another program than mm** (docker-agent, for instance): only `args` change, e.g. `[exec, -i, my-sandbox, docker-agent, serve, acp, /path/to/agent.yaml]`. | 67 | +- **Another program than mm** (docker-agent, for instance): only `args` change, e.g. `[exec, -i, my-sandbox, docker-agent, serve, acp, /path/to/agent.yaml]`. For Claude, see [How to add a Claude agent in an sbx sandbox](add-a-claude-agent-in-a-sandbox.md). |
| 68 | - **Check without Sidekicks**: `sbx exec -it <sandbox> bash` opens the same kind of shell as the Terminal tab. | 68 | - **Check without Sidekicks**: `sbx exec -it <sandbox> bash` opens the same kind of shell as the Terminal tab. |
| 69 | 69 | ||
| 70 | ## See also | 70 | ## See also |
modified
docs/fr/README.md +1 -1 | @@ -7,7 +7,7 @@ Cette documentation suit la méthode [Diátaxis](https://diataxis.fr) : choisiss | ||
| 7 | 7 | | Vous voulez… | Section | Pages | |
| 8 | 8 | | --- | --- | --- | |
| 9 | 9 | | **apprendre** en pratiquant | Tutoriels | [Votre premier agent, sans écrire de configuration](tutorials/premier-agent.md) · [Un channel avec deux agents](tutorials/premier-channel.md) · [Votre première conversation avec un agent](tutorials/premiere-conversation.md) · [Votre premier lancement de Sidekicks](tutorials/premier-lancement.md) · [Votre premier échange ACP avec un agent de test](tutorials/premier-echange-acp.md) | |
| 10 | -| **réaliser** une tâche précise | Guides pratiques | [Installer Sidekicks](how-to/installer-sidekicks.md) · [Ajouter un agent](how-to/ajouter-un-agent.md) · [Travailler avec les fichiers et le terminal d'un agent](how-to/fichiers-et-terminal-d-un-agent.md) · [Lancer un agent dans un conteneur Docker](how-to/lancer-un-agent-dans-docker.md) · [Lancer un agent dans une sandbox sbx](how-to/lancer-un-agent-dans-une-sandbox.md) · [Joindre des fichiers à un message](how-to/joindre-des-fichiers-a-un-message.md) · [Gérer les channels et leurs agents](how-to/gerer-les-channels.md) · [Modifier ou changer la configuration](how-to/modifier-ou-changer-la-configuration.md) · [Repartir de zéro](how-to/repartir-de-zero.md) · [Surveiller la pression mémoire](how-to/surveiller-la-pression-memoire.md) · [Développer l'application](how-to/developper-l-application.md) · [Lancer les tests](how-to/lancer-les-tests.md) · [Vérifier une modification avant de la fusionner](how-to/verifier-avant-de-fusionner.md) · [Lancer un agent de test](how-to/lancer-un-agent-de-test.md) · [Dérouler les scénarios de bout en bout (v0.1)](how-to/derouler-les-scenarios-de-bout-en-bout.md) · [Définir la version](how-to/definir-la-version.md) · [Tester la CI locale (temporaire)](how-to/tester-la-ci-locale.md) · [Publier une release](how-to/publier-une-release.md) · [Signer et notariser pour macOS](how-to/signer-et-notariser-sous-macos.md) · [Tester l'issue #52 sous macOS](how-to/tester-l-issue-52-sous-macos.md) · [Tester les issues #49 et #50 sous macOS](how-to/tester-les-issues-49-et-50-sous-macos.md) · [Tester l'issue #47 sous macOS](how-to/tester-l-issue-47-sous-macos.md) · [Tester la milestone M4 sous macOS](how-to/tester-la-milestone-m4-sous-macos.md) · [Tester la milestone M3 sous macOS](how-to/tester-la-milestone-m3-sous-macos.md) · [Tester la milestone M2 sous macOS](how-to/tester-la-milestone-m2-sous-macos.md) · [Tester la milestone M1 sous macOS](how-to/tester-la-milestone-m1-sous-macos.md) · [Tester la milestone Initialize sous macOS](how-to/tester-la-milestone-initialize-sous-macos.md) | | |
| 10 | +| **réaliser** une tâche précise | Guides pratiques | [Installer Sidekicks](how-to/installer-sidekicks.md) · [Ajouter un agent](how-to/ajouter-un-agent.md) · [Travailler avec les fichiers et le terminal d'un agent](how-to/fichiers-et-terminal-d-un-agent.md) · [Lancer un agent dans un conteneur Docker](how-to/lancer-un-agent-dans-docker.md) · [Lancer un agent dans une sandbox sbx](how-to/lancer-un-agent-dans-une-sandbox.md) · [Ajouter un agent Claude dans une sandbox sbx](how-to/ajouter-un-agent-claude-dans-une-sandbox.md) · [Joindre des fichiers à un message](how-to/joindre-des-fichiers-a-un-message.md) · [Gérer les channels et leurs agents](how-to/gerer-les-channels.md) · [Modifier ou changer la configuration](how-to/modifier-ou-changer-la-configuration.md) · [Repartir de zéro](how-to/repartir-de-zero.md) · [Surveiller la pression mémoire](how-to/surveiller-la-pression-memoire.md) · [Développer l'application](how-to/developper-l-application.md) · [Lancer les tests](how-to/lancer-les-tests.md) · [Vérifier une modification avant de la fusionner](how-to/verifier-avant-de-fusionner.md) · [Lancer un agent de test](how-to/lancer-un-agent-de-test.md) · [Dérouler les scénarios de bout en bout (v0.1)](how-to/derouler-les-scenarios-de-bout-en-bout.md) · [Définir la version](how-to/definir-la-version.md) · [Tester la CI locale (temporaire)](how-to/tester-la-ci-locale.md) · [Publier une release](how-to/publier-une-release.md) · [Signer et notariser pour macOS](how-to/signer-et-notariser-sous-macos.md) · [Tester l'issue #52 sous macOS](how-to/tester-l-issue-52-sous-macos.md) · [Tester les issues #49 et #50 sous macOS](how-to/tester-les-issues-49-et-50-sous-macos.md) · [Tester l'issue #47 sous macOS](how-to/tester-l-issue-47-sous-macos.md) · [Tester la milestone M4 sous macOS](how-to/tester-la-milestone-m4-sous-macos.md) · [Tester la milestone M3 sous macOS](how-to/tester-la-milestone-m3-sous-macos.md) · [Tester la milestone M2 sous macOS](how-to/tester-la-milestone-m2-sous-macos.md) · [Tester la milestone M1 sous macOS](how-to/tester-la-milestone-m1-sous-macos.md) · [Tester la milestone Initialize sous macOS](how-to/tester-la-milestone-initialize-sous-macos.md) | | |
| 11 | 11 | | **consulter** un détail exact | Référence | [Le fichier de configuration](reference/configuration.md) · [Raccourcis clavier](reference/raccourcis-clavier.md) · [Agents, channels et événements](reference/agents-et-evenements.md) · [Commandes](reference/commandes.md) · [scripts/agents.sh](reference/script-agents.md) | |
| 12 | 12 | | **comprendre** le pourquoi | Explications | [Workspaces et terminaux](explanation/workspaces-et-terminaux.md) · [Les channels et ce que sait chaque agent](explanation/channels-et-contexte.md) · [Permissions et confiance](explanation/permissions-et-confiance.md) · [Pourquoi ACP](explanation/pourquoi-acp.md) · [La stack de l'interface](explanation/stack-interface.md) · [Architecture](explanation/architecture.md) · [Mémoire et modèles locaux](explanation/memoire-et-modeles-locaux.md) | |
| 13 | 13 | |
| @@ -7,7 +7,7 @@ Cette documentation suit la méthode [Diátaxis](https://diataxis.fr) : choisiss | |||
| 7 | | Vous voulez… | Section | Pages | | 7 | | Vous voulez… | Section | Pages | |
| 8 | | --- | --- | --- | | 8 | | --- | --- | --- | |
| 9 | | **apprendre** en pratiquant | Tutoriels | [Votre premier agent, sans écrire de configuration](tutorials/premier-agent.md) · [Un channel avec deux agents](tutorials/premier-channel.md) · [Votre première conversation avec un agent](tutorials/premiere-conversation.md) · [Votre premier lancement de Sidekicks](tutorials/premier-lancement.md) · [Votre premier échange ACP avec un agent de test](tutorials/premier-echange-acp.md) | | 9 | | **apprendre** en pratiquant | Tutoriels | [Votre premier agent, sans écrire de configuration](tutorials/premier-agent.md) · [Un channel avec deux agents](tutorials/premier-channel.md) · [Votre première conversation avec un agent](tutorials/premiere-conversation.md) · [Votre premier lancement de Sidekicks](tutorials/premier-lancement.md) · [Votre premier échange ACP avec un agent de test](tutorials/premier-echange-acp.md) | |
| 10 | -| **réaliser** une tâche précise | Guides pratiques | [Installer Sidekicks](how-to/installer-sidekicks.md) · [Ajouter un agent](how-to/ajouter-un-agent.md) · [Travailler avec les fichiers et le terminal d'un agent](how-to/fichiers-et-terminal-d-un-agent.md) · [Lancer un agent dans un conteneur Docker](how-to/lancer-un-agent-dans-docker.md) · [Lancer un agent dans une sandbox sbx](how-to/lancer-un-agent-dans-une-sandbox.md) · [Joindre des fichiers à un message](how-to/joindre-des-fichiers-a-un-message.md) · [Gérer les channels et leurs agents](how-to/gerer-les-channels.md) · [Modifier ou changer la configuration](how-to/modifier-ou-changer-la-configuration.md) · [Repartir de zéro](how-to/repartir-de-zero.md) · [Surveiller la pression mémoire](how-to/surveiller-la-pression-memoire.md) · [Développer l'application](how-to/developper-l-application.md) · [Lancer les tests](how-to/lancer-les-tests.md) · [Vérifier une modification avant de la fusionner](how-to/verifier-avant-de-fusionner.md) · [Lancer un agent de test](how-to/lancer-un-agent-de-test.md) · [Dérouler les scénarios de bout en bout (v0.1)](how-to/derouler-les-scenarios-de-bout-en-bout.md) · [Définir la version](how-to/definir-la-version.md) · [Tester la CI locale (temporaire)](how-to/tester-la-ci-locale.md) · [Publier une release](how-to/publier-une-release.md) · [Signer et notariser pour macOS](how-to/signer-et-notariser-sous-macos.md) · [Tester l'issue #52 sous macOS](how-to/tester-l-issue-52-sous-macos.md) · [Tester les issues #49 et #50 sous macOS](how-to/tester-les-issues-49-et-50-sous-macos.md) · [Tester l'issue #47 sous macOS](how-to/tester-l-issue-47-sous-macos.md) · [Tester la milestone M4 sous macOS](how-to/tester-la-milestone-m4-sous-macos.md) · [Tester la milestone M3 sous macOS](how-to/tester-la-milestone-m3-sous-macos.md) · [Tester la milestone M2 sous macOS](how-to/tester-la-milestone-m2-sous-macos.md) · [Tester la milestone M1 sous macOS](how-to/tester-la-milestone-m1-sous-macos.md) · [Tester la milestone Initialize sous macOS](how-to/tester-la-milestone-initialize-sous-macos.md) | | 10 | +| **réaliser** une tâche précise | Guides pratiques | [Installer Sidekicks](how-to/installer-sidekicks.md) · [Ajouter un agent](how-to/ajouter-un-agent.md) · [Travailler avec les fichiers et le terminal d'un agent](how-to/fichiers-et-terminal-d-un-agent.md) · [Lancer un agent dans un conteneur Docker](how-to/lancer-un-agent-dans-docker.md) · [Lancer un agent dans une sandbox sbx](how-to/lancer-un-agent-dans-une-sandbox.md) · [Ajouter un agent Claude dans une sandbox sbx](how-to/ajouter-un-agent-claude-dans-une-sandbox.md) · [Joindre des fichiers à un message](how-to/joindre-des-fichiers-a-un-message.md) · [Gérer les channels et leurs agents](how-to/gerer-les-channels.md) · [Modifier ou changer la configuration](how-to/modifier-ou-changer-la-configuration.md) · [Repartir de zéro](how-to/repartir-de-zero.md) · [Surveiller la pression mémoire](how-to/surveiller-la-pression-memoire.md) · [Développer l'application](how-to/developper-l-application.md) · [Lancer les tests](how-to/lancer-les-tests.md) · [Vérifier une modification avant de la fusionner](how-to/verifier-avant-de-fusionner.md) · [Lancer un agent de test](how-to/lancer-un-agent-de-test.md) · [Dérouler les scénarios de bout en bout (v0.1)](how-to/derouler-les-scenarios-de-bout-en-bout.md) · [Définir la version](how-to/definir-la-version.md) · [Tester la CI locale (temporaire)](how-to/tester-la-ci-locale.md) · [Publier une release](how-to/publier-une-release.md) · [Signer et notariser pour macOS](how-to/signer-et-notariser-sous-macos.md) · [Tester l'issue #52 sous macOS](how-to/tester-l-issue-52-sous-macos.md) · [Tester les issues #49 et #50 sous macOS](how-to/tester-les-issues-49-et-50-sous-macos.md) · [Tester l'issue #47 sous macOS](how-to/tester-l-issue-47-sous-macos.md) · [Tester la milestone M4 sous macOS](how-to/tester-la-milestone-m4-sous-macos.md) · [Tester la milestone M3 sous macOS](how-to/tester-la-milestone-m3-sous-macos.md) · [Tester la milestone M2 sous macOS](how-to/tester-la-milestone-m2-sous-macos.md) · [Tester la milestone M1 sous macOS](how-to/tester-la-milestone-m1-sous-macos.md) · [Tester la milestone Initialize sous macOS](how-to/tester-la-milestone-initialize-sous-macos.md) | |
| 11 | | **consulter** un détail exact | Référence | [Le fichier de configuration](reference/configuration.md) · [Raccourcis clavier](reference/raccourcis-clavier.md) · [Agents, channels et événements](reference/agents-et-evenements.md) · [Commandes](reference/commandes.md) · [scripts/agents.sh](reference/script-agents.md) | | 11 | | **consulter** un détail exact | Référence | [Le fichier de configuration](reference/configuration.md) · [Raccourcis clavier](reference/raccourcis-clavier.md) · [Agents, channels et événements](reference/agents-et-evenements.md) · [Commandes](reference/commandes.md) · [scripts/agents.sh](reference/script-agents.md) | |
| 12 | | **comprendre** le pourquoi | Explications | [Workspaces et terminaux](explanation/workspaces-et-terminaux.md) · [Les channels et ce que sait chaque agent](explanation/channels-et-contexte.md) · [Permissions et confiance](explanation/permissions-et-confiance.md) · [Pourquoi ACP](explanation/pourquoi-acp.md) · [La stack de l'interface](explanation/stack-interface.md) · [Architecture](explanation/architecture.md) · [Mémoire et modèles locaux](explanation/memoire-et-modeles-locaux.md) | | 12 | | **comprendre** le pourquoi | Explications | [Workspaces et terminaux](explanation/workspaces-et-terminaux.md) · [Les channels et ce que sait chaque agent](explanation/channels-et-contexte.md) · [Permissions et confiance](explanation/permissions-et-confiance.md) · [Pourquoi ACP](explanation/pourquoi-acp.md) · [La stack de l'interface](explanation/stack-interface.md) · [Architecture](explanation/architecture.md) · [Mémoire et modèles locaux](explanation/memoire-et-modeles-locaux.md) | |
| 13 | 13 | ||
added
docs/fr/how-to/ajouter-un-agent-claude-dans-une-sandbox.md +102 -0 | new file mode 100644 | ||
| @@ -0,0 +1,102 @@ | ||
| 1 | +# Ajouter un agent Claude dans une sandbox sbx | |
| 2 | + | |
| 3 | +Ce guide montre comment ajouter Claude (Claude Code, via son adaptateur ACP `claude-agent-acp`) comme agent de Sidekicks, dans une sandbox Docker (`sbx`). Claude travaille alors dans son propre dossier, isolé du reste de votre ordinateur, et Sidekicks montre ses fichiers et un terminal comme pour tout autre agent. Il suppose que `sbx` est installé et que vous avez une clé d'API Anthropic. | |
| 4 | + | |
| 5 | +Un exemple prêt à l'emploi est dans le dépôt : [`agents/snippets/clauce-acp`](../../../agents/snippets/clauce-acp/README.md). | |
| 6 | + | |
| 7 | +## Ce qu'il faut | |
| 8 | + | |
| 9 | +| | Rôle | | |
| 10 | +| --- | --- | | |
| 11 | +| Un dossier pour l'agent, par exemple `/Users/moi/agents/claude-acp` | contient le `sbxenv.yaml` de la sandbox et le dossier `workspace/` où Claude travaille. | | |
| 12 | +| Le kit `docker.io/sbx/claude-acp` | l'image de la sandbox, avec Claude Code et `claude-agent-acp` installés. | | |
| 13 | +| Votre clé d'API Anthropic, enregistrée dans sbx | sbx l'ajoute aux requêtes de Claude vers Anthropic : elle n'est écrite ni dans la sandbox, ni dans la configuration de Sidekicks. | | |
| 14 | + | |
| 15 | +## Étapes | |
| 16 | + | |
| 17 | +1. **Créez le dossier de l'agent**, avec un `workspace/` vide dedans : | |
| 18 | + | |
| 19 | + ```bash | |
| 20 | + mkdir -p /Users/moi/agents/claude-acp/workspace | |
| 21 | + ``` | |
| 22 | + | |
| 23 | +2. **Écrivez le `sbxenv.yaml` de la sandbox** dans `/Users/moi/agents/claude-acp` : | |
| 24 | + | |
| 25 | + ```yaml | |
| 26 | + schemaVersion: "1" | |
| 27 | + | |
| 28 | + name: claude-acp | |
| 29 | + agent: claude | |
| 30 | + | |
| 31 | + # Le dossier où Claude travaille, relatif à ce fichier. | |
| 32 | + workspace: ./workspace | |
| 33 | + | |
| 34 | + kits: | |
| 35 | + - docker.io/sbx/claude-acp:latest | |
| 36 | + | |
| 37 | + # sbx injecte la clé Anthropic dans les requêtes vers ces domaines. | |
| 38 | + bindings: | |
| 39 | + anthropic: | |
| 40 | + apiKey: | |
| 41 | + domains: | |
| 42 | + - api.anthropic.com | |
| 43 | + - console.anthropic.com | |
| 44 | + | |
| 45 | + sandboxOptions: | |
| 46 | + pullPolicy: always | |
| 47 | + ``` | |
| 48 | + | |
| 49 | + `name` est le nom de la sandbox : Sidekicks utilise le même. | |
| 50 | + | |
| 51 | +3. **Donnez votre clé d'API Anthropic à sbx**, pour qu'il puisse l'injecter (les `bindings` ci-dessus). La clé est gardée par sbx, sur cet ordinateur, jamais dans un fichier du dossier. Voyez `sbx secret --help` pour la commande exacte de votre version de sbx. | |
| 52 | + | |
| 53 | +4. **Ajoutez l'agent avec l'assistant** : dans le panneau **Agents**, cliquez sur **+ Ajouter un agent**, puis : | |
| 54 | + 1. Titre `Claude`, une icône si vous voulez (📙). | |
| 55 | + 2. **Où tourne-t-il ?** **Dans une sandbox sbx**. | |
| 56 | + 3. Déposez `/Users/moi/agents/claude-acp/sbxenv.yaml` sur la zone **Recréer la sandbox si elle a disparu (facultatif)** (ou cliquez sur **Choisir un sbxenv.yaml…**). La sandbox (`claude-acp`), le dossier de l'agent (`/Users/moi/agents/claude-acp/workspace`) et les commandes `sbx env` sont remplis. | |
| 57 | + 4. **Programme** : tapez `claude-agent-acp`. Laissez **Arguments** vide. | |
| 58 | + 5. Cliquez sur **Ajouter l'agent**. | |
| 59 | + | |
| 60 | + Ou **dans Settings**, ajoutez cette entrée sous `agents:` et enregistrez : | |
| 61 | + | |
| 62 | + ```yaml | |
| 63 | + - name: claude | |
| 64 | + title: Claude | |
| 65 | + icon: "📙" | |
| 66 | + command: sbx | |
| 67 | + args: [exec, -i, claude-acp, claude-agent-acp] | |
| 68 | + workspace: /Users/moi/agents/claude-acp/workspace | |
| 69 | + runtime: | |
| 70 | + type: sbx | |
| 71 | + sandbox: claude-acp | |
| 72 | + lifecycle: | |
| 73 | + folder: /Users/moi/agents/claude-acp | |
| 74 | + create: [sbx, env, create, --force] | |
| 75 | + stop: [sbx, stop, claude-acp] | |
| 76 | + remove: [sbx, env, rm, --force] | |
| 77 | + ``` | |
| 78 | + | |
| 79 | + `workspace` est le dossier où Claude travaille, sur cet ordinateur ; sbx le partage avec la sandbox au même chemin. `lifecycle.folder` est le dossier du `sbxenv.yaml`, où les commandes `sbx env` s'exécutent. | |
| 80 | + | |
| 81 | +5. **Démarrez Claude** depuis le panneau **Agents** (▶), ou écrivez-lui. La première fois, la sandbox n'existe pas encore : l'onglet **Log** affiche `sandbox claude-acp not found: creating it`, puis le téléchargement du kit — cela peut prendre une ou deux minutes. Ensuite Claude répond. | |
| 82 | + | |
| 83 | +## Vérifier que tout marche | |
| 84 | + | |
| 85 | +- Demandez à Claude d'écrire un fichier, par exemple « Écris `notes/bonjour.md` avec une salutation ». Le fichier apparaît dans l'onglet **Files** de l'agent (📂) et dans `/Users/moi/agents/claude-acp/workspace` sur cet ordinateur. | |
| 86 | +- Dans l'onglet **Terminal**, `ls` montre le même dossier, depuis l'intérieur de la sandbox. | |
| 87 | +- Quand Claude demande la permission de modifier un fichier ou de lancer une commande, Sidekicks affiche la demande et attend votre réponse. | |
| 88 | + | |
| 89 | +## Variantes | |
| 90 | + | |
| 91 | +- **Un autre nom de sandbox** : changez `name:` dans le `sbxenv.yaml` et, dans l'entrée de l'agent, le nom de la sandbox dans `args`, `runtime.sandbox` et `lifecycle.stop`. Tous doivent être identiques. | |
| 92 | +- **Plusieurs agents Claude** : un dossier, un `sbxenv.yaml` et un nom de sandbox chacun, et un `name` différent pour chaque agent (`claude`, `claude-docs`…). | |
| 93 | +- **Claude répond par une erreur d'authentification** (voir l'onglet **Log**) : la clé n'est pas enregistrée dans sbx, ou pas là où les `bindings` l'attendent. Enregistrez-la à nouveau, puis **🗑 Supprimer la sandbox** et démarrez l'agent : la sandbox est recréée avec la clé. | |
| 94 | +- **Sidekicks ouvert depuis le Finder ne trouve pas `sbx`** : écrivez son chemin complet dans `command` (voir `which sbx`), comme dans [Lancer un agent dans une sandbox sbx](lancer-un-agent-dans-une-sandbox.md#variantes). | |
| 95 | +- **Repartir de zéro** : **🗑 Supprimer la sandbox** dans l'en-tête de l'agent la supprime ; les fichiers de `workspace/` restent sur cet ordinateur. | |
| 96 | + | |
| 97 | +## Voir aussi | |
| 98 | + | |
| 99 | +- [Lancer un agent dans une sandbox sbx](lancer-un-agent-dans-une-sandbox.md) | |
| 100 | +- [Ajouter un agent](ajouter-un-agent.md) | |
| 101 | +- [Travailler avec les fichiers et le terminal d'un agent](fichiers-et-terminal-d-un-agent.md) | |
| 102 | +- [Référence : `runtime.lifecycle`](../reference/configuration.md#runtimelifecycle-conteneur-et-sbx) | |
| new file mode 100644 | |||
| @@ -0,0 +1,102 @@ | |||
| 1 | +# Ajouter un agent Claude dans une sandbox sbx | ||
| 2 | + | ||
| 3 | +Ce guide montre comment ajouter Claude (Claude Code, via son adaptateur ACP `claude-agent-acp`) comme agent de Sidekicks, dans une sandbox Docker (`sbx`). Claude travaille alors dans son propre dossier, isolé du reste de votre ordinateur, et Sidekicks montre ses fichiers et un terminal comme pour tout autre agent. Il suppose que `sbx` est installé et que vous avez une clé d'API Anthropic. | ||
| 4 | + | ||
| 5 | +Un exemple prêt à l'emploi est dans le dépôt : [`agents/snippets/clauce-acp`](../../../agents/snippets/clauce-acp/README.md). | ||
| 6 | + | ||
| 7 | +## Ce qu'il faut | ||
| 8 | + | ||
| 9 | +| | Rôle | | ||
| 10 | +| --- | --- | | ||
| 11 | +| Un dossier pour l'agent, par exemple `/Users/moi/agents/claude-acp` | contient le `sbxenv.yaml` de la sandbox et le dossier `workspace/` où Claude travaille. | | ||
| 12 | +| Le kit `docker.io/sbx/claude-acp` | l'image de la sandbox, avec Claude Code et `claude-agent-acp` installés. | | ||
| 13 | +| Votre clé d'API Anthropic, enregistrée dans sbx | sbx l'ajoute aux requêtes de Claude vers Anthropic : elle n'est écrite ni dans la sandbox, ni dans la configuration de Sidekicks. | | ||
| 14 | + | ||
| 15 | +## Étapes | ||
| 16 | + | ||
| 17 | +1. **Créez le dossier de l'agent**, avec un `workspace/` vide dedans : | ||
| 18 | + | ||
| 19 | + ```bash | ||
| 20 | + mkdir -p /Users/moi/agents/claude-acp/workspace | ||
| 21 | + ``` | ||
| 22 | + | ||
| 23 | +2. **Écrivez le `sbxenv.yaml` de la sandbox** dans `/Users/moi/agents/claude-acp` : | ||
| 24 | + | ||
| 25 | + ```yaml | ||
| 26 | + schemaVersion: "1" | ||
| 27 | + | ||
| 28 | + name: claude-acp | ||
| 29 | + agent: claude | ||
| 30 | + | ||
| 31 | + # Le dossier où Claude travaille, relatif à ce fichier. | ||
| 32 | + workspace: ./workspace | ||
| 33 | + | ||
| 34 | + kits: | ||
| 35 | + - docker.io/sbx/claude-acp:latest | ||
| 36 | + | ||
| 37 | + # sbx injecte la clé Anthropic dans les requêtes vers ces domaines. | ||
| 38 | + bindings: | ||
| 39 | + anthropic: | ||
| 40 | + apiKey: | ||
| 41 | + domains: | ||
| 42 | + - api.anthropic.com | ||
| 43 | + - console.anthropic.com | ||
| 44 | + | ||
| 45 | + sandboxOptions: | ||
| 46 | + pullPolicy: always | ||
| 47 | + ``` | ||
| 48 | + | ||
| 49 | + `name` est le nom de la sandbox : Sidekicks utilise le même. | ||
| 50 | + | ||
| 51 | +3. **Donnez votre clé d'API Anthropic à sbx**, pour qu'il puisse l'injecter (les `bindings` ci-dessus). La clé est gardée par sbx, sur cet ordinateur, jamais dans un fichier du dossier. Voyez `sbx secret --help` pour la commande exacte de votre version de sbx. | ||
| 52 | + | ||
| 53 | +4. **Ajoutez l'agent avec l'assistant** : dans le panneau **Agents**, cliquez sur **+ Ajouter un agent**, puis : | ||
| 54 | + 1. Titre `Claude`, une icône si vous voulez (📙). | ||
| 55 | + 2. **Où tourne-t-il ?** **Dans une sandbox sbx**. | ||
| 56 | + 3. Déposez `/Users/moi/agents/claude-acp/sbxenv.yaml` sur la zone **Recréer la sandbox si elle a disparu (facultatif)** (ou cliquez sur **Choisir un sbxenv.yaml…**). La sandbox (`claude-acp`), le dossier de l'agent (`/Users/moi/agents/claude-acp/workspace`) et les commandes `sbx env` sont remplis. | ||
| 57 | + 4. **Programme** : tapez `claude-agent-acp`. Laissez **Arguments** vide. | ||
| 58 | + 5. Cliquez sur **Ajouter l'agent**. | ||
| 59 | + | ||
| 60 | + Ou **dans Settings**, ajoutez cette entrée sous `agents:` et enregistrez : | ||
| 61 | + | ||
| 62 | + ```yaml | ||
| 63 | + - name: claude | ||
| 64 | + title: Claude | ||
| 65 | + icon: "📙" | ||
| 66 | + command: sbx | ||
| 67 | + args: [exec, -i, claude-acp, claude-agent-acp] | ||
| 68 | + workspace: /Users/moi/agents/claude-acp/workspace | ||
| 69 | + runtime: | ||
| 70 | + type: sbx | ||
| 71 | + sandbox: claude-acp | ||
| 72 | + lifecycle: | ||
| 73 | + folder: /Users/moi/agents/claude-acp | ||
| 74 | + create: [sbx, env, create, --force] | ||
| 75 | + stop: [sbx, stop, claude-acp] | ||
| 76 | + remove: [sbx, env, rm, --force] | ||
| 77 | + ``` | ||
| 78 | + | ||
| 79 | + `workspace` est le dossier où Claude travaille, sur cet ordinateur ; sbx le partage avec la sandbox au même chemin. `lifecycle.folder` est le dossier du `sbxenv.yaml`, où les commandes `sbx env` s'exécutent. | ||
| 80 | + | ||
| 81 | +5. **Démarrez Claude** depuis le panneau **Agents** (▶), ou écrivez-lui. La première fois, la sandbox n'existe pas encore : l'onglet **Log** affiche `sandbox claude-acp not found: creating it`, puis le téléchargement du kit — cela peut prendre une ou deux minutes. Ensuite Claude répond. | ||
| 82 | + | ||
| 83 | +## Vérifier que tout marche | ||
| 84 | + | ||
| 85 | +- Demandez à Claude d'écrire un fichier, par exemple « Écris `notes/bonjour.md` avec une salutation ». Le fichier apparaît dans l'onglet **Files** de l'agent (📂) et dans `/Users/moi/agents/claude-acp/workspace` sur cet ordinateur. | ||
| 86 | +- Dans l'onglet **Terminal**, `ls` montre le même dossier, depuis l'intérieur de la sandbox. | ||
| 87 | +- Quand Claude demande la permission de modifier un fichier ou de lancer une commande, Sidekicks affiche la demande et attend votre réponse. | ||
| 88 | + | ||
| 89 | +## Variantes | ||
| 90 | + | ||
| 91 | +- **Un autre nom de sandbox** : changez `name:` dans le `sbxenv.yaml` et, dans l'entrée de l'agent, le nom de la sandbox dans `args`, `runtime.sandbox` et `lifecycle.stop`. Tous doivent être identiques. | ||
| 92 | +- **Plusieurs agents Claude** : un dossier, un `sbxenv.yaml` et un nom de sandbox chacun, et un `name` différent pour chaque agent (`claude`, `claude-docs`…). | ||
| 93 | +- **Claude répond par une erreur d'authentification** (voir l'onglet **Log**) : la clé n'est pas enregistrée dans sbx, ou pas là où les `bindings` l'attendent. Enregistrez-la à nouveau, puis **🗑 Supprimer la sandbox** et démarrez l'agent : la sandbox est recréée avec la clé. | ||
| 94 | +- **Sidekicks ouvert depuis le Finder ne trouve pas `sbx`** : écrivez son chemin complet dans `command` (voir `which sbx`), comme dans [Lancer un agent dans une sandbox sbx](lancer-un-agent-dans-une-sandbox.md#variantes). | ||
| 95 | +- **Repartir de zéro** : **🗑 Supprimer la sandbox** dans l'en-tête de l'agent la supprime ; les fichiers de `workspace/` restent sur cet ordinateur. | ||
| 96 | + | ||
| 97 | +## Voir aussi | ||
| 98 | + | ||
| 99 | +- [Lancer un agent dans une sandbox sbx](lancer-un-agent-dans-une-sandbox.md) | ||
| 100 | +- [Ajouter un agent](ajouter-un-agent.md) | ||
| 101 | +- [Travailler avec les fichiers et le terminal d'un agent](fichiers-et-terminal-d-un-agent.md) | ||
| 102 | +- [Référence : `runtime.lifecycle`](../reference/configuration.md#runtimelifecycle-conteneur-et-sbx) | ||
modified
docs/fr/how-to/lancer-un-agent-dans-une-sandbox.md +1 -1 | @@ -64,7 +64,7 @@ Les boutons **■ Arrêter la sandbox** et **🗑 Supprimer la sandbox** apparai | ||
| 64 | 64 | - **Le nom de la sandbox n'est pas le `name:` du sbxenv.yaml** : après `create`, Sidekicks ne trouve toujours pas de sandbox et le dit. Donnez la même valeur à `sandbox` et à `name:`. |
| 65 | 65 | - **Sidekicks lancé depuis le Finder** : il peut ne pas trouver `sbx` dans son `PATH` réduit. Écrivez son chemin complet (`command: /usr/local/bin/sbx`, voir `which sbx`) ou ajoutez `env: {PATH: "…"}` à l'agent. |
| 66 | 66 | - **Le serveur de modèles tourne sur cet ordinateur** : depuis la sandbox, atteignez-le par `host.docker.internal`, comme depuis un conteneur. |
| 67 | -- **Un autre programme que mm** (docker-agent, par exemple) : seuls les `args` changent, par exemple `[exec, -i, ma-sandbox, docker-agent, serve, acp, /chemin/vers/agent.yaml]`. | |
| 67 | +- **Un autre programme que mm** (docker-agent, par exemple) : seuls les `args` changent, par exemple `[exec, -i, ma-sandbox, docker-agent, serve, acp, /chemin/vers/agent.yaml]`. Pour Claude, voir [Ajouter un agent Claude dans une sandbox sbx](ajouter-un-agent-claude-dans-une-sandbox.md). | |
| 68 | 68 | - **Vérifier sans Sidekicks** : `sbx exec -it <sandbox> bash` ouvre le même genre de shell que l'onglet Terminal. |
| 69 | 69 | |
| 70 | 70 | ## Voir aussi |
| @@ -64,7 +64,7 @@ Les boutons **■ Arrêter la sandbox** et **🗑 Supprimer la sandbox** apparai | |||
| 64 | - **Le nom de la sandbox n'est pas le `name:` du sbxenv.yaml** : après `create`, Sidekicks ne trouve toujours pas de sandbox et le dit. Donnez la même valeur à `sandbox` et à `name:`. | 64 | - **Le nom de la sandbox n'est pas le `name:` du sbxenv.yaml** : après `create`, Sidekicks ne trouve toujours pas de sandbox et le dit. Donnez la même valeur à `sandbox` et à `name:`. |
| 65 | - **Sidekicks lancé depuis le Finder** : il peut ne pas trouver `sbx` dans son `PATH` réduit. Écrivez son chemin complet (`command: /usr/local/bin/sbx`, voir `which sbx`) ou ajoutez `env: {PATH: "…"}` à l'agent. | 65 | - **Sidekicks lancé depuis le Finder** : il peut ne pas trouver `sbx` dans son `PATH` réduit. Écrivez son chemin complet (`command: /usr/local/bin/sbx`, voir `which sbx`) ou ajoutez `env: {PATH: "…"}` à l'agent. |
| 66 | - **Le serveur de modèles tourne sur cet ordinateur** : depuis la sandbox, atteignez-le par `host.docker.internal`, comme depuis un conteneur. | 66 | - **Le serveur de modèles tourne sur cet ordinateur** : depuis la sandbox, atteignez-le par `host.docker.internal`, comme depuis un conteneur. |
| 67 | -- **Un autre programme que mm** (docker-agent, par exemple) : seuls les `args` changent, par exemple `[exec, -i, ma-sandbox, docker-agent, serve, acp, /chemin/vers/agent.yaml]`. | 67 | +- **Un autre programme que mm** (docker-agent, par exemple) : seuls les `args` changent, par exemple `[exec, -i, ma-sandbox, docker-agent, serve, acp, /chemin/vers/agent.yaml]`. Pour Claude, voir [Ajouter un agent Claude dans une sandbox sbx](ajouter-un-agent-claude-dans-une-sandbox.md). |
| 68 | - **Vérifier sans Sidekicks** : `sbx exec -it <sandbox> bash` ouvre le même genre de shell que l'onglet Terminal. | 68 | - **Vérifier sans Sidekicks** : `sbx exec -it <sandbox> bash` ouvre le même genre de shell que l'onglet Terminal. |
| 69 | 69 | ||
| 70 | ## Voir aussi | 70 | ## Voir aussi |