opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Error launching TUI with proxy

Open aaudin90 opened this issue 1 month ago • 1 comments

Description

I have defined an opencode startup function with a local proxy in zshrc.

opencodep () {                                                                                                                                                         
        HTTP_PROXY=http://127.0.0.1:1087 HTTPS_PROXY=http://127.0.0.1:1087 opencode "$@"                                                                                 
  } 

But when executing, I get an error: [object Object] Dec 18 17:29:59 on ttys009

I can't say the exact version, but it used to work.

OpenCode version

1.0.150

Steps to reproduce

  1. setup launching function
opencodep () {                                                                                                                                                         
        HTTP_PROXY=http://127.0.0.1:1087 HTTPS_PROXY=http://127.0.0.1:1087 opencode "$@"                                                                                 
  } 
  1. write in terminal opencodep

Screenshot and/or share link

No response

Operating System

MaxOs 26.1

Terminal

Warp, system terminal

aaudin90 avatar Dec 18 '25 14:12 aaudin90

https://opencode.ai/docs/network/

have u seen this?

rekram1-node avatar Dec 18 '25 15:12 rekram1-node

opencodep() {
    HTTP_PROXY=http://127.0.0.1:1087 \
    HTTPS_PROXY=http://127.0.0.1:1087 \
    NO_PROXY=localhost,127.0.0.1 \
    opencode "$@"
}

it works, thx.

aaudin90 avatar Dec 19 '25 07:12 aaudin90