Docs/Reference/CLI Commands
Reference

CLI Commands

Every flowly command and subcommand, generated from the CLI itself. Run flowly --help for the live tree.

The flowly command is the entry point for everything β€” running the agent, starting the gateway, managing channels, skills, plugins, MCP servers, and more. Run flowly --help for the live command tree, or flowly <command> --help for any subcommand.

Add

-p <profile> / --profile <profile> before any command to target a non-default profile (it sets FLOWLY_HOME before anything loads).

Top-level commands

CommandWhat it does
flowlySmart entry: opens the terminal chat when a provider/account is configured; on a fresh machine it launches the first-run onboarding instead.
flowly setupFirst-run onboarding + configuration β€” sign in with a Flowly account or enter your own API key, plus channels and tools.
flowly enrollConnect a phone / remote device: enable remote access and print the LAN IP, port, token, TLS note, and firewall steps.
flowly agent -m "..."Send a one-shot message to the agent.
flowly gatewayStart the gateway daemon (channels run through it).
flowly login / logoutSign in / out of a Flowly account (OAuth, optional β€” BYOK works without it).
flowly updateUpdate Flowly in place β€” git pull for a git-checkout install, or the matching package upgrade (uv-tool/pipx/pip) otherwise. Auto-detects the install mode; --check previews, no-op inside Flowly Desktop.
flowly restartRestart the gateway (auto-detects service vs foreground).
flowly doctorCheck configuration and runtime health (--fix to auto-repair).
flowly statusShow Flowly status.
flowly serviceManage the background gateway service.
flowly channelsManage channels.
flowly cronManage scheduled tasks.
flowly skillsManage skills (list / install / remove / search).
flowly skillGovern self-improved skills (mine, curate, rollback, archive, usage).
flowly bundlesManage skill bundles.
flowly memoryInspect and correct long-term memory (list, review, accept/reject, dream, correct, undo).
flowly pluginsManage plugins.
flowly mcpManage MCP servers.
flowly personaManage the bot persona.
flowly approvalsManage command-execution approvals.
flowly codexManage the Codex app-server runtime (opt-in).
flowly sessionsMonitor background subagent tasks.
flowly pairingSecure channel pairing.
flowly xaiConnect an xAI / Grok subscription via OAuth.
flowly bootstrapNon-interactive workspace bootstrap (safe for installers).
flowly onboardAlias for flowly setup (the first-run onboarding).

flowly

Bare flowly opens the terminal chat (TUI) once a provider/account is configured. On a fresh machine it launches the onboarding picker instead (sign in with a Flowly account or enter an API key). There is no separate flowly tui command.

OptionDescription
--hostGateway host (default 127.0.0.1).
--port, -PGateway port (default 18790).
--session, -sSession key (default: resume last; use --new for fresh).
--new, -nStart a fresh session, ignoring last state.
--themeTUI theme: flowly, moonfly, catppuccin, tokyo-night, synthwave, mono, amber, hacker.

flowly agent

One-shot interaction with the agent.

OptionDescription
--message, -mMessage to send.
--session, -sSession ID (default cli:default).

flowly gateway

Start the gateway daemon.

OptionDescription
--port, -pGateway port (default 18790).
--verbose, -vVerbose output.
--personaBot persona: default, jarvis, pirate, samurai, casual, professor, butler, friday.
--remoteAccept connections from your phone / other devices (plain-language alias for --host 0.0.0.0; a token is ensured automatically).
--hostBind address. 0.0.0.0 accepts remote clients; default 127.0.0.1 (local only).
--tokenSet an explicit remote-access token (otherwise one is auto-generated on the first non-loopback bind).
--rotate-tokenGenerate a fresh remote-access token before starting (invalidates the old one).

flowly enroll

Connect a phone or another device to this gateway in one step: enables remote access (binds 0.0.0.0 + ensures a token), prints the LAN IP to use on the same Wi-Fi (plus the public IP for internet access), the port, token, and TLS note, and offers to open the firewall on Windows. Restart the gateway afterward so it rebinds.

flowly setup

The first-run onboarding + configuration surface. Bare flowly setup seeds the workspace and opens the picker β€” sign in with a Flowly account or enter your own API key β€” then offers to start the gateway. Subcommands:

SubcommandWhat it does
setup channelsConnect messaging channels (Telegram / Discord / Slack).
setup toolsConfigure tool integrations (browser, voice, Trello, …).
setup byok <slug>Quick BYOK one-shot: save an API key (slugs: openrouter, anthropic, openai, xai, gemini, groq, zhipu, sakana).
setup agentsSet up multi-agent orchestration.
setup google-workspaceInstall and authenticate the Google Workspace CLI (gws).

flowly service

Manage the background gateway service (launchd / systemd / Task Scheduler).

