fuxicodex/Fuxi

★ 3,353⑂ 228

FuXi is a fast, self-contained AI coding agent that lives in your terminal — edit code, run commands, and drive tools, with cost-aware routing across LLM providers.

About fuxicodex/Fuxi

fuxicodex/Fuxi is an open-source project on GitHub, mainly written in Python. FuXi is a fast, self-contained AI coding agent that lives in your terminal — edit code, run commands, and drive tools It currently holds 3,353 stars and 228 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the AI Coding Agents board.

GitHub Repository Details

Repository fuxicodex/Fuxi · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

FuXi

English | 简体中文

GitHub stars Release Last commit License

An AI coding agent that lives in your terminal.

FuXi is a fast, self-contained terminal AI coding agent — read code, edit files, run commands, and drive tools from a rich TUI, with cost-aware routing across LLM providers and automatic failover. Built in Go, it ships as one static binary with no runtime dependencies. Think of it as a provider-agnostic alternative to Claude Code: bring any OpenAI-compatible model and get an agentic Think → Act → Verify loop on top of it.

Terminal-first · Provider-agnostic · Bring your own key · MCP client · Self-updating

Homepage: https://www.fuxicode.com

FuXi in action

---

What FuXi does

Its agentic Think → Act → Verify loop and intelligent routing let any OpenAPI-compatible model perform above its raw benchmark — verified against another coding agent on a reproducible task set (see benchmark).

---

Contents

Highlights

The model is the engine. FuXi is the vehicle. A model alone answers questions; FuXi turns it into a worker — reasoning, acting on your real codebase, verifying results, and doing it affordably and under your control.

FuXi architecture Think → Act → Verify loop Intelligent routing Elevating any model's capability ripgrep search, web fetch, LSP diagnostics, Jupyter, browser use, background tasks, and parallel sub-agents — all in one binary. execution; fine-grained permissions and audit logging keep autonomous work under your control. you resume, roll back, or fork; idle "dreaming" consolidates memory across sessions; long conversations auto-compact to save tokens. Gemini, Bedrock/Vertex), or sign in with FuXi OAuth. hot-reloadable. cost for individuals, teams, or enterprises. with checksum verification before it replaces the running binary.

---

How FuXi compares

FuXi is a terminal-first AI coding agent designed to be provider-agnostic. Feature availability reflects each product's publicly documented positioning as of mid-2026; details evolve quickly, so treat it as an orientation.

Measured head-to-head

FuXi vs Claude Code head-to-head

Both systems were driven through their own native clients, on identical baselines and the same objective scorer (pytest + coverage), across 15 micro dimensions and 4 large-project dimensions. Full methodology, raw results, environment versions, exact commands, and known limitations are in benchmark/REPORT.md so you can verify or re-run it.

An honest caveat: this is a small, self-run task set — not a third-party
benchmark — and it measures the agent loop, not raw model scores. Treat it
as a data point, not a headline.

---

Evaluation & benchmarks

FuXi is built to be measured honestly. It currently ships without a published score on third-party benchmarks (e.g. SWE-bench, Terminal-Bench, or the Aider polyglot benchmark). We prefer reproducible, self-verifiable evaluation over headline numbers — so here is how to evaluate FuXi yourself, on your own work.

A practical evaluation checklist

1. Install & self-check — after installing, run fuxi doctor to verify your environment (config, API key, git, ripgrep) and fuxi verify to confirm the provider connection. A clean bill here is the baseline. 2. Reproduce a real task — pick a failing test in one of your own projects and let FuXi fix it; then extend the module and re-run the suite (the demo above shows exactly this flow). Repeat across a handful of daily tasks: code review, commits, PRs, refactors. 3. Compare side by side — run the identical task, model, and context through another tool and compare: correctness, tool coverage, cost, and iteration time. Judging on the same ground keeps the comparison fair.

FuXi exposes everything needed for that comparison — /cost, /usage, /context, and /status inside the TUI — and ships its own environment self-check (fuxi doctor). Benchmarks that are published in the future will be linked from this section.

---

Install

macOS / Linux

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

Windows (PowerShell)

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

Windows (CMD)

curl -fsSL https://downloads.fuxicode.com/install.cmd -o "%TEMP%\fuxi-install.cmd" && "%TEMP%\fuxi-install.cmd"

