Skip to content

Error launching TUI with proxy #5749

Closed
Closed

Description

@aaudin90

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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 18, 2025
  2. aaudin90 commented on Dec 19, 2025

    @aaudin90
    Author
    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions