{"id":18543,"library":"memax-cli","title":"Memax CLI","description":"Universal context and memory hub CLI designed for AI agents, currently at v0.1.2. Provides persistent memory, inter-agent context sharing, and role-based context injection for AI assistants like Claude Code. Key differentiators: integrates with LLM-powered workflows via JSON commands, supports dynamic memory retrieval, and offers both authentication and session-based memory management. Actively developed with a focus on agent-to-agent communication.","status":"active","version":"0.1.2","language":"javascript","source_language":"en","source_url":"https://github.com/MemaxLabs/memax","tags":["javascript","memax","ai","memory","context","cli","claude-code","agent"],"install":[{"cmd":"npm install memax-cli","lang":"bash","label":"npm"},{"cmd":"yarn add memax-cli","lang":"bash","label":"yarn"},{"cmd":"pnpm add memax-cli","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"HTTP requests for API communication","package":"node-fetch","optional":true}],"imports":[{"note":"ESM-only; CJS require will fail","wrong":"const memax = require('memax-cli')","symbol":"default","correct":"import memax from 'memax-cli'"},{"note":"Named export, not default","wrong":"import MemaxClient from 'memax-cli'","symbol":"MemaxClient","correct":"import { MemaxClient } from 'memax-cli'"},{"note":"Named export; used for authentication","wrong":"import login from 'memax-cli'","symbol":"login","correct":"import { login } from 'memax-cli'"}],"quickstart":{"code":"import { MemaxClient } from 'memax-cli';\n\nconst client = new MemaxClient({\n  apiKey: process.env.MEMAX_API_KEY ?? '',\n  session: 'my-session'\n});\n\nawait client.setContext('user', { name: 'Alice', mood: 'curious' });\nconst ctx = await client.getContext('user');\nconsole.log(ctx);\n\nawait client.shareContext('agent-2', ['user']);\n\nconst search = await client.searchMemory('curious');\nconsole.log(search);","lang":"typescript","description":"Initializes the Memax client, sets and retrieves context, shares context with another agent, and searches memory."},"warnings":[{"fix":"Always set Accept: application/vnd.memax.v2+json in requests when upgrading","message":"API versioning: requests without Accept header default to v1, but future versions may break","severity":"breaking","affected_versions":"<0.2.0"},{"fix":"Wrap string values in an object: { value: 'mystring' }","message":"setContext parameter now requires object, not string; v0.1.0 accepted strings","severity":"deprecated","affected_versions":"0.1.0 - 0.1.1"},{"fix":"Wait 2 seconds after setContext or use the 'immediate' mode: { consistency: 'strong' }","message":"Memory search may return stale results due to eventual consistency (up to 2s delay)","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"npm install node-fetch@2 and ensure Node >=14","cause":"Missing peer dependency node-fetch or incorrect Node.js version (<14)","error":"Error: Cannot find module 'memax-cli'"},{"fix":"Use import { MemaxClient } from 'memax-cli'","cause":"Using default import instead of named import","error":"TypeError: memax is not a function"},{"fix":"Set MEMAX_API_KEY in environment or pass apiKey to constructor","cause":"Missing or invalid MEMAX_API_KEY environment variable","error":"UnhandledPromiseRejection: 401 Unauthorized"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}