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