It works for any process, not just Claude Code. I got it working with Codex CLI like this:
httpjail --js "r.host === 'chatgpt.com'" -- codex
brew upgrade rust cargo install httpjail
0. https://news.ycombinator.com/item?id=45307459
If only developers never made use of GET to modify resources...
https://www.reddit.com/r/webdev/comments/6999x7/comment/dh4v...
simonw•2d ago
It works for any process, not just Claude Code. I got it working with Codex CLI like this:
After installing it using Cargo (and Homebrew): I wrote more notes about it here: https://simonwillison.net/2025/Sep/19/httpjail/