A high-performance AI coding agent for the terminal, written in modern C++.
Quick start · Features · Runtime modes · Lampo · Settings · Moving your setup
Filo is a high-performance AI coding assistant written in modern C++.
It began as the handyman for Lampo: the private, on-device AI workspace for Apple Silicon. Lampo ships on the Mac App Store under App Sandbox, so it cannot freely reach the filesystem, shell, or developer tooling. Filo was built to sit beside it and do that work: open projects, read and write files, search code, apply patches, and run commands when Lampo’s models need real hands on the machine.
After those early days, Filo grew into a fully fledged terminal coding agent that stands on its own. You can run it end-to-end without Lampo: interactive TUI, skills, session resume, and non-interactive prompter mode for scripts and CI. The Lampo partnership remains first-class when you want it.
Because Filo is written in modern C++, it can be compiled with embedded llama.cpp (FILO_ENABLE_LLAMACPP=ON) and run local GGUF models in-process, no separate inference server required. Pair that with any remote providers you configure, and Filo’s built-in smart router can blend them: prefer local for everyday work, fall back or escalate to remote when a task needs more capacity, and keep spend/quota guardrails under your control.
It runs in multiple runtime modes:
- interactive terminal app (TUI)
- non-interactive prompter mode for scripts/CI
- MCP server over stdio
- HTTP daemon exposing MCP and/or compatible chat API endpoints
Switch models with --model or /model — local, hybrid, or remote, no lock-in.
| A real terminal interface | Full FTXUI TUI with streaming tool output, slash-command autocomplete, session resume, context mentions, and clipboard image paste. |
| Embedded local AI | C++ core can link llama.cpp for in-process GGUF inference; Ollama over localhost is first-class too. The HTTP daemon binds 127.0.0.1 by default. |
| Smart hybrid routing | In-process policies (smart, fallback, latency, load_balance) mix local and remote backends with automatic fallback, spend/quota guardrails, and complexity-based tier routing. |
| MCP server and client | Expose Filo’s coding tools to hosts such as Lampo, or connect Filo to external MCP servers over stdio or Streamable HTTP. |
| Prompter for automation | Single-shot and streaming modes for scripts and CI, with text, json, and stream-json output formats. |
| Agent Skills | On-demand instruction packages under .filo/skills, slash-command activation, and compatibility with common skill roots. |
| Embedded Python | Persistent in-process interpreter tool with optional FILO_PYTHON_VENV isolation. |
- CMake
>= 3.28 - C++26 compiler (GCC 15+ or Clang 17+ recommended)
- OpenSSL
- Python 3 (required when
FILO_ENABLE_PYTHON=ON, which is the default)
Linux
cmake --preset linux-debug
cmake --build --preset linux-debug
ctest --preset linux-debug --output-on-failure
cmake --build --preset linux-debug --target run_integration_tests
./build/Linux/linux-debug/filomacOS
cmake --preset xcode-debug
cmake --build --preset xcode-debug
ctest --preset xcode-debug --output-on-failure
cmake --build --preset xcode-debug --target run_integration_tests
./build/Darwin/xcode-debug/Debug/filoWith embedded llama.cpp
Build with embedded local GGUF inference:
cmake --preset linux-debug -DFILO_ENABLE_LLAMACPP=ON
cmake --build --preset linux-debugThen select a llamacpp provider/model from the TUI (/model) after configuring the local backend.
# Linux
cmake --install build/Linux/linux-debug --prefix "$HOME/.local"
# macOS (Xcode preset — select the configuration explicitly)
cmake --install build/Darwin/xcode-debug --config Debug --prefix "$HOME/.local"The executable is installed to <prefix>/bin/filo. Verify with filo --version.
Configure providers and credentials from the TUI (/settings, /model, /login) or your preferred environment. Local backends such as Ollama (http://localhost:11434 by default) and embedded llama.cpp need no cloud keys.
- Local providers are first-class: Ollama over localhost and embedded
llama.cppfor in-process GGUF inference (FILO_ENABLE_LLAMACPP=ON). - Router guardrails can exempt providers flagged as local (
enforce_on_local: false), keeping embedded local backends available when remote limits are hit. - The daemon listens on
127.0.0.1by default.
- In-process router engine with policy rules and strategies:
smart,fallback,latency,load_balance. - Automatic fallback chains with per-candidate retries.
- Provider health memory: rate limits parsed from real response headers (
retry-after, subscription window resets) cool a provider down across requests instead of re-hammering it, and a circuit breaker backs off repeatedly failing providers. - Optional wait-for-reset failover: when every routed provider is rate-limited, the router can park the turn until the soonest provider reset and resume automatically — overnight jobs finish without anyone typing "continue".
- Guardrails for spend and quota reserves (
max_session_cost_usd, token/request/window reserve ratios). - Auto-classifier that scores prompt complexity and routes to fast/balanced/powerful tiers.
- Built-in
pythontool executes code inside an embedded interpreter. - Interpreter state persists across calls (variables/imports/functions carry over).
- Optional venv isolation via
FILO_PYTHON_VENV.
| Mode | Behaviour |
|---|---|
AUTO |
Routes each request to direct execution, orchestration, or Boost; escalates failed verification automatically |
BUILD |
General-purpose single-agent software workflow |
DEBUG |
Enforces a reproduce → inspect → fix → verify loop |
RESEARCH |
Read-only analysis and planning |
EXECUTE |
Applies instructions directly, keeping permission checks |
For orchestrated turns AUTO plans a small typed DAG and runs only its independent read-only frontier through subagents, while the parent stays the single writer. It records the starting branch, revision, and dirty paths, then audits the final state so branch/HEAD transitions or lost pre-existing changes cannot pass silently.
Execution profiles: subagents on another provider or model
Subagent profiles can deliberately use a different configured provider and model from the parent conversation. Give the profile a descriptive, task-oriented name and ask the parent to select it with subagent_type. The parent cannot override a profile's provider or model in its prompt.
{
"subagents": {
"luna-explore": {
"description": "Low-cost, read-only codebase investigation with GPT-5.6 Luna.",
"provider": "openai",
"model": "gpt-5.6-luna",
"use_allow_list": true,
"allowed_tools": ["read", "file_search", "grep_search", "list_directory"],
"allow_task_tool": false,
"max_steps": 24
}
}
}Profiles inherit the parent provider/model when their respective fields are omitted.
The built-in code-review profile also decides who reviews: /review and the review tool use its provider and model. When that is not the conversation's own model, the review names it ("Reviewed by …" in /review, and in the review card header).
{
"subagents": {
"code-review": { "provider": "openai", "model": "gpt-6.1-terra" }
}
}The model of each subagent can also be chosen in /settings → Agents: Enter opens the model picker for the selected agent and Backspace returns it to the inherited model. Choices are saved in subagents.json, next to settings.json for the User scope and in .filo/ for the Workspace scope (under --config, in that config's own state directory), and apply to every open conversation at once.
Verification, recipes and hooks
A turn that changed the workspace must end with fresh verification evidence. On stop Filo runs
project completion hooks; a successful hook marked quality_gate is authoritative. Otherwise AUTO
runs the smallest deterministic gate from the repository recipe catalog, discovered from CMake
presets, package scripts, Cargo, Go, Swift, Maven, and Gradle metadata. The run_verification
tool executes recipes as argv arrays — never a model-authored shell string — and returns typed
receipts; evidence is bound to the latest mutation, so a later edit invalidates it.
Teams can declare portable, shell-free recipes in .filo/verification.json:
{
"version": 1,
"recipes": [
{
"id": "quality",
"kind": "test",
"executable": "ctest",
"arguments": ["--preset", "linux-debug", "--output-on-failure"],
"required": true
}
]
}Kinds are build, test, lint, typecheck, format, workflow, and custom. Recipes remain
subject to workspace confinement, tool policy, timeouts, and permission prompts, and a remembered
permission is scoped to that recipe rather than every future verification.
Hook events are user_prompt_submit, pre_tool_use, post_tool_use, post_tool_batch, and
stop, each accepting an optional matcher regex over the JSON payload plus fail_closed and
quality_gate flags. Payloads arrive on stdin and in FILO_HOOK_PAYLOAD_B64. A stop hook passes
on exit 0 and can request another turn with exit 2 or {"decision":"block","reason":"…"};
repeated feedback is capped at three turns so a broken hook cannot loop forever.
More features
- C++26 core with streaming-first provider protocols
- TUI built with FTXUI
- Context mentions (
@file, quoted paths, and escaped paths like@My\ Folder/file.txt) - Conversation references: type
#and a few words of a past conversation's title to pick it (rows show turns, age and date); the prompt gets#<session-id>, which inlines a bounded digest of that conversation — its opening request, the most recent user/assistant turns and the tools it called, never tool output. Messages are numbered and the digest ends by saying whether it is complete; when it is not, the agent reads the rest with itsconversationtool, page by page from any message number (tool output on request, unless steering is withheld), and a read stays valid while the referenced conversation keeps growing.#"name"works for/renamed sessions. In the picker,#1,#2… pick this project's conversations newest-first (like/resume 1) and#-1the oldest; Tab swaps the number for the stable id, so a sent#2stays plain text.#stays plain text unless it names a saved session (#123,# Heading,#includeare untouched), and is ignored inside fenced code blocks. - Agent Skills support with
.filo/skillsand on-demand activation Ctrl+Vclipboard paste support (text paste and clipboard-image insertion as@"<path>")- First-class thread management (
Ctrl+Nnew thread,/threadsfor active runtimes;Ctrl+H/Ctrl+Jaliases on enhanced-keyboard terminals) — project-named tabs let you switch without tmux/screen while hidden threads keep working. On an empty prompt,Ctrl+Darchives and closes the current idle secondary thread; the main thread retains double-Ctrl+Dapp exit. In/threads,Ccloses any idle non-main thread without deleting its saved session./sessionsremains the saved-conversation manager. - Session persistence and resume
- Global + workspace config layering
- MCP dispatcher shared across stdio and HTTP transports
- OAuth and API-key credentials
| Mode | Command |
|---|---|
| Interactive TUI | filo |
| Prompter (single-shot) | filo --prompt "Summarize this diff" |
| Agent Client Protocol (Xcode, Zed) | filo --acp |
| MCP over stdio | filo --mcp stdio or filo --mcp stdio --headless |
MCP over TCP (HTTP /mcp endpoint) |
filo --mcp --headless --port 8080 or filo --mcp tcp --headless --port 8080 |
| API gateway only | filo --api --headless --port 8080 |
| MCP + API gateway | filo --mcp --headless --api --port 8080 |
--acp speaks the Agent Client Protocol on stdin/stdout. That is the whole standard: the editor is the client, it launches Filo, and Filo is the agent. Any editor that can launch an ACP agent uses the same command. Xcode 27: Settings → Intelligence → Add an Agent, set Executable to the absolute path of filo (which filo; ~ may not expand), leave Interpreter empty, and add one argument: --acp. Zed uses the same binary under agent_servers (command plus args: ["--acp"]). Optional further arguments, one per row: --model then provider/model, or --yolo to skip permission prompts. Credentials must already be in Filo's store or in the environment the editor passes — the editor does not load your shell profile. The editor's project directory is the session workspace, and MCP servers it passes (Xcode's own build, test and preview tools among them) are connected for that session. One filo process can serve several projects at once.
In the editor, Filo offers its modes (plan is the read-only one, and Xcode's "Implement this Plan" returns to the mode used before), a model picker that lists every signed-in provider as provider/model, reasoning effort, and the slash commands /help, /mode, /model, /effort and /compact. Edits show as diffs, the to-do list as the plan, questions as a form, and past conversations can be listed, resumed and deleted. When a provider sign-in expires, editors with terminal sign-in (Xcode) offer to run filo --auth <provider>. Point the editor at a stable, release build: a debug build is slower, and every rebuild changes its signature, so Xcode asks again whether to trust it. To diagnose an editor integration, set FILO_ACP_TRACE=/path/to/file in the agent's environment; every protocol message is appended there, including prompts, file contents and MCP credentials, so remove it afterwards.
Daemon and transport
--mcpwithout a value defaults totcp.--mcp tcpstarts the HTTP daemon and exposes MCP on/mcp.--mcp stdioruns an MCP server over standard input/output (headless).--daemonis still accepted as a deprecated alias for--mcp tcp.- Set
FILO_MCP_BEARER_TOKENto requireAuthorization: Bearer <token>on/mcp. - For LAN worker deployments, use
--host 0.0.0.0only with a bearer token and network access controls. - The API gateway is off by default to keep daemon startup minimal and local-first.
--apistarts the same HTTP daemon and exposes compatible chat proxy endpoints:GET /v1/modelsPOST /v1/chat/completionsPOST /v1/messages
- Combine
--apiwith--mcpif you want both/mcpand/v1/*on one port. - Model routing in API gateway endpoints:
policy/<policy_name>routes via Filo smart router policy.<provider>/<model>routes directly to a configured provider/model.<provider>routes to that provider's default configured model.
Command-line flags
Modes
--versionprint the Filo version and exit--mcp [tcp|stdio]run as MCP server (default transport:tcp)--acpspeak the Agent Client Protocol on stdin/stdout--daemondeprecated alias for--mcp tcp--apienable optional chat API proxy modefilo --auth <provider> [login|logout]authenticate or sign out and exit--export <file|->/--import <file|->move settings, providers, logins and memories between machines;--config <bundle>uses a bundle in place. Bundles named*.gzare gzip-compressed (see Moving your setup to another machine)
Sessions and models
--model <MODEL|PROVIDER|PROVIDER/MODEL>select a model for this process only without changing saved defaults-r, --resume [id|index|name]resume a saved session (names are set with/rename)-c, --continuecontinue the latest project-scoped session (TUI + prompter)--list-sessionslist resumable sessions
Prompter
--prompterforce non-interactive mode--prompt,-pprompt text--output-format,-oone oftext,json,stream-json--input-formatone oftext,stream-json--include-partial-messagesinclude deltas instream-json
Workspace and safety
--work-dir,-wadd a workspace directory; the first one is primary and later ones are additional allowed directories. Relative entries resolve against the directory Filo was launched from, not against the primary, so-w proj -w .opensprojas primary and its parent as an additional root. Redundant roots (duplicates, paths inside the primary, missing paths) are dropped with a warning naming each one.--steering [default|fallback|none|<path>]which project steering files to load; overrides the savedsteering_modesetting for that run.fallbackwalks the workspace roots in order and uses the first one that has any. A bare path selects a custom file or directory.--no-steeringalias for--steering none--sandbox [read-only|workspace-write|off]controlslandrun(default:off); bare--sandboxenablesworkspace-write.read-onlyblocks workspace mutations from both native file tools and child processes while preserving a writable private temp root. Opt-in secure modes use native Landlock + seccomp on Linux and the native Seatbelt SPI on macOS—neversandbox-exec—and deny child network access.--policy <kind>=<argument>enforce a policy, repeatable.network=askasks before a destination you did not configure;network=<file>loads a policy file (JSON). The network policy requires--sandbox. See Network policy.
Prompter examples
# Direct prompt
filo --prompt "Review this patch for regressions"
# Stdin only
git diff | filo
# Prompt + stdin context
cat README.md | filo --prompt "Summarize the key setup steps"
# JSON output for automation
filo -p "Generate release notes from these commits" -o json
# Stream JSON events
filo -p "Explain the architecture" -o stream-json --include-partial-messages
# Continue latest project-scoped session
filo --continue -p "Now apply the follow-up refactor"
# Multi-project workspace: ../Lampo is primary, ../filo is additional.
# Both are relative to the directory this command runs in.
filo -w ../Lampo -w ../filoLampo is a private, on-device AI workspace for Apple Silicon (macOS). Filo and Lampo integrate in both directions:
| Direction | What it enables |
|---|---|
| Filo → Lampo (MCP tools) | Lampo’s local models can call Filo’s coding tools — filesystem, shell, search, patches — outside Lampo’s App Sandbox. |
| Lampo → Filo (prompt editor) | Edit Filo’s current draft in Lampo’s Prompter UI (Ctrl+G), then return the saved text to the TUI. |
| Lampo → Filo (diff comparer) | Open the file changes a turn just made in Lampo’s Comparer (Ctrl+X or /changes; the whole conversation with Ctrl+Shift+X or /changes all), one window with a tab per file. |
Filo’s MCP server (filo-mcp) exposes local coding tools so a host such as Lampo can act on the real filesystem and run shell commands. Server instructions describe the preferred workflow: search before reading, line-sliced reads for large files, search_replace / apply_patch for edits, and persistent shell state across calls.
Coding-oriented tools include (MCP registration set):
- Read / search:
read,list_directory,file_search,grep_search - Write / edit:
write_file,search_replace,apply_patch,replace,delete_file,move_file,create_directory - Shell:
run_terminal_command - Workspace / orchestration:
get_workspace_config,delegate_task - Web (when enabled):
fetch_url.web_searchis not exposed: it runs through the active LLM provider, and the MCP server has none. - Skills:
activate_skillwhen instruction skills are installed
Paths may be absolute or relative to the active workspace. Use --work-dir / -w to set the primary project and optional additional allowed roots.
Streamable HTTP (Filo daemon)
Best when Filo should keep running independently of Lampo:
# Preferred modern flags (binds 127.0.0.1:8080 by default)
filo --mcp tcp --headless --host 127.0.0.1 --port 8080
# Deprecated but still accepted alias for --mcp tcp:
# filo --daemon --headless --host 127.0.0.1 --port 8080Health check:
curl http://127.0.0.1:8080/pingIn Lampo, set Transport to Streamable HTTP and the endpoint to:
http://127.0.0.1:8080/mcp
Optional auth for the HTTP MCP endpoint:
export FILO_MCP_BEARER_TOKEN="your-secret"
filo --mcp tcp --headless --host 127.0.0.1 --port 8080Clients must then send Authorization: Bearer <token>. Prefer localhost unless remote access is required; if you bind 0.0.0.0, combine a bearer token with firewall rules and never expose MCP to the public internet unprotected.
macOS: run the daemon transparently with launchctl
To keep Filo available for Lampo without a terminal window, install a user LaunchAgent that runs the same MCP TCP command at login and restarts it if it exits.
# 1) Write ~/Library/LaunchAgents/com.filo.mcp.plist (adjust ProgramArguments paths)
# 2) Load it:
launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.filo.mcp.plist
# later:
launchctl bootout gui/$(id -u) ~/Library/LaunchAgents/com.filo.mcp.plistMinimal plist shape: Label com.filo.mcp, RunAtLoad + KeepAlive true, ProgramArguments = absolute path to filo plus --mcp tcp --headless --host 127.0.0.1 --port 8080, optional StandardOutPath / StandardErrorPath under ~/Library/Logs. Point Lampo at http://127.0.0.1:8080/mcp as usual.
On macOS, Filo can open the current draft in Lampo’s Prompter instead of $VISUAL / $EDITOR. Filo implements Lampo’s client-neutral Prompter CLI protocol natively — no adapter script is required.
Interactive setup
- Install Lampo from the Mac App Store
- In Filo’s TUI, open
/settings - Choose Lampo as the prompt editor backend
Usage
- Press
Ctrl+Gto edit the current draft in Lampo - Filo shows opening / editing state, then restores the saved text into the input box when you save in Lampo
- Cancelling in Lampo leaves Filo’s draft unchanged
Lampo is opt-in, available only in macOS builds, and does not change the behaviour of other editor backends.
Every agent turn ends with the net changes it made, listed under its answer. Filo can hand those changes to Lampo’s Comparer instead of keeping them in the terminal, speaking the same client-neutral CLI protocol family — no adapter script is required.
Interactive setup
- Install Lampo from the Mac App Store
- In Filo’s TUI, open
/settings - Choose Lampo as the diff comparer
Usage
- Press
Ctrl+Xor run/changesto open the most recent turn that changed files - Press
Ctrl+Shift+Xor run/changes allto open everything the conversation changed: one net diff per file, from before the first turn touched it to now.Ctrl+Shift+Xneeds a terminal that reports Shift with Ctrl (kitty keyboard protocol or modifyOtherKeys: kitty, Ghostty, WezTerm, iTerm2 with CSI u); macOS Terminal sends the same key for both, so use/changes allthere. A file edited outside Filo over lines a turn wrote is named instead of being folded into the diff - Each file in a change box also carries a
↗affordance that opens just that file - Lampo opens one window with a tab per file, reconstructed from the turn’s unified diff
- Add comments in Lampo, then choose Send Comments to return them to Filo's prompt draft. As in Lampo's own chat, a comment belongs to the comparison it was made in: Filo keeps it with that turn, shows it again when you reopen the turn or one of its files, and saves it with the conversation. Each comment reaches the prompt once; later sends add only new comments, while edits and removals update what the turn keeps. Comments made in
/changes allreach the prompt but are not kept, because the whole conversation has no single turn to hold them. - Filo negotiates structured annotations with the running Lampo. Older Lampo versions keep the existing Markdown comments workflow.
- Closing the Lampo window without sending keeps the turn's comments unchanged.
- A turn that changed nothing, or whose changes carry no diff (binary files, or a file beyond a size budget), says so instead of opening an empty window
The comparer is opt-in.
Built inkeeps every diff in the transcript, andTerminalpages it through$PAGER— on any platform.
/revert restores the most recent turn's recorded file changes; /rewind
rewinds conversation history. Recovery uses native filesystem checkpoints and
works without Git or any other source-control system. Original bytes and file
permissions are saved before writes, separately from the bounded display diff.
Shell, Python, MCP, and hook changes are discovered with a bounded workspace
scan, honoring .ignore, .agentignore, and .gitignore patterns. Symlinks and
Filo's own state are excluded from automatic scans.
On session resume, an unfinished checkpoint is reconciled against actual files
and surfaced for review through /changes and /revert. Commands are never
automatically replayed. A possibly live recorded shell process group blocks
recovery; a revert also refuses active tool and hook writers in the same Filo
process and later conflicting edits,
then verifies restored contents. Earlier test results do not certify recovered
files: rerun the checks appropriate to the state you intend to keep.
Checkpoints live beside session journals under recovery/<session-id>/.
Original storage is capped at 8 MiB per file, 64 MiB and 4,096 files per turn;
the automatic inventory follows the existing 1,000-file turn scan limit.
The newest eight completed checkpoints are retained per session, and all of
them are deleted once the session has been idle for the Revert History setting
(7 days by default, see Settings). Older text
changes can still use their saved diffs; unsupported, excluded, or over-budget
paths are reported as incomplete coverage. Deleting a session removes its
checkpoints. External services and processes that deliberately detach from a
managed process group are outside this recovery boundary.
A model can be talked into sending your project somewhere else, and nothing
in its logs has to show it. --policy decides every request that carries the
conversation, a file or tool arguments, before it leaves the process, and binds
the connection to that decision.
filo --sandbox workspace-write --policy network=ask
filo --sandbox workspace-write --policy network=./policy.jsonnetwork=ask asks before a destination you did not configure; network=<file>
loads a JSON policy. With network=ask, the provider you selected and the MCP
servers you configured are allowed unless a rule refuses them. In a JSON
policy, default: deny also denies those destinations unless a rule allows
them. --policy names the kind,
so a new kind is a new name and not a new flag; network is the only one
today.
{
"version": 1, "default": "deny",
"rules": [{"id": "github", "effect": "allow", "principal": "web_tool",
"host": "api.github.com", "port": 443}]
}This example only allows the listed web tool destination. Add explicit rules for the selected model provider and any MCP servers you want to use.
A rule may narrow principal (web_tool, child_process, mcp_server,
model_provider, optionally kind:name), operation (read, write,
connect, invoke, infer), flow (inbound, outbound,
bidirectional), host (example.com, *.example.com or a CIDR range) and
port (a number or low-high). Read from the given path only, never the
workspace; a file that does not parse stops startup.
Web fetches are read operations with bidirectional flow: the URL can
contain data sent to the destination. An inbound-only rule does not allow them.
The decision binds the connection: no proxy, no redirect, and a host name
reaches only public addresses (localhost only loopback, other private hosts
only as an IP literal). Covered: the model provider (Kimi video uploads and
MiniMax token counts included), remote MCP servers, direct web fetches. A
question is shown in the chat that caused it and withdrawn when it stops. Your
own sign-in is not filtered; a refused MCP server is refused before it is
contacted, so its sign-in is never renewed.
Under a policy:
- web search and local stdio MCP servers are unavailable
- shell processes have no network, so
gitover the network and package installs fail - a WebSocket provider falls back to HTTPS
- sign-in and catalog refreshes that carry no conversation are not mediated
The provider you selected still receives the conversation, and an approved destination can still receive data in a URL: this is destination authorization, not a guarantee against data disclosure. Approvals show the destination, not the request contents. A session approval is limited to that chat and expires after 12 hours or when the chat is closed. On macOS sandboxed commands can broadly read host files, with exceptions for known sensitive paths; the sandbox is not a general file-confidentiality boundary. Tool output can be included in the conversation sent to the model provider. Use a provider you trust with that data.
Most day-to-day options live in the interactive TUI. Open /settings for user/workspace preferences (start mode, approval mode, UI chrome, prompt editor, diff comparer, auto-compaction, tool compression, steering mode, storage retention). Model selection is separate via /model.
Preferences persist to ~/.config/filo/settings.json (user) and ./.filo/settings.json (workspace). Workspace values override user values.
All settings
| Setting | Key | Options |
|---|---|---|
| Start Mode | default_mode |
AUTO, BUILD, DEBUG, RESEARCH, EXECUTE |
| Approval Mode | default_approval_mode |
prompt, yolo |
| Default Router Policy | default_router_policy |
configured policy names |
| Prompt Editor | prompt_editor |
system (uses $VISUAL / $EDITOR), lampo (macOS), or an editor command |
| Diff Comparer | diff_comparer |
builtin (the transcript), terminal (uses $PAGER), lampo (macOS), or a pager command |
| Startup Banner | ui_banner |
show, hide |
| Footer | ui_footer |
show, hide |
| Model Badge | ui_model_info |
show, hide |
| Context Meter | ui_context_usage |
show, hide |
| Message Timestamps | ui_timestamps |
show, hide |
| Activity Spinner | ui_spinner |
show, hide |
| Reasoning | ui_reasoning |
show, hide |
| Theme | ui_theme |
auto (asks the terminal for its background at startup), dark, light |
| Prompt Height | ui_input_height |
How much of the terminal height the prompt box may grow to for a multi-line prompt before it scrolls: 50% (default), presets 25%, 40%, 60%, 75%, 90%, or any 10%–90%. Follows the terminal when it is resized. In /settings, press E to type a custom value |
| Auto-Compaction | auto_compact_threshold |
auto (default: 75% of the model's context window), a share of the window 25%, 40%, 50%, 60%, 90% or any 1%–100%, 0 (off), or a fixed token count such as 400000 / 400k (capped at 75% of the window). In /settings, press E to type a custom value |
| Tool Compression | context_compression |
off, light, full, ultra |
| Steering Mode | steering_mode |
default, fallback, none |
| Cold-Cache Guard | prompt_cache_guard_tokens |
0 (off), 50000, 100000 (default), 200000 |
| Cache Expiry Notice | prompt_cache_notice_seconds |
auto (default: a tenth of the cache lifetime, at least 60 s, so 1 min for a 5-minute cache and 6 min for a 1-hour one), 0 (off), 30, 60, 120 |
| Cache Keep-Warm | prompt_cache_keep_warm |
ask (default), auto, compact (at the notice, writes a summary from the warm cache; your next message uses it only if the cache has expired by then) |
| Conversation Retention | session_retention_days |
0 (keep forever, default), 30, 90, 180, 365, or any number of days |
| Revert History | revert_history_days |
1, 7 (default), 30, 0 (keep with the conversation), or any number of days |
--steering on the command line overrides the saved steering_mode for that run only.
The two Storage settings are read from the user settings.json only, so a
repository's .filo/settings.json can never decide what is deleted. They are
applied in the background each time the interactive app starts:
- Conversation Retention deletes saved conversations idle for longer than the
setting, together with their execution journal, revert history and
offloaded tool output (and journals or tool output that belong to no saved
conversation). Conversations you named with
/renameare always kept. - Revert History deletes the file checkpoints behind
/revertof conversations idle for longer than the setting; the conversation itself stays, and/revertfalls back to its saved text diffs.
Nothing a running Filo process has open is touched, and lock files left by
deleted sessions are cleaned up. The Storage page of /settings also shows
how much disk the saved conversations, their revert history, journals and tool
output take, measured in the background each time /settings opens.
Saved conversations (~/.local/share/filo/sessions/session-*.json) are stored
gzip-compressed, about a third of their JSON size; the same pass compresses
conversations saved before that, keeping their contents byte for byte. To read
one yourself: gunzip -c < session-….json | jq.
| Command | What it does |
|---|---|
/settings |
Interactive preferences panel (user or workspace scope) |
/dir |
Add an extra directory, or change the primary working directory |
/model |
Switch model / provider / router target |
/auth · /login |
Authenticate with a provider |
/logout |
Sign out of a provider OAuth session |
/compression · /compress |
Tool output compression (off, light, full, ultra) |
/steering · /agents |
Inspect steering files, switch mode, load or unload individual files |
/effort |
Model effort (auto, off, low, medium, high, xhigh, max, ultra) |
/yolo |
Toggle auto-approval for sensitive tools |
/mcp |
List or manage external MCP tool servers |
/profile |
List, switch, or clear named profiles |
/threads · /new |
Switch, rename, create, or close active threads |
/sessions · /resume · /continue · /rename |
Manage and resume saved conversation sessions |
/goal · /todo · /memory |
Session goal, todos, and durable memory |
/help |
Full command and keyboard shortcut list |
Write ultrathink anywhere in a prompt to run that one turn at xhigh effort without
changing /effort; a session already at xhigh or above is left alone, models
without xhigh get their nearest supported level, and providers with no effort
control (for example Gemini API keys or Ollama) run the turn as usual. The word is
ignored when it is quoted, bracketed, in backticks, or part of a file name or path; in
prompts that start with / or !, skill bodies, @ files, editor attachments and
input piped alongside -p. It works in the terminal, filo -p and editors (ACP).
Set FILO_DISABLE_ULTRATHINK=1 to turn it off.
Skills without an entry_point also appear as slash commands: /<skill-name> [arguments].
Skills are discovered from every workspace root and the primary wins name collisions,
except executable (Python entry_point) skills, which load only from your own skill
directories and the primary workspace.
Durable memory and automatic capture are enabled by default. Models can save stable
preferences and project facts in ~/.config/filo/memory.json (or
$XDG_CONFIG_HOME/filo/memory.json). Entries are bound to the current project's
canonical checkout root; subdirectories share that root, while separate Git
worktrees remain isolated. Session-scoped entries also require the same session.
Recall, tool calls, /memory entry commands, and background capture use this same
boundary. Old entries without project identity are preserved but excluded from
recall; explicitly import a reviewed Markdown export into the intended project
with /memory load to adopt them. Saved settings remain shared and are respected.
Use /memory auto off to stop automatic capture, /memory off to disable memory,
and /memory auto on to re-enable saving. Background review, consolidation, and
skill curation remain off by default.
Run /memory to open the interactive menu for project entries, capture settings,
session controls, and Markdown import/export. /memory status prints the text summary.
filo --export writes your user configuration to one portable JSON bundle and
filo --import applies it on another machine, so you do not have to sign in or
reconfigure providers again. Both commands do their work and exit. A bundle
whose file name ends in .gz (or any bundle exported with --compress) is
gzip-compressed; --import and --config read plain and compressed bundles
alike, so there is nothing to unpack.
# Everything except secrets: settings, providers, MCP servers, memories
filo --export filo-setup.json
# Include OAuth logins, API keys and MCP headers/env, compressed
filo --export filo-setup.json.gz --include-secrets
# Only Claude (its provider entry and its OAuth login)
filo --export claude.json.gz --only claude --include-secrets
# See what would be exported, without writing anything
filo --export --dry-run --only providers
# On the other machine: preview, then apply
filo --import filo-setup.json.gz --dry-run
filo --import filo-setup.json.gz
# Or use a bundle in place, without importing it
filo --config claude.json.gz
# Encrypt in transit with any tool that reads stdin, e.g. age
filo --export - --include-secrets | age -p > filo-setup.age
age -d filo-setup.age | filo --import -Selecting items
--only and --except take comma-separated or repeated
selectors and work with both commands. A selector is a kind, kind:pattern, or a
bare pattern that matches item names of every kind. Patterns support * and ?.
| Kind | One item per | Notes |
|---|---|---|
settings |
top-level key of config.json, auth_defaults.json, model_defaults.json, profile_defaults.json, settings.json |
e.g. settings:default_provider |
providers |
providers.<name> across those files |
api_key is a secret |
mcp |
user-level MCP server | headers, env and client secrets are secrets |
credentials |
OAuth login (oauth_<name>.json, plus companion files such as Kimi's device id) |
exported only with --include-secrets |
memories |
project (~/src/app) or global |
archived and session-scoped memories stay behind |
Examples: --only providers,credentials, --only 'memories:*filo',
--except settings, --only 'providers:qwen*'.
Secrets and shared logins
Without --include-secrets, logins are left out and secret fields
are cut from the remaining items. The export report lists what was withheld.
Importing a bundle without secrets never erases a key: the destination keeps
its own value for every field that was withheld. Bundle files are created
owner-only (0600), and Filo refuses to print a bundle containing credentials
to a terminal. Anyone holding a bundle with secrets can use your accounts, so
move it privately and delete it afterwards.
Shared logins. Many providers rotate refresh tokens. If two machines use one
imported login at the same time, the first one to refresh it can sign the other
out. In that case, sign in again with filo --auth <provider>.
Import behaviour
Every selected item is checked before anything is written.
If one item is invalid, nothing is imported. Configuration items replace the
destination's entry with the same name. A config.json that does not exist yet
starts from Filo's shipped defaults. Items that will be replaced are first saved to
~/.config/filo/backups/import-<time>.json, which filo --import can restore.
Memories are merged: facts already present are skipped, and each new fact gets
a fresh local id. Memory paths under the exporting user's home directory move to
the importing user's home directory automatically. For other layouts, use
--map-path FROM=TO, for example --map-path /work=/srv/work. You can write
FROM as stored in the bundle (~/...) or as it was on the source machine.
See CONTRIBUTING.md for development setup, PR guidelines, and code style.
Apache License 2.0. See LICENSE.
