fauxnix
Run Linux-style commands on Windows via deterministic bash→PowerShell translation. No VM, no WSL. MCP server + CLI built for AI agents (Claude Code, Codex, OpenCode...). GNU-style output, bash-style errors, UTF-8/GBK handled.
Install / Use
claude mcp add 20000419 -- npx -y github:20000419/fauxnixIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Our assessment of fauxnix
fauxnix scores 93/100 on our quality scale, 482nd of 4,657 Development & Engineering skills we index (top 11%).
Its MCP Server is 15 KB long, well organised into 17 sections with 13 code examples: a thorough specification that gives an agent plenty to work with.
It has 903 GitHub stars, a meaningful sign that others use it.
Maintenance, license and trust
- The repository was last updated 3 days ago, so fauxnix is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
fauxnix compared with similar skills
All 4 of these similar skills score higher than fauxnix; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| fauxnix (this skill)by 20000419 | 93 | 903 | 3d ago | MCP Server |
| headroomby headroomlabs-ai | 100 | 78.0k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 104.6k | 2d ago | MCP Server |
| Scraplingby D4Vinci | 100 | 90.0k | today | MCP Server |
| crawl4aiby unclecode | 100 | 86.4k | 1d ago | MCP Server |
Frequently asked questions
- How do I install fauxnix?
- Run
claude mcp add 20000419 -- npx -y github:20000419/fauxnix. The install tabs above show the steps for each supported agent. - Which AI agents does fauxnix work with?
- It is written for Claude Code, Claude Desktop and OpenAI Codex, as a MCP Server file. Other agents that read the same format can often use it too.
- Is fauxnix safe to use?
- It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is fauxnix still maintained?
- The repository was last updated 3 days ago, so fauxnix is actively maintained.
Skill content
View source on GitHubfauxnix
Run Linux-style commands on Windows — natively, deterministically, with no VM and no WSL.
fauxnix is a bash→PowerShell translation layer built for AI agents. Your agent keeps writing the
bash it already knows (ls -la | grep foo, find . -name '*.ts' | wc -l, kill -9 1234), and
fauxnix deterministically translates each command into PowerShell, executes it natively, and hands
back output that looks like GNU/Linux: ls -l columns, bash-style error messages, coreutils exit
codes, UTF-8/GBK handled automatically.
npm install -g fauxnix-cli # then point any MCP harness at `fauxnix mcp`
$ fauxnix "ls -la src | head -2"
-rw-r--r-- 1 me me 1204 Aug 16 09:12 ast.ts
-rw-r--r-- 1 me me 8192 Aug 16 09:12 cli.ts
$ fauxnix "cat nope.txt"
cat: nope.txt: No such file or directory # not a PowerShell stack trace
Measured: your model is probably worse at PowerShell than you think
Same model (DeepSeek-V4-Pro), same 5 tasks, three execution modes on one Windows machine —
full data in docs/benchmark-deepseek-v4-pro.md and
`docs/benchmark-ark-models.md:
| | PowerShell | fauxnix | Git Bash | |---|---|---|---| | tool calls / unexpected errors | 14 / 9 | 7 / 0 | 4 / 0 | | time (T1–T4) | 163s | 66s | 57s |
Across 7 models on the Volcano Ark Coding Plan, the PowerShell-vs-fauxnix gap held for every model tested — worst case (kimi-k2-thinking): 3.1× slower with 24 error events writing PowerShell vs zero errors through fauxnix. fauxnix lands within ~15% of the real-bash ceiling with no bash toolchain installed.
Why
LLM agents are dramatically better at bash than at PowerShell — bash dominates training data, so
models on Windows often produce "looks right, doesn't run" commands (wrong quoting, curl that
isn't curl, mojibake from codepage mismatches, inscrutable CategoryInfo error dumps). Existing
solutions are either a full VM (WSL — heavy, wrong filesystem, separate environment) or plain
shell wrappers (still PowerShell underneath).
fauxnix takes the third road: translate, don't emulate. A large, high-value subset of the Linux command line — file ops, text processing, process management, archives, networking basics — maps cleanly onto PowerShell + .NET. fauxnix implements that subset faithfully and fails loudly and helpfully on what it can't translate, so the agent never gets silently-wrong results.
Labs now train computer-use agents on fleets of real desktops. Reporting in 2026 (The
Information, widely repeated) has OpenAI buying tens of thousands of Mac mini / Mac Studio
boxes — no screen, no keyboard — to reinforcement-learn agents that click, edit, test, and
run bash workflows, and Anthropic renting Mac minis through AWS for the same class of work.
That scoring environment is macOS. Windows users should not have to install a guest Unix to
keep up: the agent keeps writing bash; fauxnix makes the Windows box answer like the box the
agent was trained on. See docs/rfc-computer-use-windows.md.
Install
npm install -g fauxnix-cli
Or from source:
git clone https://github.com/20000419/fauxnix && cd fauxnix
npm ci
npm install -g .
npm package name is
fauxnix-cli(thefauxnixname on npm belongs to an unrelated 2015 websocket library); the installed command is stillfauxnix.
Requires: Windows with PowerShell 5.1+ (built-in) and Node.js ≥ 18.
PowerShell 7 is an opt-in, CI-tested tier:
$env:FAUXNIX_PS = 'pwsh'
fauxnix check # edition: Core
Set the variable before starting fauxnix or its MCP harness; restart the
harness after changing it. Windows PowerShell 5.1 remains the default. Invalid
values and a missing selected executable fail loudly rather than falling back.
The default is pinned below SystemRoot; pwsh.exe is resolved once from
absolute PATH directories, excluding the current working directory.
See PowerShell 7 support.
Quick start
# one-off commands
fauxnix "ls -la"
fauxnix "grep -rn TODO src | wc -l"
fauxnix "cat log.txt | grep -i error | sort | uniq -c"
# see what a command becomes (great for debugging / learning PS)
fauxnix translate "find . -name '*.log' -mtime +7 -delete"
# check your environment
fauxnix check
fauxnix doctor # check + encoding, harness config, MCP
# write user-level MCP config (idempotent; also --codex/--opencode/--kimi/--qwen)
fauxnix install --claude
# run the MCP stdio server (what agent harnesses connect to)
fauxnix mcp
translate only renders a script and does not read command operands. Because
sed -f needs a script file, translate-only mode asks you to use -e with
inline script text; normal command execution continues to support sed -f.
Unknown commands (git, node, npm, python, cargo, gh, docker, ...) are passed through natively
with argv-style quoting. Windows .cmd/.bat shims necessarily pass through cmd.exe; fauxnix
preserves its supported punctuation and fails loudly for %, embedded double quotes, NUL, and
line breaks rather than passing a different argument.
Use with your agent harness
fauxnix ships an MCP stdio server exposing a bash tool (plus fauxnix_translate and
fauxnix_session). Point any MCP-capable harness at it with
fauxnix install --claude (or --codex / --opencode / --kimi / --qwen).
Idempotent; prints what changed. Manual configs below.
- Quickstarts — copy-paste config + a 10-command smoke:
docs/examples/
Claude Code
claude mcp add fauxnix -- fauxnix mcp
Codex (~/.codex/config.toml or codex mcp add fauxnix -- fauxnix mcp)
[mcp_servers.fauxnix]
command = "fauxnix"
args = ["mcp"]
Note: in non-interactive codex exec mode, MCP tool calls are auto-denied by
the approval layer; pass --dangerously-bypass-approvals-and-sandbox (or run
interactively and approve once).
OpenCode (opencode.json)
{
"mcp": {
"fauxnix": { "type": "local", "command": ["fauxnix", "mcp"] }
}
}
Kimi Code — unlike the others, MCP servers live in a JSON file, not the
TOML config: ~/.kimi-code/mcp.json
{
"mcpServers": {
"fauxnix": { "command": "fauxnix", "args": ["mcp"] }
}
}
Qwen Code (~/.qwen/settings.json)
fauxnix install --qwen
The installer preserves the rest of settings.json and writes an absolute
Node + package-entry launcher so Qwen startup does not depend on its working
directory or PATH order. See the Qwen example for
the generated JSON shape.
Any MCP client — stdio server: fauxnix mcp. The tool name is bash (override with
FAUXNIX_TOOL_NAME). Tool description already teaches the model the supported subset, so no
system-prompt changes are required.
The MCP session persists cwd, environment variables, export/unset, cd -/OLDPWD, and
positional parameters (set -- / $1 / "$@") across tool calls — it behaves like a logged-in
shell, not a stateless exec. $0 is the MCP tool name (bash / FAUXNIX_TOOL_NAME), not a
Windows path.
What's translated
~105 commands, all output-matched against real GNU coreutils on Windows (Git Bash) during development:
- files:
ls cp mv rm mkdir rmdir touch mktemp ln readlink realpath basename dirname stat file du df find chmod chown diff - text filters:
grep egrep sed awk sort uniq cut tr— sed/awk scripts are parsed while preparing an executable plan (unsupported constructs throw named errors, never silently misbehave); inspect-onlytranslatekeepssed -ffile reads out of that path - text I/O:
echo printf cat head tail wc tee nl tac md5sum sha1sum sha256sum base64 seq yes xargs
The curated agent-daily 60 carry a CommandSpec: unknown options fail with a GNU-style
usage error instead of being ignored. The generated docs/command-specs.md
is the exact list, coverage count, option table, and exclusion rationale; fauxnix list --json
exposes the same per-command metadata. find stays unspec'd so predicates like -name still
compile; sed/awk/egrep keep their command-specific parsers; tar remains native to
tar.exe so supported bsdtar options reach the executable. Implemented GNU holes include
cp -n / mv -n / touch -c / tee --append / grep -m / head --lines /
du --max-depth / env -u / ps -f / command -V / date --date=@SECONDS.
- shell/system:
cd pwd export unset env printenv ps kill pkill pgrep sleep which type whoami id groups date uname hostname uptime free nproc clear true false test [ [[ : pushd popd dirs sudo timeout man history less more source . eval exit alias set shift - network:
curl wget ping netstat ss ip ifconfig nslookup dig host - archives:
tar gzip gunzip zcat zip unzip
Plus shell syntax: pipes, && / || / ;, redirections (> >> 2> 2>&1 < &>, /dev/null),
quoting, $VAR $1 $# "$@" set -- shift, ${name:-word} ${name//pat/str}
${name:off:len} ${name[n]} ${#name[@]}, A=(x y z) array assignment, $(...) command
substitution, VAR=x cmd prefixes, ~ expansion, and POSIX-style path normalization
(/tmp, /d/foo → D:\foo).
Exit codes follow bash conventions: 0 ok, 1 fail, 2 usage/serious, 127 command not found, 124 timeout.
How it works
bash command ──parser──▶ AST ──translator──▶ PowerShell script ──executor──▶ selected PowerShell
│
agent ◀── GNU-style output, bash-style errors ◀── UTF-8 framed host protocol ◀┘
- Deterministic translation, zero LLM calls at runtime.
- Each command maps to a generator that emits a self-contained PowerShell block honoring the
"Fauxnix contract": string-per-line stdout,
[Console]::Error.WriteLinefor bash-style stderr,$script:fx_exitfor exit codes,$inputfor stdin. - The executor wraps every script with UTF-8 enforcement (
[Console]::OutputEncoding,$OutputEncoding,chcp 65001), decodes native output at the process boundary (UTF-8 by default or GBK(936) inansimode), keeps host frames UTF-8, strips CLIXML serialization and PowerShell noise from stderr, and rewrites common PowerShell errors (including zh-CN locale messages) into bash phrasing. - Scripts run via
-EncodedCommand(UTF-16LE) and transparently fall back to a temp.ps1file when the 32 KB command-line limit would be exceeded.
Known deviations (honest list)
fauxnix optimizes for the commands agents actually run. Documented deviations:
X=1standalone assignments followexportsemantics (one session-wide environment; bash's shell-var vs exported-var distinction does not exist), and a same-segment prefix is visible to$VARinside the command's own words (Z=in [[ $Z == in ]]is true here, false in bash where word expansion precedes the temporary environment).yesis capped at 65,536 lines — PS 5.1 pipelines cannot signal upstream producers to stop, so an unboundedyes | headwould hang.tail -f,eval,alias, heredocs,env -i/--ignore-environment, background&, and output/fd redirects (>>>2>2>>&>&>>2>&11>&2) on a non-last pipeli
Truncated for display — read the full file on GitHub.
Related Skills
headroom
78.0kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Agent-Reach
104.6kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Scrapling
90.0k🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
crawl4ai
86.4kOpen-source web crawler and scraper for LLMs and AI agents: any website into clean, LLM-ready Markdown. Run it yourself, or use Crawl4AI Cloud with one key. Join our Discord https://discord.gg/VuxzM8mtf
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
