Skip to content

Error when using custom provider w/ env var url #19

@frap129

Description

@frap129

Pretty unique situation here causing this bug. My employer hosts a local proxy for llms, which I use as a custom provider in opencode. There are different endpoints for different regions and when your on internal vs external networks. Because of this, I use opencode's env var loading support in my config to change the base URL. In my opencode config, this is defined as "baseURL": "{env:CUSTOM_API_URL}",, and I can use the provider just fine. When checking the logs from dcp, it is filled with the following:

2025-11-25T18:53:46.057Z INFO  janitor: Model: custom/gemini-2.5-flash | source=config
2025-11-25T18:53:46.061Z ERROR janitor: Analysis failed | error="{env:CUSTOM_API_URL}/chat/completions" cannot be parsed as a URL.

I may look into fixing this myself if I get time, but wanted to report it first.

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