summaryrefslogtreecommitdiffhomepage
path: root/packages/web
diff options
context:
space:
mode:
authorIsmail Ghallou <[email protected]>2026-04-17 17:29:31 +0200
committerGitHub <[email protected]>2026-04-17 10:29:31 -0500
commit3fe602cda3e34761256c53254accc46abdff1c17 (patch)
tree10f0fdcb33942eb7365d05c913698dcb90e8e075 /packages/web
parent3a4b49095c5273383ea581dfbc31628d80ac43a2 (diff)
downloadopencode-3fe602cda3e34761256c53254accc46abdff1c17.tar.gz
opencode-3fe602cda3e34761256c53254accc46abdff1c17.zip
feat: add LLM Gateway provider (#7847)
Co-authored-by: Claude Opus 4.5 <[email protected]> Co-authored-by: Aiden Cline <[email protected]> Co-authored-by: Aiden Cline <[email protected]>
Diffstat (limited to 'packages/web')
-rw-r--r--packages/web/src/content/docs/providers.mdx68
1 files changed, 68 insertions, 0 deletions
diff --git a/packages/web/src/content/docs/providers.mdx b/packages/web/src/content/docs/providers.mdx
index 163dcdcf2..bad9e1ebb 100644
--- a/packages/web/src/content/docs/providers.mdx
+++ b/packages/web/src/content/docs/providers.mdx
@@ -1577,6 +1577,74 @@ OpenCode Zen is a list of tested and verified models provided by the OpenCode te
---
+### LLM Gateway
+
+1. Head over to the [LLM Gateway dashboard](https://llmgateway.io/dashboard), click **Create API Key**, and copy the key.
+
+2. Run the `/connect` command and search for LLM Gateway.
+
+ ```txt
+ /connect
+ ```
+
+3. Enter the API key for the provider.
+
+ ```txt
+ ┌ API key
+ │
+ │
+ └ enter
+ ```
+
+4. Many LLM Gateway models are preloaded by default, run the `/models` command to select the one you want.
+
+ ```txt
+ /models
+ ```
+
+ You can also add additional models through your opencode config.
+
+ ```json title="opencode.json" {6}
+ {
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "llmgateway": {
+ "models": {
+ "somecoolnewmodel": {}
+ }
+ }
+ }
+ }
+ ```
+
+5. You can also customize them through your opencode config. Here's an example of specifying a provider
+
+ ```json title="opencode.json"
+ {
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "llmgateway": {
+ "models": {
+ "glm-4.7": {
+ "name": "GLM 4.7"
+ },
+ "gpt-5.2": {
+ "name": "GPT-5.2"
+ },
+ "gemini-2.5-pro": {
+ "name": "Gemini 2.5 Pro"
+ },
+ "claude-3-5-sonnet-20241022": {
+ "name": "Claude 3.5 Sonnet"
+ }
+ }
+ }
+ }
+ }
+ ```
+
+---
+
### SAP AI Core
SAP AI Core provides access to 40+ models from OpenAI, Anthropic, Google, Amazon, Meta, Mistral, and AI21 through a unified platform.