Overview
Thememory setup command group installs EchoVault integration hooks into various coding agents. This enables automatic memory context injection at session start.
Syntax
Supported Agents
claude-code- Claude Code (Anthropic)cursor- Cursor AI editorcodex- Codex AIopencode- OpenCode (MCP server)
Subcommands
claude-code
Install hooks into Claude Code settings.Options
Path to
.claude directory. Default: ~/.claude (global) or ./.claude (project).Install in current project instead of globally (uses
./.claude).Examples
Global installation:cursor
Install hooks into Cursorhooks.json.
Options
Path to
.cursor directory. Default: ~/.cursor (global) or ./.cursor (project).Install in current project instead of globally (uses
./.cursor).Examples
Global installation:codex
Install EchoVault section into CodexAGENTS.md and config.toml.
Options
Path to
.codex directory. Default: ~/.codex (global) or ./.codex (project).Install in current project instead of globally (uses
./.codex).Examples
Global installation:opencode
Install EchoVault MCP server into OpenCode.Options
Install in current project instead of globally.
Examples
Global installation:Global vs Project Installation
Global installation (default)
- Installs to home directory:
~/.cursor,~/.claude, etc. - Works across all projects
- Agent sees all memories (use
--projectflag in hooks to filter)
Project-specific installation
- Installs to current directory:
./.cursor,./.claude, etc. - Only active in this project
- Useful for team-shared configurations
What Gets Installed
Claude Code
Adds memory context hook to.claude/settings.json:
Cursor
Adds memory hook to.cursor/hooks.json:
Codex
Adds EchoVault section to.codex/AGENTS.md and registers the hook in config.toml.
OpenCode
Registers the EchoVault MCP server in OpenCode’s MCP configuration.Verification
Check installation
Claude Code:Test the hook
Troubleshooting
Hook not running
-
Check installation:
-
Verify command works:
-
Check agent logs:
- Cursor: Check developer console
- Claude Code: Check extension logs
Permission errors
Config directory not found
Multiple Agents
You can install EchoVault for multiple agents:memory context at session start.
Use Cases
Setup for new project
Setup for all projects (global)
Team setup
Related Commands
memory uninstall- Remove hooksmemory context- Preview what agents will seememory mcp- Run MCP server for OpenCode
After installation, restart your coding agent to activate the hooks. The hooks run automatically at session start.