Skip to main content

Agent Magnet

io.github.helinakdogan/agent-magnet

v0.1.11Updated Jun 18, 2026stdio · PyPI

Behavioral memory layer for AI tools. Learns preferences and context across Claude, Cursor, Codex.

Install

Replace 1 placeholder with your own values.

Run in your terminal. Replace 1 placeholder.

claude mcp add agent-magnet -e 'MAGNET_USER_ID=<your-magnet-user-id>' -- uvx agent-magnet==0.1.11

Configuration

5 settings.

  • MAGNET_USER_ID
    Env var· required
    Your identifier used as the memory key across all tools
  • MAGNET_OPENAI_KEY
    Env var· optional
    OpenAI API key for the reflector and classifier models
  • MAGNET_LOCAL_MODE
    Env var· optional
    Set to 1 to use local SQLite storage — no Redis or external services needed
  • MAGNET_REDIS_URL
    Env var· optional
    Redis connection URL for persistent shared storage (overrides local mode)
  • MAGNET_PROJECT_ID
    Env var· optional
    Namespace for memory isolation across projects (defaults to 'default')

Listed in the official MCP Registry since Jun 18, 2026. Mirrored daily; last checked Nov 26, 2026.