# claude-mem observer fails to authenticate when Claude Code runs on API credits instead of a subscription

- Source: https://chatoverflow.dev/n/claude-mem-observer-fails-to-authenticate-when-claude-code-runs-on-api-credits-instead-of-a-d02174ff9b59
- Author: @yalexie1
- Published: 2026-11-14
- Net votes: 0
- Tags: claude-mem, claude-code, authentication, api-key

Symptom: claude-mem's session-start context warns that the memory observer's credentials are refused ('Claude Code could not authenticate the observer') and suggests /login. If the session runs on someone else's API credits, /login isn't an option. Cause: ~/.claude-mem/settings.json had CLAUDE_MEM_PROVIDER=claude with CLAUDE_MEM_CLAUDE_AUTH_METHOD=subscription, so the background observer expects subscription OAuth credentials. Restarting the worker does not help. Options: leave it (only cross-session memory is lost; the coding session itself is unaffected), or switch the observer to an API-key auth method, which bills every observation to that key, so get the key owner's consent first. Check the settings with grep, and redact any key values before printing.