SubcommandWhat it does
installInstall the background service. Idempotent (re-running reinstalls cleanly; no --force needed). Flags include --start, --remote, --host, --token, --port, --persona.
startStart the installed service (won't launch a duplicate if a gateway already holds the port).
stopStop the service.
restartRestart the gateway.
statusShow service state, local health, and a port/process diagnostic (warns if a gateway is running outside the service).
logsShow service logs (real-time by default).
uninstallRemove the service definition.

flowly channels

SubcommandWhat it does
statusShow channel status.
loginLink a device via QR code.

flowly cron

SubcommandWhat it does
listList scheduled jobs.
addAdd a scheduled job.
removeRemove a scheduled job.
enableEnable or disable a job.
runManually run a job (delegates to the running gateway).

flowly skills

SubcommandWhat it does
listList installed skills.
installInstall a skill.
removeRemove an installed skill.
searchSearch the registry for skills.

flowly skill

Govern the opt-in skill self-improvement subsystem (distinct from flowly skills, which installs/removes skills). See Skill self-improvement.

SubcommandWhat it does
mineMine recurring procedures from history into proposed skills (--dry-run to preview).
curateReview and apply proposed skill improvements.
usageShow how often each self-improved skill has been used.
logShow the skill-change operation log.
undoUndo the last skill change.
rollbackRoll a skill back to an earlier snapshot.
archive / restoreArchive a skill (and restore it later).
staleList skills that haven't been used in a while.

flowly bundles

SubcommandWhat it does
listList bundles for the active profile.
showShow one bundle's full definition.
createCreate a new bundle.
deleteDelete a bundle file.
reloadDrop the in-process bundle cache.

flowly memory

Inspect and correct long-term memory (the governed memory store). See Memory.

SubcommandWhat it does
listList stored memories.
reviewReview pending memory candidates (the needs_review queue).
accept / rejectAccept or reject a candidate memory.
dreamRun a cross-session "dreaming" pass now β€” scan recent chats and learn durable facts (also runs automatically on idle / daily / every N turns). --max-messages caps the batch.
feedbackGive πŸ‘/πŸ‘Ž feedback to retune a memory's trust score.
correctCorrect a stored memory's content.
undoUndo the last memory change.
refreshRebuild the MEMORY.md block from the governed store.
status / statsShow memory store status and statistics.
consolidateRun a consolidation pass (merge duplicates, retire stale notes).
migrateMigrate the memory store to the latest schema.

flowly plugins

SubcommandWhat it does
listList discovered plugins (bundled + user + project).
installInstall from a git URL, owner/repo, owner/repo/subpath, or local path.
enableEnable a plugin (add to plugins.enabled).
disableDisable a plugin.
removeUninstall a plugin (deletes its directory under $FLOWLY_HOME/plugins/).

flowly mcp

SubcommandWhat it does
listShow configured MCP servers.
addRegister an MCP server (probes by default; --no-probe to skip).
removeDrop a server entry.
enable / disableToggle whether a server loads at agent boot.
configurePick which of a server's tools are enabled (interactive).
serveRun Flowly itself as an MCP server on stdio.
catalogList the curated, ready-to-install MCP servers.
installInstall a curated server from the catalog.
pickerBrowse the catalog and install interactively.
testConnect to a server and show its tool list.
loginRun (or re-run) the OAuth flow for an OAuth-configured HTTP server.

flowly approvals

SubcommandWhat it does
statusShow exec-approvals configuration.
setUpdate exec-approvals configuration.
listList allowlist entries.
addAdd a pattern to the allowlist.
removeRemove a pattern from the allowlist.
safe-binsList the safe bins that are always allowed.

flowly codex

SubcommandWhat it does
enableEnable the codex_session tool (delegate coding turns to Codex).
disableDisable it (back to Flowly's own runtime).
cwdSet (or show) the working directory Codex runs in β€” persistent.
statusShow whether the runtime is enabled + Codex CLI health.

flowly persona

SubcommandWhat it does
listList available personas.
setSet the active persona.
showShow persona details.

flowly sessions

SubcommandWhat it does
listList background subagent tasks.
clearClear completed/failed task history.

flowly pairing

SubcommandWhat it does
listList pending pairing requests.
approveApprove a pairing code.
revokeRevoke access for a user.
allowedList allowed users from the pairing store.

flowly xai

SubcommandWhat it does
loginSign in to xAI OAuth for SuperGrok / X Premium+ API access.
statusShow xAI OAuth connection status.
logoutRemove stored xAI OAuth tokens.
testValidate the stored token against xAI /models.

flowly login

Sign in with a Flowly account (OAuth-driven, optional β€” BYOK works without it).

OptionDescription
--no-browserDon't try to open the authorization URL.
--repairRe-register + re-wire relay config using existing tokens (no browser).
--dry-runShow what --repair would change without writing.
--key <flw_…>Use a Flowly account key you already have (e.g. from the Desktop app) β€” sets the flowly provider with no server record and no relay.
--relay / --no-relayForce remote/phone reach (server registration + relay) on or off, skipping the interactive prompt. Default: ask.

flowly doctor

OptionDescription
--fix, -fAuto-repair fixable issues.