Skip to content
Open
2 changes: 1 addition & 1 deletion ai-agents/guides/launch-in-a-sandbox.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Installing a harness and its plugins in an environment decides what the agent br
A sandbox decides what the agent can reach once it runs.
This guide runs Claude Code inside a sandbox from the same environment.

You need an environment set up as in the [quickstart](/ai-agents/quickstart).
You need an environment set up as in [Onboard your agent setup by hand](/ai-agents/guides/onboard-your-setup).

## Choose a sandbox

Expand Down
120 changes: 120 additions & 0 deletions ai-agents/guides/onboard-your-setup.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
---
title: "Onboard your agent setup by hand"
sidebarTitle: "Onboard by hand"
description: "Set up an agent stack yourself: install Claude Code and an agent plugin into a Flox environment, then launch the agent with that plugin."
---
Comment thread
djsauble marked this conversation as resolved.
Resolved

In the [quickstart](/ai-agents/quickstart), the agent you already use does the onboarding for you.
This guide does it by hand, one step at a time.
You create an environment holding Claude Code and the `frontend-design` plugin, check what the agent will get, and launch it.
The same steps install any other plugin the catalog has, as [Add or remove plugins](#add-or-remove-plugins) shows.
For the ideas behind it (harnesses, plugins and sandboxes), see [AI coding agents](/ai-agents/overview).
You need [Flox installed](/install-flox/install), a free FloxHub account, and a Claude account.

## Log in and enable the extension

Installing packages from the Flox Catalog needs you to be logged in to FloxHub.
Log in once per machine:

```bash
flox auth login
```

`flox agent` is a beta Flox extension, and Flox only runs beta commands once you opt in.
Turn on beta features once:

```bash
flox config --set features.beta true
```

## Create the environment

The environment holds everything the agent gets.
Whatever you install into it is pinned in its lockfile, so anyone who activates the same environment gets the same agent and plugins.
Make a folder for your project and create an environment in it:

```bash
mkdir my-agent && cd my-agent && flox init
```

Install the harness, a plugin, and the `flox agent` extension:

```bash
flox install agent-stacks/claude-code agent-stacks/agent-plugin-frontend-design flox/flox-agent
```

- `agent-stacks/claude-code` is the harness: the Claude Code program.
- `agent-stacks/agent-plugin-frontend-design` is an agent plugin with a skill for building polished web interfaces.
- `flox/flox-agent` provides the `flox agent` command.

## See what the agent gets

Activating the environment puts its packages, including `flox agent`, on your `PATH`:

```bash
flox activate
```

Then list the stack.
`flox agent list` reads what is installed and shows what a launch would hand each harness, without starting anything:

```console
$ flox agent list
Agent stack
1 harness · 1 plugin · 1 skill · 0 MCP servers

Harnesses
✔ claude claude-code 2.1.304 · skills, MCP, hooks

Plugins
✔ frontend-design agent-plugin-frontend-design 0.0.0-unstable.2026-10-19.ga0b04d9 · 1 skill

--long shows each plugin's skills and MCP servers.
Shows what launch gives each harness; agent-stacks writes nothing to a harness's own config.
```

Each row names the package and version it came from.
Run `flox agent list --long` to see the skills each plugin provides.

## Launch the agent

```bash
flox agent launch claude
```

`flox agent launch` starts Claude Code with the environment's plugins.
It stages them inside the environment, so your own Claude Code settings in your home directory are left as they are.
Claude Code starts with the `frontend-design` skill loaded.
Ask it to build a page, and it uses the skill.

To pass flags to Claude Code, put them after `--`:

```bash
flox agent launch claude -- --continue
```

## Add or remove plugins

Plugins are packages, so you manage them with the usual commands.
Browse the available plugins with [`flox search`](/man/flox-search):

```bash
flox search agent-plugin
```

Install another one with [`flox install`](/man/flox-install), or remove one with [`flox uninstall`](/man/flox-uninstall).
The next `flox agent launch` picks up the change.

## If something is missing

`flox agent doctor` reports the plugins it found, each harness's readiness, and the package to install for a harness that is missing:

```bash
flox agent doctor
```

## Next steps

- [Launch an agent in a sandbox](/ai-agents/guides/launch-in-a-sandbox)
- [Audit an agent plugin](/ai-agents/guides/audit-a-plugin) before you install it
- [`flox agent launch`](/ai-agents/reference/flox-agent-launch) reference
2 changes: 1 addition & 1 deletion ai-agents/guides/package-a-skill-repository.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This guide imports a repository, builds the package with `flox build`, checks it

## Prerequisites

- An environment with `flox/flox-agent` installed, as in the [quickstart](/ai-agents/quickstart).
- An environment with `flox/flox-agent` installed, as in [Onboard your agent setup by hand](/ai-agents/guides/onboard-your-setup).
- Logged in to FloxHub with `flox auth login`, which installing and publishing need.
- The environment's folder is a git repository, because `flox build` reads only files git tracks:

Expand Down
3 changes: 2 additions & 1 deletion ai-agents/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ It never sends names, paths, file contents, or arguments.

## Next steps

- [Quickstart](/ai-agents/quickstart): launch Claude Code with a plugin in a few minutes.
- [Quickstart](/ai-agents/quickstart): turn the agent setup you already have into an agent stack, from the agent you already use.
- [Onboard your agent setup by hand](/ai-agents/guides/onboard-your-setup): launch Claude Code with a plugin, setting up the environment yourself.
- [Launch an agent in a sandbox](/ai-agents/guides/launch-in-a-sandbox)
- [Package a skill repository](/ai-agents/guides/package-a-skill-repository)
Loading
Loading