bots-garden/sidekickspublic Fork
⑂ v1.5.0
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
create-an-agent-in-a-sandbox.md · 31 lines · 3.8 KBmarkdown
Blame HistoryOpen raw

How to create a Claude, Gemini, Codex or Vibe agent in a sandbox

This guide shows how to create a new Claude, Gemini, Codex or Vibe agent that runs in a Docker Sandbox, from the Sidekicks window, without writing a file or choosing a folder. It assumes sbx (Docker Sandboxes) is installed, and that you have an API key of the agent's company — or will get one during the steps. To add a sandbox that already exists, use How to add an agent instead.

Steps

  1. Open the assistant: ✨ Create a Claude, Gemini, Codex or Vibe agent on the welcome screen, ✨ Create an agent in a sandbox under the agents list, or Create an agent in a sandbox in the command palette (⌘K, Ctrl+K on Linux and Windows).
  2. Choose the agent: Claude (Anthropic's Claude Code), Gemini (Google's, through Antigravity), Codex (OpenAI's) or Vibe (Mistral AI's).
  3. If sbx does not hold its key yet, paste it in API key and click Save the key. Get a key… opens the page where the company gives you one. Sidekicks hands the key to sbx, which keeps it and gives it to your sandboxes for their calls to that company only; it is never written in a file. A key already saved is shown as ✓ Your … key is stored in sbx.
  4. Give the agent its last details: Name shown, Name (what you call it with, @claude, and the name of its folder and of its sandbox: lowercase letters, digits and -, starting with a letter) and an Emoji (the agent's logo is chosen first). The Name follows the Name shown (Marcel (assistant) gives marcel-assistant) until you type it yourself; Sidekicks always suggests one nobody uses yet, and says so before you click when the one you typed is taken.
  5. Click Add the agent. Its conversation opens. Its sandbox is created the first time you write to it, so that first answer takes a while: the conversation shows what is happening — the step, the time elapsed, what sbx is downloading. The details are in the agent's log (Log panel).

The agent's folder is created in the Sidekicks-Agents folder of your Documents, named after the agent (~/Documents/Sidekicks-Agents/claude): its sbxenv.yaml and its workspace/ folder, where the agent works.

When something goes wrong

  • "sbx (Docker Sandboxes) is not installed on this computer": install sbx, then click Try again.
  • "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.
  • "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.
  • "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) in a terminal.

Variants

  • Replace a key: choose the same agent again and click Replace the key. Every sandbox uses the new key from its next start.
  • Another folder: set agentsFolder in Settings; the next agents are created there.

See also

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# How to create a Claude, Gemini, Codex or Vibe agent in a sandbox

This guide shows how to create a new Claude, Gemini, Codex or Vibe agent that runs in a Docker Sandbox, from the Sidekicks window, without writing a file or choosing a folder. It assumes [sbx](https://docs.docker.com/ai/sandboxes/) (Docker Sandboxes) is installed, and that you have an API key of the agent's company — or will get one during the steps. To add a sandbox that already exists, use [How to add an agent](add-an-agent.md) instead.

## Steps

1. Open the assistant: **✨ Create a Claude, Gemini, Codex or Vibe agent** on the welcome screen, **✨ Create an agent in a sandbox** under the agents list, or **Create an agent in a sandbox** in the command palette (⌘K, Ctrl+K on Linux and Windows).
2. Choose the agent: **Claude** (Anthropic's Claude Code), **Gemini** (Google's, through Antigravity), **Codex** (OpenAI's) or **Vibe** (Mistral AI's).
3. If sbx does not hold its key yet, paste it in **API key** and click **Save the key**. **Get a key…** opens the page where the company gives you one. Sidekicks hands the key to sbx, which keeps it and gives it to your sandboxes for their calls to that company only; it is never written in a file. A key already saved is shown as **✓ Your … key is stored in sbx**.
4. Give the agent its last details: **Name shown**, **Name** (what you call it with, `@claude`, and the name of its folder and of its sandbox: lowercase letters, digits and `-`, starting with a letter) and an **Emoji** (the agent's logo is chosen first). The **Name** follows the **Name shown** (`Marcel (assistant)` gives `marcel-assistant`) until you type it yourself; Sidekicks always suggests one nobody uses yet, and says so before you click when the one you typed is taken.
5. Click **Add the agent**. Its conversation opens. Its sandbox is created the first time you write to it, so that first answer takes a while: the conversation shows what is happening — the step, the time elapsed, what sbx is downloading. The details are in the agent's log (**Log** panel).

The agent's folder is created in the **Sidekicks-Agents** folder of your Documents, named after the agent (`~/Documents/Sidekicks-Agents/claude`): its `sbxenv.yaml` and its `workspace/` folder, where the agent works.

## When something goes wrong

- **"sbx (Docker Sandboxes) is not installed on this computer"**: install sbx, then click **Try again**.
- **"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.
- **"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.
- **"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) in a terminal.

## Variants

- **Replace a key**: choose the same agent again and click **Replace the key**. Every sandbox uses the new key from its next start.
- **Another folder**: set [`agentsFolder`](../reference/configuration.md#top-level) in **Settings**; the next agents are created there.

## See also

- [How to run an agent in an sbx sandbox](run-an-agent-in-a-sandbox.md) — what an sbx agent is, and its sandbox's lifecycle.
- [How to create a mini-me agent](create-a-mini-me-agent.md) — the same idea for mini-me.
- How it works: [`SbxCreatorService`](../reference/agents-and-events.md#sbxcreatorservice)