Skip to content

Commit aee8a21

Browse files
Merge branch 'RooCodeInc:main' into add-litellm-docs
2 parents dd7b2d7 + 9c50bc4 commit aee8a21

File tree

4 files changed

+53
-181
lines changed

4 files changed

+53
-181
lines changed

.roomodes

Lines changed: 15 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,8 @@
11
customModes:
2-
- slug: documentation-writer
3-
name: 📝 Documentation Writer
4-
roleDefinition: >-
5-
You are a technical documentation writer for the Roo Code project.
6-
Your writing is direct, concise, and technical.
7-
You write for a developer audience and follow the instructions in the .roo/rules-docs/ directory to produce clear, high-signal Markdown documentation.
8-
whenToUse: Use this mode for creating or updating documentation in Markdown (.md, .mdx) files.
9-
groups:
10-
- read
11-
- command
12-
- - edit
13-
- fileRegex: \.(md|mdx)$
14-
description: Documentation files
15-
source: project
162
- slug: release-notes-writer
173
name: Release Notes Writer
18-
roleDefinition: >-
19-
You are a technical writer for Roo Code release notes. Your job is to:
20-
- Automate release note creation.
21-
- Fetch and analyze GitHub pull requests.
22-
- Convert technical changes into user benefits.
23-
- Ensure updates align with documentation standards.
24-
- Update all required documentation files in the docs/update-notes directory.
25-
whenToUse: >-
26-
Use this mode to create release notes for a new Roo Code version. It automates the full workflow from fetching PRs to updating documentation. Provide a version number to start.
4+
roleDefinition: "You are a technical writer for Roo Code release notes. Your job is to: - Automate release note creation. - Fetch and analyze GitHub pull requests. - Convert technical changes into user benefits. - Ensure updates align with documentation standards. - Update all required documentation files in the docs/update-notes directory."
5+
whenToUse: Use this mode to create release notes for a new Roo Code version. It automates the full workflow from fetching PRs to updating documentation. Provide a version number to start.
276
groups:
287
- read
298
- command
@@ -34,25 +13,23 @@ customModes:
3413
source: project
3514
- slug: mode-writer
3615
name: ✍️ Mode Writer
37-
roleDefinition: >-
38-
You are Roo, a mode creation specialist focused on designing and implementing custom modes for the Roo-Code project. Your expertise includes:
39-
- Understanding the mode system architecture and configuration
40-
- Creating well-structured mode definitions with clear roles and responsibilities
41-
- Writing comprehensive XML-based special instructions using best practices
42-
- Ensuring modes have appropriate tool group permissions
43-
- Crafting clear whenToUse descriptions for the Orchestrator
44-
- Following XML structuring best practices for clarity and parseability
45-
You help users create new modes by:
46-
- Gathering requirements about the mode's purpose and workflow
47-
- Defining appropriate roleDefinition and whenToUse descriptions
48-
- Selecting the right tool groups and file restrictions
49-
- Creating detailed XML instruction files in the .roo folder
50-
- Ensuring instructions are well-organized with proper XML tags
51-
- Following established patterns from existing modes
16+
roleDefinition: "You are Roo, a mode creation specialist focused on designing and implementing custom modes for the Roo-Code project. Your expertise includes: - Understanding the mode system architecture and configuration - Creating well-structured mode definitions with clear roles and responsibilities - Writing comprehensive XML-based special instructions using best practices - Ensuring modes have appropriate tool group permissions - Crafting clear whenToUse descriptions for the Orchestrator - Following XML structuring best practices for clarity and parseability You help users create new modes by: - Gathering requirements about the mode's purpose and workflow - Defining appropriate roleDefinition and whenToUse descriptions - Selecting the right tool groups and file restrictions - Creating detailed XML instruction files in the .roo folder - Ensuring instructions are well-organized with proper XML tags - Following established patterns from existing modes"
5217
whenToUse: Use this mode when you need to create a new custom mode.
5318
groups:
5419
- read
5520
- - edit
5621
- fileRegex: (\.roomodes$|\.roo/.*\.xml$|\.yaml$)
5722
description: Mode configuration files and XML instructions
5823
- command
24+
- slug: documentation-writer
25+
name: 📝 Documentation Writer
26+
roleDefinition: You are a technical documentation writer for the Roo Code project. Your writing is direct, concise, and technical. You write for a developer audience and follow the instructions in the .roo/rules-docs/ directory to produce clear, high-signal Markdown documentation.
27+
whenToUse: Use this mode for creating or updating documentation in Markdown (.md, .mdx) files.
28+
groups:
29+
- read
30+
- command
31+
- - edit
32+
- fileRegex: (\.(md|mdx)$|sidebars\.ts$)
33+
description: Documentation files and sidebar configuration
34+
- mcp
35+
source: project

docs/providers/claude-code.md

Lines changed: 38 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,54 @@ sidebar_label: Claude Code
66

77
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.
88

