Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
TypeScript aiai-agentsai-memoryanthropicartificial-intelligencechromadbclaudeclaude-agent-sdkclaude-agentsclaude-codeclaude-code-pluginclaude-skillsembeddingslong-term-memorymem0memory-engineopenmemoryragsqlitesupermemory
/**
* Whether a saved OpenRouter base URL is the claude-mem observer's: the cmem.ai
* gateway that `npx claude-mem install` sets up with its own key. The viewer
* shows that base URL read-only. The observer key only works there, so moving
* to another endpoint takes a key for that endpoint too, which the installer
* swaps in together with the URL.
*/
export function isClaudeMemObserverBaseUrl(value: string | undefined): boolean {
try {
return new URL((value ?? '').trim()).hostname === 'cmem.ai';
} catch {
return false;
}
}