Claude Code Plugin
Connect Claude Code directly to a GoodMem instance with an API key or sign in to GoodMem Cloud through the hosted gateway.
Install the plugin
The GoodMem plugin lets Claude Code search memory spaces, ingest documents, and cite retrieved passages. It also includes Python and Java SDK skills for writing application code.
To get PAIR’s current release with both connections, run these commands in Claude Code:
/plugin marketplace add PAIR-Systems-Inc/goodmem-claude-code-plugin
/plugin install goodmem@goodmem-pluginsThe Claude community directory also distributes a reviewed snapshot. To use that version, run /plugin marketplace add anthropics/claude-plugins-community and then /plugin install goodmem@claude-community. Choose one installation source. If your community installation only shows goodmem under /mcp and you need the gateway, uninstall that copy through /plugin, install the PAIR release above, and run /reload-plugins.
Connect directly to an instance
Choose goodmem for a self-hosted server or a managed instance for which you have an instance API key. Set the REST origin and load the key in the shell that launches Claude Code. In this example, MY_GOODMEM_INSTANCE_KEY holds the secret from your existing credential store.
export GOODMEM_BASE_URL="https://your-server.example.com"
export GOODMEM_API_KEY="$MY_GOODMEM_INSTANCE_KEY"
claudeFor a server with a private certificate authority, also set NODE_EXTRA_CA_CERTS to the absolute path of its PEM file before launching Claude Code. Restart Claude Code after changing its environment.
The plugin launches a local stdio MCP server that calls the instance API with your key. Its permissions determine which spaces you can read and which resources you can change. Open /mcp and select goodmem to inspect the current tools. For read-only HTTP access, see GoodMem Server’s built-in MCP endpoint.
Connect through GoodMem Cloud
Choose goodmem-gateway to work with memories on a managed instance through browser sign-in.
- In Claude Code, open
/mcp, select goodmem-gateway, and choose Authenticate. - Sign in to GoodMem Cloud in the browser and select the managed instance.
- Return to Claude Code and ask it to list the memory spaces on that connection.
The gateway supports memory search, saving documents by URL, and creating spaces. It can open the Cloud console for model setup. Gateway calls currently use the selected instance’s root authority, so this connection is intended for single-owner instances. To switch instances, clear the gateway authentication in /mcp and sign in again. Workspace billing, provisioning, and tuned-model downloads use the GoodMem Cloud CLI.
Try a search
Ask Claude to search an existing memory space for a question from one of your documents and cite the passage it found. If both connections are active, name the connection and the space in your request.