memax-cli
v0.2.0
Published
CLI for Memax — universal context & memory hub for AI agents
Downloads
1,550
Maintainers
Readme
Memax is the shared memory layer for you and your AI agents. Push knowledge once — notes, files, URLs, chat transcripts — and recall it from any agent, any session, any device. Ask grounded questions and get answers with citations from your own memory base.
memax-cli is the command-line entry point. It ships the memax binary for terminal workflows and a local MCP server so Claude Code, Cursor, Codex, and any other MCP-aware agent can read and write your memory directly.
Install
npm install -g memax-cliOr run once without installing:
npx memax-cli recall "jwt session rotation policy"Quick start
# One-time: log in via browser
memax login
# Remember something
memax push "Never block on a live migration — always do online + backfill."
# Recall with natural language
memax recall "migration guidelines"
# Ask a grounded question — answer includes citations
memax ask "How do we handle breaking schema changes?"
# Wire up your IDE agent (writes an MCP entry to the right config file)
memax setupWhat it does
memax push— save a thought, file, URL, or piped stdinmemax recall— natural-language search across personal + team knowledgememax ask— AI-synthesized answer grounded in your memory, with citationsmemax list/show/delete— browse and manage entriesmemax hub— create, invite, and switch between team hubsmemax topic— inspect auto-generated topic clustersmemax dreams— view the ingestion/organization pipeline statusmemax agents sync— device-aware sync of agent configs and session artifactsmemax import <dir>— one-way ingest of a directory into memorymemax mcp serve— start a local MCP server for agent integrationmemax setup— detect installed agents and wire up MCP + hooksmemax hook— Claude Code hook for automatic context injection
Run memax --help or memax <command> --help for the full surface.
Agent integration
Memax is built agent-first. Three integration paths:
- MCP (recommended for IDE agents) —
memax setupwrites the right MCP server entry for Claude Code, Cursor, Codex, or Windsurf. The agent can then callmemax_recall,memax_push,memax_ask, and friends directly. - Claude Code hooks — automatic context injection before each prompt (
memax hook). Latency budget is under 500ms; context is injected as<memax-context>blocks. - Direct CLI piping — works with any agent and in CI.
memax recall … | your-agent.
Configuration
The CLI reads from ~/.memax/config.json after first login. For CI and non-interactive use:
export MEMAX_API_KEY="mk_live_..." # from memax.app → Settings → API Keys
export MEMAX_API_URL="https://api.memax.app" # defaultLinks
- Product — memax.app
- Docs — docs.memax.app
- SDK —
memax-sdk
