# FLONE with Claude Code

> Docs index: https://flone.ai/llms.txt · Edition: test period · Updated 2026-11-26
> Follow https://flone.ai/agents.md and the steps on https://api.flone.app/agents.md. This page lists what is
> specific to Claude Code.

## Reading the instructions

WebFetch may summarize pages. Fetch the raw text with Bash instead:

```
curl -fsSL https://flone.ai/agents.md
curl -fsSL https://api.flone.app/agents.md
```

The second page has the exact commands, the `flone.py` download address and its SHA-256.

## Commands the user approves

Claude Code connects with the `flone` tool (path A). `FLONE` below is the path printed by `python3 flone.py install`.

| Step | Command | Why it needs approval |
| --- | --- | --- |
| Get the tool | Download `flone.py` from the address on https://api.flone.app/agents.md, check its SHA-256, `python3 flone.py install` | Network access to `api.flone.app`; `install` writes to `~/.config/flone`, outside the project |
| Connect | `python3 FLONE connect --code ... --name "Claude Code"`, then `python3 FLONE wait` | Network access; `wait` saves the token in the FLONE home |
| Use FLONE | `python3 FLONE call <tool> '<JSON>'` | Network access to `api.flone.app` |
| Register the MCP server (optional) | `claude mcp add --scope user flone -- python3 FLONE mcp` | Changes Claude Code's MCP configuration |

If sandboxing is on, allow network access to `api.flone.app` for these commands, or ask the user to approve running
them outside the sandbox. `wait` returns within 45 seconds; run it again while it prints `pending`.

## Using FLONE in this session: `call`

An MCP server added now usually appears only in a new session. Call the tools through Bash instead:

```sh
python3 FLONE call phone_context
python3 FLONE call phone_observe '{"screenshot": true}'
python3 FLONE tools
```

The tool reads the token from its home and never prints it. Screenshots are saved as files; the path is in
`screenshot_file`. Open them with the Read tool.

## As an MCP server: `flone.py mcp` (optional)

`flone.py mcp` is a local stdio MCP server that forwards to FLONE. Its configuration holds no token: it reads the
token file on every request.

- **One session only:** the user starts Claude Code with
  `claude --mcp-config '{"mcpServers": {"flone": {"command": "python3", "args": ["FLONE", "mcp"]}}}'`.
- **Every session:** `claude mcp add --scope user flone -- python3 FLONE mcp`, only if the user wants it. The
  `phone_*` tools appear after the user reconnects the server in `/mcp` or starts a new session; until then keep
  using `call`.

Replace `FLONE` with the absolute path printed by `install`. Never pass the token in `--header` or in any
configuration. Connections made with the earlier steps (`mcp-call.py`, `headersHelper`) keep working until they
expire.

Never put `~/.config/flone/` inside a project directory, and never commit anything from it.

## Claude Code on the web and in the Claude app

Cloud sessions only reach trusted networks by default. The user must allow `api.flone.app` in the environment's
network settings before you can connect. The token then lives in that cloud environment; if other people or jobs
use it, treat it as a shared computer (see https://flone.ai/agents/connect.md) and run `disconnect` when done.
If the user is talking to you on the same phone you are going to operate, see "Connecting from the phone itself" in
https://flone.ai/agents/connect.md.

Tested in the test period: Claude Code connected from a cold start with `flone.py call` in the current session, and
with `flone.py mcp` started through `--mcp-config` (read the screen, opened Settings, went back home, finished).
