GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — socket connection error with ProxyChains from v1.0.0 · Issue #4284 · anomalyco/opencode

socket connection error with ProxyChains from v1.0.0 #4284

New issue
Copy link
New issue
Copy link
Closed
Closed
socket connection error with ProxyChains from v1.0.0#4284
Copy link
Assignees
rekram1-node
Labels
bugSomething isn't working

Description

@francois-le-suisse
francois-le-suisse
opened on Nov 13, 2025
Issue body actions

Description

Since v1.0.0, starting opencode with proxychains crash with error:
[ERROR] Error: The socket connection was closed unexpectedly. For more information, pass 'verbose: true' in the second argument to fetch()

Reverting to 0.15.31 fixes the problem.

OpenCode version

v1.0.0 and beyond

Steps to reproduce

  1. Use proxychains with a basic settings
strict_chain
quiet_mode
proxy_dns
tcp_read_time_out 15000
tcp_connect_time_out 8000
[ProxyList]
socks4  127.0.0.1 9050```
2. Start opencode with proxychains
`proxychains $HOME/.opencode/bin/opencode



### Screenshot and/or share link

_No response_

### Operating System

_No response_

### Terminal

Windows Terminal Running a debian based docker container (pivert/seashell)
Reacted by burbilog

Activity

  1. francois-le-suisse
    added
    bugSomething isn't working
    on Nov 13, 2025
  2. github-actions
    added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 13, 2025
  3. francois-le-suisse
    changed the title [-]socket connection error with ProxyChains since v1.0.0[/-] [+]socket connection error with ProxyChains from v1.0.0[/+] on Nov 13, 2025
  4. github-actions commented on Nov 13, 2025

    @github-actions
    github-actionsBot
    on Nov 13, 2025 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • socket connection was closed unexpectedly. From more information, pass verbose: true in the second argument to fetch #3511: Same "socket connection was closed unexpectedly" error message with same suggested fix (pass verbose: true)
    • Error: The socket connection was closed unexpectedly. For more information, pass verbose: true in the second argument to fetch() #1692: Identical error message "The socket connection was closed unexpectedly. For more information, pass verbose: true in the second argument to fetch()"
    • Support HTTP_PROXY & HTTPS_PROXY for millions of users who are behind fire walls in some regions and some organizations. #531: General HTTP_PROXY & HTTPS_PROXY support request for users behind firewalls and proxy setups
    • AWS Bedrock Provider doesn't seem to respect proxy #2446: AWS Bedrock provider proxy support issue, showing broader proxy configuration problems

    Feel free to ignore if none of these address your specific ProxyChains case.

  5. burbilog commented on Nov 18, 2025

    @burbilog
    burbilog
    on Nov 18, 2025
    More actions

    The same is here -- 1.0.76 does not work with proxychains. My error is a little different though:

    %proxychains opencode
    [proxychains] config file found: /etc/proxychains4.conf
    [proxychains] preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4
    [proxychains] DLL init: proxychains-ng 4.17
    {"code":"FailedToOpenSocket","path":"http://127.0.0.1:38265/config/providers","errno":0}
    

    Proxychains is a horrible hack, but unfortunately, Opencode does not support proxy at all. Had Opencode supported any kind of proxy, there would be no need for this hack.

    Other programs work with the same proxychains on this machine just fine.

  6. rekram1-node
    self-assigned this
    on Nov 19, 2025
  7. rekram1-node commented on Nov 19, 2025

    @rekram1-node
    rekram1-node
    on Nov 19, 2025
    Member
    More actions

    ill take a look

  8. frap129 commented on Nov 19, 2025

    @frap129
    frap129
    on Nov 19, 2025
    More actions

    This could be related to #3868 , which is an error caused when trying to use HTTP_PROXY env vars to configure a proxy.

  9. rekram1-node commented on Nov 19, 2025

    @rekram1-node
    rekram1-node
    on Nov 19, 2025
    Member
    More actions

    yup definitely

  10. burbilog commented on Dec 12, 2025

    @burbilog
    burbilog
    on Dec 12, 2025
    More actions

    Now attempts to run opencode via proxychains result in this:

    pts/19%proxychains opencode 
    ProxyChains-3.1 (http://proxychains.sf.net)
    Error: Was there a typo in the url or port?
    

    Opencode 1.0.150

    Please, please fix either this bug or support regular HTTP_PROXY variable...

  11. rekram1-node commented on Dec 13, 2025

    @rekram1-node
    rekram1-node
    on Dec 13, 2025
    Member
    More actions

    Opencode does respect HTTP_PROXY and HTTPS_PROXY vars, you will probably also need to set:
    NO_PROXY=localhost,127.0.0.1
    and
    NODE_EXTRA_CA_CERTS=/path/to/ca-cert.pem

    Reacted by Thomas
  12. rekram1-node commented on Dec 13, 2025

    @rekram1-node
    rekram1-node
    on Dec 13, 2025
    Member
    More actions

    ill document everything

  13. rekram1-node
    removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 13, 2025
  14. thdxr
    closed this as completedon Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.