# 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

- Category: AI Coding / Autonomous Coding Agents
- Language: Go
- Licence: Proprietary
- Repository: https://github.com/fuxicodex/Fuxi
- Website: https://www.fuxicode.com
- Canonical page: https://ai-tldr.dev/tools/fuxi/

## In short

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.

1. Install on macOS or Linux

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

2. Install on Windows

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

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

3. Verify and launch

```bash
fuxi --version
fuxi doctor    # environment sanity checks
fuxi           # start a session
```

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

5. Work the session

   Type a prompt and press Enter, then use the slash commands to steer it.

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

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