# FLONE with Grok Bot

> 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 Grok Bot.

## Supported, on one condition: the user agrees to a shared computer

Grok Bot runs commands on a cloud computer with Linux and `python3`, so it connects with the `flone` tool
(path A). That computer is shared by every Bot in the user's account, including imported third-party Bots and
scheduled tasks. While FLONE is connected there, any of them could use the user's phone through it.

1. **Before you connect**, tell the user in their language: "This computer is shared by every Bot in your Grok
   account. While FLONE is connected, any of them could use your phone through it. I will disconnect when the task
   is done."
2. **Connect only if the user agrees.** If they do not, stop; do not try another way.
3. Connect as on https://api.flone.app/agents.md, path A: download `flone.py`, check its SHA-256 against that page,
   `install`, `connect` with the name `Grok Bot`, `wait`, then `call`.
4. **On the phone, the request may show as coming from a cloud server.** That is expected here; tell the user so
   when you ask them to approve it.
5. **Screenshots are saved on this computer**, where the other Bots in the account can also read them. Take a
   screenshot only when you need one; `phone_observe` without a screenshot is often enough.
6. **When the task is done**, call `phone_finish` with its two required fields, for example
   `python3 FLONE call phone_finish '{"outcome": "succeeded", "summary": "Read the home screen."}'` (`outcome` is
   `succeeded` or `failed`). Then run `python3 FLONE disconnect` (FLONE is the path printed by `install`). It ends
   the connection and deletes the token; the current `flone.py` also deletes every screenshot it saved and lists
   what it removed. If screenshots are still in the FLONE home, delete them. Tell the user that the connection has
   ended. Disconnect even if the task failed. The user can also end it at any time in the FLONE app.

Do not keep a FLONE connection on this computer between tasks. If the user wants FLONE again later, connect again
with a new code.

## Remote MCP connector: works, but prefer path A

Grok Bot can also add a custom connector ("remote HTTPS", server URL `https://api.flone.app/mcp`, HTTP header
`Authorization: Bearer <token>`); the tools work from the next message. But the token is then stored in the user's
xAI account, is available to every Bot in that account, and is shown in plain text in Grok's settings. Path A with
`disconnect` at the end keeps the token on the cloud computer and removes it when the task is done; prefer it.

If the user still chooses the connector: the token comes from path B on https://api.flone.app/agents.md. When the
connection ends (expired, disconnected on the phone, or `DELETE /api/v1/connect/self`), the connector's tool calls
fail with either a message that the connection has ended and a new code is needed, or "HTTP 404: Invalid OAuth
error response". Both mean the token no longer works; FLONE does not use OAuth. Ask the user for a new code, connect
again, and update the header value in the connector. When the user no
longer needs it, ask them to remove the connector in Grok.

## Notes

- The token stays in the FLONE home on the cloud computer and is never printed. Do not copy it into the
  conversation or a file you share, and not into Grok's settings unless the user chose the connector above.
- The grok.com chat app without a Bot's cloud computer is not supported in the test period.

Tested in the test period: Grok Bot told the user about the shared computer and asked first, then downloaded and
checked `flone.py`, connected, read the screen and disconnected; the connection disappeared from the phone. The
remote MCP connector with an `Authorization` header was also tested and works.
