summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src/content/docs/providers.mdx
diff options
context:
space:
mode:
authorMike <[email protected]>2026-04-29 07:10:41 +0300
committerGitHub <[email protected]>2026-04-28 23:10:41 -0500
commita8c74c04deff2fdc63c81655b8d0dc218a762aff (patch)
tree88c8b440903b7660ca3431e06b3a4a2ef2353315 /packages/web/src/content/docs/providers.mdx
parentf6b4f542162a6db7a630db359926a3a82a566159 (diff)
downloadopencode-a8c74c04deff2fdc63c81655b8d0dc218a762aff.tar.gz
opencode-a8c74c04deff2fdc63c81655b8d0dc218a762aff.zip
docs: add Atomic Chat provider section (#23069)
Diffstat (limited to 'packages/web/src/content/docs/providers.mdx')
-rw-r--r--packages/web/src/content/docs/providers.mdx38
1 files changed, 38 insertions, 0 deletions
diff --git a/packages/web/src/content/docs/providers.mdx b/packages/web/src/content/docs/providers.mdx
index 752f6c054..8576ec356 100644
--- a/packages/web/src/content/docs/providers.mdx
+++ b/packages/web/src/content/docs/providers.mdx
@@ -334,6 +334,44 @@ the following subscriptions in OpenCode with zero setup:
---
+### Atomic Chat
+
+You can configure opencode to use local models through [Atomic Chat](https://atomic.chat), a desktop application that runs local LLMs behind an OpenAI-compatible API server (default endpoint `http://127.0.0.1:1337/v1`).
+
+```json title="opencode.json" "atomic-chat" {5, 6, 8, 10-14}
+{
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "atomic-chat": {
+ "npm": "@ai-sdk/openai-compatible",
+ "name": "Atomic Chat (local)",
+ "options": {
+ "baseURL": "http://127.0.0.1:1337/v1"
+ },
+ "models": {
+ "<your-model-id>": {
+ "name": "<your-model-name>"
+ }
+ }
+ }
+ }
+}
+```
+
+In this example:
+
+- `atomic-chat` is the custom provider ID. This can be any string you want.
+- `npm` specifies the package to use for this provider. Here, `@ai-sdk/openai-compatible` is used for any OpenAI-compatible API.
+- `name` is the display name for the provider in the UI.
+- `options.baseURL` is the endpoint for the local server. Change the host and port to match your Atomic Chat setup.
+- `models` is a map of model IDs to their display names. Each ID must match the `id` returned by `GET /v1/models` — run `curl http://127.0.0.1:1337/v1/models` to list the ids currently loaded in Atomic Chat.
+
+:::tip
+If tool calls aren't working well, pick a loaded model with strong tool-calling support (for example, a Qwen-Coder or DeepSeek-Coder variant).
+:::
+
+---
+
### Azure OpenAI
:::note