What is FuXi?
FuXi is a terminal-first AI coding agent. It sits in the Autonomous Coding Agents category of the AI Coding tools and is open-source, written in Go and licensed Proprietary. To get started: install on macOS or Linux.
Overview
FuXi is a terminal-first AI coding agent. It reads code, edits files, runs commands and drives tools from a rich TUI, and it ships as one static binary built in Go with no runtime dependencies — no Node, no Python environment, no container. Install and upgrade are the same command, and `fuxi doctor` checks the environment before you start a session.

The distinguishing feature is cost-aware routing. Rather than pinning every turn to one model, a Smart Router scores each request's complexity and sends simple tasks to a cheap model, everyday work to a mid-tier model and hard problems to a top model, with automatic failover and primary-versus-fallback racing when a provider stalls. Routing is provider-agnostic: OpenAI-compatible endpoints, Gemini, Bedrock/Vertex, FuXi's own managed models, or anything else that speaks the OpenAI API. Signing in gives access to FuXi-managed models; supplying your own API key sends traffic straight to the provider you chose instead.
On privacy the project is explicit: by default your code and conversations are never collected, stored or retained by FuXi. Credentials stay in `~/.fuxi/` and are never uploaded, and sessions, checkpoints, memory and audit logs live on the device and can be deleted by removing the config directory. Conversation content reaches FuXi only if you explicitly turn on `send_conversations`, which is off by default. Note that FuXi is proprietary software: the public repository hosts the documentation, installers and issue tracker, while the product source is closed, and a FuXi account is required to run it.
What it does
- A single static Go binary with no runtime dependencies; the install command is also the upgrade command

- Smart Router scores each request's complexity and picks a cheap, mid or top model accordingly
- Automatic failover plus primary-versus-fallback racing across providers
- Provider-agnostic and bring-your-own-key: OpenAI-compatible endpoints, Gemini, Bedrock/Vertex or FuXi-managed models
- Full coding toolkit from the TUI — file reads with LSP and ripgrep, write/diff/patch edits, bash and PowerShell execution, MCP, browser and Jupyter tools
- Local-by-default data handling: code and conversations are not collected, keys stay in ~/.fuxi/, sessions and audit logs are deletable
- Multi-window coordination, session checkpoints and memory, documented alongside a reproducible benchmark report
Getting started
One command installs and upgrades. A FuXi account is required; connecting your own provider key is optional.
Install on macOS or Linux
curl -fsSL https://downloads.fuxicode.com/bootstrap.sh | bashInstall on Windows
PowerShell is the documented path; a CMD installer is also published.
irm https://downloads.fuxicode.com/bootstrap.ps1 | iexVerify and launch
fuxi --version
fuxi doctor # environment sanity checks
fuxi # start a sessionSign in and pick a model source
`fuxi login` registers and signs in (`fuxi setup-token` covers headless and CI use). Signing in gives access to FuXi-managed models; to use your own provider instead, set an API key by environment variable or in `~/.fuxi/config.yaml` — `fuxi init` generates a template, and `fuxi wizard` walks it through interactively.
Work the session
Type a prompt and press Enter, then use the slash commands to steer it.
/model switch models
/help browse all commands
/config open settings
/privacy-settings privacy controls
/exit quitCommands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it

- Keep an agent in the terminal on a machine where you do not want a Node or Python toolchain installed
- Cut spend on a long session by letting simple turns fall to a cheap model instead of paying flagship rates for everything
- Survive a provider outage mid-task through automatic failover rather than restarting the run
- Run a coding agent under a documented privacy posture where keys, sessions and logs stay on the machine
How FuXi compares
FuXi alongside other open-source autonomous coding agents tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| opencode | ★ 230k | OpenCode is an open source AI coding agent that runs in your terminal, with built-in build and plan agents and an optional desktop app. |
| Claude Code | ★ 158k | Anthropic's agentic coding tool for the terminal, IDE and GitHub: it understands your codebase, executes routine tasks, explains code and handles git workflows from natural-language commands. |
| Orca | ★ 147k | Open-source desktop workspace that runs Claude Code, Codex, OpenCode and other CLI coding agents in parallel, each in its own git worktree, with a mobile companion app. |
| OpenAI Codex | ★ 137k | OpenAI's cloud and CLI coding agent that writes features, fixes bugs, and proposes code changes across a repo, running tasks in parallel. |
| Pi | ★ 125k | Minimal terminal coding agent harness with four built-in tools, extended through TypeScript extensions, skills and prompt templates instead of forks. |
| Gemini CLI | ★ 109k | An open-source command-line AI agent from Google that connects your terminal to Gemini models for reading code, editing files, running shell commands, and searching the web. |
| autoresearch | ★ 101k | Karpathy's minimal harness that hands a coding agent a single-GPU LLM training script and lets it run fixed five-minute experiments, keeping or discarding each change on its own. |
| FuXi | ★ 3.2k | One static Go binary that reads code, edits files and drives tools from a terminal UI, scoring each request and routing it to a cheap, mid or top model |
