{"id":81809,"date":"2026-07-25T04:42:33","date_gmt":"2026-07-24T20:42:33","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/81809.html"},"modified":"2026-07-25T04:42:33","modified_gmt":"2026-07-24T20:42:33","slug":"linux-%e6%9c%8d%e5%8a%a1%e5%99%a8-%e9%9d%9e-root-%e7%94%a8%e6%88%b7%e5%ae%89%e8%a3%85-claude-code-%e5%b9%b6%e9%85%8d%e7%bd%ae-deepseek-api-%e5%ae%8c%e6%95%b4%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/81809.html","title":{"rendered":"Linux \u670d\u52a1\u5668 \u975e root \u7528\u6237\u5b89\u88c5 Claude Code \u5e76\u914d\u7f6e DeepSeek API \u5b8c\u6574\u6307\u5357"},"content":{"rendered":"<h2>\u975e root \u7528\u6237\u5b89\u88c5 Claude Code \u5e76\u914d\u7f6e DeepSeek API \u5b8c\u6574\u6307\u5357<\/h2>\n<h3>\u524d\u8a00<\/h3>\n<p>\u6700\u8fd1 Claude Code \u975e\u5e38\u706b&#xff0c;\u4f46 Anthropic \u5b98\u65b9 API \u7684\u4f7f\u7528\u95e8\u69db\u8f83\u9ad8\u3002\u597d\u6d88\u606f\u662f&#xff0c;\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u4f7f\u5176\u63a5\u5165 DeepSeek API&#xff0c;\u4eab\u53d7\u9ad8\u6027\u4ef7\u6bd4\u7684 AI \u7f16\u7a0b\u52a9\u624b\u670d\u52a1\u3002\u672c\u6587\u8bb0\u5f55\u4e86\u5728 CentOS \u670d\u52a1\u5668\u4e0a\u4e0d\u4f7f\u7528 root \u6743\u9650\u5b8c\u6210\u6574\u4e2a\u5b89\u88c5\u548c\u914d\u7f6e\u7684\u8fc7\u7a0b\u3002<\/p>\n<h3>\u9002\u7528\u573a\u666f<\/h3>\n<ul>\n<li>\u4f60\u53ea\u6709\u670d\u52a1\u5668\u7684\u666e\u901a\u7528\u6237\u6743\u9650&#xff0c;\u6ca1\u6709 sudo<\/li>\n<li>\u60f3\u5728\u670d\u52a1\u5668\u4e0a\u4f7f\u7528 Claude Code \u8fdb\u884c\u4ee3\u7801\u5f00\u53d1<\/li>\n<li>\u5e0c\u671b\u4f7f\u7528 DeepSeek API \u800c\u975e\u5b98\u65b9 Anthropic API<\/li>\n<\/ul>\n<h3>\u73af\u5883\u8981\u6c42<\/h3>\n<ul>\n<li>\u64cd\u4f5c\u7cfb\u7edf&#xff1a;CentOS \/ RHEL \u7cfb\u5217<\/li>\n<li>\u7528\u6237\u6743\u9650&#xff1a;\u975e root \u7528\u6237<\/li>\n<li>\u7f51\u7edc&#xff1a;\u80fd\u591f\u8bbf\u95ee\u5916\u7f51&#xff08;\u8bbf\u95ee DeepSeek API&#xff09;<\/li>\n<\/ul>\n<hr \/>\n<h3>\u7b2c\u4e00\u6b65&#xff1a;\u5b89\u88c5 Node.js&#xff08;\u7528\u6237\u7a7a\u95f4&#xff09;<\/h3>\n<p>Claude Code \u9700\u8981 Node.js 18&#043; \u7248\u672c&#xff0c;\u4f46\u8fd9\u91cc\u6211\u4eec\u4f7f\u7528 Node.js 16.20.0 \u5b9e\u6d4b\u4e5f\u5b8c\u5168\u53ef\u7528\u3002\u7531\u4e8e\u6ca1\u6709 root \u6743\u9650&#xff0c;\u6211\u4eec\u9700\u8981\u5c06 Node.js \u5b89\u88c5\u5230\u81ea\u5df1\u7684\u7528\u6237\u76ee\u5f55\u4e0b\u3002<\/p>\n<p><span class=\"token comment\"># \u4e0b\u8f7d Node.js \u4e8c\u8fdb\u5236\u5305<\/span><br \/>\n<span class=\"token function\">wget<\/span> https:\/\/nodejs.org\/dist\/v16.20.0\/node-v16.20.0-linux-x64.tar.xz<\/p>\n<p><span class=\"token comment\"># \u521b\u5efa\u5b89\u88c5\u76ee\u5f55<\/span><br \/>\n<span class=\"token function\">mkdir<\/span> <span class=\"token parameter variable\">-p<\/span> ~\/biosoft\/node-v16.20.0<\/p>\n<p><span class=\"token comment\"># \u89e3\u538b\u5230\u6307\u5b9a\u76ee\u5f55&#xff08;&#8211;strip 1 \u53bb\u6389\u5916\u5c42\u6587\u4ef6\u5939&#xff09;<\/span><br \/>\n<span class=\"token function\">tar<\/span> <span class=\"token parameter variable\">-xJf<\/span> node-v16.20.0-linux-x64.tar.xz <span class=\"token parameter variable\">&#8211;strip<\/span> <span class=\"token number\">1<\/span> <span class=\"token parameter variable\">-C<\/span> ~\/biosoft\/node-v16.20.0<\/p>\n<p><span class=\"token comment\"># \u6dfb\u52a0\u5230\u73af\u5883\u53d8\u91cf&#xff08;\u5199\u5165 ~\/.bashrc \u6c38\u4e45\u751f\u6548&#xff09;<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#039;export PATH&#061;&#034;$HOME\/biosoft\/node-v16.20.0\/bin:$PATH&#034;&#039;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> ~\/.bashrc<\/p>\n<p><span class=\"token comment\"># \u7acb\u5373\u751f\u6548<\/span><br \/>\n<span class=\"token builtin class-name\">source<\/span> ~\/.bashrc<\/p>\n<p><span class=\"token comment\"># \u9a8c\u8bc1\u5b89\u88c5<\/span><br \/>\n<span class=\"token function\">node<\/span> <span class=\"token parameter variable\">&#8211;version<\/span>   <span class=\"token comment\"># \u5e94\u8f93\u51fa v16.20.0<\/span><br \/>\n<span class=\"token function\">npm<\/span> <span class=\"token parameter variable\">&#8211;version<\/span>    <span class=\"token comment\"># \u5e94\u8f93\u51fa\u5bf9\u5e94\u7248\u672c\u53f7<\/span><\/p>\n<h3>\u7b2c\u4e8c\u6b65&#xff1a;\u5b89\u88c5 Claude Code<\/h3>\n<p>\u4f7f\u7528 npm \u5168\u5c40\u5b89\u88c5 Claude Code&#xff08;\u540c\u6837\u4f1a\u5b89\u88c5\u5230\u7528\u6237\u76ee\u5f55\u4e0b&#xff09;&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u5b89\u88c5 Claude Code<\/span><br \/>\n<span class=\"token function\">npm<\/span> <span class=\"token function\">install<\/span> <span class=\"token parameter variable\">-g<\/span> &#064;anthropic-ai\/claude-code<\/p>\n<p><span class=\"token comment\"># \u9a8c\u8bc1\u5b89\u88c5<\/span><br \/>\nclaude <span class=\"token parameter variable\">&#8211;version<\/span>   <span class=\"token comment\"># \u5e94\u8f93\u51fa\u7248\u672c\u53f7&#xff0c;\u5982 v2.1.121<\/span><\/p>\n<p>\u6ce8\u610f&#xff1a;\u5982\u679c claude \u547d\u4ee4\u627e\u4e0d\u5230&#xff0c;\u786e\u8ba4 ~\/biosoft\/node-v16.20.0\/bin \u5df2\u7ecf\u5728 PATH \u4e2d&#xff0c;\u6216\u8005 npm config get prefix \u67e5\u770b\u5168\u5c40\u5305\u5b89\u88c5\u8def\u5f84\u5e76\u6dfb\u52a0\u5230 PATH\u3002<\/p>\n<h3>\u7b2c\u4e09\u6b65&#xff1a;\u51c6\u5907 DeepSeek API Key<\/h3>\n<li>\u8bbf\u95ee DeepSeek \u5f00\u653e\u5e73\u53f0<\/li>\n<li>\u6ce8\u518c\/\u767b\u5f55\u8d26\u53f7<\/li>\n<li>\u8fdb\u5165 API Keys \u9875\u9762<\/li>\n<li>\u70b9\u51fb \u521b\u5efa API Key&#xff0c;\u590d\u5236\u4fdd\u5b58\u751f\u6210\u7684\u5bc6\u94a5&#xff08;\u4ee5 sk- \u5f00\u5934&#xff09;<\/li>\n<p>\u26a0\ufe0f \u5b89\u5168\u63d0\u9192&#xff1a;API Key \u76f8\u5f53\u4e8e\u5bc6\u7801&#xff0c;\u8bf7\u59a5\u5584\u4fdd\u7ba1&#xff0c;\u4e0d\u8981\u5728\u516c\u5f00\u573a\u5408\u66b4\u9732\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724204232-6a63ce38477f4.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u7b2c\u56db\u6b65&#xff1a;\u914d\u7f6e Claude Code \u4f7f\u7528 DeepSeek API<\/h3>\n<p>\u6838\u5fc3\u601d\u8def\u662f\u4fee\u6539\u73af\u5883\u53d8\u91cf&#xff0c;\u8ba9 Claude Code \u5c06\u8bf7\u6c42\u53d1\u9001\u5230 DeepSeek \u63d0\u4f9b\u7684\u517c\u5bb9\u63a5\u53e3\u3002<\/p>\n<h4>\u65b9\u6cd5\u4e00&#xff1a;\u901a\u8fc7 ~\/.bashrc \u914d\u7f6e&#xff08;\u63a8\u8350&#xff09;<\/h4>\n<p><span class=\"token comment\"># \u6dfb\u52a0\u914d\u7f6e\u5230 ~\/.bashrc<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;export ANTHROPIC_BASE_URL&#061;&#039;https:\/\/api.deepseek.com\/anthropic&#039;&#034;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> ~\/.bashrc<br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;export ANTHROPIC_AUTH_TOKEN&#061;&#039;\u4f60\u7684-API-Key&#039;&#034;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> ~\/.bashrc<br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;export ANTHROPIC_MODEL&#061;&#039;deepseek-chat&#039;&#034;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> ~\/.bashrc<br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;export ANTHROPIC_SMALL_FAST_MODEL&#061;&#039;deepseek-chat&#039;&#034;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> ~\/.bashrc<\/p>\n<p><span class=\"token comment\"># \u4f7f\u914d\u7f6e\u751f\u6548<\/span><br \/>\n<span class=\"token builtin class-name\">source<\/span> ~\/.bashrc<\/p>\n<h4>\u65b9\u6cd5\u4e8c&#xff1a;\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u8bbe\u7f6e<\/h4>\n<p><span class=\"token comment\"># \u521b\u5efa\u914d\u7f6e\u76ee\u5f55<\/span><br \/>\n<span class=\"token function\">mkdir<\/span> <span class=\"token parameter variable\">-p<\/span> ~\/.claude<\/p>\n<p><span class=\"token comment\"># \u5199\u5165\u914d\u7f6e\u6587\u4ef6<\/span><br \/>\n<span class=\"token function\">cat<\/span> <span class=\"token operator\">&gt;<\/span> ~\/.claude\/settings.json <span class=\"token operator\">&lt;&lt;<\/span> <span class=\"token string\">&#039;EOF&#039;<br \/>\n{<br \/>\n  &#034;env&#034;: {<br \/>\n    &#034;ANTHROPIC_BASE_URL&#034;: &#034;https:\/\/api.deepseek.com\/anthropic&#034;,<br \/>\n    &#034;ANTHROPIC_AUTH_TOKEN&#034;: &#034;\u4f60\u7684-API-Key&#034;,<br \/>\n    &#034;ANTHROPIC_MODEL&#034;: &#034;deepseek-chat&#034;,<br \/>\n    &#034;ANTHROPIC_SMALL_FAST_MODEL&#034;: &#034;deepseek-chat&#034;<br \/>\n  }<br \/>\n}<br \/>\nEOF<\/span><\/p>\n<h3>\u7b2c\u4e94\u6b65&#xff1a;\u9a8c\u8bc1\u914d\u7f6e<\/h3>\n<h4>1. \u68c0\u67e5\u73af\u5883\u53d8\u91cf<\/h4>\n<p><span class=\"token builtin class-name\">echo<\/span> <span class=\"token variable\">$ANTHROPIC_BASE_URL<\/span>   <span class=\"token comment\"># \u5e94\u8f93\u51fa https:\/\/api.deepseek.com\/anthropic<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token variable\">$ANTHROPIC_MODEL<\/span>      <span class=\"token comment\"># \u5e94\u8f93\u51fa deepseek-chat<\/span><\/p>\n<h4>2. \u6d4b\u8bd5 API \u8fde\u901a\u6027<\/h4>\n<p><span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-X<\/span> POST https:\/\/api.deepseek.com\/anthropic\/v1\/messages <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-H<\/span> <span class=\"token string\">&#034;Content-Type: application\/json&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-H<\/span> <span class=\"token string\">&#034;x-api-key: \u4f60\u7684-API-Key&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-H<\/span> <span class=\"token string\">&#034;anthropic-version: 2023-06-01&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-d<\/span> <span class=\"token string\">&#039;{<br \/>\n    &#034;model&#034;: &#034;deepseek-chat&#034;,<br \/>\n    &#034;max_tokens&#034;: 10,<br \/>\n    &#034;messages&#034;: [{&#034;role&#034;: &#034;user&#034;, &#034;content&#034;: &#034;Hi&#034;}]<br \/>\n  }&#039;<\/span><\/p>\n<p>\u5982\u679c\u8fd4\u56de\u6b63\u5e38\u7684 JSON \u54cd\u5e94&#xff08;\u5982 {&#034;id&#034;:&#034;&#8230;&#034;, &#034;type&#034;:&#034;message&#034;, &#8230;}&#xff09;&#xff0c;\u8bf4\u660e API \u914d\u7f6e\u6b63\u786e\u3002<\/p>\n<h4>3. \u542f\u52a8 Claude Code<\/h4>\n<p><span class=\"token comment\"># \u8fdb\u5165\u4f60\u7684\u9879\u76ee\u76ee\u5f55<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> ~\/your-project<\/p>\n<p><span class=\"token comment\"># \u542f\u52a8 Claude Code<\/span><br \/>\nclaude<\/p>\n<p>\u6210\u529f\u542f\u52a8\u540e&#xff0c;\u4f60\u4f1a\u770b\u5230\u7c7b\u4f3c\u8fd9\u6837\u7684\u754c\u9762&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724204232-6a63ce3881066.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>4. \u6d4b\u8bd5\u5bf9\u8bdd<\/h4>\n<p>\u8f93\u5165\u4efb\u610f\u95ee\u9898\u6d4b\u8bd5&#xff0c;\u4f8b\u5982&#xff1a;<\/p>\n<p>\u276f \u8bf7\u7528 Python \u6253\u5370 &#034;Hello, World!&#034;<\/p>\n<p>\u5982\u679c Claude Code \u6b63\u5e38\u54cd\u5e94&#xff0c;\u606d\u559c\u4f60&#xff0c;\u914d\u7f6e\u6210\u529f&#xff01;&#x1f389;<\/p>\n<h3>\u53ef\u80fd\u9047\u5230\u7684\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6848<\/h3>\n<h4>\u95ee\u98981&#xff1a;\u8bf7\u6c42\u8d85\u65f6<\/h4>\n<p>\u73b0\u8c61&#xff1a;API_TIMEOUT_MS&#061;3000000ms &#8230; Retrying<\/p>\n<p>\u89e3\u51b3\u65b9\u6848&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u8bbe\u7f6e\u66f4\u957f\u7684\u8d85\u65f6\u65f6\u95f4<\/span><br \/>\n<span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">API_TIMEOUT_MS<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">600000<\/span><\/p>\n<p><span class=\"token comment\"># \u6216\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u6dfb\u52a0<\/span><br \/>\n<span class=\"token function\">cat<\/span> <span class=\"token operator\">&gt;&gt;<\/span> ~\/.claude\/settings.json <span class=\"token operator\">&lt;&lt;<\/span> <span class=\"token string\">&#039;EOF&#039;<br \/>\n{<br \/>\n  &#034;apiTimeoutMs&#034;: 600000<br \/>\n}<br \/>\nEOF<\/span><\/p>\n<h4>\u95ee\u98982&#xff1a;claude \u547d\u4ee4\u627e\u4e0d\u5230<\/h4>\n<p>\u89e3\u51b3\u65b9\u6848&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u786e\u8ba4 npm \u5168\u5c40\u5305\u5b89\u88c5\u8def\u5f84<\/span><br \/>\n<span class=\"token function\">npm<\/span> config get prefix<\/p>\n<p><span class=\"token comment\"># \u5c06\u8be5\u8def\u5f84\u4e0b\u7684 bin \u76ee\u5f55\u6dfb\u52a0\u5230 PATH<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#039;export PATH&#061;&#034;$PATH:$(npm config get prefix)\/bin&#034;&#039;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> ~\/.bashrc<br \/>\n<span class=\"token builtin class-name\">source<\/span> ~\/.bashrc<\/p>\n<h4>\u95ee\u98983&#xff1a;\u7f51\u7edc\u8fde\u63a5\u95ee\u9898<\/h4>\n<p>\u89e3\u51b3\u65b9\u6848&#xff1a;\u6d4b\u8bd5\u57fa\u7840\u8fde\u901a\u6027<\/p>\n<p><span class=\"token comment\"># \u6d4b\u8bd5\u80fd\u5426\u8fde\u63a5\u5230 DeepSeek API<\/span><br \/>\n<span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-I<\/span> https:\/\/api.deepseek.com\/anthropic<\/p>\n<p><span class=\"token comment\"># \u5982\u679c\u516c\u53f8\u670d\u52a1\u5668\u9700\u8981\u4ee3\u7406&#xff0c;\u8bbe\u7f6e\u4ee3\u7406<\/span><br \/>\n<span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">HTTP_PROXY<\/span><span class=\"token operator\">&#061;<\/span>http:\/\/your-proxy:port<br \/>\n<span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">HTTPS_PROXY<\/span><span class=\"token operator\">&#061;<\/span>http:\/\/your-proxy:port<\/p>\n<h3>\u65e5\u5e38\u4f7f\u7528<\/h3>\n<h4>\u542f\u52a8 Claude Code<\/h4>\n<p><span class=\"token builtin class-name\">cd<\/span> ~\/your-project<br \/>\nclaude<\/p>\n<h4>\u5e38\u7528\u547d\u4ee4<\/h4>\n<table>\n<tr>\u547d\u4ee4\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>\/help<\/td>\n<td>\u67e5\u770b\u5e2e\u52a9\u4fe1\u606f<\/td>\n<\/tr>\n<tr>\n<td>\/init<\/td>\n<td>\u521d\u59cb\u5316\u9879\u76ee\u914d\u7f6e\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>Ctrl&#043;C<\/td>\n<td>\u9000\u51fa Claude Code<\/td>\n<\/tr>\n<tr>\n<td>\/model<\/td>\n<td>\u67e5\u770b\u5f53\u524d\u4f7f\u7528\u7684\u6a21\u578b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>\u6a21\u578b\u9009\u62e9<\/h4>\n<ul>\n<li>deepseek-chat&#xff1a;DeepSeek-V3.1-Terminus&#xff08;\u975e\u601d\u8003\u6a21\u5f0f&#xff09;<\/li>\n<li>deepseek-reasoner&#xff1a;DeepSeek-R1&#xff08;\u601d\u8003\u6a21\u5f0f&#xff0c;\u9002\u5408\u590d\u6742\u63a8\u7406\u4efb\u52a1&#xff09;<\/li>\n<\/ul>\n<p>\u4fee\u6539\u6a21\u578b&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">ANTHROPIC_MODEL<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#039;deepseek-reasoner&#039;<\/span><\/p>\n<h3>\u603b\u7ed3<\/h3>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4&#xff0c;\u6211\u4eec\u5728\u6ca1\u6709 root \u6743\u9650\u7684\u60c5\u51b5\u4e0b\u6210\u529f\u5b8c\u6210\u4e86&#xff1a;<\/p>\n<li>\u2705 \u7528\u6237\u7a7a\u95f4\u5b89\u88c5 Node.js<\/li>\n<li>\u2705 \u5b89\u88c5 Claude Code CLI \u5de5\u5177<\/li>\n<li>\u2705 \u914d\u7f6e DeepSeek API \u63a5\u5165<\/li>\n<li>\u2705 \u9a8c\u8bc1\u548c\u6d4b\u8bd5<\/li>\n<p>\u73b0\u5728\u4f60\u53ef\u4ee5\u6109\u5feb\u5730\u4f7f\u7528 Claude Code &#043; DeepSeek API \u6765\u8f85\u52a9\u7f16\u7a0b\u4e86&#xff01;\u76f8\u6bd4\u5b98\u65b9 Anthropic API&#xff0c;DeepSeek \u6027\u4ef7\u6bd4\u66f4\u9ad8&#xff0c;\u5bf9\u56fd\u5185\u7528\u6237\u4e5f\u66f4\u53cb\u597d\u3002<\/p>\n<h3>\u76f8\u5173\u94fe\u63a5<\/h3>\n<ul>\n<li>Claude Code \u5b98\u65b9\u6587\u6863<\/li>\n<li>DeepSeek \u5f00\u653e\u5e73\u53f0<\/li>\n<li>DeepSeek API \u6587\u6863<\/li>\n<\/ul>\n<hr \/>\n<p>&#x1f4dd; \u6700\u540e\u63d0\u9192&#xff1a;\u8bf7\u786e\u4fdd API Key \u5b89\u5168&#xff0c;\u4e0d\u8981\u63d0\u4ea4\u5230\u516c\u5f00\u4ee3\u7801\u4ed3\u5e93\u3002\u5982\u679c Key \u610f\u5916\u6cc4\u9732&#xff0c;\u7acb\u5373\u5728 DeepSeek \u5e73\u53f0\u5220\u9664\u5e76\u91cd\u65b0\u751f\u6210\u3002<\/p>\n<hr \/>\n<p>\u8fd9\u7bc7\u535a\u5ba2\u6db5\u76d6\u4e86\u4f60\u7684\u5b8c\u6574\u5b89\u88c5\u6d41\u7a0b&#xff0c;\u4f60\u53ef\u4ee5\u76f4\u63a5\u590d\u5236\u4f7f\u7528\u3002\u5982\u679c\u9700\u8981\u8c03\u6574\u683c\u5f0f\u6216\u8865\u5145\u67d0\u4e9b\u7ec6\u8282&#xff0c;\u8bf7\u544a\u8bc9\u6211&#xff01;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u975e root \u7528\u6237\u5b89\u88c5 Claude Code \u5e76\u914d\u7f6e DeepSeek API \u5b8c\u6574\u6307\u5357<br \/>\n\u524d\u8a00<br \/>\n\u6700\u8fd1 Claude Code \u975e\u5e38\u706b&#xff0c;\u4f46 Anthropic \u5b98\u65b9 API \u7684\u4f7f\u7528\u95e8\u69db\u8f83\u9ad8\u3002\u597d\u6d88\u606f\u662f&#xff0c;\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u4f7f\u5176\u63a5\u5165 DeepSeek API&#xff0c;\u4eab\u53d7\u9ad8\u6027\u4ef7\u6bd4\u7684 AI \u7f16\u7a0b\u52a9\u624b\u670d\u52a1\u3002\u672c\u6587\u8bb0\u5f55\u4e86\u5728 CentOS \u670d\u52a1\u5668\u4e0a\u4e0d\u4f7f\u7528 root \u6743\u9650\u5b8c\u6210\u6574\u4e2a\u5b89\u88c5\u548c\u914d\u7f6e\u7684\u8fc7\u7a0b\u3002<br \/>\n\u9002\u7528\u573a\u666f<br \/>\n\u4f60\u53ea\u6709\u670d\u52a1\u5668\u7684\u666e\u901a\u7528\u6237\u6743\u9650&#xff0c;\u6ca1\u6709<\/p>\n","protected":false},"author":2,"featured_media":81807,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,43,44],"topic":[],"class_list":["post-81809","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-linux","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux \u670d\u52a1\u5668 \u975e root \u7528\u6237\u5b89\u88c5 Claude Code \u5e76\u914d\u7f6e DeepSeek API \u5b8c\u6574\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/81809.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux \u670d\u52a1\u5668 \u975e root \u7528\u6237\u5b89\u88c5 Claude Code \u5e76\u914d\u7f6e DeepSeek API \u5b8c\u6574\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u975e root \u7528\u6237\u5b89\u88c5 Claude Code \u5e76\u914d\u7f6e DeepSeek API \u5b8c\u6574\u6307\u5357 \u524d\u8a00 \u6700\u8fd1 Claude Code \u975e\u5e38\u706b&#xff0c;\u4f46 Anthropic \u5b98\u65b9 API \u7684\u4f7f\u7528\u95e8\u69db\u8f83\u9ad8\u3002\u597d\u6d88\u606f\u662f&#xff0c;\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u4f7f\u5176\u63a5\u5165 DeepSeek API&#xff0c;\u4eab\u53d7\u9ad8\u6027\u4ef7\u6bd4\u7684 AI \u7f16\u7a0b\u52a9\u624b\u670d\u52a1\u3002\u672c\u6587\u8bb0\u5f55\u4e86\u5728 CentOS \u670d\u52a1\u5668\u4e0a\u4e0d\u4f7f\u7528 root \u6743\u9650\u5b8c\u6210\u6574\u4e2a\u5b89\u88c5\u548c\u914d\u7f6e\u7684\u8fc7\u7a0b\u3002 \u9002\u7528\u573a\u666f \u4f60\u53ea\u6709\u670d\u52a1\u5668\u7684\u666e\u901a\u7528\u6237\u6743\u9650&#xff0c;\u6ca1\u6709\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/81809.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-24T20:42:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724204232-6a63ce38477f4.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/81809.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/81809.html\",\"name\":\"Linux \u670d\u52a1\u5668 \u975e root \u7528\u6237\u5b89\u88c5 Claude Code \u5e76\u914d\u7f6e DeepSeek API \u5b8c\u6574\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-24T20:42:33+00:00\",\"dateModified\":\"2026-07-24T20:42:33+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/81809.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/81809.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/81809.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux \u670d\u52a1\u5668 \u975e root \u7528\u6237\u5b89\u88c5 Claude Code \u5e76\u914d\u7f6e DeepSeek API \u5b8c\u6574\u6307\u5357\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux \u670d\u52a1\u5668 \u975e root \u7528\u6237\u5b89\u88c5 Claude Code \u5e76\u914d\u7f6e DeepSeek API \u5b8c\u6574\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/81809.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux \u670d\u52a1\u5668 \u975e root \u7528\u6237\u5b89\u88c5 Claude Code \u5e76\u914d\u7f6e DeepSeek API \u5b8c\u6574\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u975e root \u7528\u6237\u5b89\u88c5 Claude Code \u5e76\u914d\u7f6e DeepSeek API \u5b8c\u6574\u6307\u5357 \u524d\u8a00 \u6700\u8fd1 Claude Code \u975e\u5e38\u706b&#xff0c;\u4f46 Anthropic \u5b98\u65b9 API \u7684\u4f7f\u7528\u95e8\u69db\u8f83\u9ad8\u3002\u597d\u6d88\u606f\u662f&#xff0c;\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u4f7f\u5176\u63a5\u5165 DeepSeek API&#xff0c;\u4eab\u53d7\u9ad8\u6027\u4ef7\u6bd4\u7684 AI \u7f16\u7a0b\u52a9\u624b\u670d\u52a1\u3002\u672c\u6587\u8bb0\u5f55\u4e86\u5728 CentOS \u670d\u52a1\u5668\u4e0a\u4e0d\u4f7f\u7528 root \u6743\u9650\u5b8c\u6210\u6574\u4e2a\u5b89\u88c5\u548c\u914d\u7f6e\u7684\u8fc7\u7a0b\u3002 \u9002\u7528\u573a\u666f \u4f60\u53ea\u6709\u670d\u52a1\u5668\u7684\u666e\u901a\u7528\u6237\u6743\u9650&#xff0c;\u6ca1\u6709","og_url":"https:\/\/www.wsisp.com\/helps\/81809.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-24T20:42:33+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724204232-6a63ce38477f4.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/81809.html","url":"https:\/\/www.wsisp.com\/helps\/81809.html","name":"Linux \u670d\u52a1\u5668 \u975e root \u7528\u6237\u5b89\u88c5 Claude Code \u5e76\u914d\u7f6e DeepSeek API \u5b8c\u6574\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-24T20:42:33+00:00","dateModified":"2026-07-24T20:42:33+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/81809.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/81809.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/81809.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux \u670d\u52a1\u5668 \u975e root \u7528\u6237\u5b89\u88c5 Claude Code \u5e76\u914d\u7f6e DeepSeek API \u5b8c\u6574\u6307\u5357"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/81809","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=81809"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/81809\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/81807"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=81809"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=81809"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=81809"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=81809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}