mirror of
https://github.com/musistudio/claude-code-router.git
synced 2026-09-01 14:52:19 +08:00
78 lines
2.4 KiB
JSON
78 lines
2.4 KiB
JSON
{
|
|
"proxy": {
|
|
"enabled": true,
|
|
"host": "127.0.0.1",
|
|
"mode": "transparent",
|
|
"port": 7890,
|
|
"targets": []
|
|
},
|
|
"plugins": [
|
|
{
|
|
"id": "claude-design",
|
|
"enabled": true,
|
|
"module": "./plugins/claude-design-plugin.cjs",
|
|
"config": {
|
|
"host": "claude.ai",
|
|
"fallbackHosts": ["claude.com", "www.anthropic.com", "anthropic.com"],
|
|
"paths": [
|
|
"/",
|
|
"/_bootstrap",
|
|
"/api/bootstrap",
|
|
"/design/anthropic.omelette.api.v1alpha.OmeletteService",
|
|
"/design",
|
|
"/v1/design",
|
|
"/api",
|
|
"/organizations",
|
|
"/cdn-cgi",
|
|
"/login",
|
|
"/auth",
|
|
"/oauth"
|
|
],
|
|
"assetProxy": true,
|
|
"assetAutoUpdate": true,
|
|
"autoAnswerQuestions": true,
|
|
"assetDir": "/absolute/path/to/claude-design-assets",
|
|
// Optional. Leave unset to auto-discover the current hashed entry assets.
|
|
// "scriptPath": "/design/assets/index-<hash>.js",
|
|
// "stylePath": "/design/assets/index-<hash>.css",
|
|
"upstreamOrigin": "https://claude.ai",
|
|
// Optional. Missing lazy-loaded assets are fetched from these origins in order.
|
|
"upstreamOrigins": ["https://claude.ai"],
|
|
"gatewayUrl": "http://127.0.0.1:3456",
|
|
// Optional. Required only when CCR has API keys configured.
|
|
"gatewayApiKey": "",
|
|
// Optional. Also configurable from the Extensions page. Targets use CCR provider/model selectors.
|
|
"routing": {
|
|
"enabled": true,
|
|
"default": "anthropic-main,claude-sonnet-4-20250514",
|
|
"rules": [
|
|
{
|
|
"id": "design-opus",
|
|
"name": "Claude Design Opus",
|
|
"type": "model",
|
|
"model": "claude-opus-4-8",
|
|
"target": "openrouter,anthropic/claude-opus-4.1",
|
|
"enabled": true
|
|
},
|
|
{
|
|
"id": "design-long-context",
|
|
"name": "Long design context",
|
|
"type": "long-context",
|
|
"threshold": 180000,
|
|
"target": "anthropic-main,claude-sonnet-4-20250514",
|
|
"enabled": true
|
|
}
|
|
]
|
|
},
|
|
"me": {
|
|
"accountUuid": "12345678",
|
|
"organizationUuid": "87654321",
|
|
"email": "aa@example.com",
|
|
"displayName": "aa",
|
|
"orgName": "aa's Organization"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|