9+
:::info Setup Instructions
10+
Before using the Claude Code provider, ensure you have completed the following steps:
11+
12+
1. **Install Claude CLI**: Download and install the official command-line tool from [Anthropic's documentation](https://docs.anthropic.com/en/docs/claude-code/setup).
13+
2. **Authenticate**: Run `claude` in your terminal to start the application. Once the application is running, type `/login` to sign in to your Anthropic account. This step is required to grant Roo Code access to your Claude subscription.
14+
3. **Verify Setup**: Confirm the CLI is working by running `claude --version`. This ensures that Roo Code can find and use the executable.
15+
4. **Configure in Roo Code**:
16+
* Go to Roo Code settings and select **"Claude Code"** as your API provider.
17+
* If you installed the CLI in a custom location, set the **"Claude Code Path"** to the full executable path (e.g., `/usr/local/bin/claude`). Otherwise, you can leave it blank.
18+
* Choose your desired model from the list of available options.
19+
20+
Once configured, Roo Code will use your local Claude CLI installation to interact with Anthropic's models, leveraging your existing subscription.
21+
:::
22+
23+
24+
:::warning Environment Variable Usage
25+
The `claude` command-line tool, like other Anthropic SDKs, can use the `ANTHROPIC_API_KEY` environment variable for authentication. This is a common method for authorizing CLI tools in non-interactive environments.
26+
27+
If this environment variable is set on your system, the `claude` tool may use it for authentication instead of the interactive `/login` method. When Roo Code executes the tool, it will accurately reflect that an API key is being used, as this is the underlying behavior of the `claude` CLI itself.
28+
:::
29+
930
**Website:** [https://docs.anthropic.com/en/docs/claude-code/setup](https://docs.anthropic.com/en/docs/claude-code/setup)
1031

1132
---
1233

1334
## 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
35+
- **Direct CLI Access**: Uses Anthropic's official Claude CLI tool for model interactions.
36+
- **Advanced Reasoning**: Full support for Claude's thinking mode and reasoning capabilities.
37+
- **Cost Transparency**: Shows exact usage costs as reported by the CLI.
38+
- **Flexible Configuration**: Works with your existing Claude CLI setup.
1839

1940
---
2041

2142
## Why Use This Provider
2243

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
44+
- **No API Keys**: Uses your existing Claude CLI authentication.
45+
- **Cost Benefits**: Leverage CLI subscription rates and transparent cost reporting.
46+
- **Latest Features**: Access new Claude capabilities as they're released in the CLI.
47+
- **Advanced Reasoning**: Full support for Claude's thinking modes.
2748

2849
## How it Works
2950

3051
The Claude Code provider works by:
3152

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
53+
1. **Running Commands**: Executes the `claude` CLI command with your prompts.
54+
2. **Processing Output**: Handles the CLI's JSON output in chunks with advanced parsing.
55+
3. **Handling Reasoning**: Captures and displays Claude's thinking process when available.
56+
4. **Tracking Usage**: Reports token usage and costs as provided by the CLI.
3657

3758
The provider integrates with Roo Code's interface, giving you the same experience as other providers while using the Claude CLI under the hood.
3859

@@ -44,12 +65,11 @@ You only need to configure one optional setting:
4465

4566
### **Claude Code Path**
4667
- **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
68+
- **Description**: Path to your Claude CLI executable.
69+
- **Default**: `claude` (assumes it's in your system PATH).
70+
- **When to change**: If you installed Claude CLI in a custom location.
5071

5172
**Example custom paths:**
52-
- Windows: `C:\tools\claude\claude.exe`
5373
- macOS/Linux: `/usr/local/bin/claude` or `~/bin/claude`
5474

5575
---
@@ -66,36 +86,15 @@ The Claude Code provider supports these Claude models:
6686

6787
The specific models available depend on your Claude CLI subscription and plan.
6888

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.
9089

9190
---
9291

9392

9493
## Common Questions
9594

9695
**"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
96+
- Typically no. You can authenticate interactively using the `/login` command within the `claude` application.
97+
- However, if the `ANTHROPIC_API_KEY` environment variable is set, the Claude CLI may use it for authentication. See the warning above for details.
9998

10099
**"How do I install the Claude CLI?"**
101100
- Visit [Anthropic's CLI documentation](https://docs.anthropic.com/en/docs/claude-code/setup) for installation instructions
@@ -108,38 +107,3 @@ The Claude Code provider can be selected during your initial Roo Code setup with
108107
- Set a custom path in the Claude Code Path setting
109108
- Point to the full path where you installed the CLI
110109

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/providers/gemini-cli.md

Lines changed: 0 additions & 68 deletions
This file was deleted.

sidebars.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ const sidebars: SidebarsConfig = {
131131
'providers/deepseek',
132132
'providers/chutes',
133133
'providers/gemini',
134-
'providers/gemini-cli',
135134
'providers/glama',
136135
'providers/groq',
137136
'providers/human-relay',

0 commit comments

Comments
 (0)