网络代理和环境变量设置操作
# 代理设置 (内网环境经常遇到):如果你的网络需要通过代理才能访问外网,一定要设置HTTP/HTTPS代理!否则Ollama可能无法下载模型。
Windows (PowerShell):
$env:HTTP_PROXY="http://127.0.0.1:7897"
$env:HTTPS_PROXY="http://127.0.0.1:7897"
Linux/macOS:
export HTTP_PROXY="http://your-proxy-server:port"
export HTTPS_PROXY="http://your-proxy-server:port"
1
2
3
4
5
6
7
2
3
4
5
6
7
# ai接入国内模型设置环境变量
阿里云文档:https://help.aliyun.com/zh/model-studio/claude-code
智普接入手册:https://docs.bigmodel.cn/cn/guide/develop/claude
博客文章介绍使用方式:
https://www.kevnu.com/zh/posts/claude-code-usage-guide-from-official-configuration-to-integrating-third-party-models#%E4%BA%94%E5%BF%AB%E9%80%9F%E6%8E%A5%E5%85%A5%E5%85%BC%E5%AE%B9%E6%A8%A1%E5%9E%8B%E7%9B%B4%E8%BF%9E
其他接入插件
https://claudish.com/
上次更新: 2026/02/20, 23:01:46
|