[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"docs-nav-en":3,"docs-en-coding-plan\u002Fguide\u002Fcodebuddy":180},[4,26,43,105,155,172,176],{"title":5,"path":6,"stem":7,"children":8,"page":25},"Getting Started","\u002Fgetting-started","1.getting-started",[9,13,17,21],{"title":10,"path":11,"stem":12},"Your First SilvaMux API Call","\u002Fgetting-started\u002Fquick-start","1.getting-started\u002F1.quick-start",{"title":14,"path":15,"stem":16},"Model Selection","\u002Fgetting-started\u002Fmodel-selection","1.getting-started\u002F2.model-selection",{"title":18,"path":19,"stem":20},"Rate Limits","\u002Fgetting-started\u002Frate-limits","1.getting-started\u002F3.rate-limits",{"title":22,"path":23,"stem":24},"FAQ","\u002Fgetting-started\u002Ffaq","1.getting-started\u002F4.faq",false,{"title":27,"path":28,"stem":29,"children":30,"page":25},"Billing","\u002Fbilling","2.billing",[31,35,39],{"title":32,"path":33,"stem":34},"Billing Overview","\u002Fbilling\u002Foverview","2.billing\u002F1.overview",{"title":36,"path":37,"stem":38},"Online Top-up","\u002Fbilling\u002Frecharge","2.billing\u002F2.recharge",{"title":40,"path":41,"stem":42},"Bills, Usage & Exports","\u002Fbilling\u002Fusage-export","2.billing\u002F3.usage-export",{"title":44,"path":45,"stem":46,"children":47,"page":25},"Coding Plan","\u002Fcoding-plan","3.coding-plan",[48,52,56,60,67,102],{"title":49,"path":50,"stem":51},"Coding Plan Overview","\u002Fcoding-plan\u002Foverview","3.coding-plan\u002F1.overview",{"title":53,"path":54,"stem":55},"Quick Start","\u002Fcoding-plan\u002Fquick-start","3.coding-plan\u002F2.quick-start",{"title":57,"path":58,"stem":59},"Usage Notes","\u002Fcoding-plan\u002Fusage-notes","3.coding-plan\u002F3.usage-notes",{"title":61,"path":62,"stem":63,"children":64},"Personal","\u002Fcoding-plan\u002Fpersonal","3.coding-plan\u002F4.personal\u002Findex",[65],{"title":66,"path":62,"stem":63},"Pricing & Benefits",{"title":68,"path":69,"stem":70,"children":71,"page":-1},"Developer Guide","\u002Fcoding-plan\u002Fguide","3.coding-plan\u002F5.guide\u002Findex",[72,74,78,82,86,90,94,98],{"title":73,"path":69,"stem":70},"Endpoints & Protocols",{"title":75,"path":76,"stem":77},"Claude Code","\u002Fcoding-plan\u002Fguide\u002Fclaude-code","3.coding-plan\u002F5.guide\u002F1.claude-code",{"title":79,"path":80,"stem":81},"OpenCode","\u002Fcoding-plan\u002Fguide\u002Fopencode","3.coding-plan\u002F5.guide\u002F2.opencode",{"title":83,"path":84,"stem":85},"Cursor","\u002Fcoding-plan\u002Fguide\u002Fcursor","3.coding-plan\u002F5.guide\u002F3.cursor",{"title":87,"path":88,"stem":89},"Codex","\u002Fcoding-plan\u002Fguide\u002Fcodex","3.coding-plan\u002F5.guide\u002F4.codex",{"title":91,"path":92,"stem":93},"ZCode","\u002Fcoding-plan\u002Fguide\u002Fzcode","3.coding-plan\u002F5.guide\u002F5.zcode",{"title":95,"path":96,"stem":97},"TRAE","\u002Fcoding-plan\u002Fguide\u002Ftrae","3.coding-plan\u002F5.guide\u002F6.trae",{"title":99,"path":100,"stem":101},"CodeBuddy","\u002Fcoding-plan\u002Fguide\u002Fcodebuddy","3.coding-plan\u002F5.guide\u002F7.codebuddy",{"title":22,"path":103,"stem":104},"\u002Fcoding-plan\u002Ffaq","3.coding-plan\u002F6.faq",{"title":106,"path":107,"stem":108,"children":109,"page":25},"Model APIs","\u002Fmodels","4.models",[110,143],{"title":111,"path":112,"stem":113,"children":114,"page":25},"Text Generation Model API","\u002Fmodels\u002Fchat","4.models\u002F1.chat",[115,119,123,127,131,135,139],{"title":116,"path":117,"stem":118},"Overview","\u002Fmodels\u002Fchat\u002Foverview","4.models\u002F1.chat\u002F1.overview",{"title":120,"path":121,"stem":122},"OpenAI Compatible API","\u002Fmodels\u002Fchat\u002Fopenai","4.models\u002F1.chat\u002F2.openai",{"title":124,"path":125,"stem":126},"Anthropic Compatible","\u002Fmodels\u002Fchat\u002Fanthropic","4.models\u002F1.chat\u002F3.anthropic",{"title":128,"path":129,"stem":130},"Volcengine Compatible","\u002Fmodels\u002Fchat\u002Fvolcengine","4.models\u002F1.chat\u002F4.volcengine",{"title":132,"path":133,"stem":134},"Zhipu Compatible","\u002Fmodels\u002Fchat\u002Fzhipu","4.models\u002F1.chat\u002F5.zhipu",{"title":136,"path":137,"stem":138},"SilvaMux Unified Entry","\u002Fmodels\u002Fchat\u002Funified","4.models\u002F1.chat\u002F6.unified",{"title":140,"path":141,"stem":142},"Multimodal Input","\u002Fmodels\u002Fchat\u002Fmultimodal","4.models\u002F1.chat\u002F7.multimodal",{"title":144,"path":145,"stem":146,"children":147,"page":25},"Image Generation Model API","\u002Fmodels\u002Fimages","4.models\u002F2.images",[148,151],{"title":116,"path":149,"stem":150},"\u002Fmodels\u002Fimages\u002Foverview","4.models\u002F2.images\u002F1.overview",{"title":152,"path":153,"stem":154},"Image Generation API","\u002Fmodels\u002Fimages\u002Fgeneration","4.models\u002F2.images\u002F2.generation",{"title":156,"path":157,"stem":158,"children":159,"page":25},"Usage & Balance","\u002Fusage-and-balance","5.usage-and-balance",[160,164,168],{"title":161,"path":162,"stem":163},"Query Balance","\u002Fusage-and-balance\u002Fbalance","5.usage-and-balance\u002F1.balance",{"title":165,"path":166,"stem":167},"Query Usage","\u002Fusage-and-balance\u002Fusage","5.usage-and-balance\u002F2.usage",{"title":169,"path":170,"stem":171},"Query Request Usage","\u002Fusage-and-balance\u002Frequest-usage","5.usage-and-balance\u002F3.request-usage",{"title":173,"path":174,"stem":175},"Error Codes","\u002Ferrors","6.errors",{"title":177,"path":178,"stem":179},"Getting Started with SilvaMux","\u002F","index",{"id":181,"title":99,"body":182,"description":718,"extension":719,"meta":720,"navigation":721,"path":100,"rawbody":722,"requiredFlags":723,"seo":724,"stem":101,"__hash__":725},"docs_en\u002F3.coding-plan\u002F5.guide\u002F7.codebuddy.md",{"type":183,"value":184,"toc":706},"minimark",[185,189,193,198,244,270,277,281,291,295,306,316,460,465,469,479,630,639,643,650,653,658,669,673,691,695,702],[186,187,99],"h1",{"id":188},"codebuddy",[190,191,192],"p",{},"CodeBuddy is an AI-based, full-cycle intelligent coding tool and can connect to SilvaMux Coding Plan.",[194,195,197],"h2",{"id":196},"before-you-start","Before You Start",[199,200,201,215,230],"ol",{},[202,203,204,208,209,214],"li",{},[205,206,207],"strong",{},"Purchase a subscription",": buy a Coding Plan Personal subscription (Lite \u002F Pro \u002F Max with monthly, quarterly, or yearly billing) on the ",[210,211,213],"a",{"href":212},"\u002Fen\u002Fsubscription","subscription page","; it takes effect immediately after payment.",[202,216,217,220,221,224,225,229],{},[205,218,219],{},"Create a subscription API key",": in the console, go to ",[205,222,223],{},"Coding Plan → API Keys",", create a key, and copy the full value starting with ",[226,227,228],"code",{},"cp_live_"," right away.",[202,231,232,235,236,239,240,243],{},[205,233,234],{},"Confirm endpoints and protocols",": all tools share the Base URL ",[226,237,238],{},"https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fcoding-plan\u002Fv1",", compatible with both the OpenAI and Anthropic protocols; see ",[210,241,73],{"href":242},"\u002Fen\u002Fdocs\u002Fcoding-plan\u002Fguide"," for endpoint details.",[245,246,248],"alert",{"type":247},"warning",[190,249,250,251,253,254,257,258,261,262,265,266,269],{},"A ",[226,252,228],{}," key can only call the ",[226,255,256],{},"\u002Fapi\u002Fcoding-plan\u002Fv1"," subscription endpoints; using it on regular endpoints (such as ",[226,259,260],{},"\u002Fapi\u002Fv1\u002Fchat\u002Fcompletions",") returns 403 ",[226,263,264],{},"CODING_PLAN_KEY_NOT_ALLOWED","; conversely, a regular ",[226,267,268],{},"sk_live_"," key cannot call the subscription endpoints.",[190,271,272,273,276],{},"For the full flow of purchasing, key creation, and a verification call, see ",[210,274,53],{"href":275},"\u002Fen\u002Fdocs\u002Fcoding-plan\u002Fquick-start",".",[194,278,280],{"id":279},"install-and-sign-in-to-codebuddy","Install and Sign In to CodeBuddy",[190,282,283,284,290],{},"Download and install the version for your operating system from the ",[210,285,289],{"href":286,"rel":287},"https:\u002F\u002Fwww.codebuddy.cn\u002F",[288],"nofollow","CodeBuddy website",", then sign in as prompted.",[194,292,294],{"id":293},"configure-models","Configure Models",[190,296,297,298,301,302,305],{},"CodeBuddy customizes the model list and the model dropdown via ",[226,299,300],{},"models.json",". Configure it at the user level: ",[226,303,304],{},"~\u002F.codebuddy\u002Fmodels.json"," (a global configuration that applies to all projects).",[190,307,308,309,312,313,315],{},"Add the following, replacing ",[226,310,311],{},"YOUR_API_KEY"," with your ",[226,314,228],{}," key:",[317,318,323],"pre",{"className":319,"code":320,"language":321,"meta":322,"style":322},"language-json shiki shiki-themes github-light github-dark","{\n  \"models\": [\n    {\n      \"id\": \"deepseek-v4-pro\",\n      \"name\": \"SilvaMux Coding Plan\",\n      \"vendor\": \"silvamux\",\n      \"apiKey\": \"YOUR_API_KEY\",\n      \"url\": \"https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fcoding-plan\u002Fv1\",\n      \"supportsToolCall\": true,\n      \"supportsReasoning\": true\n    }\n  ]\n}\n","json","",[226,324,325,334,344,350,366,379,392,405,418,431,442,448,454],{"__ignoreMap":322},[326,327,330],"span",{"class":328,"line":329},"line",1,[326,331,333],{"class":332},"sVt8B","{\n",[326,335,337,341],{"class":328,"line":336},2,[326,338,340],{"class":339},"sj4cs","  \"models\"",[326,342,343],{"class":332},": [\n",[326,345,347],{"class":328,"line":346},3,[326,348,349],{"class":332},"    {\n",[326,351,353,356,359,363],{"class":328,"line":352},4,[326,354,355],{"class":339},"      \"id\"",[326,357,358],{"class":332},": ",[326,360,362],{"class":361},"sZZnC","\"deepseek-v4-pro\"",[326,364,365],{"class":332},",\n",[326,367,369,372,374,377],{"class":328,"line":368},5,[326,370,371],{"class":339},"      \"name\"",[326,373,358],{"class":332},[326,375,376],{"class":361},"\"SilvaMux Coding Plan\"",[326,378,365],{"class":332},[326,380,382,385,387,390],{"class":328,"line":381},6,[326,383,384],{"class":339},"      \"vendor\"",[326,386,358],{"class":332},[326,388,389],{"class":361},"\"silvamux\"",[326,391,365],{"class":332},[326,393,395,398,400,403],{"class":328,"line":394},7,[326,396,397],{"class":339},"      \"apiKey\"",[326,399,358],{"class":332},[326,401,402],{"class":361},"\"YOUR_API_KEY\"",[326,404,365],{"class":332},[326,406,408,411,413,416],{"class":328,"line":407},8,[326,409,410],{"class":339},"      \"url\"",[326,412,358],{"class":332},[326,414,415],{"class":361},"\"https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fcoding-plan\u002Fv1\"",[326,417,365],{"class":332},[326,419,421,424,426,429],{"class":328,"line":420},9,[326,422,423],{"class":339},"      \"supportsToolCall\"",[326,425,358],{"class":332},[326,427,428],{"class":339},"true",[326,430,365],{"class":332},[326,432,434,437,439],{"class":328,"line":433},10,[326,435,436],{"class":339},"      \"supportsReasoning\"",[326,438,358],{"class":332},[326,440,441],{"class":339},"true\n",[326,443,445],{"class":328,"line":444},11,[326,446,447],{"class":332},"    }\n",[326,449,451],{"class":328,"line":450},12,[326,452,453],{"class":332},"  ]\n",[326,455,457],{"class":328,"line":456},13,[326,458,459],{"class":332},"}\n",[245,461,462],{"type":247},[190,463,464],{},"Keep your API key safe. Do not share it with others or hard-code it in shared repositories.",[194,466,468],{"id":467},"field-reference","Field Reference",[190,470,471,474,475,478],{},[205,472,473],{},"models"," (",[226,476,477],{},"Array\u003CLanguageModel>",") defines the custom model list; you can add new models or override built-in model configurations:",[480,481,482,501],"table",{},[483,484,485],"thead",{},[486,487,488,492,495,498],"tr",{},[489,490,491],"th",{},"Field",[489,493,494],{},"Type",[489,496,497],{},"Required",[489,499,500],{},"Description",[502,503,504,519,532,544,556,569,581,593,606,618],"tbody",{},[486,505,506,510,513,516],{},[507,508,509],"td",{},"id",[507,511,512],{},"string",[507,514,515],{},"Yes",[507,517,518],{},"Unique model identifier.",[486,520,521,524,526,529],{},[507,522,523],{},"name",[507,525,512],{},[507,527,528],{},"No",[507,530,531],{},"Model display name.",[486,533,534,537,539,541],{},[507,535,536],{},"vendor",[507,538,512],{},[507,540,528],{},[507,542,543],{},"Model vendor.",[486,545,546,549,551,553],{},[507,547,548],{},"apiKey",[507,550,512],{},[507,552,528],{},[507,554,555],{},"API key (the actual key value, not an environment variable name).",[486,557,558,561,564,566],{},[507,559,560],{},"maxInputTokens",[507,562,563],{},"number",[507,565,528],{},[507,567,568],{},"Maximum input tokens.",[486,570,571,574,576,578],{},[507,572,573],{},"maxOutputTokens",[507,575,563],{},[507,577,528],{},[507,579,580],{},"Maximum output tokens.",[486,582,583,586,588,590],{},[507,584,585],{},"url",[507,587,512],{},[507,589,528],{},[507,591,592],{},"API endpoint URL (must be the complete interface path).",[486,594,595,598,601,603],{},[507,596,597],{},"supportsToolCall",[507,599,600],{},"boolean",[507,602,528],{},[507,604,605],{},"Whether tool calls are supported.",[486,607,608,611,613,615],{},[507,609,610],{},"supportsImages",[507,612,600],{},[507,614,528],{},[507,616,617],{},"Whether image input is supported.",[486,619,620,623,625,627],{},[507,621,622],{},"supportsReasoning",[507,624,600],{},[507,626,528],{},[507,628,629],{},"Whether reasoning mode is supported.",[190,631,632,474,635,638],{},[205,633,634],{},"availableModels",[226,636,637],{},"Array\u003Cstring>",") controls which models appear in the model dropdown: when unset or empty, all models are shown; once configured, only the listed model IDs appear — both built-in and custom model IDs can be included.",[194,640,642],{"id":641},"start-chatting","Start Chatting",[190,644,645,646,649],{},"Save the configuration, return to CodeBuddy, and select the configured model in the chat box to start. The available models follow ",[226,647,648],{},"GET \u002Fapi\u002Fcoding-plan\u002Fv1\u002Fmodels"," and the Model Plaza.",[194,651,22],{"id":652},"faq",[654,655,657],"h3",{"id":656},"_401-on-calls","401 on calls",[190,659,250,660,662,663,665,666,668],{},[226,661,228],{}," key must be used with ",[226,664,238],{},"; a mismatch returns 401. Make sure you are not using a regular ",[226,667,268],{}," key.",[654,670,672],{"id":671},"the-model-does-not-appear-in-the-dropdown","The model does not appear in the dropdown",[190,674,675,676,678,679,681,682,684,685,687,688,690],{},"Check that ",[226,677,304],{}," is valid JSON and that ",[226,680,585],{}," is ",[226,683,238],{},"; if ",[226,686,634],{}," is configured, make sure the model ",[226,689,509],{}," is listed.",[654,692,694],{"id":693},"_429-on-calls","429 on calls",[190,696,697,698,701],{},"When any subscription quota window is exhausted, calls return 429 ",[226,699,700],{},"QUOTA_EXCEEDED"," (the message identifies 5h \u002F weekly \u002F monthly). Wait for the window to recover, or check remaining quota in the console.",[703,704,705],"style",{},"html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":322,"searchDepth":336,"depth":336,"links":707},[708,709,710,711,712,713],{"id":196,"depth":336,"text":197},{"id":279,"depth":336,"text":280},{"id":293,"depth":336,"text":294},{"id":467,"depth":336,"text":468},{"id":641,"depth":336,"text":642},{"id":652,"depth":336,"text":22,"children":714},[715,716,717],{"id":656,"depth":346,"text":657},{"id":671,"depth":346,"text":672},{"id":693,"depth":346,"text":694},"Use CodeBuddy with SilvaMux Coding Plan.","md",{},true,"---\ntitle: CodeBuddy\ndescription: Use CodeBuddy with SilvaMux Coding Plan.\n---\n\n# CodeBuddy\n\nCodeBuddy is an AI-based, full-cycle intelligent coding tool and can connect to SilvaMux Coding Plan.\n\n## Before You Start\n\n1. **Purchase a subscription**: buy a Coding Plan Personal subscription (Lite \u002F Pro \u002F Max with monthly, quarterly, or yearly billing) on the [subscription page](\u002Fen\u002Fsubscription); it takes effect immediately after payment.\n2. **Create a subscription API key**: in the console, go to **Coding Plan → API Keys**, create a key, and copy the full value starting with `cp_live_` right away.\n3. **Confirm endpoints and protocols**: all tools share the Base URL `https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fcoding-plan\u002Fv1`, compatible with both the OpenAI and Anthropic protocols; see [Endpoints & Protocols](\u002Fen\u002Fdocs\u002Fcoding-plan\u002Fguide) for endpoint details.\n\n::alert{type=\"warning\"}\nA `cp_live_` key can only call the `\u002Fapi\u002Fcoding-plan\u002Fv1` subscription endpoints; using it on regular endpoints (such as `\u002Fapi\u002Fv1\u002Fchat\u002Fcompletions`) returns 403 `CODING_PLAN_KEY_NOT_ALLOWED`; conversely, a regular `sk_live_` key cannot call the subscription endpoints.\n::\n\nFor the full flow of purchasing, key creation, and a verification call, see [Quick Start](\u002Fen\u002Fdocs\u002Fcoding-plan\u002Fquick-start).\n\n## Install and Sign In to CodeBuddy\n\nDownload and install the version for your operating system from the [CodeBuddy website](https:\u002F\u002Fwww.codebuddy.cn\u002F), then sign in as prompted.\n\n## Configure Models\n\nCodeBuddy customizes the model list and the model dropdown via `models.json`. Configure it at the user level: `~\u002F.codebuddy\u002Fmodels.json` (a global configuration that applies to all projects).\n\nAdd the following, replacing `YOUR_API_KEY` with your `cp_live_` key:\n\n```json\n{\n  \"models\": [\n    {\n      \"id\": \"deepseek-v4-pro\",\n      \"name\": \"SilvaMux Coding Plan\",\n      \"vendor\": \"silvamux\",\n      \"apiKey\": \"YOUR_API_KEY\",\n      \"url\": \"https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fcoding-plan\u002Fv1\",\n      \"supportsToolCall\": true,\n      \"supportsReasoning\": true\n    }\n  ]\n}\n```\n\n::alert{type=\"warning\"}\nKeep your API key safe. Do not share it with others or hard-code it in shared repositories.\n::\n\n## Field Reference\n\n**models** (`Array\u003CLanguageModel>`) defines the custom model list; you can add new models or override built-in model configurations:\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| id | string | Yes | Unique model identifier. |\n| name | string | No | Model display name. |\n| vendor | string | No | Model vendor. |\n| apiKey | string | No | API key (the actual key value, not an environment variable name). |\n| maxInputTokens | number | No | Maximum input tokens. |\n| maxOutputTokens | number | No | Maximum output tokens. |\n| url | string | No | API endpoint URL (must be the complete interface path). |\n| supportsToolCall | boolean | No | Whether tool calls are supported. |\n| supportsImages | boolean | No | Whether image input is supported. |\n| supportsReasoning | boolean | No | Whether reasoning mode is supported. |\n\n**availableModels** (`Array\u003Cstring>`) controls which models appear in the model dropdown: when unset or empty, all models are shown; once configured, only the listed model IDs appear — both built-in and custom model IDs can be included.\n\n## Start Chatting\n\nSave the configuration, return to CodeBuddy, and select the configured model in the chat box to start. The available models follow `GET \u002Fapi\u002Fcoding-plan\u002Fv1\u002Fmodels` and the Model Plaza.\n\n## FAQ\n\n### 401 on calls\n\nA `cp_live_` key must be used with `https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fcoding-plan\u002Fv1`; a mismatch returns 401. Make sure you are not using a regular `sk_live_` key.\n\n### The model does not appear in the dropdown\n\nCheck that `~\u002F.codebuddy\u002Fmodels.json` is valid JSON and that `url` is `https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fcoding-plan\u002Fv1`; if `availableModels` is configured, make sure the model `id` is listed.\n\n### 429 on calls\n\nWhen any subscription quota window is exhausted, calls return 429 `QUOTA_EXCEEDED` (the message identifies 5h \u002F weekly \u002F monthly). Wait for the window to recover, or check remaining quota in the console.\n",[],{"title":99,"description":718},"5xqqJIE1Qllnz9PX_F-FziCNcQmDRq3-YeEOg6-Eo4U"]