From 22a9293cba76e5e1ab4afa5f73a5d0e578198e4a Mon Sep 17 00:00:00 2001 From: Max McKenzie Date: Thu, 4 Jul 2024 01:22:32 +0900 Subject: [PATCH] docs: Document setting up Claude in the Assistant (#13765) Release Notes: - Added documentation on how to set up Claude as the assistant. --------- Co-authored-by: Peter Tripp Co-authored-by: Gilles Peiffer Co-authored-by: Peter Tripp --- docs/src/assistant-panel.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/src/assistant-panel.md b/docs/src/assistant-panel.md index 444b851f92b59c010dc7b7b318d7944f144b4536..e4d52dc97bab70369442e55bd269d261fe817196 100644 --- a/docs/src/assistant-panel.md +++ b/docs/src/assistant-panel.md @@ -134,6 +134,25 @@ You can use Ollama with the Zed assistant by making Ollama appear as an OpenAPI ``` 5. Restart Zed +## Using Claude 3.5 Sonnet + +You can use Claude with the Zed assistant by adding the following settings: + +```json +"assistant": { + "version": "1", + "provider": { + "default_model": "claude-3-5-sonnet", + "name": "anthropic" + } +}, +``` + +When you save the settings, the assistant panel will open and ask you to add your Anthropic API key. +You need can obtain this key [here](https://console.anthropic.com/settings/keys). + +Even if you pay for Claude Pro, you will still have to [pay for additional credits](https://console.anthropic.com/settings/plans) to use it via the API. + ## Prompt Library **Warning: This feature is experimental and the format of prompts is _highly_ likely to change. Use at your own risk!**