█

AI/TLDR

Buy me a coffee
Buy me a coffee

FuXi

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

Autonomous Coding AgentsCommercial
Language
Go
License
Proprietary
$curl -fsSL https://downloads.fuxicode.com/bootstrap.sh | bash
IN SHORT

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.

Diagram of FuXi as one static Go binary taking read-code, edit-files, run-commands and drive-tools capabilities and routing beneath to OpenAPI, Gemini, Bedrock/Vertex, FuXi OAuth and any OpenAI-compatible provider
One binary above, provider-agnostic routing belowFuXi repository ↗

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
Diagram of FuXi's Smart Router scoring a request's complexity and dispatching it to a cheap model for simple tasks, a mid model for everyday tasks or a top model for hard tasks
The Smart Router scores complexity, then picks the tier — with failover and primary-vs-fallback racingFuXi repository ↗
  • 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

bashbash
curl -fsSL https://downloads.fuxicode.com/bootstrap.sh | bash

Install on Windows

PowerShell is the documented path; a CMD installer is also published.

texttext
irm https://downloads.fuxicode.com/bootstrap.ps1 | iex

Verify and launch

bashbash
fuxi --version
fuxi doctor    # environment sanity checks
fuxi           # start a session

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

texttext
/model             switch models
/help              browse all commands
/config            open settings
/privacy-settings  privacy controls
/exit              quit

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

Diagram of FuXi's think-act-observe agent loop
The think / act / observe loop a FuXi turn runs throughFuXi repository ↗
  • 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.

ToolStarsWhat it does
opencode★ 230kOpenCode 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★ 158kAnthropic'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★ 147kOpen-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★ 137kOpenAI's cloud and CLI coding agent that writes features, fixes bugs, and proposes code changes across a repo, running tasks in parallel.
Pi★ 125kMinimal terminal coding agent harness with four built-in tools, extended through TypeScript extensions, skills and prompt templates instead of forks.
Gemini CLI★ 109kAn 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★ 101kKarpathy'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.2kOne 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