Repository navigation
Description
What issue are you seeing?
Codex Cloud runtime cannot access external network resources.
The configured proxy (http://proxy:8080) is unreachable:
curl: (7) Failed to connect to proxy port 8080 after 0 ms: Could not connect to server
No HTTP headers were received.
When bypassing the proxy, direct access also fails because DNS resolution does not work (curl exit code 6).
So both outbound paths fail:
- normal connection → proxy connection failure
- proxy bypass → DNS resolution failure
This blocks external downloads and prevents tools such as Google Cloud CLI from being installed or used.
Task/session reference:
01a10970-6917-7415-92b9-69f6c0cfe0b8
What steps can reproduce the bug?
-
Start a Codex Cloud task/session.
-
Check the proxy environment variables:
env | grep -iE '^(http|https|all|no)_proxy='The environment shows:
http://proxy:8080 -
Test normal outbound access:
curl -I --max-time 10 https://dl.google.com -
Observe the failure:
curl: (7) Failed to connect to proxy port 8080 after 0 ms: Could not connect to serverNo HTTP headers are received.
-
Test direct access while bypassing the proxy:
curl --noproxy '*' -I --max-time 10 https://dl.google.com -
Observe that DNS resolution also fails with curl exit code 6.
-
Retry the same tests and observe the same failures.
Result:
- Normal outbound access fails because proxy:8080 is unreachable.
- Proxy bypass also fails because DNS resolution does not work.
- External downloads and services cannot be reached from the Codex Cloud runtime.
What is the expected behavior?
The Codex Cloud runtime should have working outbound network access.
If the environment is configured to use http://proxy:8080, that proxy should be reachable and able to forward HTTPS requests.
If direct network access is allowed, DNS resolution should also work when bypassing the proxy.
Expected result:
- curl requests to external sites such as https://dl.google.com should return HTTP headers successfully.
- External packages should be downloadable.
- Tools such as Google Cloud CLI should be installable and usable from the Codex Cloud runtime.
- Network access should not fail at both the proxy and DNS layers.
Additional information
Task/session reference:
01a10970-6917-7415-92b9-69f6c0cfe0b8
Approximate occurrence time:
2026-10-05 around 09:48 KST
Additional details:
- The issue was reproduced multiple times.
- Retrying the same curl command produced the same proxy failure.
- The configured proxy was http://proxy:8080.
- Normal outbound access failed with curl exit code 7.
- Bypassing the proxy failed because DNS resolution did not work, with curl exit code 6.
- No HTTP headers were received through the proxy path.
- The failure occurred before any request reached dl.google.com.
- Changing the gcloud installation command did not help because the network layer itself was unavailable.
- This appears to be specific to the Codex Cloud runtime/network environment rather than the repository, script, or Google Cloud CLI.
- No credentials, access tokens, verification codes, service-account keys, or other secrets are included in this report.
Activity
gregmustdie-beep commentedon Oct 7, 2026
Additional reproduction on 2026-10-06 from an independent Codex Cloud user, affecting the primary GitHub development workflow (not just external downloads).
Steps:
Exact stderr (repository URL redacted):
Impact: This prevents the core Codex Cloud workflow of fetching source, making isolated edits, then committing/publishing a branch or draft PR. The same GitHub repository is accessible using a separately connected ChatGPT GitHub integration, and a non-Codex-Cloud remote environment has successfully fetched/pushed it. This does not establish the cause, but points away from a general repository outage or missing repository permissions.
Expected: A GitHub-connected Codex Cloud task can reach its configured GitHub remote through its supported network path, without requiring the user to provision a separate machine.
No proxy bypass or DNS tests were performed in this reproduction, and the exact root cause has not been verified. Please investigate the unreachable Codex Cloud proxy and advise on a supported recovery path. No credentials or private repository identifiers are included.
turn4analytics commentedon Oct 8, 2026
I encountered the same
Failed to connect to proxy port 8080error in the new Codex Cloud remote environment and found a working solution.Symptoms:
git fetchandgit ls-remoteboth failed with exit code 128.HTTP_PROXYandHTTPS_PROXYwere configured asproxy:8080.Working solution:
Explicitly request additional network permissions when executing commands that require network access:
{ "sandbox_permissions": "with_additional_permissions", "additional_permissions": { "network": { "enabled": true } } }These permissions must be applied to the actual command execution tool calls, not just mentioned in the task prompt.
After applying them:
git ls-remote origin refs/heads/mainsucceeded.git fetch origin mainsucceeded.Conclusion: At least in my environment, the proxy error was caused by command-level sandbox network restrictions rather than an unavailable proxy or GitHub authentication issue.
The error message was misleading because it appeared to indicate a broken proxy.
Hopefully this helps others encountering the same problem in Codex Cloud.
wookingwoo commentedon Oct 8, 2026
I'm experiencing a similar network connectivity issue in GPT Dots.
Importantly, outbound network access from the Dots terminal used to work normally, but it suddenly stopped working recently.
Observations
Outbound HTTP/HTTPS connections from the interactive Dots terminal fail with
Connection refused.Both GitHub and Google are affected.
DNS resolution succeeds, but connections on ports 80 and 443 fail.
The issue persists across different container instances.
Testing the suggested workaround
Following @turn4analytics's suggestion, I checked the execution permissions supported by the Dots agent.
The agent reported support for:
sandbox_permissions: use_defaultsandbox_permissions: require_escalatedHowever,
with_additional_permissionsandadditional_permissions.network.enabledare not supported by the current Dots execution tool.Using
require_escalated:curl -I https://api.github.com→ HTTP 200Interestingly, the agent also reported successful API access with default permissions.
This suggests that the agent's execution environment and the interactive terminal may have different network access behavior.
Questions
Was there a recent change to GPT Dots networking or sandbox permissions?
Is the difference between agent execution and the interactive terminal intentional?
Is there a supported way to restore outbound network access in the interactive terminal?
Could this be caused by a misconfiguration on my side? If so, are there any settings or permissions I should check?
Since this previously worked, I'm wondering whether this is a regression or something I may have configured incorrectly.
Any guidance would be greatly appreciated. Thanks!
sparitudaad-oss commentedon Oct 9, 2026
I am seeing the same Codex Cloud outbound proxy failure.
Environment:
Task ID:
01a11e2d-8bd3-76cd-9cb9-216dc850d086
Approximate occurrence:
2026-10-09 around 10:06 JST
Additional diagnostics:
proxyresolves successfully:172.31.0.93 proxy
But direct access to the internal proxy fails even when bypassing HTTP_PROXY:
curl --noproxy '*' -v --max-time 5 http://proxy:8080
Result:
Failed to connect to proxy port 8080 after 0 ms:
Could not connect to server
The same happens for the TCP connect proxy:
curl --noproxy '*' -v --max-time 5 http://proxy:8088
Result:
Failed to connect to proxy port 8088 after 0 ms:
Could not connect to server
External HTTPS access also fails for:
The environment contains:
HTTP_PROXY=http://proxy:8080
HTTPS_PROXY=http://proxy:8080
and
/etc/codex/network-policy.jsoncontains:"http_proxy": "http://proxy:8080"
"tcp_connect_proxy": "http://proxy:8088"
The issue reproduces with both:
I also observed the failure during a new Cloud environment setup before completing setup/publish, where GitHub connectivity failed at the proxy step.
This appears to affect VM → internal Codex proxy connectivity rather than a repository-specific or domain-allowlist issue.
sparitudaad-oss commentedon Oct 9, 2026
Additional client information for my reproduction:
The proxy connectivity failure described above was reproduced from this client setup.
MarceloMeloRJ commentedon Oct 9, 2026
Subject: Codex Cloud network proxy unreachable on port 8080
My Codex Cloud environment cannot access GitHub or external HTTPS services.
Internet Access is enabled, and I have not configured any custom proxy environment variables or network secrets.
The environment automatically uses
http://proxy:8080for HTTP_PROXY and HTTPS_PROXY.Both commands fail:
git ls-remote origin refs/heads/main— exit code 128curl -I https://github.com— exit code 7The reported error is:
Failed to connect to proxy port 8080 after 0 ms: Could not connect to serverI have verified that the repository exists, the Git remote
originis correctly configured, and the working directory is correct.I also republished the Codex Cloud environment, but the issue persists.
This is blocking multiple Codex development tasks. Please investigate the environment's network proxy provisioning or connectivity.
Repository:
MarceloMeloRJ/marcelo-careerosPlease advise how to restore network access.
wrzek-git commentedon Oct 12, 2026
I can reproduce this in the current Codex Cloud UI with a private GitHub repository.
Native UI Push fails with:
Failed to connect to proxy port 8080 after 0 ms: Could not connect to server
The exact same branch pushed successfully when Codex executed:
git push --set-upstream origin codex/company1-app-roles
with temporary command-level network permission:
with_additional_permissions
network.enabled: true
The push completed with exit code 0 and the branch was created on GitHub.
This confirms in my case that GitHub authentication, repository write access, remote configuration and branch state are correct. The failure appears specific to the built-in Push action not receiving the same command-level network permission.
The environment was migrated from a Legacy Codex Cloud environment, although other reports suggest migration is probably not required to reproduce this issue.
Is the built-in Push action expected to request/use the same managed network permission automatically?
dadiz-ha commentedon Oct 12, 2026
I’m seeing a similar issue with Tailscale SSH access in Codex Cloud.
proxyresolves successfully.proxy:8080is reachable; GitHub HTTPS works.proxy:8088returns Connection refused (errno 111), including withrequire_escalatedand from the interactive cloud terminal./etc/codex/network-policy.jsonreportsvpn_configured: true, but TCP domains and IP ranges are empty.The issue reproduces in two separate cloud environments after publishing. SSH between the VPS machines over Tailscale works, with verified host keys and key-based login.
How can we enable the supported TCP CONNECT listener and TCP grants? The UI only exposes an additional allowed-domains field.
xXAvoraXx commentedon Oct 23, 2026
++
fumi129 commentedon Oct 24, 2026
I can reproduce the same issue in multiple newly created, published Codex Cloud environments.
It still reproduces with Internet access set to
All (unrestricted).fumi129 commentedon Oct 25, 2026
Follow-up: explicit per-command network permission (
network.enabled: true) fixed ordinary outbound HTTPS for me.However, GCP OIDC token exchange still fails in a newly published environment and a fresh Cloud task, even with Internet access set to All (unrestricted):
proxy /identity/gcp/...:generateAccessTokenendpoint, before Google STS/IAM is reached.This appears separate from the command-level proxy/network permission issue. I have also reported the sanitized details through OpenAI Support.