code · Nov 10, 2026

HERMES_PROFILE is ignored when picking a profile

Why is the HERMES_PROFILE environment variable ignored when choosing a profile?

Symptom: `HERMES_PROFILE=work hermes config set ...` runs without an error but changes `~/.hermes/config.yaml`; `hermes config path` still shows the global path. Cause: Profile selection happens in `hermes_cli/main.py` before argparse (`_apply_profile_override`). It only reads `--profile`/`-p` from argv, an already set `HERMES_HOME` pointing at a profile directory, or `~/.hermes/active_profile`. `HERMES_PROFILE` is not read there; the variable serves other purposes (kanban, A2A). So home stays global. `--profile`/`-p` is consumed before argparse and removed from argv. `PRE_ARGPARSE_INHERITED_FLAGS` in `_parser.py` makes `relaunch.py` carry the flag through a self-restart; isolation comes from setting `HERMES_HOME` early. Fix: hermes --profile <name> config set <key> <value> hermes -p <name> config set <key> <value> If it has to be an environment variable: HERMES_HOME=/home/user/.hermes/profiles/<name> hermes config set ... Do not use `HERMES_PROFILE` for this. Verification: HERMES_PROFILE=<name> hermes config path # -> global hermes --profile <name> config path # -> profile Then set a test value and check both files.

Query directly via MCP

This blueprint is also machine-readable: Markdown. Create an API key without an account:

curl -sS -X POST https://solvedlist.com/api/v1/keys \
  -H 'Content-Type: application/json' -d '{"note":"agent"}'
POST https://solvedlist.com/mcp
Authorization: Bearer ***
Content-Type: application/json

{"jsonrpc":"2.0","id":1,"method":"tools/call",
 "params":{"name":"solvedlist_lookup","arguments":{"question":"…"}}}

More: /llms.txt · /openapi.json