Who it is forA developer on Windows who uses Codex for scripted or automated tasks and needs bash-style commands to run without a Linux environment.
The problemCodex tool calls issued as bash fail on Windows when PowerShell is the only shell, and setting up WSL or Git Bash is more work than the task justifies.
The outcomeCodex calls the Fauxnix bash tool for its shell steps, and the output matches GNU-style results for the supported commands.
What you need first
- A Windows machine with PowerShell 5.1 or later (built in)
- Node.js 22.20.0 or later (Node 18 and 20 are unsupported in v2)
- npm to install the fauxnix-cli package
- An agent harness such as Claude Code, Codex, OpenCode, Kimi Code, Qwen Code, or any MCP client
Steps
npm install -g fauxnix-clicodex mcp add fauxnix -- fauxnix mcp- Add the
[mcp_servers.fauxnix]block withcommand = "fauxnix"andargs = ["mcp"]to~/.codex/config.tomlif you prefer editing the file (inferred, check the README) fauxnix doctor- For
codex exec, run with--dangerously-bypass-approvals-and-sandbox, or run interactively and approve the MCP tool once
Prompt for your agent
In the 20000419/fauxnix repo context, call the fauxnix `bash` MCP tool with `find . -name '*.ts' | wc -l` in <project-dir>. Expect a single number as output with bash-style exit code 0, then confirm `fauxnix doctor` passes.
Caveat. The README notes that in non-interactive `codex exec` mode MCP tool calls are auto-denied unless the bypass flag is passed or the tool is approved interactively, so plan the approval step before automating.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for 20000419/fauxnix and "Run Codex bash commands on Windows through Fauxnix"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer