Skip to content

Commit 9bd7d40

Browse files
Add Claude Code provider docs and 3.21.4 release notes (#235)
1 parent 0929c76 commit 9bd7d40

File tree

5 files changed

+182
-0
lines changed

5 files changed

+182
-0
lines changed

docs/providers/claude-code.md

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
---
2+
sidebar_label: Claude Code
3+
---
4+
5+
# Claude Code Provider
6+
7+
The Claude Code provider allows you to use Anthropic's Claude models through their official CLI (Command Line Interface) instead of the web API. This provides direct access to your Claude Max subscription right from Roo Code.
8+
9+
**Website:** [https://docs.anthropic.com/en/docs/claude-code/setup](https://docs.anthropic.com/en/docs/claude-code/setup)
10+
11+
---
12+
13+
## Key Features
14+
- **Direct CLI Access**: Uses Anthropic's official Claude CLI tool for model interactions
15+
- **Advanced Reasoning**: Full support for Claude's thinking mode and reasoning capabilities
16+
- **Cost Transparency**: Shows exact usage costs as reported by the CLI
17+
- **Flexible Configuration**: Works with your existing Claude CLI setup
18+
19+
---
20+
21+
## Why Use This Provider
22+
23+
- **No API Keys**: Uses your existing Claude CLI authentication
24+
- **Cost Benefits**: Leverage CLI subscription rates and transparent cost reporting
25+
- **Latest Features**: Access new Claude capabilities as they're released in the CLI
26+
- **Advanced Reasoning**: Full support for Claude's thinking modes
27+
28+
## How it Works
29+
30+
The Claude Code provider works by:
31+
32+
1. **Running Commands**: Executes the `claude` CLI command with your prompts
33+
2. **Processing Output**: Handles the CLI's JSON output in chunks with advanced parsing
34+
3. **Handling Reasoning**: Captures and displays Claude's thinking process when available
35+
4. **Tracking Usage**: Reports token usage and costs as provided by the CLI
36+
37+
The provider integrates with Roo Code's interface, giving you the same experience as other providers while using the Claude CLI under the hood.
38+
39+
---
40+
41+
## Configuration
42+
43+
You only need to configure one optional setting:
44+
45+
### **Claude Code Path**
46+
- **Setting**: `claudeCodePath`
47+
- **Description**: Path to your Claude CLI executable
48+
- **Default**: `claude` (assumes it's in your system PATH)
49+
- **When to change**: If you installed Claude CLI in a custom location
50+
51+
**Example custom paths:**
52+
- Windows: `C:\tools\claude\claude.exe`
53+
- macOS/Linux: `/usr/local/bin/claude` or `~/bin/claude`
54+
55+
---
56+
57+
## Supported Models
58+
59+
The Claude Code provider supports these Claude models:
60+
61+
- **Claude Sonnet 4** (latest, recommended)
62+
- **Claude Opus 4** (most capable)
63+
- **Claude 3.7 Sonnet**
64+
- **Claude 3.5 Sonnet**
65+
- **Claude 3.5 Haiku** (fast responses)
66+
67+
The specific models available depend on your Claude CLI subscription and plan.
68+
69+
---
70+
71+
## Prerequisites
72+
73+
Before using the Claude Code provider:
74+
75+
1. **Install Claude CLI**: Download and install from Anthropic
76+
2. **Authenticate**: Run `claude auth` to sign in to your account
77+
3. **Verify Setup**: Test with `claude --version` to ensure it's working
78+
4. **Optional**: Add CLI location to PATH or configure custom path in settings
79+
80+
## Configuration in Roo Code
81+
82+
**Initial Setup Option:**
83+
The Claude Code provider can be selected during your initial Roo Code setup without requiring additional configuration, making it one of the easiest providers to get started with.
84+
85+
**Manual Configuration:**
86+
1. **Open Roo Code Settings:** Click the gear icon (<Codicon name="gear" />) in the Roo Code panel.
87+
2. **Select Provider:** Choose "Claude Code" from the "API Provider" dropdown.
88+
3. **Configure Path (Optional):** If needed, set the "Claude Code Path" to your CLI executable location.
89+
4. **Select Model:** Choose your desired Claude model from the "Model" dropdown.
90+
91+
---
92+
93+
94+
## Common Questions
95+
96+
**"Do I need a Claude API key for this provider?"**
97+
- No! This provider uses your Claude CLI setup instead of the web API
98+
- You'll need the Claude CLI installed and authenticated on your system
99+
100+
**"How do I install the Claude CLI?"**
101+
- Visit [Anthropic's CLI documentation](https://docs.anthropic.com/en/docs/claude-code/setup) for installation instructions
102+
- The CLI handles its own authentication and setup
103+
104+
**"Why would I use this instead of the regular Anthropic provider?"**
105+
- Potential cost benefits depending on your subscription
106+
107+
**"What if the CLI isn't in my PATH?"**
108+
- Set a custom path in the Claude Code Path setting
109+
- Point to the full path where you installed the CLI
110+
111+
112+
---
113+
114+
## Troubleshooting
115+
116+
### **"Claude Code process exited with error"**
117+
**Common causes:**
118+
- Claude CLI not installed or not in PATH
119+
120+
**Solutions:**
121+
1. Verify CLI installation: `claude --version`
122+
2. Re-authenticate: `claude auth`
123+
3. Check your subscription includes the selected model
124+
4. Try a different model
125+
126+
127+
### **Custom path not working**
128+
**Problem**: Roo Code can't find your Claude CLI
129+
**Solutions:**
130+
- Use the full absolute path to the CLI executable
131+
- Verify the path exists and the file is executable
132+
- On Windows, you may need to include the `.exe` extension
133+
134+
135+
## Advanced Usage
136+
137+
### **Custom Installation Paths**
138+
If you installed Claude CLI in a non-standard location:
139+
140+
```bash
141+
# Example custom paths
142+
/opt/claude/bin/claude # Linux custom install
143+
/Applications/Claude/claude # macOS app bundle
144+
C:\claude\claude.exe # Windows custom location
145+
```

docs/update-notes/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ This section contains notes about recent updates to Roo Code, listed by version
55

66
## Version 3.21
77

8+
* [3.21.4](/update-notes/v3.21.4) (2025-06-23)
89
* [3.21.3](/update-notes/v3.21.3) (2025-06-21)
910
* [3.21.2](/update-notes/v3.21.2) (2025-06-21)
1011
* [3.21.1](/update-notes/v3.21.1) (2025-06-18)

docs/update-notes/v3.21.4.mdx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Roo Code 3.21.4 Release Notes (2025-06-23)
2+
3+
This release introduces the new Claude Code provider for local CLI integration and fixes several critical issues.
4+
5+
## Use Your Claude Max Subscription with Roo Code
6+
7+
You can now use your Claude Max subscription directly in Roo Code through our new [Claude Code provider](/providers/claude-code) (thanks Cline!) ([#4864](https://github.com/RooCodeInc/Roo-Code/pull/4864), [#5038](https://github.com/RooCodeInc/Roo-Code/pull/5038)):
8+
9+
- **Leverage Your Existing Subscription**: Connect your Claude Max plan to Roo Code through the Claude CLI
10+
- **No Additional API Costs**: Use your subscription benefits instead of paying per-token API rates
11+
- **Access Premium Models**: Use Claude Sonnet 4, Opus 4, and other advanced models included in your plan
12+
- **Zero Setup Complexity**: Select Claude Code as your provider during initial setup - no API keys needed
13+
- **Advanced Reasoning Support**: Full access to Claude's thinking modes and reasoning capabilities
14+
15+
Perfect for Claude Max subscribers who want to maximize their subscription value while coding.
16+
17+
## Bug Fixes
18+
19+
* **Apply Diff Accuracy**: Fixed start line parameter not working correctly when applying multiple file diffs (thanks samhvw8!) ([#5019](https://github.com/RooCodeInc/Roo-Code/pull/5019))
20+
* **Ollama Compatibility**: Resolved validation errors that prevented Ollama from working with certain models (thanks daniel-lxs, MartinHarding1998!) ([#5014](https://github.com/RooCodeInc/Roo-Code/pull/5014))

docs/update-notes/v3.21.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@ We're excited to announce the official launch of the [Roo Marketplace](/features
1212

1313
The Roo Marketplace makes it easy to extend Roo Code's functionality with powerful integrations created by our vibrant community.
1414

15+
## Use Your Claude Max Subscription with Roo Code
16+
17+
You can now use your Claude Max subscription directly in Roo Code through our new [Claude Code provider](/providers/claude-code) (thanks Cline!) ([#4864](https://github.com/RooCodeInc/Roo-Code/pull/4864), [#5038](https://github.com/RooCodeInc/Roo-Code/pull/5038)):
18+
19+
- **Leverage Your Existing Subscription**: Connect your Claude Max plan to Roo Code through the Claude CLI
20+
- **No Additional API Costs**: Use your subscription benefits instead of paying per-token API rates
21+
- **Access Premium Models**: Use Claude Sonnet 4, Opus 4, and other advanced models included in your plan
22+
- **Zero Setup Complexity**: Select Claude Code as your provider during initial setup - no API keys needed
23+
- **Advanced Reasoning Support**: Full access to Claude's thinking modes and reasoning capabilities
24+
25+
Perfect for Claude Max subscribers who want to maximize their subscription value while coding.
26+
1527
## [Gemini 2.5 Models Support](https://blog.google/products/gemini/gemini-2-5-model-family-expands/)
1628

1729
We've added support for [Google's latest Gemini 2.5 models](https://blog.google/products/gemini/gemini-2-5-model-family-expands/) ([#4762](https://github.com/RooCodeInc/Roo-Code/pull/4762), [#4770](https://github.com/RooCodeInc/Roo-Code/pull/4770), [#4767](https://github.com/RooCodeInc/Roo-Code/pull/4767)):
@@ -56,6 +68,8 @@ Added support for reading Excel (.xlsx) files in tools ([#4751](https://github.c
5668

5769
## Bug Fixes
5870

71+
* **Apply Diff Accuracy**: Fixed start line parameter not working correctly when applying multiple file diffs (thanks samhvw8!) ([#5019](https://github.com/RooCodeInc/Roo-Code/pull/5019))
72+
* **Ollama Compatibility**: Resolved validation errors that prevented Ollama from working with certain models (thanks daniel-lxs, MartinHarding1998!) ([#5014](https://github.com/RooCodeInc/Roo-Code/pull/5014))
5973
* **Ollama & LM Studio Context Length**: The context length for models served by Ollama and LM Studio is now automatically detected and displayed correctly, so you no longer need to configure it manually (thanks thecolorblue, Fade78!) ([#4314](https://github.com/RooCodeInc/Roo-Code/pull/4314)).
6074
* **MCP Tool UI**: Resolved an issue where the eye icon for MCP tools was showing the incorrect state and was visible in chat contexts where it should have been hidden (thanks daniel-lxs!) ([#4994](https://github.com/RooCodeInc/Roo-Code/pull/4994)).
6175
* **Marketplace**: Fixed an issue where the marketplace would go blank after being populated and resolved timeout issues (thanks yangbinbin48!) ([#4941](https://github.com/RooCodeInc/Roo-Code/pull/4941))

sidebars.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ const sidebars: SidebarsConfig = {
116116
label: 'Model Providers',
117117
items: [
118118
'providers/anthropic',
119+
'providers/claude-code',
119120
'providers/bedrock',
120121
'providers/deepseek',
121122
'providers/chutes',
@@ -195,6 +196,7 @@ const sidebars: SidebarsConfig = {
195196
label: '3.21',
196197
items: [
197198
{ type: 'doc', id: 'update-notes/v3.21', label: '3.21 Combined' },
199+
{ type: 'doc', id: 'update-notes/v3.21.4', label: '3.21.4' },
198200
{ type: 'doc', id: 'update-notes/v3.21.3', label: '3.21.3' },
199201
{ type: 'doc', id: 'update-notes/v3.21.2', label: '3.21.2' },
200202
{ type: 'doc', id: 'update-notes/v3.21.1', label: '3.21.1' },

0 commit comments

Comments
 (0)