- Add CLOUD_INTEGRATION.md with detailed feature documentation - Add CLOUD_QUICKSTART.md for user-friendly quick start guide - Add CLOUD_ARCHITECTURE.md with technical architecture details - Update README.md to reference cloud features and documentation Addresses issue #6614 by documenting the existing cloud integration features that were already implemented in the codebase.
7.1 KiB
Roo Code Cloud Integration Quick Start Guide
This guide will help you get started with Roo Code's cloud integration features in just a few minutes.
Prerequisites
- Roo Code extension installed in VS Code
- An active Roo Code account (sign up at roocode.com)
- Organization membership (for team features)
Step 1: Sign In to Roo Cloud
- Open the Roo Code sidebar in VS Code
- Click the Account tab
- Click Sign in with Roo Cloud
- Complete authentication in your browser
- Return to VS Code when prompted
You should now see your user information in the Account tab.
Step 2: Enable Cloud Features
Cloud features are enabled by default once you're signed in. You can verify this by checking:
// In VS Code settings (settings.json)
{
"rooCode.cloud.enabled": true,
"rooCode.cloud.syncProfiles": true,
"rooCode.cloud.enableSharing": true
}
Step 3: Using Cloud-Synchronized Profiles
View Available Profiles
- Go to the Settings tab in Roo Code
- Look for the API Configuration section
- Cloud-synchronized profiles will have a cloud icon ☁️
Switch Between Profiles
// Profiles are automatically synchronized
// Just select from the dropdown in Settings
Create a Team Profile (Admins Only)
- Create a new profile in Settings
- Configure your API provider and model
- Save with a descriptive name
- It will automatically sync to team members
Step 4: Sharing Tasks
Share Your Current Task
- Complete or pause your current task
- Click the Share button (↗️) in the task interface
- Choose visibility:
- Organization - Only your team can access
- Public - Anyone with the link can view
What Gets Shared
- Complete conversation history
- Code changes and outputs
- Tool usage and results
- Task metadata (duration, tokens used)
Share Link Format
https://share.roocode.com/task/[task-id]
The link is automatically copied to your clipboard!
Step 5: Monitoring Task Events
View Task Analytics
Task events are automatically tracked. You can:
- See task completion status
- Monitor token usage
- Track tool execution
- Identify performance patterns
Common Events to Monitor
// Task started
RooCodeEventName.TaskStarted
// Task completed with metrics
RooCodeEventName.TaskCompleted
// Payload: { taskId, tokenUsage, toolUsage }
// Mode switches
RooCodeEventName.TaskModeSwitched
// Payload: { taskId, newMode }
// Tool failures
RooCodeEventName.TaskToolFailed
// Payload: { taskId, tool, error }
Step 6: Organization Settings
For Organization Admins
Configure team-wide settings:
{
"cloudSettings": {
"enableTaskSharing": true,
"taskShareExpirationDays": 30,
"allowMembersViewAllTasks": false
},
"allowList": {
"allowAll": false,
"providers": {
"openai": {
"allowAll": false,
"models": ["gpt-4", "gpt-3.5-turbo"]
},
"anthropic": {
"allowAll": true
}
}
}
}
For Team Members
Your available models and features are controlled by your organization admin. Contact them if you need access to specific models or features.
Common Use Cases
1. Team Knowledge Sharing
Share successful task completions with your team:
// After completing a complex refactoring
// Click Share → Organization
// Post link in team chat with context
2. Getting Help
Share a stuck task with colleagues:
// When encountering an issue
// Click Share → Organization
// Ask for help with the share link
3. Building Examples
Create public examples for documentation:
// Complete a demonstration task
// Click Share → Public
// Include link in documentation
4. Standardizing Configurations
Admins can create standard profiles:
- "Production API" - Rate-limited, specific models
- "Development API" - More permissive settings
- "Testing API" - Optimized for speed/cost
Troubleshooting
Not Seeing Cloud Features?
- Ensure you're signed in (check Account tab)
- Verify organization membership
- Check with your admin for permissions
Profiles Not Syncing?
- Sign out and sign back in
- Check internet connection
- Verify organization settings
Can't Share Tasks?
- Check if sharing is enabled by your org
- Ensure task has completed or paused
- Verify you have sharing permissions
Getting Authentication Errors?
- Your session may have expired
- Sign out completely
- Clear VS Code credentials
- Sign in again
Best Practices
For Individual Users
- Review Before Sharing - Check for sensitive data
- Use Descriptive Names - Help others understand shared tasks
- Set Context - Add comments explaining your approach
- Clean Up - Delete old shared tasks periodically
for Teams
- Standardize Profiles - Use consistent naming
- Document Profiles - Explain when to use each
- Monitor Usage - Track token consumption
- Regular Reviews - Update allowed models
For Admins
- Start Restrictive - Add permissions as needed
- Communicate Changes - Notify team of updates
- Monitor Costs - Track API usage by profile
- Security First - Never share API keys
Advanced Features
Programmatic Access
import { CloudService } from "@roo-code/cloud"
// Check authentication
if (CloudService.instance.isAuthenticated()) {
// Get user info
const user = CloudService.instance.getUserInfo()
// Share a task
const result = await CloudService.instance.shareTask(taskId, "organization")
console.log("Shared at:", result.shareUrl)
}
Event Subscriptions
// Subscribe to task events
provider.on(RooCodeEventName.TaskCompleted, (taskId, usage) => {
// Send to analytics
analytics.track("task_completed", {
taskId,
tokens: usage.total,
duration: Date.now() - startTime,
})
})
Custom Integrations
// Integrate with your tools
class CustomIntegration {
async onTaskShared(shareUrl: string) {
// Post to Slack
await slack.postMessage({
text: `New Roo Code task shared: ${shareUrl}`,
})
// Log to internal system
await internalApi.logShare({
url: shareUrl,
user: CloudService.instance.getUserInfo(),
})
}
}
Security Notes
-
Never share tasks containing:
- API keys or secrets
- Personal information
- Proprietary code (unless intended)
- Security vulnerabilities
-
Always verify share visibility before sharing
-
Use organization sharing for internal work
-
Set expiration for temporary shares
Getting Help
- Documentation: docs.roocode.com
- Discord Community: discord.gg/roocode
- GitHub Issues: Report bugs or request features
- Email Support: support@roocode.com
Next Steps
Now that you're set up with cloud features:
- Try sharing your first task
- Explore different provider profiles
- Monitor your task analytics
- Join our Discord to share experiences
Happy coding with Roo Code Cloud! 🚀