Skip to content

docs(proxy): document OpenCode provider environment variables - #908

Open
streber42 wants to merge 2 commits into
BerriAI:mainfrom
streber42:litellm_opencode_providers_docs
Open

docs(proxy): document OpenCode provider environment variables#908
streber42 wants to merge 2 commits into
BerriAI:mainfrom
streber42:litellm_opencode_providers_docs

Conversation

@streber42

@streber42 streber42 commented Aug 17, 2026

Copy link
Copy Markdown

Why

The LiteLLM proxy now serves OpenCode as a first-class provider through opencode_go and opencode_zen in BerriAI/litellm#37103. The documentation_test_env_keys check on that PR fails because the five OpenCode env vars the provider reads are not documented anywhere

What changed

Adds rows to the environment variables Reference table in proxy/config_settings.md for OPENCODE_API_KEY, OPENCODE_GO_API_BASE, OPENCODE_GO_API_KEY, OPENCODE_ZEN_API_BASE, and OPENCODE_ZEN_API_KEY. The per-surface keys fall back to the shared OPENCODE_API_KEY when unset. The two base URL rows list the gateway defaults and note that a value works with or without a trailing /v1

An earlier revision documented OPENCODE_GO_BASE_URL and OPENCODE_ZEN_BASE_URL, which the provider never reads, so the check would have kept failing after merge

Proof

With this branch applied on top of current main and mounted at docs/my-website, running tests/documentation_tests/test_env_keys.py from the tip of BerriAI/litellm#37103 prints "Every environment variable read under ./litellm is documented"

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.
@vercel

vercel Bot commented Aug 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
litellm Ready Ready Preview Sep 13, 2026 2:45am UTC

Request Review

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant