docs(proxy): document OpenCode provider environment variables - #908
Open
streber42 wants to merge 2 commits into
Open
docs(proxy): document OpenCode provider environment variables#908streber42 wants to merge 2 commits into
streber42 wants to merge 2 commits into
Conversation
Add the five OpenCode provider env vars to the environment variables reference table: OPENCODE_API_KEY, the per-surface OPENCODE_GO_API_KEY / OPENCODE_ZEN_API_KEY (each falling back to the shared key), and OPENCODE_GO_BASE_URL / OPENCODE_ZEN_BASE_URL with their defaults.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Aug 17, 2026
The provider reads OPENCODE_GO_API_BASE and OPENCODE_ZEN_API_BASE, so the BASE_URL rows left both variables undocumented and the env key check still failed. The defaults now match the gateway endpoints, and either value works with or without a trailing /v1
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The LiteLLM proxy now serves OpenCode as a first-class provider through
opencode_goandopencode_zenin BerriAI/litellm#37103. Thedocumentation_test_env_keyscheck on that PR fails because the five OpenCode env vars the provider reads are not documented anywhereWhat changed
Adds rows to the environment variables Reference table in
proxy/config_settings.mdforOPENCODE_API_KEY,OPENCODE_GO_API_BASE,OPENCODE_GO_API_KEY,OPENCODE_ZEN_API_BASE, andOPENCODE_ZEN_API_KEY. The per-surface keys fall back to the sharedOPENCODE_API_KEYwhen unset. The two base URL rows list the gateway defaults and note that a value works with or without a trailing/v1An earlier revision documented
OPENCODE_GO_BASE_URLandOPENCODE_ZEN_BASE_URL, which the provider never reads, so the check would have kept failing after mergeProof
With this branch applied on top of current
mainand mounted atdocs/my-website, runningtests/documentation_tests/test_env_keys.pyfrom the tip of BerriAI/litellm#37103 prints "Every environment variable read under ./litellm is documented"