continue-custom/extensions/vscode
1bcMax becda53a17
feat: add ClawRouter as a provider for cost-optimized model routing (#11751)
* feat: add ClawRouter as a provider for cost-optimized model routing

ClawRouter is an open-source LLM router that automatically selects the
cheapest capable model for each request based on prompt complexity,
providing 78-96% cost savings on blended inference costs.

Changes:
- Add ClawRouterApi class extending OpenAI adapter
- Add 'clawrouter' provider to the type system
- Add ClawRouter models (auto, free, eco)
- Add ClawRouter provider config with UI setup
- Add ClawRouter logo
- Add documentation (clawrouter.mdx)

Closes #10843

* docs: enhance ClawRouter documentation

- Add ClawRouter to providers overview
- Expand documentation with:
  - Model capabilities configuration
  - Multiple roles setup
  - Troubleshooting section
  - Cost monitoring
  - Comparison with OpenRouter
  - Complexity dimensions explanation

* feat: add ClawRouter to core/llm/llms

- Add ClawRouter.ts extending OpenAI base class
- Register ClawRouter in llms/index.ts

* feat: add User-Agent headers for ClawRouter integration tracking

- Add 'User-Agent: Continue/IDE' header to identify Continue requests
- Add 'X-Continue-Provider: clawrouter' header for routing analytics
- Enhanced documentation with features list

This helps ClawRouter optimize routing decisions based on integration
source and enables better analytics for the Continue community.

* feat: complete ClawRouter integration with full provider support

- Add clawrouter to PROVIDER_HANDLES_TEMPLATING (autodetect.ts)
- Add clawrouter to PROVIDER_SUPPORTS_IMAGES (autodetect.ts)
- Add clawrouter tool support function (toolSupport.ts)
- Add supportsReasoningField and supportsReasoningDetailsField
- Add promptTemplates with osModelsEditPrompt
- Match OpenRouter implementation patterns

* feat: add ClawRouter to VS Code schema, docs nav, and AI SDK

- Add clawrouter to VS Code config_schema.json provider enum
- Add ClawRouter description in config_schema.json
- Add clawrouter to docs.json navigation (top-level providers)
- Add clawrouter to AI SDK PROVIDER_MAP

* docs: add wallet setup and x402 payment documentation

- Add Wallet & Payment Setup section to clawrouter.mdx
- Document payment tiers (free/eco/auto)
- Add wallet funding instructions (Solana/Base USDC)
- Add spend control configuration
- Update VS Code schema description with wallet info
- Update provider longDescription with payment options

* feat: add premium tier and enhanced ClawRouter features

- Add blockrun/premium routing profile (mission-critical tasks)
- Add dual-chain wallet support docs (Base EVM + Solana)
- Add model exclusion documentation
- Update routing profiles table with savings percentages
- Update comparison table with auth/payment differences
- Total 44+ models, 4 routing tiers

* test: add ClawRouter unit tests

- Add ClawRouter.vitest.ts (core/llm/llms)
  - Provider name verification
  - Default options validation
  - Reasoning field support
  - User-Agent header verification
  - Routing profiles acceptance

- Add ClawRouter.test.ts (openai-adapters)
  - Default apiBase
  - Custom apiBase override
  - Continue headers
  - OpenAI standard headers

- Add clawrouter tests to toolSupport.test.ts
  - blockrun/* routing profiles
  - Tool-supporting model patterns

* docs: add routing profile switching and enhanced error handling docs

- Add 'Switching Between Routing Profiles' section with full examples
- Add /model command tip for quick switching
- Add 'Error Handling' section comparing Continue vs ClawRouter
- Document automatic error recovery (429, 402, 500+, timeout)
- Add response header documentation for diagnostics
- Add AI-powered doctor command for troubleshooting

* fix: address PR review feedback - move docs to /more, resize logo, add provider constants, fix docs example

* fix: replace clawrouter logo with higher-res brand kit version (128x128)
2026-03-26 10:26:12 -07:00
..
e2e chore: sonnet 4.5 preference 2025-12-02 12:35:27 -08:00
media delete old gifs 2025-08-06 16:53:57 -07:00
models fix: formatting 2025-06-02 13:51:36 -07:00
scripts fix: ensure cross-target LanceDB binaries are correctly copied (#9100) 2025-12-10 10:39:42 -08:00
src fix: fix listener leaks and redundant file read in autocomplete (#11863) 2026-03-25 21:04:20 -07:00
tag-qry
textmate-syntaxes npx prettier --check "extensions/vscode/**/*.{js,jsx,ts,tsx,json,css,md 2025-05-25 18:38:44 -07:00
tree-sitter fix: make tree-sitter lookup in .js and .ts files pick up only last preceding comment before code block 2025-12-06 09:42:53 -05:00
.continueignore
.eslintrc.json show plugin working 2025-06-13 22:38:04 +05:30
.gitignore parallel node sqlite and esbuild downloads 2025-06-06 20:39:03 +05:30
.npmrc
.vscodeignore chore(vscode): stop ignoring all .exe files in .vscodeignore 2025-10-01 05:32:44 +02:00
config_schema.json feat: add ClawRouter as a provider for cost-optimized model routing (#11751) 2026-03-26 10:26:12 -07:00
continue_tutorial.py docs: features to ide extensions (#8219) 2025-10-13 18:43:47 -04:00
CONTRIBUTING.md remove note 2025-05-10 18:43:02 -07:00
entitlements.plist fix: include access to the Documents folder 2024-12-05 10:29:33 -08:00
LICENSE.txt
package-lock.json fix: don't skip installs by default and sync lock file (#11837) 2026-03-25 15:43:42 -07:00
package.json fix: don't skip installs by default and sync lock file (#11837) 2026-03-25 15:43:42 -07:00
README.md fix: update extensions readme docs urls (#10776) 2026-03-09 23:58:06 -07:00
rules.md feat: rebrand assistants as agents (#7227) 2025-08-18 16:25:30 -07:00
settings.json test: set up e2e tests for gui 2024-12-04 14:51:40 -08:00
tsconfig.e2e.json test: update e2e tests 2024-12-04 16:28:10 -08:00
tsconfig.json reinstate mocha tests 2025-06-17 14:57:47 -07:00
vitest.config.ts feat: vitest 2025-06-12 15:51:28 -07:00
vsc-extension-quickstart.md Use schema for the configuration JSON schema itself 2024-12-07 15:04:22 +01:00

Continue logo

Continue

VS Code Agent

Agent to work on development tasks together with AI

agent

VS Code Chat

Chat to ask general questions and clarify code sections

chat

VS Code Edit

Edit to modify a code section without leaving your current file

edit

VS Code Autocomplete

Autocomplete to receive inline code suggestions as you type

autocomplete

License

Apache 2.0 © 2023-2025 Continue Dev, Inc.