在 Crush、Goose、Zed 和 Aider 中使用 Unquant
另外四个 agent,四段配置。每个都指向相同的 OpenAI 兼容端点。
Crush
在 ~/.config/crush/crush.json 或项目的 .crush.json 中配置;type 必须为 openai-compat:
{
"providers": {
"unquant": {
"type": "openai-compat",
"base_url": "https://api.unquant.io/v1",
"api_key": "$UNQUANT_API_KEY",
"models": [{ "id": "glm-5.3-flash", "context_window": 262144 }]
}
}
}Goose
export GOOSE_PROVIDER=openai
export OPENAI_HOST=https://api.unquant.io
export OPENAI_BASE_PATH=v1/chat/completions
export OPENAI_API_KEY=your-unquant-key
export GOOSE_MODEL=glm-5.3-flashZed
在 Zed 的 settings.json 中添加 OpenAI 兼容提供商,然后在 Agent 面板的设置中输入 API 密钥:
{
"language_models": {
"openai_compatible": {
"Unquant": {
"api_url": "https://api.unquant.io/v1",
"available_models": [{ "name": "glm-5.3-flash", "max_tokens": 262144 }]
}
}
}
}Aider
export OPENAI_API_BASE=https://api.unquant.io/v1
export OPENAI_API_KEY=your-unquant-key
aider --model openai/glm-5.3-flashopenai/ 前缀告知 Aider 使用您的 OpenAI 兼容 Base URL。
继续阅读
- 在 VS Code 中使用 Unquant:Copilot Chat、Cline、Roo Code、Kilo Code 和 Continue将 VS Code 连接到 Unquant:GitHub Copilot Chat 自带密钥模式,以及 Cline、Roo Code、Kilo Code 和 Continue 扩展,各自配置 OpenAI 兼容设置。
- 如何将 Unquant 添加到 OpenCode在 opencode.json 中将 Unquant 添加为 OpenAI 兼容提供商,并在 GLM-5.3-Flash 上运行终端编程 agent,享有 262K 上下文和无限 token。
- 面向编程和 agent 的无审查 AI开发者在编程和 agent 场景中使用无审查模型的原因:安全研究、逆向工程或敏感内容管道不会被拒绝,加之 262K 上下文和无限 token 支持长 agent 循环。