# Set up Agent Flywheel for Claude Code

Keep JSM_DISABLE_SELF_UPDATE=1 in each task shell so ordinary JSM commands retain the manifest-pinned executable; use verified cloud setup for tool refreshes.

Use computer use in my browser to follow these instructions and configure my cloud coding environment. Install the tools in the provider's cloud environment, not on my local computer. Use the repository I specify; ask me which repository if it is unclear. Preserve my existing setup commands, project instructions, environments and repository access settings.

## Working instructions

- Follow the actual UI labels below. The screenshots are reference captures from 8 October 2026; if the UI differs, inspect it before acting. Do not invent a missing setup control.
- Use my existing signed-in session. If sign-in, a billing change, organization permission or a network-policy approval is required, explain the exact action and ask at that point. Respect browser/computer-use approval requirements and organization restrictions.
- Public downloads require no credentials or ownership of the tool repositories. Use the network setting named in the steps: Full access is the tested option where offered; when a narrower policy is preferred or required, allow only raw.githubusercontent.com and downloads.agent-flywheel.com in addition to the provider's package-manager defaults. Keep a locked organization policy and report unavailable tools.
- Keep existing commands and settings. Merge the exact recipes below into their named fields. Do not replace unrelated setup or instruction content. Do not add secrets. Do not compile tools from source or run the full VPS installer.
- Stop if this provider cannot supply a compatible, writable Linux x86_64 setup shell or retain installed files. For a documented but untested provider, verify compatibility rather than promising installation.

## Provider and evidence

Create an environment, add the flywheel setup, then select it when starting your task.

**Hosted test.** Full and default Trusted hosted runs installed all eleven executables and passed Agent Mail MCP health. The cold Trusted run took 53 seconds using verified public fallbacks. Organization policies may still block those downloads; inspect the setup summary.

Four actual UI screenshots. The form screenshots show the fields before you fill them in.

## Setup steps

### 1. Open the Cloud menu

Open claude.ai/code. Above the task box, click the environment chip (Default in this example). Choose Cloud in the menu.

![Claude task composer with the environment menu showing Local, Cloud and Remote Control.](https://agent-flywheel.com/cloud-agents/claude-cloud-menu.png)

1. Choose Cloud · Claude Code, 8 Oct 2026

Controls to use, in order: (1) Environment chip; (2) Cloud.

### 2. Choose Add cloud environment…

In the Cloud submenu, click Add cloud environment… at the bottom of the list. To update an existing environment, open its configuration instead.

![Cloud submenu showing existing Default environments and Add cloud environment at the bottom.](https://agent-flywheel.com/cloud-agents/claude-add-environment.png)

2. Add a cloud environment · Claude Code, 8 Oct 2026

Controls to use, in order: (1) Add cloud environment….

### 3. Name it and choose network access

In Name, enter Flywheel (or any name you will recognize). Open Network access and choose Full for the simplest setup.

For a narrower policy, choose Custom, allow the two hosts below and tick Also include default list of common package managers so your project's own installs still work. The default Trusted also works: the mirror is blocked there, so setup uses verified public GitHub fallbacks. If your organization blocks those downloads, the setup summary names the missing tools.

- **Name:** Flywheel
- **Network access:** Full, or Custom with the two hosts

**Paste into Custom allowed domains:**

```text
raw.githubusercontent.com
downloads.agent-flywheel.com
```

![Add cloud environment dialog with Network access expanded to None, Trusted, Full and Custom.](https://agent-flywheel.com/cloud-agents/claude-network-options.png)

3. Full and Custom are in Network access · Claude Code, 8 Oct 2026

Controls to use, in order: (1) Name; (2) Full.

### 4. Paste into Setup script

Copy the script below into the Setup script field. The npm install text in the screenshot is a placeholder, not the flywheel script.

If you already have project setup commands, keep them and add the flywheel download line after them. No network secret or environment variable is required for these public downloads.

- **Destination:** Setup script

**Paste into Setup script:**

```bash
#!/bin/bash
(
acfs_cloud_setup="$(curl -q -fsSL --proto '=https' --proto-redir '=https' --connect-timeout 5 --max-time 20 -A 'acfs (+https://github.com/Dicklesworthstone/agentic_coding_flywheel_setup)' -H 'Accept-Encoding: identity' https://raw.githubusercontent.com/Dicklesworthstone/agentic_coding_flywheel_setup/main/scripts/claude-code-web-setup.sh)" || { printf '%s\n' 'ACFS cloud bootstrap download failed; tools were not installed. Check network access and retry.' >&2; exit 0; }
printf '%s\n' "$acfs_cloud_setup" | bash
)
```

![Add cloud environment form with Name, Network access, Setup script, Environment variables and Add environment button.](https://agent-flywheel.com/cloud-agents/claude-setup-fields.png)

4. Paste into Setup script, then Add environment · Claude Code, 8 Oct 2026

Controls to use, in order: (1) Setup script; (2) Add environment.

### 5. Add the environment and check a session

Click Add environment. Back at the composer, select Flywheel and your repository, then send a task. Setup runs before the agent starts.

Paste the request below into the task. Review failures in the setup log even when setup reports exit 0.

**Paste into First task check:**

```text
Read $HOME/.acfs/cloud/setup.log and the generated tool guide. In the task shell, export PATH="$HOME/.local/bin:$PATH". Run --version for br, bv, am, mcp-agent-mail, ubs, cass, cm, ms, ast-grep, jsm and jfp. Report every missing or failed executable and the relevant setup-log reason. If the repository already has a .beads tracker, run br ready --json and bv --robot-triage from its root and report any failures. An exit-0 setup does not mean all tools installed. Also verify the registered Agent Mail stdio MCP server is healthy.
```

### 6. Use the same environment next time

For later tasks, choose Flywheel from Cloud and select the repository. Claude reads the managed tool guide from ~/.claude/CLAUDE.md.

After changing the setup script, start a fresh session and check the log again. Keep your project instructions and setup commands alongside the flywheel additions.

## Completion and handoff

Run the first-session verification from this guide. Check every executable: br, bv, am, mcp-agent-mail, ubs, cass, cm, ms, ast-grep, jsm and jfp. Read the setup log and tool guide at the paths in the recipe. Report each missing or failed tool and its log reason; setup exit 0 alone is not installation success. Check a fresh task/session after saving or publishing to confirm the tools persist and the agent loads the guide.

Tell me which environment/project you configured, which settings and fields changed, which tools were verified, any missing tools or blocked steps, and what I must include in later tasks. Do not claim success before the runtime checks pass. Keep edits to provider setup only; do not commit project changes or start unrelated coding work.

Visual guide: https://agent-flywheel.com/cloud-agents#claude
