You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`GoogleProvider`|@ai-sdk/google| Google models using the Gemini API |
364
+
|`OpenAiProvider`|@ai-sdk/openai| Access OpenAI models using Chat Completions API |
365
+
366
+
## @ai-sdk/anthropic-cli
367
+
368
+
You can now make use of your existing Claude Code Subscription by changing the Anthropic provider `npm` configuration in your `llms.json` to use `@ai-sdk/anthropic-cli` instead of `@ai-sdk/anthropic`, e.g:
369
+
370
+
```json
371
+
{
372
+
"anthropic": {
373
+
"enabled": true,
374
+
"npm": "@ai-sdk/anthropic-cli",
375
+
...
376
+
}
377
+
}
378
+
```
379
+
380
+
This provider routes all requests to the `claude` binary so it's functionality and integration is limited, e.g. it doesn't support tool calling or skills. Otherwise it supports other features you'd expect like System Prompts, Chat History, Image and Document attachments, etc.
381
+
382
+
At the same time it's able to benefit from some smarts in the `claude` binary it's built-in system prompts and optimizations for handling long conversations, so it can be a good option for some use cases.
0 commit comments