DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to run Codex bash commands on Windows through Fauxnix with Fauxnix

Add Fauxnix as an MCP server in Codex so bash-style steps run on a Windows machine.

Short answer: npm install -g fauxnix-cli; then codex mcp add fauxnix -- fauxnix mcp; add the [mcp_servers.fauxnix] block with command = "fauxnix" and args = ["mcp"] to ~/.codex/config.toml if you prefer editing the file. All steps.

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

  1. npm install -g fauxnix-cli
  2. codex mcp add fauxnix -- fauxnix mcp
  3. Add the [mcp_servers.fauxnix] block with command = "fauxnix" and args = ["mcp"] to ~/.codex/config.toml if you prefer editing the file (inferred, check the README)
  4. fauxnix doctor
  5. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer