Roo-Code/apps/docs/docs/providers/anthropic.md
Roo Code f1d69f02fb feat: migrate Roo-Code-Docs into monorepo as apps/docs
- Move all documentation files from standalone repo to apps/docs
- Create @roo-code/docs package with workspace dependencies
- Update docusaurus.config.ts editUrl to point to apps/docs path
- Fix @roo-code/types package.json to export built files instead of source
- Add missing dependencies (@docusaurus/plugin-content-docs, @docusaurus/theme-common, @easyops-cn/autocomplete.js)
- Update turbo.json to include docs build outputs
- Add comprehensive README with setup instructions
- Add .gitignore to exclude build artifacts
- Fix TypeScript error with inert attribute

This migration consolidates the docs into the main repository for better
integration and streamlined deployment via Vercel.

Note: GitHub Actions workflows for deployment will be added manually
due to repository permissions.
2026-01-24 19:30:01 +00:00

2.8 KiB

sidebar_label description keywords
Anthropic Configure Anthropic's Claude AI models in Roo Code. Access Claude Opus, Sonnet, and Haiku models with prompt caching and large context windows.
anthropic
claude
claude ai
roo code
api provider
claude opus
claude sonnet
claude haiku
prompt caching
ai models

Using Anthropic With Roo Code

Anthropic is an AI safety and research company that builds reliable, interpretable, and steerable AI systems. Their Claude models are known for their strong reasoning abilities, helpfulness, and honesty.

Website: https://www.anthropic.com/


Getting an API Key

  1. Sign Up/Sign In: Go to the Anthropic Console. Create an account or sign in.
  2. Navigate to API Keys: Go to the API keys section.
  3. Create a Key: Click "Create Key". Give your key a descriptive name (e.g., "Roo Code").
  4. Copy the Key: Important: Copy the API key immediately. You will not be able to see it again. Store it securely.

Available Models

Roo Code supports all Claude models available through Anthropic's API.

For the complete, up-to-date model list and capabilities, see Anthropic's model documentation.


Configuration in Roo Code

  1. Open Roo Code Settings: Click the gear icon () in the Roo Code panel.
  2. Select Provider: Choose "Anthropic" from the "API Provider" dropdown.
  3. Enter API Key: Paste your Anthropic API key into the "Anthropic API Key" field.
  4. Select Model: Choose your desired Claude model from the "Model" dropdown.
  5. (Optional) Custom Base URL: If you need to use a custom base URL for the Anthropic API, check "Use custom base URL" and enter the URL. Most people won't need to adjust this.

Tips and Notes

  • Prompt Caching: Claude models support prompt caching, which can significantly reduce costs and latency for repeated prompts.
  • Context Window: Claude models have large context windows (200,000 tokens), allowing you to include a significant amount of code and context in your prompts.
  • Pricing: Refer to the Anthropic Pricing page for the latest pricing information.
  • Rate Limits: Anthropic has strict rate limits based on usage tiers. If you're repeatedly hitting rate limits, consider contacting Anthropic sales or accessing Claude through a different provider like OpenRouter or Requesty.