┌─────────────────────────────────────────────────────────┐ │ 🩺 Hermes Doctor │ ...

2026年06月02日 11:36 28.02 秒 success

错误信息

┌─────────────────────────────────────────────────────────┐ │ 🩺 Hermes Doctor │ └─────────────────────────────────────────────────────────┘ ◆ Security Advisories ✓ No active security advisories ◆ Python Environment ✓ Python 3.11.15 ✓ Virtual environment active ✓ Version files consistent (0.15.1) ◆ Required Packages ✓ OpenAI SDK ✓ Rich (terminal UI) ✓ python-dotenv ✓ PyYAML ✓ HTTPX ✓ Croniter (cron expressions) (optional) ⚠ python-telegram-bot (optional, not installed) ⚠ discord.py (optional, not installed) ◆ Configuration Files ✓ ~/.hermes/.env file exists ✓ API key or custom endpoint configured ✓ ~/.hermes/config.yaml exists ✓ Config version up to date (v25) ◆ xAI Model Retirement (May 15, 2026) ✓ No retired xAI models in config ◆ Auth Providers ⚠ Nous Portal auth (not logged in) ⚠ OpenAI Codex auth (not logged in) → No Codex credentials stored. Run `hermes auth` to authenticate. → codex CLI not installed (optional — only required to import tokens from an existing Codex CLI login) ⚠ Google Gemini OAuth (not logged in) ⚠ MiniMax OAuth (not logged in) ⚠ xAI OAuth (not logged in) → No xAI OAuth credentials stored. Select xAI Grok OAuth (SuperGrok / Premium+) in `hermes model`. ◆ Directory Structure ✓ ~/.hermes directory exists ✓ ~/.hermes/cron/ exists ✓ ~/.hermes/sessions/ exists ✓ ~/.hermes/logs/ exists ✓ ~/.hermes/skills/ exists ✓ ~/.hermes/memories/ exists ✓ ~/.hermes/SOUL.md exists (persona configured) ✓ ~/.hermes/memories/ directory exists → MEMORY.md not created yet (will be created when the agent first writes a memory) → USER.md not created yet (will be created when the agent first writes a memory) ✓ ~/.hermes/state.db exists (0 sessions) ◆ External Tools ✓ git ✓ ripgrep (rg) (faster file search) ⚠ docker not found (optional) ✓ Node.js ⚠ agent-browser not installed (run: npm install) ◆ API Connectivity ⚠ OpenRouter API (not configured) ◆ Tool Availability ✓ clarify ✓ code_execution ✓ cronjob ✓ terminal ✓ delegation ✓ file ✓ image_gen ✓ memory ✓ session_search ✓ skills ✓ todo ✓ tts ✓ kanban (runtime-gated; loaded only for dispatcher-spawned workers) ⚠ browser-cdp (system dependency not met) ⚠ browser (system dependency not met) ⚠ computer_use (system dependency not met) ⚠ discord (missing DISCORD_BOT_TOKEN) ⚠ discord_admin (missing DISCORD_BOT_TOKEN) ⚠ feishu_doc (system dependency not met) ⚠ feishu_drive (system dependency not met) ⚠ homeassistant (system dependency not met) ⚠ moa (missing OPENROUTER_API_KEY) ⚠ messaging (system dependency not met) ⚠ video_gen (system dependency not met) ⚠ vision (system dependency not met) ⚠ video (system dependency not met) ⚠ web (missing EXA_API_KEY, PARALLEL_API_KEY, TAVILY_API_KEY, FIRECRAWL_API_KEY, FIRECRAWL_API_URL, FIRECRAWL_GATEWAY_URL, TOOL_GATEWAY_DOMAIN, TOOL_GATEWAY_SCHEME, TOOL_GATEWAY_USER_TOKEN) ⚠ x_search (missing XAI_API_KEY) ⚠ hermes-yuanbao (system dependency not met) ⚠ spotify (system dependency not met) ◆ Skills Hub ⚠ Skills Hub directory not initialized (run: hermes skills list) ⚠ No GITHUB_TOKEN (60 req/hr rate limit — set in ~/.hermes/.env for better rates) ◆ Memory Provider ✓ Built-in memory active (no external provider configured — this is fine) ──────────────────────────────────────────────────────────── Found 1 issue(s) to address: 1. Run 'hermes setup' to configure missing API keys for full tool access Tip: run 'hermes doctor --fix' to auto-fix what's possible.

AI 解决方案

🌐 错误翻译


原文:Run 'hermes setup' to configure missing API keys for full tool access
译文:运行 ‘hermes setup’ 以配置缺失的 API 密钥,从而获得完整的工具访问权限。

🎯 原因分析


根据您提供的 hermes doctor 诊断报告,根本原因是系统的多个关键工具和服务缺少必要的配置或认证信息。这导致了大量工具处于受限或不可用状态(标记为 ⚠️),例如:
  • 缺少 API 密钥:多个工具(如 web, x_search, moa)因缺少 EXA_API_KEY, XAI_API_KEY, OPENROUTER_API_KEY 等环境变量而无法工作。

  • 缺少可选依赖:如 python-telegram-bot, discord.py 未安装。

  • 缺少认证:多个 OAuth 服务(Nous Portal, Google Gemini, xAI 等)未登录。

  • 系统依赖不满足:如 docker, agent-browser 未安装或缺失。
  • 核心问题在于:应用的核心框架已就绪(Python 环境、基础包、目录结构正常),但通往外部服务和高级功能的“钥匙”(API Keys、认证、特定依赖)尚未配置。

    💡 解决方案


    您需要运行报告中明确指出的命令来引导配置过程。这是一个交互式命令,会提示您输入或设置缺失的密钥。

    # 运行 Hermes 设置向导,配置所有缺失的 API 密钥和认证
    hermes setup
    

    执行此命令后,按照终端提示:

  • 它可能会引导您创建或更新环境变量文件 (~/.hermes/.env)。

  • 对于需要登录的服务(如 xAI OAuth),它可能会提供登录链接或指引。

  • 对于缺失的可选依赖(如 docker),它会提示您手动安装。
  • 🛡️ 预防措施


  • 定期运行诊断:在配置新工具或遇到问题时,定期运行 hermes doctor 可以快速了解环境状态。

  • 管理环境变量:将 ~/.hermes/.env 文件纳入版本控制(或安全备份),并使用密钥管理工具(如 dotenvdirenv 或云密钥管理服务)来维护它们,避免配置丢失。

  • 按需安装可选组件:根据您的使用场景(如是否需要 Discord 机器人),仅安装和配置必要的可选依赖(如 discord.py),以保持环境简洁。