UNIXWIN · 开源

真 Bash,原生跑在所有平台

AI-native 的 Bash 家族:真语法、真 Unix 命令、原生 Windows / Linux / macOS,无 WSL、无 MSYS。

MIT 协议 · Windows x64 / ARM64 · Linux · macOS

176+ Unix 命令
83/83 GNU 兼容套件
~14 ms git 启动
2,420 · 99.6% 单元测试

six projects · one family

六款产品,一个家族

niubash

Rust

AI-native 的真·Bash:真语法、真 Unix 命令、原生三平台

AI-native real bash: real syntax, real Unix commands, native on Windows/Linux/macOS.

WinuxCmd

C++

原生 Windows 的 Unix 命令集,单文件约 3MB

Native-Windows Unix command set, single ~3 MB executable.

rubash

Rust

可嵌入的 GNU Bash 5.3 兼容引擎

Embeddable GNU Bash 5.3-compatible engine.

niu-git

C

原生 Windows Git,无 MSYS,~14ms 启动

Native Windows Git without MSYS, ~14 ms startup.

wpm

C++

WinuxCmd 内置包管理器,官方索引 288 包

WinuxCmd's built-in package manager with a 288-package official index.

oh-my-niu

Shell

Oh-My 式框架:40+ 主题与插件

Oh-My-style framework: 40+ themes and plugins.

why unixwin

为什么选 UNIXWIN

01

不妥协的兼容

GNU Bash 上游测试套件 83/83 全部通过,其中 82 套逐字节一致。

02

为 AI 而生

Claude Code、Codex、Cursor 等开箱即可接管; niu -c 确定性输出、精确退出码。

03

一个文件搞定

单文件约 3.79 MB,无 POSIX 模拟层,冷启动 ~170 ms。

quick start

快速安装

irm https://dl.caomengxuan666.com/install.ps1 | iex

其他平台:前往 GitHub Releases 下载对应版本,Linux / macOS 便携包即解即用。

文档 更新日志 GitHub MIT 协议

faq

常见问题

和 Git Bash / WSL 有什么区别?

没有 MSYS 模拟层,也没有虚拟机:UNIXWIN 是原生编译的二进制。以 git 为例,启动从 Git Bash 的 45–103ms 降到 ~14 ms。

AI agent 怎么用?

在 niu 会话里启动 Claude Code、Codex 等 agent,它们按 $SHELL 约定直接用上 niubash;从开始菜单等外部启动的 agent 则需按各家探测机制手动配置,细节见 官方文档。

开源吗?

MIT 协议,六个子项目全部开源,仓库都在 github.com/unixwin。