Skip to content

Eko interactive_setup: get_env_var/set_env_var no longer in hermes_cli.config #68

@S2P2

Description

@S2P2

Problem

interactive_setup() in plugins/platforms/eko/adapter.py imports get_env_var and set_env_var from hermes_cli.config:

from hermes_cli.config import get_env_var, set_env_var

These functions were removed from upstream's hermes_cli/config.py a while ago (pre-restructure). The adapter already has an except ImportError guard that falls back to printing a manual message, so it doesn't crash, but the interactive setup wizard (hermes setup eko) can no longer auto-save values to .env.

Impact

  • hermes setup eko prints "set EKO_* vars manually in ~/.hermes/.env" instead of interactively prompting and persisting credentials
  • No runtime breakage — gateway, messaging, and tools all work fine

Fix

Update interactive_setup() to write directly to ~/.hermes/.env (append lines) instead of relying on the removed helpers. Mirror the pattern used by other platform adapters that were updated after the removal.

File

plugins/platforms/eko/adapter.py — lines ~981–1005

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingready-for-agentFully specified, ready for an AFK agent

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions