Skip to content

docs(providers): document the OpenCode Zen and Go providers - #1170

Open
codedoga wants to merge 1 commit into
BerriAI:mainfrom
codedoga:litellm_opencode_provider_docs
Open

docs(providers): document the OpenCode Zen and Go providers#1170
codedoga wants to merge 1 commit into
BerriAI:mainfrom
codedoga:litellm_opencode_provider_docs

Conversation

@codedoga

@codedoga codedoga commented Sep 3, 2026

Copy link
Copy Markdown

Companion to BerriAI/litellm#39549, which adds the opencode/ (Zen) and opencode_go/ (Go) providers.

That PR reads OPENCODE_API_KEY, so tests/documentation_tests/test_env_keys.py fails until the variable is mentioned here. Both the code-quality and documentation jobs are red on it right now for exactly that reason.

What's here

  • A provider page at docs/providers/opencode, covering both services, the single account key that authenticates them, and SDK plus proxy usage
  • A section on litellm_session_id, since OpenCode requires an x-opencode-session header and uses it to pin a conversation to one upstream so its prompt cache stays warm
  • A short note on endpoint routing, because OpenCode serves different models on different API shapes and the split is per model rather than per family
  • Two cost-tracking caveats: Go reports a cost of zero because it is a subscription, and the shipped DeepSeek rates are the off-peak ones
  • Reference rows for OPENCODE_API_KEY, OPENCODE_API_BASE and OPENCODE_GO_API_BASE in docs/proxy/config_settings.md
  • A providers/opencode entry in sidebars.js

Checks

npm run build succeeds and node scripts/check-writing-style.js reports no prose em dashes and no vocabulary warnings on the changed files.

BerriAI/litellm#39549 adds `opencode/` and `opencode_go/`, which read OPENCODE_API_KEY.
The env-key documentation test fails until that variable is mentioned here.

Adds a provider page covering both services, the session id that keeps a conversation
pinned to one upstream, and the two cost-tracking quirks, plus reference rows for the
key and the two base URL overrides.
@vercel

vercel Bot commented Sep 3, 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 3, 2026 7:49pm UTC

Request Review

@codedoga

codedoga commented Sep 4, 2026

Copy link
Copy Markdown
Author

@mateo-berri would it be possible to take a look at this and BerriAI/litellm#39549 so that opencode keeps working after tomorrow?

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