Local fork of continuedev/continue for auto-approve and full-access mode experiments
Find a file
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
.claude/skills/docs-style docs: add docs-style skill and TUI mode sample page 2026-02-13 09:25:35 -08:00
.continue feat: add 5 agent checks derived from codebase history (#10401) 2026-03-09 10:51:44 -07:00
.github fix: handle multiple zip files in JetBrains release artifact step (#11873) 2026-03-25 20:31:17 -07:00
.husky feat: .continue/environment.json (#7983) 2025-09-25 16:30:56 -07:00
.idea fix: migrate to built-in inline completion API from 2024.1 (#6947) 2025-08-20 09:54:40 -07:00
.vscode fix: don't skip installs by default and sync lock file (#11837) 2026-03-25 15:43:42 -07:00
actions Replace community Discord links with GitHub Discussions 2026-01-30 17:19:56 -08:00
binary Update Node.js LTS to v20.20.1 (#11506) 2026-03-24 11:36:07 -07:00
core feat: add ClawRouter as a provider for cost-optimized model routing (#11751) 2026-03-26 10:26:12 -07:00
docs feat: add ClawRouter as a provider for cost-optimized model routing (#11751) 2026-03-26 10:26:12 -07:00
eval Preview (#1750) 2024-07-28 23:16:18 -07:00
extensions feat: add ClawRouter as a provider for cost-optimized model routing (#11751) 2026-03-26 10:26:12 -07:00
gui feat: add ClawRouter as a provider for cost-optimized model routing (#11751) 2026-03-26 10:26:12 -07:00
manual-testing-sandbox chore(deps): bump django from 4.2.22 to 4.2.27 in /manual-testing-sandbox (#8992) 2025-12-03 09:49:19 -08:00
media Update banner image with better proportions 2026-02-17 17:10:21 -08:00
packages feat: add ClawRouter as a provider for cost-optimized model routing (#11751) 2026-03-26 10:26:12 -07:00
scripts Add script to analyze file hotspots from git history (#8591) 2025-11-04 11:55:36 -08:00
skills Fix defunct hub.continue.dev URLs to point to continue.dev 2026-02-02 01:56:19 -08:00
sync merkel 2024-10-23 10:29:15 +02:00
.continueignore ignore .continue folder 2025-03-08 16:18:51 -08:00
.eslintrc.shared.json add no misused promises rule 2025-06-13 22:09:32 +05:30
.gitignore .continue/agents 2026-02-05 11:07:47 -08:00
.node-version Update Node.js LTS to v20.20.1 (#11506) 2026-03-24 11:36:07 -07:00
.nvmrc Update Node.js LTS to v20.20.1 (#11506) 2026-03-24 11:36:07 -07:00
.prettierignore feat: husky for prettier (#7979) 2025-09-25 16:13:08 -07:00
.prettierrc remove border above input box 2024-11-05 08:18:31 -08:00
CLA.md fix: Return the CLA (#6585) 2025-07-16 02:01:42 -07:00
CODE_OF_CONDUCT.md npx prettier --check "**/*.{js,jsx,ts,tsx,json,css,md}" --ignore-path . 2025-05-25 18:41:32 -07:00
CONTRIBUTING.md Update Node.js LTS to v20.20.1 (#11506) 2026-03-24 11:36:07 -07:00
LICENSE Create LICENSE 2023-06-03 09:29:19 +02:00
package-lock.json chore(deps): bump picomatch from 2.3.1 to 2.3.2 (#11842) 2026-03-25 16:02:07 -07:00
package.json add support for deepseek 2026-02-26 12:29:50 +05:30
README.md Move banner below tagline and remove old Continue logo 2026-02-17 17:02:45 -08:00
SECURITY.md Create SECURITY.md 2025-02-01 01:01:08 -08:00
tsconfig.json .continuerules 2024-12-15 09:30:56 -08:00
worktree-config.yaml Add worktree copy configuration and ignore copy status files 2025-12-10 20:01:59 -08:00

Continue

Source-controlled AI checks, enforceable in CI

Banner

Getting started

Paste this into your coding agent of choice:

Help me write checks for this codebase: https://continue.dev/walkthrough

How it works

Continue runs agents on every pull request as GitHub status checks. Each agent is a markdown file in your repo at .continue/checks/. Green if the code looks good, red with a suggested diff if not. Here is an example that performs a security review:

---
name: Security Review
description: Review PR for basic security vulnerabilities
---
Review this PR and check that:
  - No secrets or API keys are hardcoded
  - All new API endpoints have input validation
  - Error responses use the standard error format

Install CLI

AI checks are powered by the open-source Continue CLI (cn).

macOS / Linux:

curl -fsSL https://raw.githubusercontent.com/continuedev/continue/main/extensions/cli/scripts/install.sh | bash

Windows (PowerShell):

irm https://raw.githubusercontent.com/continuedev/continue/main/extensions/cli/scripts/install.ps1 | iex

Or with npm (requires Node.js 20+):

npm i -g @continuedev/cli

Then run:

cn

Looking for the VS Code extension? See here.

Contributing

Read the contributing guide, and join the GitHub Discussions.

License

Apache 2.0 © 2023-2024 Continue Dev, Inc.