continue-custom/core
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
..
.vscode
__mocks__/@continuedev/fetch llm pre-fetch tests: nested dependency mocks for continue fetch 2025-06-06 17:39:28 -07:00
autocomplete fix: fix listener leaks and redundant file read in autocomplete (#11863) 2026-03-25 21:04:20 -07:00
codeRenderer feat: next edit char-level diff (#7776) 2025-09-19 00:25:33 -07:00
commands chore: mcp 1.24.0 (#8974) 2025-12-04 12:58:28 -08:00
config fix: allow correcting API key after entering an invalid one for xAI/Gemini (#11854) 2026-03-25 21:32:35 -07:00
context fix: skip remote URIs when resolving MCP server cwd (#10844) 2026-03-20 17:12:29 -07:00
continueServer remove legacy config.js 2025-01-24 20:45:07 -08:00
control-plane feat: add Tensorix as an LLM provider (#11184) 2026-03-19 16:29:45 -07:00
data fix types 2025-08-13 22:12:33 -07:00
deploy clean up URLs 2024-10-15 12:00:05 -07:00
diff refactor: remove unused code 2025-07-28 17:10:45 -07:00
edit fix: preserve indentation when applying code edits to Python files (#11289) 2026-03-24 13:12:00 -07:00
indexing Test fix. 2025-12-11 03:16:59 +07:00
llm feat: add ClawRouter as a provider for cost-optimized model routing (#11751) 2026-03-26 10:26:12 -07:00
nextEdit fix(openrouter): Gemini 3 tool support, suffix stripping, thought_signature, autocomplete endpoint (#11856) 2026-03-25 20:31:53 -07:00
promptFiles fix: show md rules and prompts in respective sections (#8178) 2025-10-27 15:25:03 -07:00
protocol feat: limited MCP App support (#10132) 2026-02-05 19:07:44 -08:00
tag-qry
test Fix: Refactor dependency injection for settings and clients 2025-09-03 09:15:47 -04:00
tools fix: remove inline backtick fences from tool instruction prose (#11869) 2026-03-25 18:56:15 -07:00
util feat: support gemini through ai sdk (#10671) 2026-03-24 17:14:19 -07:00
utils prettier and code cleanup 2025-07-13 14:47:54 -07:00
vendor Update Node.js LTS to v20.20.1 (#11506) 2026-03-24 11:36:07 -07:00
.eslintrc.json chore: ignore max-lines-per-function in tests (#6825) 2025-07-28 09:04:13 -07:00
.gitignore feat: implement Sentry error tracking with privacy-first anonymization (#6881) 2025-08-14 16:54:21 -07:00
.npmignore
core.ts fix: allow correcting API key after entering an invalid one for xAI/Gemini (#11854) 2026-03-25 21:32:35 -07:00
index.d.ts feat: add useResponsesApi option to opt out of Responses API (#11809) 2026-03-25 16:09:46 -07:00
jest.config.js Reapply "feat: enhance oneper utility and refactor build system for commit SHA versioning" (#6811) 2025-07-28 14:15:49 -07:00
package-lock.json Update Node.js LTS to v20.20.1 (#11506) 2026-03-24 11:36:07 -07:00
package.json Update Node.js LTS to v20.20.1 (#11506) 2026-03-24 11:36:07 -07:00
rules.md new rules 2025-06-20 16:06:03 -07:00
tsconfig.json feat: implement Sentry error tracking with privacy-first anonymization (#6881) 2025-08-14 16:54:21 -07:00
tsconfig.npm.json
vitest.config.ts test only .vitest.ts files 2025-06-17 10:28:02 +05:30