Skip to content

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 | bash

macOS (Homebrew)

$brew install Rohit94r/tap/lf

Windows (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.

  1. 01
    $lf login

    Sign in with a platform key from the dashboard (API Keys). Use lf login --browser for the device-code flow.

  2. 02
    $lf link

    Link the current folder to a LayerFlow project. Or run lf init --brief "…" to create one and link it.

  3. 03
    $lf

    Start the coding agent in the project folder. Each session loads the project brief and memory.

  4. 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.

  5. 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

CommandWhat it does
lf jobsShow the open agent job: state, budget and what is waiting on you.
lf approveApprove a step that is waiting on you and continue the run.
lf reject --note "…"Reject a step. A note is required.
lf syncForce a push and pull of sessions for the linked project.
lf costShow token and cost usage.
lf doctorRun local diagnostics.
lf logoutRevoke the key on the server and delete it locally.