summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-06-14 14:39:06 -0400
committerDax Raad <[email protected]>2025-06-14 14:39:13 -0400
commiteaf295bac736676e01f2bcf8ef425adf52698deb (patch)
tree9a8d33b25d3abe7abbe330e055e45aaba4cb6212
parent27d3cec477fb134d8db2bc3c14d3cddea5fc2922 (diff)
downloadopencode-eaf295bac736676e01f2bcf8ef425adf52698deb.tar.gz
opencode-eaf295bac736676e01f2bcf8ef425adf52698deb.zip
docs: faq
-rw-r--r--README.md27
1 files changed, 27 insertions, 0 deletions
diff --git a/README.md b/README.md
index 17a5cc508..60e0d2f0c 100644
--- a/README.md
+++ b/README.md
@@ -90,3 +90,30 @@ $ bun install
$ cd packages/opencode
$ bun run src/index.ts
```
+
+### FAQ
+
+#### How do I use this with OpenRouter
+
+Theoretically you can use this with OpenRouter with config like this
+
+```json title="opencode.json"
+{
+ "$schema": "https://opencode.ai/config.json",
+ "provider": {
+ "@openrouter/ai-sdk-provider": {
+ "name": "OpenRouter",
+ "options": {
+ "apiKey": "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
+ },
+ "models": {
+ "anthropic/claude-3.5-sonnet": {
+ "name": "claude-3.5-sonnet"
+ }
+ }
+ }
+ }
+}
+```
+
+However we are using [ai-sdk v5](https://ai-sdk.dev) which OpenRouter does not support yet. The moment they do this will work