jswny
Has anyone managed to get Codex (the cloud version, as seen here) to work for Elixir?
I tried to setup the dependencies but mix deps.get always gives the following error:
{:failed_connect, [{:to_address, {~c"proxy", 8080}}, {:inet, [:inet], :econnrefused}]}
Failed to fetch record for plug from registry (using cache instead)
I’ve tried these but none seem to work:
export HEX_CACERTS_PATH="$CODEX_PROXY_CERT"
export HEX_UNSAFE_HTTPS="1"
My setup script that does work is this:
sudo add-apt-repository -y ppa:rabbitmq/rabbitmq-erlang
sudo apt update -y
sudo apt install -y git elixir erlang
mix archive.install github hexpm/hex branch latest --force
Installing things with Git seems fine, even mix can install deps that are pinned to a Github commit
The Docker image that runs has HTTP_PROXY and HTTPS_PROXY both set to http://proxy:8080
Trending in AI / LLMs
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly)
AI dream has many faces, but general...
New
AI tools and services seem to be the new JS framework - with new ones popping up every 5 minutes - hence it might be worth posting one of...
New
I like to find performance optimizations and hidden bugs in Elixir codebases with coding agents.
If I just ask them directly to find tho...
New
From Pipes to Graphs: Could Elixir Make Control Flow More Composable?
Recently, while studying LangGraph, and particularly the evolution ...
New
Hey everyone,
We’re a tiny dev team, and we wanted to share something we’ve been building and dogfooding internally for months: Synapse ...
New
So I’ve got this RAG project called Cake that I’ve been working on a good long while. For this topic, the RAG part is less important than...
New
Other Trending Topics
A little off-topic, but I feel like people here have a good head on their shoulders.
I used to be quite good at making software. Was luc...
New
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
I love Elixir. It’s one of 2 programming languages I’ve ever fallen in love with.
But I don’t use it anymore.
Serverless was the promis...
New
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #ai
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixirconf-us
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #elixirconf-eu
- #api
- #forms
- #security
- #metaprogramming










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
jeffdeville-ethermed
Not yet… Here’s my issue:
https://github.com/openai/codex-universal/issues/30
I’ve tried a lot. Works in docker, near as I could tell. But in their environment, nothing. Killin’ me right now.
jeffdeville-ethermed
Just found this. Pretty sure this info wasn’t there the other day. Will see if I can do anything w/ this knowledge
jeffdeville
So knowing about the proxy, I have this. But near as I can tell, I’m just getting blocked from pulling anything from hex. I’ll update my ticket, but haven’t seen OpenAI responding at all
DavidVII
For the sake of comparing notes, here’s my experience trying to get
mix deps.getworking in a Codex environment. It looks like I’m hitting a proxy wall too.Based on Codex’s documentation on internet access and proxies, here’s what I tried after installing Elixir via
asdf:Set all the recommended proxy and cert env vars:
Installed Hex manually (since
mix local.hex --forcefails with a 503):Ran
mix deps.getand got this repeated error:It looks like
repo.hex.pmis getting blocked entirely, or the TLS handshake is being dropped by the proxy. Even withHEX_CACERTS_PATHpointing to the Codex proxy cert, the connection fails before it completes.I noticed the docs say:
So I’m guessing Hex just isn’t allowed yet the way pip, npm, and others are.
Would love to get this working. Happy to test more or compare setups.
FWIW here’s my full script up until I try doing
mix local.hex --forcevenkatd
I thought I was losing my mind because I spent a few hours debugging this. Even downloaded the codex Dockerfile and it was working locally.
Has anyone found a solution? Hopefully codex can resolve this on their end!
hugomd
I have run into the same trouble, and haven’t found a work around.
Generally seeing 503s from build.hex.pm—I’m wondering if they’re actively blocking OpenAI calls?
DavidVII
OpenAI announced that you can have full internet access. But there doesn’t seem to be a way to enable it. They say it’s on a per environment basis, but there is no option anywhere for it.
They also say the setup phase has full internet access, but it clearly doesn’t because no matter what I do to install dependencies, it just doesn’t work.
Check out the allowlist found here. hex.pm is completely missing: Agent internet access – Codex web | OpenAI Developers
There doesn’t seem to be a way to configure it, despite their docs clearly stating that you can. Am I just blind?
DavidVII
Turns out it was a UI error. I hit
shift + refreshand it showed up. And yet, hex still seems to be restricted.I still have to run
mix archive.install github hexpm/hex branch latest --forcewhich works, but when I runmix deps.get, I get the following:GoulvenClech
I get the impression that « Additional allowed domains » only applies to what the agent can access during its tasks, not the domains accessible during setup. Or maybe hex.pm blocks requests coming from Codex?
In any case, I haven’t found a workaround either… It’s frustrating!
DavidVII
I’m leaning toward this, too! I saw few 403 errors in the logs coming from repo.hex.pm, so it’s likely a hex.pm issue. I’m super bummed about it. I think Claude Code is the closest alternative. I’m gonna give that a shot!