All three install to ~/.local/bin (%USERPROFILE%\.local\bin on Windows) and add it to your user PATH if it isn't there already. Running the same command again later upgrades an existing install in place — it's the same command for install and upgrade.

By default they install the latest version; pin a specific one with an argument, e.g. ./bootstrap.sh 0.1.2 or ./bootstrap.ps1 0.1.2.

Verify the install

fuxi --version
fuxi doctor      # environment sanity checks (config, API key, git, ripgrep, ...)

Uninstall

# macOS / Linux
rm -f "$HOME/.local/bin/fuxi"
rm -rf "$HOME/.fuxi"   # optional: also drop config/state

Windows (PowerShell)

Remove-Item -Force "$env:USERPROFILE\.local\bin\fuxi.exe" Remove-Item -Recurse -Force "$env:USERPROFILE\.fuxi" # optional

---

Getting started

Launch the TUI:

fuxi

On first run FuXi creates its config under ~/.fuxi/. You need a model to talk to, via one of two paths:

1. Sign infuxi login opens a browser to authenticate with your FuXi account, which provisions FuXi-managed models automatically. No API key needed. 2. Bring your own key — set a provider API key via environment variable, or write ~/.fuxi/config.yaml directly (fuxi init generates a starter template, auto-detecting a provider from whatever env vars are already set):

   provider: openapi
   base_url: https://your-endpoint/v1
   api_key:        # or export FUXI_API_KEY instead
   model: your-model
   

Managing several providers/models instead of one? Use the layered schema — a providers: catalog plus a model: selection layer:

   providers:
     custom:
       type: openapi
       base_url: https://your-endpoint/v1
       api_key: 
       models:
  • id: your-model-id
model: active: { provider: custom, id: your-model-id }

The layered schema supports multiple providers and per-model settings.

Or run fuxi wizard for an interactive setup flow (pick a provider, enter the base URL/key, choose a model, test the connection).

Once a model is configured, pick it any time with /model, and manage the rest of your settings with /config — everything (permissions, hooks, skills, plugins) is driven from inside the TUI via slash commands.

---

Usage guide

For the complete, step-by-step guide — from installation to advanced features
— see docs/usage.md. This section is a quick reference.

Command-line flags

Common flags when launching fuxi, grouped by purpose. The complete reference is in fuxi --help.

| Area | Flag | Purpose | |---|---|---| | Model | -m, --model | Override the model for this run | | | -P, --provider | Provider type: anthropic \| openapi | | | -b, --base-url | Override the base URL (enables the OpenAPI provider) | | | -k, --api-key | Override the API key for this run | | Session | -r, --resume | Resume a specific past conversation | | | -c, --continue | Continue the most recent conversation in this directory | | | --session-id | Use a specific session ID (must be a valid UUID) | | | --fork-session | When resuming, create a new session ID instead of reusing the original | | | --prefill | Pre-fill the prompt input with text without submitting it | | | -d, --dir | Working directory | | Permissions | --permission-mode | default \| plan \| bypassPermissions | | | --auto | Auto-approve safe tool calls (classifier-gated, with a circuit breaker) | | | --dangerously-skip-permissions | Skip all permission checks (DANGEROUS) | | Thinking | --thinking | enabled \| adaptive \| disabled | | | --effort | low \| medium \| high \| max | | | --max-tokens | Max output tokens per API call | | Tools & MCP | --tools | Restrict the built-in tool set ("" = none, default = all, or names) | | | --mcp-config | Load MCP servers from JSON strings or file paths | | | --strict-mcp-config | Only use MCP servers from --mcp-config | | Inspect | --status | Print resolved provider status and exit | | | --config | Print resolved configuration and exit | | Debug | --debug [pattern] | Enable debug logging, optionally filtered by pattern | | | --verbose | Enable verbose logging | | | -v, --version / -h, --help | Version / full flag & command reference |

fuxi --help also lists system-prompt overrides, tool restrictions, sampling controls, and swarm/agent flags.

Subcommands

