Codex Cloud has severe issues with hex.pm (Elixir package manager)
OpenAI Developer Community
May 31, 2026
Alright, I put my final solution into a small Golang proxy. With this set I can now natively resolve hex.pm packages in Codex
Maintenance Script:
mise use -g go:github.com/dvcrn/hexpm-envoy-proxy@latest
if ! pgrep -f hexpm-envoy-proxy > /dev/null 2>&1; then
nohup mise x -- hexpm-envoy-proxy > /tmp/hexpm-envoy-proxy.log 2>&1 &
disown
sleep 2
fi
# Wait for proxy to be ready (up to 5s)
for i in $(seq 1 10); do
if curl -s -o /dev/null -w '' http://127.0.0.1:8787/ 2>/dev/null; then
echo "hexpm-envoy-proxy is ready"
break
fi
sleep 0.5
done
cat /tmp/hexpm-envoy-proxy.log
mix deps.get
Set these environment variables in Codex:
HEX_MIRROR=http://127.0.0.1:8787HEX_BUILDS_URL=http://127.0.0.1:8787/builds
This script will use mise to install my hexpm-envoy-proxy and point hex to use that proxy for package resolution. The proxy will rewrite the headers to work with envoy
Discussion in the ATmosphere