summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDaniel van Strien <[email protected]>2025-11-01 15:33:17 +0000
committerGitHub <[email protected]>2025-11-01 10:33:17 -0500
commitfe38e3ab02113777dfb8b63d5cbd7802668d4400 (patch)
tree14981c1d619b7cc84fc8100a0d885acb2a058e90
parent0170577743d979288ca098ffeba7b65d0f5ae062 (diff)
downloadopencode-fe38e3ab02113777dfb8b63d5cbd7802668d4400.tar.gz
opencode-fe38e3ab02113777dfb8b63d5cbd7802668d4400.zip
docs: add Hugging Face Inference Providers documentation (#3505)
Co-authored-by: célina <[email protected]>
-rw-r--r--packages/web/src/content/docs/providers.mdx39
1 files changed, 39 insertions, 0 deletions
diff --git a/packages/web/src/content/docs/providers.mdx b/packages/web/src/content/docs/providers.mdx
index 9a5818f70..41e6308f7 100644
--- a/packages/web/src/content/docs/providers.mdx
+++ b/packages/web/src/content/docs/providers.mdx
@@ -446,6 +446,45 @@ To use Google Vertex AI with OpenCode:
---
+### Hugging Face
+
+[Hugging Face Inference Providers](https://huggingface.co/docs/inference-providers) provides access to open models supported by 17+ providers.
+
+1. Head over to [Hugging Face settings](https://huggingface.co/settings/tokens/new?ownUserPermissions=inference.serverless.write&tokenType=fineGrained) to create a token with permission to make calls to Inference Providers.
+
+2. Run `opencode auth login` and select **Hugging Face**.
+
+ ```bash
+ $ opencode auth login
+
+ ┌ Add credential
+ │
+ ◆ Select provider
+ │ ● Hugging Face
+ │ ...
+ └
+ ```
+
+3. Enter your Hugging Face token.
+
+ ```bash
+ $ opencode auth login
+
+ ┌ Add credential
+ │
+ ◇ Select provider
+ │ Hugging Face
+ │
+ ◇ Enter your API key
+ │ _
+ └
+ ```
+
+4. Run the `/models` command to select a model like _Kimi-K2-Instruct_ or _GLM-4.6_.
+
+
+---
+
### LM Studio
You can configure opencode to use local models through LM Studio.