Skip to content

常见问题:高级配置问题解答

OpenClaw 高级配置中的常见问题和解决方案。


🔧 配置问题

Q1: 如何配置多个大模型?

json
{
  "models": {
    "default": "zhipu",
    "providers": {
      "zhipu": { "apiKey": "xxx" },
      "openai": { "apiKey": "xxx" }
    }
  }
}

Q2: 如何配置代理?

json
{
  "proxy": {
    "http": "http://127.0.0.1:7890",
    "https": "http://127.0.0.1:7890"
  }
}

Q3: 如何配置权限?

json
{
  "security": {
    "allowPaths": ["~/Documents"],
    "denyPaths": ["/etc"]
  }
}

🐛 故障排查

Q4: 配置不生效?

解决:重启服务

bash
openclaw restart

Q5: 权限错误?

解决:检查配置

bash
openclaw config check

💡 优化建议

Q6: 如何提升性能?

json
{
  "performance": {
    "maxConcurrent": 10,
    "cache": { "enabled": true }
  }
}

创建时间:2026-04-07