Skip to content

Commit 0c591f8

Browse files
committed
update provider docs
1 parent f454630 commit 0c591f8

1 file changed

Lines changed: 25 additions & 6 deletions

File tree

content/docs/features/providers.mdx

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -355,12 +355,31 @@ ctx.add_provider(AnthropicProvider)
355355

356356
### Custom Provider implementations
357357

358-
| Type | npm | Description |
359-
|-----------------------|---------------------------|-------------|
360-
| `AnthropicProvider` | @ai-sdk/anthropic | Access Claude models using Anthropic's messages API |
361-
| `CerebrasProvider` | @ai-sdk/cerebras | Access Cerebras models |
362-
| `GoogleProvider` | @ai-sdk/google | Google models using the Gemini API |
363-
| `OpenAiProvider` | @ai-sdk/openai | Access OpenAI models using Chat Completions API |
358+
| Type | npm | Description |
359+
|------------------------|-----------------------|-------------|
360+
| `AnthropicProvider` | @ai-sdk/anthropic | Access Claude models using Anthropic's messages API |
361+
| `AnthropicProviderCli` | @ai-sdk/anthropic-cli | Use claude binary to use existing Claude subscription |
362+
| `CerebrasProvider` | @ai-sdk/cerebras | Access Cerebras models |
363+
| `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.
364383

365384
### Multi Modal Generation Providers
366385

0 commit comments

Comments
 (0)