Configure Roo Code to route through LLM Router for advanced context compression, PII redaction, and seamless model fallbacks directly inside VS Code.
Documentation Index
Fetch the complete documentation index at: https://docs.llmrouter.app/llms.txt
Use this file to discover all available pages before exploring further.
Roo Code & LLM Router
Roo Code is an intelligent VS Code extension that assists with full-project analysis, code generation, and complex refactoring.Because Roo Code reads your local filesystem and runs terminal commands, it frequently consumes massive amounts of input tokens. By routing Roo Code through LLM Router, you automatically apply Middle-Out Context Compression to bloated files and ensure your .env secrets are Redacted before they are sent to third-party AI providers like OpenAI or Anthropic.
Important: When using LLM Router with Roo Code, you must configure the
Base URL to point to https://api.llmrouter.app/v1 instead of the default
OpenAI or Anthropic endpoints.
Step 1: Installing the Roo Code Plugin
Launch VS Code.
Click the Extensions Marketplace icon on the left sidebar (or press Cmd+Shift+X).
Enter Roo Code in the search bar.
Click the Install button.
Step 2: Configuring LLM Router Settings
Roo Code allows you to use custom API providers. We will configure it to use the OpenAI-compatible endpoint provided by LLM Router.
Configuration Details
Open the Roo Code settings panel (usually by clicking the gear icon in the Roo Code sidebar) and fill in the following information:
API Provider: Select OpenAI Compatible (Do not select OpenAI or Anthropic directly, as we need to override the Base URL).
Base URL: Enter https://api.llmrouter.app/v1
API Key: Enter your LLM Router API Key (e.g., sk-router-...). You can generate this in your LLM Router Dashboard.
Model ID: Enter the specific model you want to use, prefixed with the provider slug.
Example 1:anthropic/claude-3-5-sonnet (Highly recommended for coding).
Example 2:openai/gpt-4o
Advanced Planning: If you want Roo Code to use our “Chain of Thought”
planning feature for complex refactors, you can set the Model ID to:
anthropic/claude-3-5-sonnet:planning:openai/o1-mini.
Step 3: Permission Setup and Usage
1. Configure Permissions
Roo Code will ask for specific workspace permissions. Select the permissions you wish to enable based on your needs:
File read/write operations
Auto-approve terminal execution
Project access permissions
2. Start Coding
Enter your requirements in the Roo Code chat box. Because traffic is now flowing through LLM Router, you will immediately benefit from:
Token Savings: When Roo Code reads a massive 3,000-line file, LLM Router will dynamically compress the irrelevant middle sections if the context shifts, saving you up to 80% on API costs.
Security: If Roo Code accidentally reads an AWS Key or Database Password from your local workspace, LLM Router’s PII engine will redact it into [TOKEN_REDACTED] before sending the code to Anthropic or OpenAI.
Reliability: If the primary AI provider experiences an outage, LLM Router will automatically fall back to your configured secondary provider without interrupting your VS Code session.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"LLM Router","description":"Comprehensive documentation for Saasio, the intelligent AI gateway. Reduce API costs and latency with smart prompt routing, context compression, and seamless model fallbacks.","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/llmrouter/fmzcB0C0hZ8TxqoJ/logo/llmr-light.svg?fit=max\u0026auto=format\u0026n=fmzcB0C0hZ8TxqoJ\u0026q=85\u0026s=97bc60d4ed101a355191a7baaebd8a1c","dark":"https://mintcdn.com/llmrouter/fmzcB0C0hZ8TxqoJ/logo/llmr-dark.svg?fit=max\u0026auto=format\u0026n=fmzcB0C0hZ8TxqoJ\u0026q=85\u0026s=340765a1ce35e8f74a12232225eb42f7"},"favicon":"https://mintcdn.com/llmrouter/DRv49vI19q9DHhUZ/favicon.ico?fit=max\u0026auto=format\u0026n=DRv49vI19q9DHhUZ\u0026q=85\u0026s=eba667155b546fa4c1e9f7876cd7e7ad","navbar":{"links":[{"href":"mailto:contact@llmrouter.app","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://llmrouter.app/dashboard"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"llms.txt","icon":"book-open-cover","href":"https://docs.llmrouter.app/llms.txt"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"llmrouter","hasAudioNarration":false,"actualSubdomain":"llmrouter","customDomains":["docs.llmrouter.app"],"gitSource":{"type":"github","owner":"ussef083","repo":"llm-router","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae94af2d5a6abdcaff3bbca:success","clientVersion":"0.0.4344","searchFilterCounts":[{"language":"default","tag":"Guides","count":31},{"language":"default","tag":"AI tools","count":18},{"language":"default","tag":"API reference","count":9},{"language":"default","tag":"Getting started","count":9},{"language":"default","tag":"SDKs","count":4},{"language":"default","tag":"Chat","count":2},{"language":"default","tag":"Models","count":2},{"language":"default","tag":"API documentation","count":1},{"language":"default","tag":"Blog","count":1},{"language":"default","tag":"Embeddings","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"ai-tools/roo-code","slug":"/ai-tools/roo-code","pageMetadata":{"title":"Roo Code (VS Code)","description":"Configure Roo Code to route through LLM Router for advanced context compression, PII redaction, and seamless model fallbacks directly inside VS Code.","href":"/ai-tools/roo-code"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Configure Roo Code to route through LLM Router for advanced context compression, PII redaction, and seamless model fallbacks directly inside VS Code.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,blockquote:`blockquote`,code:`code`,em:`em`,hr:`hr`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Tip,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.hr,{}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsx(Heading,{level:`2`,id:`documentation-index`,children:`Documentation Index`}),`\n`,_jsxs(_components.p,{children:[`Fetch the complete documentation index at: `,_jsx(_components.a,{href:`https://docs.llmrouter.app/llms.txt`,children:`https://docs.llmrouter.app/llms.txt`}),`\nUse this file to discover all available pages before exploring further.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`1`,id:`roo-code-\u0026-llm-router`,children:`Roo Code \u0026 LLM Router`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://marketplace.visualstudio.com/items?itemName=RooCode.roo-code`,children:`Roo Code`}),` is an intelligent VS Code extension that assists with full-project analysis, code generation, and complex refactoring.`]}),`\n`,_jsxs(_components.p,{children:[`Because Roo Code reads your local filesystem and runs terminal commands, it frequently consumes massive amounts of input tokens. By routing Roo Code through `,_jsx(_components.strong,{children:`LLM Router`}),`, you automatically apply `,_jsx(_components.strong,{children:`Middle-Out Context Compression`}),` to bloated files and ensure your `,_jsx(_components.code,{children:`.env`}),` secrets are `,_jsx(_components.strong,{children:`Redacted`}),` before they are sent to third-party AI providers like OpenAI or Anthropic.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Important:`}),` When using LLM Router with Roo Code, you must configure the\nBase URL to point to `,_jsx(_components.code,{children:`https://api.llmrouter.app/v1`}),` instead of the default\nOpenAI or Anthropic endpoints.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`step-1-installing-the-roo-code-plugin`,children:`Step 1: Installing the Roo Code Plugin`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Launch `,_jsx(_components.strong,{children:`VS Code`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Click the `,_jsx(_components.strong,{children:`Extensions Marketplace`}),` icon on the left sidebar (or press `,_jsx(_components.code,{children:`Cmd+Shift+X`}),`).`]}),`\n`,_jsxs(_components.li,{children:[`Enter `,_jsx(_components.code,{children:`Roo Code`}),` in the search bar.`]}),`\n`,_jsxs(_components.li,{children:[`Click the `,_jsx(_components.strong,{children:`Install`}),` button.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`step-2-configuring-llm-router-settings`,children:`Step 2: Configuring LLM Router Settings`}),`\n`,_jsx(_components.p,{children:`Roo Code allows you to use custom API providers. We will configure it to use the OpenAI-compatible endpoint provided by LLM Router.`}),`\n`,_jsx(Heading,{level:`3`,id:`configuration-details`,children:`Configuration Details`}),`\n`,_jsx(_components.p,{children:`Open the Roo Code settings panel (usually by clicking the gear icon in the Roo Code sidebar) and fill in the following information:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`API Provider:`}),` Select `,_jsx(_components.code,{children:`OpenAI Compatible`}),` (Do `,_jsx(_components.em,{children:`not`}),` select OpenAI or Anthropic directly, as we need to override the Base URL).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Base URL:`}),` Enter `,_jsx(_components.code,{children:`https://api.llmrouter.app/v1`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`API Key:`}),` Enter your LLM Router API Key (e.g., `,_jsx(_components.code,{children:`sk-router-...`}),`). You can generate this in your `,_jsx(_components.a,{href:`https://llmrouter.app/dashboard`,children:`LLM Router Dashboard`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Model ID:`}),` Enter the specific model you want to use, prefixed with the provider slug.`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.em,{children:`Example 1:`}),` `,_jsx(_components.code,{children:`anthropic/claude-3-5-sonnet`}),` (Highly recommended for coding).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.em,{children:`Example 2:`}),` `,_jsx(_components.code,{children:`openai/gpt-4o`})]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Advanced Planning:`}),` If you want Roo Code to use our “Chain of Thought”\nplanning feature for complex refactors, you can set the Model ID to:\n`,_jsx(_components.code,{children:`anthropic/claude-3-5-sonnet:planning:openai/o1-mini`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`step-3-permission-setup-and-usage`,children:`Step 3: Permission Setup and Usage`}),`\n`,_jsx(Heading,{level:`3`,id:`1-configure-permissions`,children:`1. Configure Permissions`}),`\n`,_jsx(_components.p,{children:`Roo Code will ask for specific workspace permissions. Select the permissions you wish to enable based on your needs:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`File read/write operations`}),`\n`,_jsx(_components.li,{children:`Auto-approve terminal execution`}),`\n`,_jsx(_components.li,{children:`Project access permissions`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`2-start-coding`,children:`2. Start Coding`}),`\n`,_jsx(_components.p,{children:`Enter your requirements in the Roo Code chat box. Because traffic is now flowing through LLM Router, you will immediately benefit from:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Token Savings:`}),` When Roo Code reads a massive 3,000-line file, LLM Router will dynamically compress the irrelevant middle sections if the context shifts, saving you up to 80% on API costs.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Security:`}),` If Roo Code accidentally reads an AWS Key or Database Password from your local workspace, LLM Router’s PII engine will redact it into `,_jsx(_components.code,{children:`[TOKEN_REDACTED]`}),` before sending the code to Anthropic or OpenAI.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Reliability:`}),` If the primary AI provider experiences an outage, LLM Router will automatically fall back to your configured secondary provider without interrupting your VS Code session.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Roo Code (VS Code)","description":"Configure Roo Code to route through LLM Router for advanced context compression, PII redaction, and seamless model fallbacks directly inside VS Code.","href":"/ai-tools/roo-code"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Documentation Index","slug":"documentation-index","depth":2,"children":[]},{"title":"Roo Code \u0026 LLM Router","slug":"roo-code-\u0026-llm-router","depth":1,"children":[]},{"title":"Step 1: Installing the Roo Code Plugin","slug":"step-1-installing-the-roo-code-plugin","depth":2,"children":[]},{"title":"Step 2: Configuring LLM Router Settings","slug":"step-2-configuring-llm-router-settings","depth":2,"children":[{"title":"Configuration Details","slug":"configuration-details","depth":3,"children":[]}]},{"title":"Step 3: Permission Setup and Usage","slug":"step-3-permission-setup-and-usage","depth":2,"children":[{"title":"1. Configure Permissions","slug":"1-configure-permissions","depth":3,"children":[]},{"title":"2. Start Coding","slug":"2-start-coding","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"llmrouter","siteName":"LLM Router","title":"Roo Code (VS Code) - LLM Router","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-03-29T22:08:54.476Z","originalFileLocation":"ai-tools/roo-code.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Configure Roo Code to route through LLM Router for advanced context compression, PII redaction, and seamless model fallbacks directly inside VS Code.\">\u003cmeta data-mint-head name=\"application-name\" content=\"LLM Router\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/llmrouter/iLFkswXm1WfMhY20/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/llmrouter/iLFkswXm1WfMhY20/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/llmrouter/iLFkswXm1WfMhY20/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/llmrouter/iLFkswXm1WfMhY20/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/llmrouter/iLFkswXm1WfMhY20/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/llmrouter/iLFkswXm1WfMhY20/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/llmrouter/iLFkswXm1WfMhY20/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/llmrouter/iLFkswXm1WfMhY20/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/llmrouter/iLFkswXm1WfMhY20/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Roo Code (VS Code) - LLM Router\">\u003cmeta data-mint-head property=\"og:description\" content=\"Configure Roo Code to route through LLM Router for advanced context compression, PII redaction, and seamless model fallbacks directly inside VS Code.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"LLM Router\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.llmrouter.app/ai-tools/roo-code\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://llmrouter.mintlify.site/_mintlify/api/og/v2?division=AI+tools\u0026amp;title=Roo+Code+%28VS+Code%29\u0026amp;description=Configure+Roo+Code+to+route+through+LLM+Router+for+advanced+context+compression%2C+PII+redaction%2C+and+seamless+model+fallbacks+directly+inside+VS+Code.\u0026amp;theme=a478849910e652ec7906a8ef\u0026amp;signature=f4af7ba556717bd0f371b13f1f03629d060e6211fda843db9e67ee22045b47e6\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Roo Code (VS Code) - LLM Router\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Configure Roo Code to route through LLM Router for advanced context compression, PII redaction, and seamless model fallbacks directly inside VS Code.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://llmrouter.mintlify.site/_mintlify/api/og/v2?division=AI+tools\u0026amp;title=Roo+Code+%28VS+Code%29\u0026amp;description=Configure+Roo+Code+to+route+through+LLM+Router+for+advanced+context+compression%2C+PII+redaction%2C+and+seamless+model+fallbacks+directly+inside+VS+Code.\u0026amp;theme=a478849910e652ec7906a8ef\u0026amp;signature=f4af7ba556717bd0f371b13f1f03629d060e6211fda843db9e67ee22045b47e6\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/llmrouter/iLFkswXm1WfMhY20/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"LLM Router\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.llmrouter.app/ai-tools/roo-code\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/ai-tools/roo-code.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.llmrouter.app/#organization\",\"name\":\"LLM Router\",\"url\":\"https://docs.llmrouter.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/llmrouter/fmzcB0C0hZ8TxqoJ/logo/llmr-light.svg?fit=max\u0026auto=format\u0026n=fmzcB0C0hZ8TxqoJ\u0026q=85\u0026s=97bc60d4ed101a355191a7baaebd8a1c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.llmrouter.app#website\",\"name\":\"LLM Router\",\"url\":\"https://docs.llmrouter.app\",\"publisher\":{\"@id\":\"https://docs.llmrouter.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.llmrouter.app/ai-tools/roo-code#webpage\",\"url\":\"https://docs.llmrouter.app/ai-tools/roo-code\",\"name\":\"Roo Code (VS Code)\",\"description\":\"Configure Roo Code to route through LLM Router for advanced context compression, PII redaction, and seamless model fallbacks directly inside VS Code.\",\"dateModified\":\"2026-03-29T22:08:54.476Z\",\"isPartOf\":{\"@id\":\"https://docs.llmrouter.app#website\"},\"breadcrumb\":{\"@id\":\"https://docs.llmrouter.app/ai-tools/roo-code#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.llmrouter.app/ai-tools/roo-code#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"AI tools\",\"item\":\"https://docs.llmrouter.app/ai-tools/cursor\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Roo Code (VS Code)\",\"item\":\"https://docs.llmrouter.app/ai-tools/roo-code\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.llmrouter.app/ai-tools/roo-code#article\",\"headline\":\"Roo Code (VS Code)\",\"name\":\"Roo Code (VS Code)\",\"description\":\"Configure Roo Code to route through LLM Router for advanced context compression, PII redaction, and seamless model fallbacks directly inside VS Code.\",\"url\":\"https://docs.llmrouter.app/ai-tools/roo-code\",\"mainEntityOfPage\":{\"@id\":\"https://docs.llmrouter.app/ai-tools/roo-code#webpage\"},\"dateModified\":\"2026-03-29T22:08:54.476Z\",\"publisher\":{\"@id\":\"https://docs.llmrouter.app/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.llmrouter.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"LLM Router\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"LLM Router\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/ai-tools/roo-code.md","siteName":"LLM Router","nav":{"global":{"anchors":[{"anchor":"llms.txt","icon":"book-open-cover","href":"https://docs.llmrouter.app/llms.txt"}]},"tabs":[{"tab":"Guides","groups":[{"group":"Getting started","pages":[{"title":"Introduction","href":""},{"title":"Provider Fallbacks","href":"/provider-fallbacks"},{"title":"Smart Routing","href":"/smart-routing"},{"title":"Chat Optimization","href":"/chat-optimization"},{"title":"Tools Optimization","href":"/tool-optimization"},{"title":"Skills","href":"/skills"},{"title":"Zero-Trust Data Redaction","href":"/redact"},{"title":"Zero Data Retention (ZDR)","href":"/zdr"},{"title":"Planning","href":"/planning"}]},{"group":"SDKs","pages":[{"title":"OpenAI","href":"/sdk/openai"},{"title":"Anthropic SDK","href":"/sdk/anthropic"},{"title":"Vercel AI SDK","href":"/sdk/vercel-ai-sdk"},{"title":"LiteLLM","href":"/sdk/litellm"}]},{"group":"AI tools","pages":[{"title":"Cursor","href":"/ai-tools/cursor"},{"title":"OpenAI Codex CLI","href":"/ai-tools/codex"},{"title":"OpenClaw (CLI)","href":"/ai-tools/openclaw"},{"title":"Claude Code","href":"/ai-tools/claude-code"},{"title":"Blackbox AI (CLI)","href":"/ai-tools/blackbox"},{"title":"Cline","href":"/ai-tools/cline"},{"title":"OpenCode","description":"Configure OpenCode, the powerful terminal AI coding assistant, to work with LLM Router for intelligent routing, Skills, Zero Data Retention, and cost optimization.","href":"/ai-tools/opencode"},{"title":"Roo Code (VS Code)","href":"/ai-tools/roo-code"},{"title":"TRAE","description":"Configure TRAE IDE to use LLM Router for intelligent routing, Skills, Zero Data Retention, and optimized AI-assisted coding.","href":"/ai-tools/trae"},{"title":"Kilo Code","href":"/ai-tools/kilo"},{"title":"Factory Droid","href":"/ai-tools/droid"},{"title":"Crush (CLI/TUI Agent)","href":"/ai-tools/crush"},{"title":"Goose","href":"/ai-tools/goose"},{"title":"Eigent (Desktop Agent)","href":"/ai-tools/eigent"},{"title":"Superset","href":"/ai-tools/superset"},{"title":"LibreChat","href":"/ai-tools/libre-chat"},{"title":"Chatbox (Desktop)","href":"/ai-tools/chatbox"},{"title":"Open WebUI","href":"/ai-tools/openwebui"}]}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/api-reference/introduction"}]},{"tab":"Blog","pages":[{"title":"Blog","href":"/blog/intro-to-llm-router"}]}]},"basePath":"","title":"Roo Code (VS Code) - LLM Router","deploymentId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","buildId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","dynamics":[],"chunks":[]}