Docs
Get started with LayerFlow
Install the lf CLI, link a folder to a project, and the same context follows you between the browser, the terminal and agents.
Install the CLI
Each installer downloads the prebuilt, checksum-verified lf binary for your OS and architecture.
macOS / Linux
$curl -fsSL https://layerflow.dev/install | bashmacOS (Homebrew)
$brew install Rohit94r/tap/lfWindows (PowerShell)
$powershell -ExecutionPolicy Bypass -c "irm https://layerflow.dev/install.ps1 | iex"Quick start
From a fresh install to the coding agent in your repository.
- 01
$lf loginSign in with a platform key from the dashboard (API Keys). Use lf login --browser for the device-code flow.
- 02
$lf linkLink the current folder to a LayerFlow project. Or run lf init --brief "…" to create one and link it.
- 03
$lfStart the coding agent in the project folder. Each session loads the project brief and memory.
- 04
$lf chat "add a --verbose flag to the CLI"Run a single request. Every edit shows its diff and every command asks for approval first.
- 05
$lf chat -n "summarize the failing tests"Headless mode for scripts and CI. Writes and commands are refused unless you pass --yes.
Keys and models
Manage both kinds of key in the dashboard under API Keys.
Platform keys
Keys that start with lf_live_ are billed through your plan and are what the CLI signs in with. No provider account is needed; LayerFlow routes requests through its managed gateway.
Your own provider keys (optional)
Add OpenAI, Anthropic, Gemini or other provider keys to your workspace vault. They are encrypted at rest and preferred when configured, so you use your own quota.
Command reference
| Command | What it does |
|---|---|
| lf jobs | Show the open agent job: state, budget and what is waiting on you. |
| lf approve | Approve a step that is waiting on you and continue the run. |
| lf reject --note "…" | Reject a step. A note is required. |
| lf sync | Force a push and pull of sessions for the linked project. |
| lf cost | Show token and cost usage. |
| lf doctor | Run local diagnostics. |
| lf logout | Revoke the key on the server and delete it locally. |