summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-09-02 15:22:07 -0400
committerDax Raad <[email protected]>2025-09-02 16:38:50 -0400
commitdb2a3a171e10790126b466c45398fec25eebde7f (patch)
tree3215baeda395c1923e6851c6c43e5d00f18f05f0
parent38a4bee1be856fb3a06cfab4bad4a5b15b09f0a2 (diff)
downloadopencode-db2a3a171e10790126b466c45398fec25eebde7f.tar.gz
opencode-db2a3a171e10790126b466c45398fec25eebde7f.zip
docs: clarify config behavior and remove theme example
-rw-r--r--packages/web/src/content/docs/docs/sdk.mdx3
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/web/src/content/docs/docs/sdk.mdx b/packages/web/src/content/docs/docs/sdk.mdx
index 40cb6d21e..bf9bd606a 100644
--- a/packages/web/src/content/docs/docs/sdk.mdx
+++ b/packages/web/src/content/docs/docs/sdk.mdx
@@ -65,7 +65,7 @@ console.log(`Server running at ${server.url}`)
server.close()
```
-You can also pass a configuration object to customize the server behavior:
+You can also pass a configuration object to customize the server behavior. The server will still pick up your `opencode.json` file as usual, but you can override or add additional configuration inline:
```javascript
import { createOpencodeServer } from "@opencode-ai/sdk"
@@ -74,7 +74,6 @@ const server = await createOpencodeServer({
hostname: "127.0.0.1",
port: 4096,
config: {
- theme: "dark",
model: "anthropic/claude-3-5-sonnet-20241022",
agent: {
general: {