Coding tools · 0.1.2

Protect Claude Code, Gemini CLI, and Codex

ChatGPT in the browser is the laptop download. This file is for coding tools on this computer. The zip is still named AiProxy.

If you installed 0.1.0, turn it off now

Version 0.1.0 let git run without a check. Open the setup page and press No, leave them alone. Then install 0.1.2 below. Use the turn-off commands at the bottom if the setup page does not open.

Upgrading from 0.1.0? The setup page may say Not chosen yet at first. Your checks stay on. Press Yes, protect agents once to refresh the status.

  1. 1

    Download the file for your chip. Open the Apple menu and choose About This Mac. If it says Apple M-series chip, choose Apple chip. If it says Intel, choose Intel.

    Mac also needs Python 3

    Rail uses Python 3 to run its checks. Open Terminal and type python3 --version. If you see a version number, you are set. If you see an error, install Python 3 from python.org first. Without it, the checks do not run, and your coding app uses its own rules.

    Check the download (optional)

    The long number is a fingerprint of the file. If it matches, the file is the one we published.

    Apple chip: 4fc8dcb000c4a724103c3b8dca0bc6b54bd449c5bbd0225677da3759c07925fa

    Intel chip: 4a0b1c29dc4f131deb54d08ad14e1481a1a5f3e1839afe903e3cd34d967972fd

    In Terminal, run: shasum -a 256 ~/Downloads/aiproxy-0.1.2-macos-arm64.zip

  2. 2

    Unzip the file, then double-click Open AiProxy.command. A Terminal window opens. That is expected.

    macOS may stop the file first

    The file is not signed with an Apple developer certificate. Right-click the file, choose Open, and confirm. If that option is not offered, go to System Settings → Privacy & Security, then click Open Anyway.

  3. 3

    Press Yes, protect agents. The browser opens a setup page on this computer. Leave every account field empty. The page should then say On. Start the agent as you usually do.

  4. 4

    If you use Codex, trust aisec once. Open Codex, type /hooks, and trust aisec. Until you do, Codex is not checked, even if the setup page says On. Claude Code and Gemini CLI in Terminal need no extra step.

Test with a folder in your Documents

Make a test folder. In Finder, open Documents and create a folder named aisec-test. Put a text file named hello.txt inside it.

Add the folder to the rules list. In Finder, press Command-Shift-G, paste ~/.local/aiproxy/policy, and open max-boundary.yaml in TextEdit. First choose Format → Make Plain Text. Under read_write, add one line such as "/Users/you/Documents/aisec-test/**". Do not add all of /Users/you/**. That would open your whole home folder.

Test it. Ask the AI to read hello.txt with its file tool, not with cat or a shell command. It should open.

Test the other direction. Make a decoy file named aisec-decoy.txt in your home folder with the words FAKE TEST KEY. Ask the AI to read it. It should stay closed. If it opens, do not keep using that app. Press No, leave them alone and ask your IT contact for help.

Make the change in two places

Each time you double-click Open AiProxy.command, it copies the rules file from the unzipped folder into ~/.local/aiproxy the first time only. Change both copies, or your change will be lost on a fresh install. Closing Terminal does not remove the check.

Turn it off

Open the setup page and press No, leave them alone. That removes the connection from Claude Code, Gemini CLI, and Codex. It does not delete the files you downloaded. There is no separate uninstall.

Turn-off commands for each computer

Mac: python3 ~/.local/aiproxy/scripts/enable_agent_hooks.py --disable

Windows, in PowerShell: python "$env:USERPROFILE\.local\aiproxy\scripts\enable_agent_hooks.py" --disable

Linux: aiproxy agents --disable

Want to know exactly what is checked, and what is not? Read the security notes.