Flockbox

Docs

Everything about the Flockbox agent and how the app works with it. New here? Start with the guide.

How Flockbox works

Flockbox has two parts:

The app can also talk directly to API providers (Hermes Agent's API server, Claude API, OpenAI-compatible APIs, Cursor Cloud Agents, Jules). Those don't need the agent.

Requirements

Install, update, remove

curl -fsSL https://flockbox.app/install.sh | bash

The installer puts the agent in ~/.flockbox/lib and the flockbox command on your PATH (~/.local/bin on macOS and Linux, your user PATH on Windows), then runs flockbox setup. Options: --no-setup (-NoSetup on Windows) installs without starting the setup.

Updates

The agent checks for a new version of itself every six hours and installs it when no session is running. flockbox upgrade does it now. Running the install command again also updates, and keeps your settings and pairings.

Removing it

  1. flockbox service uninstall stops it starting at login.
  2. Delete ~/.flockbox (your keys, pairings and settings) and ~/.local/bin/flockbox. On Windows, also remove %USERPROFILE%\.flockbox\bin from your user PATH.
  3. In the app, remove the computer under Setup.

Your AI tools, their sign-ins and your project folders aren't touched.

The flockbox command

CommandWhat it does
flockbox setupThe first-time setup: name, AI tools, start at login, pairing. A bare flockbox runs it the first time.
flockbox add <tool>Adds an AI tool: installs its latest version if it's missing, then runs its own sign-in. Tools: claude, codex, gemini, cursor, grok.
flockbox login <tool>Signs a tool in again. --api-key [key] keeps an API key for it instead (Gemini, Cursor, Grok).
flockbox pairShows a QR code (and a link) to pair a phone. One use, ten minutes.
flockbox statusThe agent, the relay, start at login, paired phones, and each tool's version and sign-in.
flockbox devicesPaired phones. flockbox unpair <id> (or all) removes them.
flockbox service installStarts the agent now and at every login (systemd user service on Linux, LaunchAgent on macOS, the Startup folder on Windows). uninstall removes it.
flockbox serveRuns the agent in this terminal instead (Ctrl+C stops it).
flockbox install <tool>Installs (or reinstalls) a tool's latest version without signing in.
flockbox update [tool]Updates the AI tools now (also done every six hours).
flockbox upgradeUpdates the Flockbox agent itself.
flockbox configShows or changes settings.

Settings

flockbox config <setting> <value>, then restart the agent (flockbox service install).

SettingDefaultMeaning
namethe computer's nameHow the app shows this computer.
relaydefaultThe relay phones use away from home. off: only your network and Tailscale. Or your own relay's wss:// address.
auto-updateonKeep the AI tools and the agent up to date on their own.
addressnoneAnother address phones can reach this computer at (a DNS name, a reverse proxy). address-remove removes one.
publicoffAccept direct connections from public IP addresses. Not needed with the relay.
port7787The port the agent listens on.

Providers

ToolInstalled withSigns in withPermission modes
Claude CodeAnthropic's installerYour Claude account (claude auth login)default (asks you), acceptEdits, plan, bypassPermissions
Codexnpm (@openai/codex)ChatGPT or an API key (codex login)workspace-write, read-only, danger-full-access
Gemini CLInpm (@google/gemini-cli)Google (its first-run screen) or GEMINI_API_KEYauto_edit, default, yolo
Cursor CLICursor's installercursor-agent login or CURSOR_API_KEYdefault, force
Grok BuildxAI's installer (macOS, Linux)XAI_API_KEYdefault

API keys saved with flockbox login <tool> --api-key are kept in ~/.flockbox/secrets.json (readable only by you) and passed to that tool only when it runs.

Sessions and folders

Approvals and permissions

Claude Code in the default mode asks before anything that needs approval (running a command, editing a file), and you answer Allow or Deny in the chat. The session shows Waiting for you until you do, on the home screen too. The other tools can't stop to ask while running headless, so their permission mode decides what they may do on their own; pick the strictest one that still lets them do the job.

Connecting from anywhere

The phone tries every address it knows for a computer at once and uses the best one that answers:

  1. Your network: the computer's address on your Wi-Fi. Fastest, direct.
  2. Tailscale, if the computer is on a tailnet.
  3. The relay (flockbox.app/relay): the agent keeps one outgoing connection to it, so the phone can reach the computer from any network, with nothing opened on your router.

The relay only passes encrypted messages along. It can't read them, change them, or pose as your computer or your phone; to connect, an agent has to prove it holds its private key. Turn it off with flockbox config relay off.

Security

Files

In ~/.flockboxWhat it is
identity.jsonThe agent's key pair (private: keep it to yourself).
devices.jsonPaired phones.
config.json, secrets.jsonSettings, and API keys for tools that use them.
sessions.json, transcripts/Sessions started from the app, and transcripts for tools whose history can't be read back.
agent.logThe background agent's log.
lib/, bin/, node/The agent, the flockbox command, and its private Node.js (if it needed one).

Session folders made by default are in ~/Flockbox (capital F), separate from the agent's own files.

Troubleshooting

The app can't reach the computer

Run flockbox status on it. If the agent isn't running, start it: flockbox service install. If the relay says "not connected", check the computer's internet connection; it reconnects on its own. On the same Wi-Fi it should work even without the relay.

"That pairing code was wrong or has expired"

Each code works once, for ten minutes. Run flockbox pair again.

"This computer no longer knows this phone"

The phone was unpaired on the computer, or ~/.flockbox was reset. Remove the computer in the app and pair again.

A tool says it isn't signed in

On the computer: flockbox login <tool>, then check with flockbox status.

"flockbox: command not found" after installing

Open a new terminal (the installer added it to your PATH), or run it directly: ~/.flockbox/bin/flockbox (%USERPROFILE%\.flockbox\bin\flockbox.cmd on Windows).

The agent stops when I log out (Linux)

Allow your user's services to keep running: loginctl enable-linger $USER.

Where are the logs?

~/.flockbox/agent.log on macOS and Windows; journalctl --user -u flockbox on Linux.