Skip to content

Feature request: Add opencode server URL as environment variable #321

@TheStaticMage

Description

@TheStaticMage

It would be handy to have the OpenCode server URL easily available in the OpenCode environment. For me personally I'm making API calls from tools and plugins to the OpenCode server to accomplish things that aren't currently supported by their plugin architecture. Being able to identify the "correct" OpenCode server to talk to is important for this use case.

✔️ You already provide OPENCODE_SERVER_USERNAME and OPENCODE_SERVER_PASSWORD in the environment.
❌ The OpenCode server port is not available in the environment.

Request: Add something like OPENCODE_SERVER_BASE_URL with the full URL and/or OPENCODE_SERVER_PORT with the port number in the environment.

My current workaround is to use CODENOMAD_INSTANCE_ID + CODENOMAD_BASE_URL to look this up in CodeNomad's API. However this is an extra API call that might require auth, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions