[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"docs-nav-en":3,"docs-en-coding-plan\u002Fguide\u002Fclaude-code":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":75,"body":182,"description":1365,"extension":1366,"meta":1367,"navigation":1368,"path":76,"rawbody":1369,"requiredFlags":1370,"seo":1371,"stem":77,"__hash__":1372},"docs_en\u002F3.coding-plan\u002F5.guide\u002F1.claude-code.md",{"type":183,"value":184,"toc":1339},"minimark",[185,189,193,198,244,270,277,281,286,301,330,333,346,350,359,373,377,380,410,413,434,459,475,595,616,639,642,645,650,667,692,696,709,772,775,779,782,862,869,893,906,977,987,991,996,1014,1029,1033,1047,1051,1165,1174,1178,1181,1185,1200,1204,1219,1222,1226,1229,1262,1266,1278,1282,1289,1293,1335],[186,187,75],"h1",{"id":188},"claude-code",[190,191,192],"p",{},"Claude Code is Anthropic's terminal AI coding assistant 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-claude-code","Install Claude Code",[282,283,285],"h3",{"id":284},"macos-linux","macOS \u002F Linux",[199,287,288,298],{},[202,289,290,291,297],{},"Install or update ",[210,292,296],{"href":293,"rel":294},"https:\u002F\u002Fnodejs.org\u002Fen\u002Fdownload\u002F",[295],"nofollow","Node.js"," (v18.0 or later).",[202,299,300],{},"Run the following command in a terminal to install Claude Code.",[302,303,308],"pre",{"className":304,"code":305,"language":306,"meta":307,"style":307},"language-bash shiki shiki-themes github-light github-dark","npm install -g @anthropic-ai\u002Fclaude-code\n","bash","",[226,309,310],{"__ignoreMap":307},[311,312,315,319,323,327],"span",{"class":313,"line":314},"line",1,[311,316,318],{"class":317},"sScJk","npm",[311,320,322],{"class":321},"sZZnC"," install",[311,324,326],{"class":325},"sj4cs"," -g",[311,328,329],{"class":321}," @anthropic-ai\u002Fclaude-code\n",[190,331,332],{},"Verify the install; a version number means it succeeded.",[302,334,336],{"className":304,"code":335,"language":306,"meta":307,"style":307},"claude --version\n",[226,337,338],{"__ignoreMap":307},[311,339,340,343],{"class":313,"line":314},[311,341,342],{"class":317},"claude",[311,344,345],{"class":325}," --version\n",[282,347,349],{"id":348},"windows","Windows",[190,351,352,353,358],{},"Using Claude Code on Windows requires WSL or ",[210,354,357],{"href":355,"rel":356},"https:\u002F\u002Fgit-scm.com\u002Finstall\u002Fwindows",[295],"Git for Windows",". Then run the following in WSL or Git Bash:",[302,360,361],{"className":304,"code":305,"language":306,"meta":307,"style":307},[226,362,363],{"__ignoreMap":307},[311,364,365,367,369,371],{"class":313,"line":314},[311,366,318],{"class":317},[311,368,322],{"class":321},[311,370,326],{"class":325},[311,372,329],{"class":321},[194,374,376],{"id":375},"configure-credentials","Configure Credentials",[190,378,379],{},"Configure the following in Claude Code:",[381,382,383,391,400],"ul",{},[202,384,385,388,389],{},[226,386,387],{},"ANTHROPIC_BASE_URL",": ",[226,390,238],{},[202,392,393,396,397,399],{},[226,394,395],{},"ANTHROPIC_AUTH_TOKEN",": your ",[226,398,228],{}," subscription key",[202,401,402,405,406,409],{},[226,403,404],{},"ANTHROPIC_MODEL",": a Coding Plan model (for example ",[226,407,408],{},"deepseek-v4-pro",")",[282,411,285],{"id":412},"macos-linux-1",[199,414,415],{},[202,416,417,418,421,422,425,426,429,430,433],{},"Create and open the config file ",[226,419,420],{},"~\u002F.claude\u002Fsettings.json"," (",[226,423,424],{},"~"," is your home directory; create the ",[226,427,428],{},".claude"," directory first with ",[226,431,432],{},"mkdir -p ~\u002F.claude"," if needed).",[302,435,437],{"className":304,"code":436,"language":306,"meta":307,"style":307},"mkdir -p ~\u002F.claude\nnano ~\u002F.claude\u002Fsettings.json\n",[226,438,439,450],{"__ignoreMap":307},[311,440,441,444,447],{"class":313,"line":314},[311,442,443],{"class":317},"mkdir",[311,445,446],{"class":325}," -p",[311,448,449],{"class":321}," ~\u002F.claude\n",[311,451,453,456],{"class":313,"line":452},2,[311,454,455],{"class":317},"nano",[311,457,458],{"class":321}," ~\u002F.claude\u002Fsettings.json\n",[199,460,461],{"start":452},[202,462,463,464,467,468,470,471,474],{},"Add the following, replacing ",[226,465,466],{},"YOUR_API_KEY"," with your ",[226,469,228],{}," key. The available models follow ",[226,472,473],{},"GET \u002Fapi\u002Fcoding-plan\u002Fv1\u002Fmodels"," and the Model Plaza.",[302,476,480],{"className":477,"code":478,"language":479,"meta":307,"style":307},"language-json shiki shiki-themes github-light github-dark","{\n  \"env\": {\n    \"ANTHROPIC_AUTH_TOKEN\": \"YOUR_API_KEY\",\n    \"ANTHROPIC_BASE_URL\": \"https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fcoding-plan\u002Fv1\",\n    \"ANTHROPIC_MODEL\": \"deepseek-v4-pro\",\n    \"ANTHROPIC_DEFAULT_HAIKU_MODEL\": \"deepseek-v4-pro\",\n    \"ANTHROPIC_DEFAULT_SONNET_MODEL\": \"deepseek-v4-pro\",\n    \"ANTHROPIC_DEFAULT_OPUS_MODEL\": \"deepseek-v4-pro\",\n    \"CLAUDE_CODE_SUBAGENT_MODEL\": \"deepseek-v4-pro\"\n  }\n}\n","json",[226,481,482,488,496,510,523,536,548,560,572,583,589],{"__ignoreMap":307},[311,483,484],{"class":313,"line":314},[311,485,487],{"class":486},"sVt8B","{\n",[311,489,490,493],{"class":313,"line":452},[311,491,492],{"class":325},"  \"env\"",[311,494,495],{"class":486},": {\n",[311,497,499,502,504,507],{"class":313,"line":498},3,[311,500,501],{"class":325},"    \"ANTHROPIC_AUTH_TOKEN\"",[311,503,388],{"class":486},[311,505,506],{"class":321},"\"YOUR_API_KEY\"",[311,508,509],{"class":486},",\n",[311,511,513,516,518,521],{"class":313,"line":512},4,[311,514,515],{"class":325},"    \"ANTHROPIC_BASE_URL\"",[311,517,388],{"class":486},[311,519,520],{"class":321},"\"https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fcoding-plan\u002Fv1\"",[311,522,509],{"class":486},[311,524,526,529,531,534],{"class":313,"line":525},5,[311,527,528],{"class":325},"    \"ANTHROPIC_MODEL\"",[311,530,388],{"class":486},[311,532,533],{"class":321},"\"deepseek-v4-pro\"",[311,535,509],{"class":486},[311,537,539,542,544,546],{"class":313,"line":538},6,[311,540,541],{"class":325},"    \"ANTHROPIC_DEFAULT_HAIKU_MODEL\"",[311,543,388],{"class":486},[311,545,533],{"class":321},[311,547,509],{"class":486},[311,549,551,554,556,558],{"class":313,"line":550},7,[311,552,553],{"class":325},"    \"ANTHROPIC_DEFAULT_SONNET_MODEL\"",[311,555,388],{"class":486},[311,557,533],{"class":321},[311,559,509],{"class":486},[311,561,563,566,568,570],{"class":313,"line":562},8,[311,564,565],{"class":325},"    \"ANTHROPIC_DEFAULT_OPUS_MODEL\"",[311,567,388],{"class":486},[311,569,533],{"class":321},[311,571,509],{"class":486},[311,573,575,578,580],{"class":313,"line":574},9,[311,576,577],{"class":325},"    \"CLAUDE_CODE_SUBAGENT_MODEL\"",[311,579,388],{"class":486},[311,581,582],{"class":321},"\"deepseek-v4-pro\"\n",[311,584,586],{"class":313,"line":585},10,[311,587,588],{"class":486},"  }\n",[311,590,592],{"class":313,"line":591},11,[311,593,594],{"class":486},"}\n",[199,596,597],{"start":498},[202,598,599,600,603,604,607,608,611,612,615],{},"Edit or create ",[226,601,602],{},"~\u002F.claude.json"," and set the top-level field ",[226,605,606],{},"hasCompletedOnboarding"," to ",[226,609,610],{},"true"," to avoid the ",[226,613,614],{},"Unable to connect to Anthropic services"," error on startup.",[302,617,619],{"className":477,"code":618,"language":479,"meta":307,"style":307},"{\n  \"hasCompletedOnboarding\": true\n}\n",[226,620,621,625,635],{"__ignoreMap":307},[311,622,623],{"class":313,"line":314},[311,624,487],{"class":486},[311,626,627,630,632],{"class":313,"line":452},[311,628,629],{"class":325},"  \"hasCompletedOnboarding\"",[311,631,388],{"class":486},[311,633,634],{"class":325},"true\n",[311,636,637],{"class":313,"line":498},[311,638,594],{"class":486},[190,640,641],{},"Save and open a new terminal for the changes to take effect.",[282,643,349],{"id":644},"windows-1",[199,646,647],{},[202,648,649],{},"Create the config directory (PowerShell):",[302,651,655],{"className":652,"code":653,"language":654,"meta":307,"style":307},"language-powershell shiki shiki-themes github-light github-dark","mkdir -Force $HOME\\.claude\nnotepad $HOME\\.claude\\settings.json\n","powershell",[226,656,657,662],{"__ignoreMap":307},[311,658,659],{"class":313,"line":314},[311,660,661],{},"mkdir -Force $HOME\\.claude\n",[311,663,664],{"class":313,"line":452},[311,665,666],{},"notepad $HOME\\.claude\\settings.json\n",[199,668,669,683],{"start":452},[202,670,671,672,675,676,679,680,682],{},"In the opened ",[226,673,674],{},"%USERPROFILE%\\.claude\\settings.json",", add the same ",[226,677,678],{},"env"," configuration as macOS\u002FLinux (same Base URL and ",[226,681,228],{}," key).",[202,684,599,685,603,688,607,690,276],{},[226,686,687],{},"%USERPROFILE%\\.claude.json",[226,689,606],{},[226,691,610],{},[194,693,695],{"id":694},"configure-the-context-window","Configure the Context Window",[190,697,698,699,702,703,705,706,708],{},"Claude Code uses a 200K context window by default. If your model supports a longer context, add ",[226,700,701],{},"CLAUDE_CODE_MAX_CONTEXT_TOKENS"," to the ",[226,704,678],{}," in ",[226,707,420],{},":",[302,710,712],{"className":477,"code":711,"language":479,"meta":307,"style":307},"{\n  \"env\": {\n    \"ANTHROPIC_AUTH_TOKEN\": \"YOUR_API_KEY\",\n    \"ANTHROPIC_BASE_URL\": \"https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fcoding-plan\u002Fv1\",\n    \"ANTHROPIC_MODEL\": \"deepseek-v4-pro\",\n    \"CLAUDE_CODE_MAX_CONTEXT_TOKENS\": \"1000000\"\n  }\n}\n",[226,713,714,718,724,734,744,754,764,768],{"__ignoreMap":307},[311,715,716],{"class":313,"line":314},[311,717,487],{"class":486},[311,719,720,722],{"class":313,"line":452},[311,721,492],{"class":325},[311,723,495],{"class":486},[311,725,726,728,730,732],{"class":313,"line":498},[311,727,501],{"class":325},[311,729,388],{"class":486},[311,731,506],{"class":321},[311,733,509],{"class":486},[311,735,736,738,740,742],{"class":313,"line":512},[311,737,515],{"class":325},[311,739,388],{"class":486},[311,741,520],{"class":321},[311,743,509],{"class":486},[311,745,746,748,750,752],{"class":313,"line":525},[311,747,528],{"class":325},[311,749,388],{"class":486},[311,751,533],{"class":321},[311,753,509],{"class":486},[311,755,756,759,761],{"class":313,"line":538},[311,757,758],{"class":325},"    \"CLAUDE_CODE_MAX_CONTEXT_TOKENS\"",[311,760,388],{"class":486},[311,762,763],{"class":321},"\"1000000\"\n",[311,765,766],{"class":313,"line":550},[311,767,588],{"class":486},[311,769,770],{"class":313,"line":562},[311,771,594],{"class":486},[190,773,774],{},"The actual available context length depends on the model.",[194,776,778],{"id":777},"permission-modes","Permission Modes",[190,780,781],{},"Claude Code offers several permission modes that control how tool actions are confirmed:",[783,784,785,798],"table",{},[786,787,788],"thead",{},[789,790,791,795],"tr",{},[792,793,794],"th",{},"Mode",[792,796,797],{},"Behavior",[799,800,801,812,822,832,842,852],"tbody",{},[789,802,803,809],{},[804,805,806],"td",{},[226,807,808],{},"default",[804,810,811],{},"Ask for confirmation on every action.",[789,813,814,819],{},[804,815,816],{},[226,817,818],{},"acceptEdits",[804,820,821],{},"Auto-approve file edits; other actions still ask.",[789,823,824,829],{},[804,825,826],{},[226,827,828],{},"plan",[804,830,831],{},"Read-only planning; no changes.",[789,833,834,839],{},[804,835,836],{},[226,837,838],{},"dontAsk",[804,840,841],{},"Do not ask; actions that need confirmation are denied.",[789,843,844,849],{},[804,845,846],{},[226,847,848],{},"bypassPermissions",[804,850,851],{},"Bypass all permission checks.",[789,853,854,859],{},[804,855,856],{},[226,857,858],{},"delegate",[804,860,861],{},"Delegated mode.",[190,863,864,865,868],{},"Use ",[226,866,867],{},"--permission-mode"," to set the default mode for a session:",[302,870,872],{"className":304,"code":871,"language":306,"meta":307,"style":307},"claude --permission-mode plan\nclaude --permission-mode acceptEdits\n",[226,873,874,884],{"__ignoreMap":307},[311,875,876,878,881],{"class":313,"line":314},[311,877,342],{"class":317},[311,879,880],{"class":325}," --permission-mode",[311,882,883],{"class":321}," plan\n",[311,885,886,888,890],{"class":313,"line":452},[311,887,342],{"class":317},[311,889,880],{"class":325},[311,891,892],{"class":321}," acceptEdits\n",[190,894,895,896,899,900,903,904,708],{},"You can also enter ",[226,897,898],{},"\u002Fpermissions"," in a session to manage pre-approve and pre-deny rules, or configure the ",[226,901,902],{},"permissions"," field in ",[226,905,420],{},[302,907,909],{"className":477,"code":908,"language":479,"meta":307,"style":307},"{\n  \"permissions\": {\n    \"allow\": [\"Bash(git:*)\", \"Read\", \"Edit\"],\n    \"deny\": [\"Bash(rm:*)\"],\n    \"defaultMode\": \"default\"\n  }\n}\n",[226,910,911,915,922,947,959,969,973],{"__ignoreMap":307},[311,912,913],{"class":313,"line":314},[311,914,487],{"class":486},[311,916,917,920],{"class":313,"line":452},[311,918,919],{"class":325},"  \"permissions\"",[311,921,495],{"class":486},[311,923,924,927,930,933,936,939,941,944],{"class":313,"line":498},[311,925,926],{"class":325},"    \"allow\"",[311,928,929],{"class":486},": [",[311,931,932],{"class":321},"\"Bash(git:*)\"",[311,934,935],{"class":486},", ",[311,937,938],{"class":321},"\"Read\"",[311,940,935],{"class":486},[311,942,943],{"class":321},"\"Edit\"",[311,945,946],{"class":486},"],\n",[311,948,949,952,954,957],{"class":313,"line":512},[311,950,951],{"class":325},"    \"deny\"",[311,953,929],{"class":486},[311,955,956],{"class":321},"\"Bash(rm:*)\"",[311,958,946],{"class":486},[311,960,961,964,966],{"class":313,"line":525},[311,962,963],{"class":325},"    \"defaultMode\"",[311,965,388],{"class":486},[311,967,968],{"class":321},"\"default\"\n",[311,970,971],{"class":313,"line":538},[311,972,588],{"class":486},[311,974,975],{"class":313,"line":550},[311,976,594],{"class":486},[190,978,979,982,983,986],{},[226,980,981],{},"allow"," auto-approves matching tool calls and ",[226,984,985],{},"deny"," auto-denies matching tool calls; rules support wildcards.",[194,988,990],{"id":989},"use-claude-code","Use Claude Code",[199,992,993],{},[202,994,995],{},"Open a terminal, go to your project directory, and start Claude Code.",[302,997,999],{"className":304,"code":998,"language":306,"meta":307,"style":307},"cd path\u002Fto\u002Fyour_project\nclaude\n",[226,1000,1001,1009],{"__ignoreMap":307},[311,1002,1003,1006],{"class":313,"line":314},[311,1004,1005],{"class":325},"cd",[311,1007,1008],{"class":321}," path\u002Fto\u002Fyour_project\n",[311,1010,1011],{"class":313,"line":452},[311,1012,1013],{"class":317},"claude\n",[199,1015,1016,1019,1026],{"start":452},[202,1017,1018],{},"On first start, authorize Claude Code to execute files.",[202,1020,1021,1022,1025],{},"Run ",[226,1023,1024],{},"\u002Fstatus"," to confirm the model, Base URL, and API key.",[202,1027,1028],{},"Start chatting in Claude Code.",[194,1030,1032],{"id":1031},"switch-models","Switch Models",[381,1034,1035,1041],{},[202,1036,1037,1038],{},"At startup: ",[226,1039,1040],{},"claude --model deepseek-v4-pro",[202,1042,1043,1044],{},"During a session: enter ",[226,1045,1046],{},"\u002Fmodel deepseek-v4-pro",[194,1048,1050],{"id":1049},"common-commands","Common Commands",[783,1052,1053,1066],{},[786,1054,1055],{},[789,1056,1057,1060,1063],{},[792,1058,1059],{},"Command",[792,1061,1062],{},"Description",[792,1064,1065],{},"Example",[799,1067,1068,1082,1095,1109,1123,1137,1151],{},[789,1069,1070,1075,1078],{},[804,1071,1072],{},[226,1073,1074],{},"\u002Finit",[804,1076,1077],{},"Generate a CLAUDE.md in the project root for project-level instructions and context.",[804,1079,1080],{},[226,1081,1074],{},[789,1083,1084,1088,1091],{},[804,1085,1086],{},[226,1087,1024],{},[804,1089,1090],{},"Show the current model, Base URL, and other config status.",[804,1092,1093],{},[226,1094,1024],{},[789,1096,1097,1102,1105],{},[804,1098,1099],{},[226,1100,1101],{},"\u002Fmodel \u003Cname>",[804,1103,1104],{},"Switch models.",[804,1106,1107],{},[226,1108,1046],{},[789,1110,1111,1116,1119],{},[804,1112,1113],{},[226,1114,1115],{},"\u002Fclear",[804,1117,1118],{},"Clear the conversation history and start fresh.",[804,1120,1121],{},[226,1122,1115],{},[789,1124,1125,1130,1133],{},[804,1126,1127],{},[226,1128,1129],{},"\u002Fplan",[804,1131,1132],{},"Enter planning mode to analyze and discuss without making changes.",[804,1134,1135],{},[226,1136,1129],{},[789,1138,1139,1144,1147],{},[804,1140,1141],{},[226,1142,1143],{},"\u002Fcompact",[804,1145,1146],{},"Compact the conversation history to free up context.",[804,1148,1149],{},[226,1150,1143],{},[789,1152,1153,1158,1161],{},[804,1154,1155],{},[226,1156,1157],{},"\u002Fconfig",[804,1159,1160],{},"Open the config menu for language, theme, and more.",[804,1162,1163],{},[226,1164,1157],{},[190,1166,1167,1168,1173],{},"See the ",[210,1169,1172],{"href":1170,"rel":1171},"https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Foverview",[295],"Claude Code documentation"," for more.",[194,1175,1177],{"id":1176},"ide-plugins","IDE Plugins",[190,1179,1180],{},"Claude Code provides plugins for VS Code and JetBrains IDEs.",[282,1182,1184],{"id":1183},"vs-code","VS Code",[199,1186,1187,1190,1197],{},[202,1188,1189],{},"Complete \"Configure Credentials\" above first.",[202,1191,1192,1193,1196],{},"Open VS Code, search the marketplace for ",[226,1194,1195],{},"Claude Code for VS Code",", and install it.",[202,1198,1199],{},"Restart VS Code and click the icon in the top-right corner to start. If an Anthropic login screen appears, the configuration has not taken effect yet — finish the setup first.",[282,1201,1203],{"id":1202},"jetbrains","JetBrains",[199,1205,1206,1209,1214],{},[202,1207,1208],{},"Complete \"Install Claude Code\" and \"Configure Credentials\" first.",[202,1210,1211,1212,1196],{},"Open your JetBrains IDE (IntelliJ IDEA, PyCharm, etc.), search the marketplace for ",[226,1213,75],{},[202,1215,1216,1217,276],{},"Restart the IDE and use the icon in the top-right corner; switch models with ",[226,1218,1101],{},[194,1220,22],{"id":1221},"faq",[282,1223,1225],{"id":1224},"error-unable-to-connect-to-anthropic-services","Error: Unable to connect to Anthropic services",[190,1227,1228],{},"This means Claude Code is trying to reach Anthropic's official service instead of SilvaMux, usually because the configuration has not taken effect:",[199,1230,1231,1248,1257],{},[202,1232,1233,1234,1236,1237,1239,1240,1242,1243,1245,1246,276],{},"Confirm ",[226,1235,387],{}," is ",[226,1238,238],{}," and ",[226,1241,395],{}," is your ",[226,1244,228],{}," key in ",[226,1247,420],{},[202,1249,1250,1251,1236,1253,705,1255,276],{},"Check that ",[226,1252,606],{},[226,1254,610],{},[226,1256,602],{},[202,1258,1259,1260,276],{},"After changing the config, open a brand-new terminal before running ",[226,1261,342],{},[282,1263,1265],{"id":1264},"_401-on-calls","401 on calls",[190,1267,1268,1269,1271,1272,1274,1275,1277],{},"The API key and Base URL do not match: a Coding Plan ",[226,1270,228],{}," key must be used with ",[226,1273,238],{},", not a regular ",[226,1276,268],{}," key.",[282,1279,1281],{"id":1280},"_429-on-calls","429 on calls",[190,1283,1284,1285,1288],{},"When any subscription quota window is exhausted, calls return 429 ",[226,1286,1287],{},"QUOTA_EXCEEDED"," (the message identifies 5h \u002F weekly \u002F monthly). Wait for the window to recover, or check remaining quota in the console.",[194,1290,1292],{"id":1291},"best-practices","Best Practices",[381,1294,1295,1311,1317,1323,1329],{},[202,1296,1297,1300,1301,1303,1304,1306,1307,1310],{},[205,1298,1299],{},"Context management",": use ",[226,1302,1115],{}," to reset conversations, ",[226,1305,1143],{}," to compress history, and ",[226,1308,1309],{},"@"," to reference files explicitly.",[202,1312,1313,1316],{},[205,1314,1315],{},"Plan first",": for complex tasks, enter Plan mode to analyze the approach before editing files.",[202,1318,1319,1322],{},[205,1320,1321],{},"Capture project knowledge",": maintain a CLAUDE.md in the project root with build commands, code conventions, and workflows.",[202,1324,1325,1328],{},[205,1326,1327],{},"Extend capabilities",": connect external services via MCP and capture workflow knowledge with Skills.",[202,1330,1331,1334],{},[205,1332,1333],{},"Close the feedback loop",": require relevant tests to run after changes and define clear success criteria.",[1336,1337,1338],"style",{},"html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}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);}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}",{"title":307,"searchDepth":452,"depth":452,"links":1340},[1341,1342,1346,1350,1351,1352,1353,1354,1355,1359,1364],{"id":196,"depth":452,"text":197},{"id":279,"depth":452,"text":280,"children":1343},[1344,1345],{"id":284,"depth":498,"text":285},{"id":348,"depth":498,"text":349},{"id":375,"depth":452,"text":376,"children":1347},[1348,1349],{"id":412,"depth":498,"text":285},{"id":644,"depth":498,"text":349},{"id":694,"depth":452,"text":695},{"id":777,"depth":452,"text":778},{"id":989,"depth":452,"text":990},{"id":1031,"depth":452,"text":1032},{"id":1049,"depth":452,"text":1050},{"id":1176,"depth":452,"text":1177,"children":1356},[1357,1358],{"id":1183,"depth":498,"text":1184},{"id":1202,"depth":498,"text":1203},{"id":1221,"depth":452,"text":22,"children":1360},[1361,1362,1363],{"id":1224,"depth":498,"text":1225},{"id":1264,"depth":498,"text":1265},{"id":1280,"depth":498,"text":1281},{"id":1291,"depth":452,"text":1292},"Use Claude Code with SilvaMux Coding Plan.","md",{},true,"---\ntitle: Claude Code\ndescription: Use Claude Code with SilvaMux Coding Plan.\n---\n\n# Claude Code\n\nClaude Code is Anthropic's terminal AI coding assistant 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 Claude Code\n\n### macOS \u002F Linux\n\n1. Install or update [Node.js](https:\u002F\u002Fnodejs.org\u002Fen\u002Fdownload\u002F) (v18.0 or later).\n2. Run the following command in a terminal to install Claude Code.\n\n```bash\nnpm install -g @anthropic-ai\u002Fclaude-code\n```\n\nVerify the install; a version number means it succeeded.\n\n```bash\nclaude --version\n```\n\n### Windows\n\nUsing Claude Code on Windows requires WSL or [Git for Windows](https:\u002F\u002Fgit-scm.com\u002Finstall\u002Fwindows). Then run the following in WSL or Git Bash:\n\n```bash\nnpm install -g @anthropic-ai\u002Fclaude-code\n```\n\n## Configure Credentials\n\nConfigure the following in Claude Code:\n\n- `ANTHROPIC_BASE_URL`: `https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fcoding-plan\u002Fv1`\n- `ANTHROPIC_AUTH_TOKEN`: your `cp_live_` subscription key\n- `ANTHROPIC_MODEL`: a Coding Plan model (for example `deepseek-v4-pro`)\n\n### macOS \u002F Linux\n\n1. Create and open the config file `~\u002F.claude\u002Fsettings.json` (`~` is your home directory; create the `.claude` directory first with `mkdir -p ~\u002F.claude` if needed).\n\n```bash\nmkdir -p ~\u002F.claude\nnano ~\u002F.claude\u002Fsettings.json\n```\n\n2. Add the following, replacing `YOUR_API_KEY` with your `cp_live_` key. The available models follow `GET \u002Fapi\u002Fcoding-plan\u002Fv1\u002Fmodels` and the Model Plaza.\n\n```json\n{\n  \"env\": {\n    \"ANTHROPIC_AUTH_TOKEN\": \"YOUR_API_KEY\",\n    \"ANTHROPIC_BASE_URL\": \"https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fcoding-plan\u002Fv1\",\n    \"ANTHROPIC_MODEL\": \"deepseek-v4-pro\",\n    \"ANTHROPIC_DEFAULT_HAIKU_MODEL\": \"deepseek-v4-pro\",\n    \"ANTHROPIC_DEFAULT_SONNET_MODEL\": \"deepseek-v4-pro\",\n    \"ANTHROPIC_DEFAULT_OPUS_MODEL\": \"deepseek-v4-pro\",\n    \"CLAUDE_CODE_SUBAGENT_MODEL\": \"deepseek-v4-pro\"\n  }\n}\n```\n\n3. Edit or create `~\u002F.claude.json` and set the top-level field `hasCompletedOnboarding` to `true` to avoid the `Unable to connect to Anthropic services` error on startup.\n\n```json\n{\n  \"hasCompletedOnboarding\": true\n}\n```\n\nSave and open a new terminal for the changes to take effect.\n\n### Windows\n\n1. Create the config directory (PowerShell):\n\n```powershell\nmkdir -Force $HOME\\.claude\nnotepad $HOME\\.claude\\settings.json\n```\n\n2. In the opened `%USERPROFILE%\\.claude\\settings.json`, add the same `env` configuration as macOS\u002FLinux (same Base URL and `cp_live_` key).\n3. Edit or create `%USERPROFILE%\\.claude.json` and set the top-level field `hasCompletedOnboarding` to `true`.\n\n## Configure the Context Window\n\nClaude Code uses a 200K context window by default. If your model supports a longer context, add `CLAUDE_CODE_MAX_CONTEXT_TOKENS` to the `env` in `~\u002F.claude\u002Fsettings.json`:\n\n```json\n{\n  \"env\": {\n    \"ANTHROPIC_AUTH_TOKEN\": \"YOUR_API_KEY\",\n    \"ANTHROPIC_BASE_URL\": \"https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fcoding-plan\u002Fv1\",\n    \"ANTHROPIC_MODEL\": \"deepseek-v4-pro\",\n    \"CLAUDE_CODE_MAX_CONTEXT_TOKENS\": \"1000000\"\n  }\n}\n```\n\nThe actual available context length depends on the model.\n\n## Permission Modes\n\nClaude Code offers several permission modes that control how tool actions are confirmed:\n\n| Mode | Behavior |\n| --- | --- |\n| `default` | Ask for confirmation on every action. |\n| `acceptEdits` | Auto-approve file edits; other actions still ask. |\n| `plan` | Read-only planning; no changes. |\n| `dontAsk` | Do not ask; actions that need confirmation are denied. |\n| `bypassPermissions` | Bypass all permission checks. |\n| `delegate` | Delegated mode. |\n\nUse `--permission-mode` to set the default mode for a session:\n\n```bash\nclaude --permission-mode plan\nclaude --permission-mode acceptEdits\n```\n\nYou can also enter `\u002Fpermissions` in a session to manage pre-approve and pre-deny rules, or configure the `permissions` field in `~\u002F.claude\u002Fsettings.json`:\n\n```json\n{\n  \"permissions\": {\n    \"allow\": [\"Bash(git:*)\", \"Read\", \"Edit\"],\n    \"deny\": [\"Bash(rm:*)\"],\n    \"defaultMode\": \"default\"\n  }\n}\n```\n\n`allow` auto-approves matching tool calls and `deny` auto-denies matching tool calls; rules support wildcards.\n\n## Use Claude Code\n\n1. Open a terminal, go to your project directory, and start Claude Code.\n\n```bash\ncd path\u002Fto\u002Fyour_project\nclaude\n```\n\n2. On first start, authorize Claude Code to execute files.\n3. Run `\u002Fstatus` to confirm the model, Base URL, and API key.\n4. Start chatting in Claude Code.\n\n## Switch Models\n\n- At startup: `claude --model deepseek-v4-pro`\n- During a session: enter `\u002Fmodel deepseek-v4-pro`\n\n## Common Commands\n\n| Command | Description | Example |\n| --- | --- | --- |\n| `\u002Finit` | Generate a CLAUDE.md in the project root for project-level instructions and context. | `\u002Finit` |\n| `\u002Fstatus` | Show the current model, Base URL, and other config status. | `\u002Fstatus` |\n| `\u002Fmodel \u003Cname>` | Switch models. | `\u002Fmodel deepseek-v4-pro` |\n| `\u002Fclear` | Clear the conversation history and start fresh. | `\u002Fclear` |\n| `\u002Fplan` | Enter planning mode to analyze and discuss without making changes. | `\u002Fplan` |\n| `\u002Fcompact` | Compact the conversation history to free up context. | `\u002Fcompact` |\n| `\u002Fconfig` | Open the config menu for language, theme, and more. | `\u002Fconfig` |\n\nSee the [Claude Code documentation](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Foverview) for more.\n\n## IDE Plugins\n\nClaude Code provides plugins for VS Code and JetBrains IDEs.\n\n### VS Code\n\n1. Complete \"Configure Credentials\" above first.\n2. Open VS Code, search the marketplace for `Claude Code for VS Code`, and install it.\n3. Restart VS Code and click the icon in the top-right corner to start. If an Anthropic login screen appears, the configuration has not taken effect yet — finish the setup first.\n\n### JetBrains\n\n1. Complete \"Install Claude Code\" and \"Configure Credentials\" first.\n2. Open your JetBrains IDE (IntelliJ IDEA, PyCharm, etc.), search the marketplace for `Claude Code`, and install it.\n3. Restart the IDE and use the icon in the top-right corner; switch models with `\u002Fmodel \u003Cname>`.\n\n## FAQ\n\n### Error: Unable to connect to Anthropic services\n\nThis means Claude Code is trying to reach Anthropic's official service instead of SilvaMux, usually because the configuration has not taken effect:\n\n1. Confirm `ANTHROPIC_BASE_URL` is `https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fcoding-plan\u002Fv1` and `ANTHROPIC_AUTH_TOKEN` is your `cp_live_` key in `~\u002F.claude\u002Fsettings.json`.\n2. Check that `hasCompletedOnboarding` is `true` in `~\u002F.claude.json`.\n3. After changing the config, open a brand-new terminal before running `claude`.\n\n### 401 on calls\n\nThe API key and Base URL do not match: a Coding Plan `cp_live_` key must be used with `https:\u002F\u002Fwww.silvamux.com\u002Fapi\u002Fcoding-plan\u002Fv1`, not a regular `sk_live_` key.\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\n## Best Practices\n\n- **Context management**: use `\u002Fclear` to reset conversations, `\u002Fcompact` to compress history, and `@` to reference files explicitly.\n- **Plan first**: for complex tasks, enter Plan mode to analyze the approach before editing files.\n- **Capture project knowledge**: maintain a CLAUDE.md in the project root with build commands, code conventions, and workflows.\n- **Extend capabilities**: connect external services via MCP and capture workflow knowledge with Skills.\n- **Close the feedback loop**: require relevant tests to run after changes and define clear success criteria.\n",[],{"title":75,"description":1365},"eHkn-S_xehWz-Pn6TSTK8wLEwknSfpawKJGFbC_EgHs"]