Install clodex, connect it to claude.ai through Cloudflare, and run your first chat on your own computer.

clodex gives claude.ai Claude Code’s own small toolkit (Bash, Read, Edit, Write) on your Mac, Linux or Windows machine. claude.ai reaches it as a custom connector through a Cloudflare named Tunnel, and you sign in through Cloudflare Access. There is no inbound port and no OAuth server to run.

claude.ai (Anthropic cloud)
  -> https://clodex-mcp.example.com/mcp    Cloudflare edge
  -> Cloudflare Access, Managed OAuth      sign-in; only your email is allowed
  -> Cloudflare Tunnel (cloudflared)       outbound-only connector
  -> clodex on 127.0.0.1:8787              verifies the Access JWT on every request

clodex runs in trusted-host mode, not a sandbox: Claude can do what your user account can do. Start it when you want it, give it a time limit, and stop it when you are done.

1. Install

macOS or Linux:

curl -fsSL https://clodex.ashray.xyz/install.sh | sh

Windows (PowerShell):

irm https://clodex.ashray.xyz/install.ps1 | iex

The installer verifies the release archive against SHA256SUMS and installs clodex to ~/.local/bin (%LOCALAPPDATA%\Programs\clodex on Windows). On macOS it also installs the Clodex menu bar app next to it.

You also need cloudflared (brew install cloudflared on macOS), a domain on Cloudflare with Zero Trust turned on (the free plan works), and on Windows Git for Windows for the Bash tool.

2. Set up Cloudflare (once)

Create a Cloudflare API token with the permissions listed in Setup, then:

clodex setup --hostname clodex-mcp.example.com --email you@example.com

Setup creates or reuses the Access app (with Managed OAuth for claude.ai), the named Tunnel, and the DNS record. It never stores the API token.

3. Add the connector in claude.ai

  1. Settings > Connectors > Add custom connector.
  2. Name clodex, URL https://clodex-mcp.example.com/mcp. Leave the OAuth fields empty.
  3. Connect, and sign in with your email.

4. Start, watch, stop

cd ~/code/my-project
clodex start --ttl 4h   # claude.ai can reach this computer until it stops
clodex watch            # open the Liveboard
clodex stop             # turn access off

On macOS the menu bar item does the same without a terminal. Open a chat in claude.ai, turn on the clodex connector, and ask Claude to work on your machine.