# Safe multi-source policy example. Configure providers/credentials in DSH Models first. quota-router: enabled: true matchCase: false transientFailureThreshold: 2 cooldownMs: 60000 ledgerLimit: 200 # Paid mappings remain visible but are skipped until this is explicitly true. allowPaidFallback: false sources: - id: opencode-go provider: opencode-go tier: subscription priority: 1 autoEligible: true - id: token-share provider: token-share tier: free priority: 2 autoEligible: true - id: starchasing provider: starchasing tier: paid priority: 3 autoEligible: true - id: deepseek provider: deepseek tier: paid priority: 4 autoEligible: false profiles: - id: coding keywords: ["写代码", "修复", "bug", "fix", "code"] modelBySource: opencode-go: mimo-v2.5 token-share: gpt-5.6-luna starchasing: gpt-5.6-terra - id: hard-coding keywords: ["死锁", "并发", "性能优化", "deadlock", "concurrency"] modelBySource: opencode-go: mimo-v2.5 token-share: gpt-5.6-terra starchasing: gpt-5.6-terra - id: planning keywords: ["规划", "架构", "plan", "architecture"] modelBySource: opencode-go: { model: deepseek-v4-flash, reasoningEffort: high } token-share: gpt-5.6-luna - id: writing keywords: ["文档", "教程", "document", "tutorial"] modelBySource: opencode-go: deepseek-v4-flash token-share: gpt-5.6-luna - id: deep-thinking keywords: ["深度思考", "复杂推理", "hard reasoning"] modelBySource: token-share: gpt-5.6-terra