| Command | What it does | |---|---| | fuxi (or fuxi tui) | Launch the interactive TUI | | fuxi login | Sign in to a FuXi account, then configure API credentials | | fuxi setup-token | Sign in and print a token to export as FUXI_OAUTH_TOKEN (headless/CI) | | fuxi wizard | TUI setup wizard: provider, base URL, key, model, connection test | | fuxi init [--force] | Generate a ~/.fuxi/config.yaml template (auto-detects provider from env) | | fuxi doctor | Run diagnostic checks on your environment | | fuxi verify | Verify provider connectivity | | fuxi info | Show provider and model information | | fuxi update [version] | Download and install a release (checksum-verified, atomic) | | fuxi agents | List configured agents grouped by source | | fuxi proxy | Start the smart routing proxy (protocol bridging between providers) | | fuxi launch [args] | Launch a proxied binary via the proxy, using your FuXi config | | fuxi mcp serve | Run FuXi itself as an MCP stdio server | | fuxi remote-control | Run as a cloud remote-control worker (alias for --remote-control) |

In-TUI slash commands

Type / and press Enter (or Tab-autocomplete) to browse all commands:

| Command | What it does | |---|---| | /help, /commands, /menu | Show or search all commands | | /model | Switch the active model | | /config | Open configuration | | /status | Show provider status | | /context | Show current context-window usage | | /cost, /usage | Session cost / plan usage limits | | /compact | Compact conversation history to free up context | | /clear | Clear the conversation | | /history, /resume | Browse or resume a past session/checkpoint | | /tools | List available tools | | /permissions | Show the current permission configuration | | /memory | Show the project memory file | | /fork | Show fork-agent stats | | /away | List or show stored session away-summaries | | /commit | Create a git commit | | /review | Review code / create a PR | | /doctor | Run diagnostic checks | | /copy, /paste | Copy the last reply / send clipboard text as the next prompt | | /exit | Quit |

Keyboard & input: / then Enter opens the command browser · Tab autocompletes a slash command · Ctrl+R searches prompt history · Ctrl+V or terminal paste pastes directly into the input · bracketed paste handles large pastes. The full shortcut reference is in docs/keybindings.md.

Updating

FuXi checks for new versions in the background and prints a one-line notice when one is available. Update in place with:

fuxi update            # latest
fuxi update 0.1.2      # a specific version

fuxi update downloads the target build, verifies its SHA-256 against the published manifest, and atomically replaces the running binary — it never leaves you with a partially-installed version. Suppress the background check with --no-update-notifier or NO_UPDATE_NOTIFIER=1.

Configuration

routing preferences, and per-endpoint overrides. Changes hot-reload while FuXi is running. fuxi init generates a starter template, and /config manages settings from inside the TUI. is honored per-project. Key environment variables:

| Variable | Purpose | |---|---| | FUXI_BASE_URL / FUXI_API_KEY / FUXI_MODEL | OpenAPI-compatible provider config | | FUXI_THINKING_MODE / FUXI_THINKING_EFFORT | auto\|enabled\|disabled / low\|medium\|high\|max | | FUXI_CONFIG_DIR | Override the config directory (default ~/.fuxi) | | FUXI_DEBUG | Set to 1 to enable debug logging | | NO_UPDATE_NOTIFIER | Set to 1 to suppress the background update-check notice | | FUXI_TEMPERATURE / FUXI_TOP_P / FUXI_SEED | Sampling controls |

See docs/environment.md for the full environment-variable reference — including bridge/remote control, sandbox limits, and MCP resource caps.

---

Project layout

This repository hosts FuXi's documentation, release installers, and the issue tracker. The product source is proprietary and is not published here (see License).

reference, keyboard reference, FAQ community and support guides policies, standards, procedures, global compliance matrix, and trust center

---

License

Proprietary. Copyright © 2026 FUXI. All rights reserved.

GitHub Stars & Activity

3,353Stars
228Forks
0Open issues
PythonLanguage

GitHub Popularity

GitHub stars3,353
Forks228
Open issues0
Primary languagePython
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related AI Projects

1

Graphify-Labs / graphify

Python★ 119,969⑂ 11,594
2

shareAI-lab / learn-claude-code

Python★ 77,303⑂ 12,438
3

headroomlabs-ai / headroom

Python★ 73,296⑂ 5,638
4

Imbad0202 / academic-research-skills

Python★ 48,911⑂ 3,795
5

luongnv89 / claude-howto

Python★ 41,611⑂ 5,109
6

wshobson / agents

Python★ 39,837⑂ 4,248
7

anthropics / claude-plugins-official

Python★ 36,561⑂ 4,110
8

mukul975 / Anthropic-Cybersecurity-Skills

Python★ 33,046⑂ 4,003

More AI Rankings