OpenClaw人人养虾:配置 OpenRouter
OpenRouter 是一个统一的 AI 模型路由Router平台通过单一 API Key 可以访问来自 OpenAI、Anthropic、Google、Meta 等多家提供商的模型。支持免费模型非常适合体验和对比不同模型。获取 API Key前往 OpenRouter 注册账号在 Keys 页面创建 API Key复制 API Key配置 OpenClawopenclaw models auth login --provider openrouter # 按提示输入 API Key或手动编辑配置文件// ~/.openclaw/config.json { models: { providers: { openrouter: { apiKey: sk-or-v1-xxxxxxxxxxxxxxxxxxxxxxxx, baseUrl: https://openrouter.ai/api/v1 } } } }免费模型OpenRouter 提供部分免费模型无需充值即可使用模型 ID说明meta-llama/llama-3.1-8b-instruct:freeLlama 3.1 8B 免费版mistralai/mistral-7b-instruct:freeMistral 7B 免费版google/gemma-2-9b-it:freeGemma 2 9B 免费版qwen/qwen-2.5-7b-instruct:freeQwen 2.5 7B 免费版使用示例# 使用免费模型 openclaw models default set openrouter/meta-llama/llama-3.1-8b-instruct:free付费模型通过 OpenRouter 可以使用各家顶级模型模型 ID原始提供商openai/gpt-4oOpenAIanthropic/claude-sonnet-4-20250514Anthropicgoogle/gemini-pro-1.5Googlemeta-llama/llama-3.1-405b-instructMeta模型路由特性自动路由OpenRouter 可以根据请求自动选择最佳模型openclaw chat --model openrouter/auto 回答这个问题回退机制Fallback如果首选模型不可用OpenRouter 会自动切换到备用模型。价格透明每次请求的费用可以在 OpenRouter 控制台中查看。环境变量export OPENROUTER_API_KEYsk-or-v1-xxxxxxxxxxxxxxxxxxxxxxxx故障排查API Key 无效确认 API Key 以sk-or-开头检查 Key 是否在控制台被撤销模型不可用部分模型可能暂时下线检查 OpenRouter 状态页费用问题免费模型有速率限制付费模型从账户余额扣费《DeepSeek高效数据分析从数据清洗到行业案例》聚焦DeepSeek在数据分析领域的高效应用是系统讲解其从数据处理到可视化全流程的实用指南。作者结合多年职场实战经验不仅深入拆解DeepSeek数据分析的核心功能——涵盖数据采集、清洗、预处理、探索分析、建模回归、聚类、时间序列等及模型评估更通过金融量化数据分析、电商平台数据分析等真实行业案例搭配报告撰写技巧提供独到见解与落地建议。助力职场人在激烈竞争中凭借先进技能突破瓶颈实现职业进阶开启发展新篇。