summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src/content/docs
diff options
context:
space:
mode:
authorxiaojie.zj <[email protected]>2025-11-16 11:37:30 +0800
committerGitHub <[email protected]>2025-11-15 21:37:30 -0600
commit0e4703b227402f13275b9840248fe63591179b39 (patch)
treef44f1ad0195a477d3da6b287b8df437e6f4483a8 /packages/web/src/content/docs
parent84e0232bd5c28bd1598ae9fae446ce46ba1cb33a (diff)
downloadopencode-0e4703b227402f13275b9840248fe63591179b39.tar.gz
opencode-0e4703b227402f13275b9840248fe63591179b39.zip
add: add zenmux doc and header (#3597)
Co-authored-by: xiaojie.zj <[email protected]>
Diffstat (limited to 'packages/web/src/content/docs')
-rw-r--r--packages/web/src/content/docs/providers.mdx52
1 files changed, 52 insertions, 0 deletions
diff --git a/packages/web/src/content/docs/providers.mdx b/packages/web/src/content/docs/providers.mdx
index 27951e95a..1dfb168d6 100644
--- a/packages/web/src/content/docs/providers.mdx
+++ b/packages/web/src/content/docs/providers.mdx
@@ -957,6 +957,58 @@ monitor and improve Grok Code.
---
+### ZenMux
+
+1. Head over to the [ZenMux dashboard](https://zenmux.ai/settings/keys), click **Create API Key**, and copy the key.
+
+2. Run `opencode auth login` and select ZenMux.
+
+ ```bash
+ $ opencode auth login
+
+ ┌ Add credential
+ │
+ ◆ Select provider
+ │ ● ZenMux
+ │ ○ Zhipu AI
+ │ ○ Zhipu AI Coding Plan
+ │ ...
+ └
+ ```
+
+3. Enter the API key for the provider.
+
+ ```bash
+ $ opencode auth login
+
+ ┌ Add credential
+ │
+ ◇ Select provider
+ │ ZenMux
+ │
+ ◇ Enter your API key
+ │ _
+ └
+ ```
+
+4. Many ZenMux models are preloaded by default, run the `/models` command to select the one you want.
+
+ You can also add additional models through your opencode config.
+
+ ```json title="opencode.json" {6}
+ {
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "zenmux": {
+ "models": {
+ "somecoolnewmodel": {}
+ }
+ }
+ }
+ }
+ ```
+---
+
## Custom provider
To add any **OpenAI-compatible** provider that's not listed in `opencode auth login`: