fx is a minimalist coding agent CLI developed by Vercel Labs, written in Zig as a single native binary, so no additional runtime needs to be installed, and it behaves consistently whether run on a laptop, in a CI environment, or in an agent sandbox. Its interface is closer to a Unix shell than an IDE, and conversation content is printed to the terminal scrollback buffer, so it can be scrolled, searched, and copied like ordinary command output, and tmux bindings and copy mode also work normally.
Purpose fx is aimed at scenarios where a coding agent needs to be embedded in a terminal, script, editor, or custom application. Scripts can invoke it through fx ask, editors can connect through the Agent Client Protocol (ACP), and JavaScript applications can run the same agent core through libfx and connect it to their own tools.
Main capabilities Built-in tools cover file search, reading, and editing, running shell commands, web search and URL reading, and delegating work to subagents; a development server or file watcher can keep running while it works. For models, you can log in to Vercel AI Gateway, use a ChatGPT or Grok subscription, or connect to OpenAI-compatible Chat Completions endpoints such as Ollama and OpenRouter. For permissions, the default auto mode automatically performs routine operations such as editing project files and running tests, while for other operations the model first checks whether there is prompt injection or malicious behavior and pauses if a problem is found; you can switch to ask to approve each item individually, or full-access to turn off checks. Sessions are saved in ~/.fx/sessions/, and fx -c can resume the last conversation in the project; when a conversation fills the context, fx compresses earlier turns, but the full text remains on disk for the agent to consult. Commands run in the user's login shell, inheriting aliases, functions, and PATH, and fx runs the startup file only once and reuses the result; the command environment contains AI_AGENT=fx, making it easy for development tools to recognize. Terminal output supports the Program Status Protocol, which can show whether fx is busy or waiting.
Usage The installer places fx in ~/.local/bin, supporting x86_64 and arm64 on macOS and Linux. You can log in to Vercel AI Gateway or use a ChatGPT/Grok subscription, thenopen the project and start fx, enter your request and press Enter; /help lists slash commands, and fx doctor checks the configuration. For non-interactive invocation, use fx ask, and add --json for scripts to read the result. The CLI also loads Skills from .fx/skills and ~/.fx/skills as well as .claude/skills and .agents/skills; /mcp add can configure MCP servers; AGENTS.md in the project, nested AGENTS.md, and ~/.fx/AGENTS.md provide project instructions. The examples/ directory contains examples such as node-chat, browser-agent, nextjs-agent, and nuxt-agent.
Performance and build CI fails a PR whenever any benchmark command (such as fx help or fx status --json) takes more than 2 milliseconds on Linux; the stable release for Apple silicon also has a fixed size limit. Building fx requires Zig 0.17.0, unit tests use zig build test, and end-to-end tests are located in tests/e2e/, driving the built binary through tmux and requiring Bun. The source code is licensed under Apache-2.0, and third-party licenses and attributions are in THIRD_PARTY_NOTICES.md.
Limitations and notes The official documentation does not explain the specific charging method, pricing, or model plan details. The WebAssembly build is marked as experimental. The full manual is at fx.sh/docs, and fx.sh/llms.txt and fx.sh/llms-full.txt are also available for coding agents to read.