Skip to content
VS Code

ChainMemory for VS Code

io.github.chaelynet/chainmemory

Persistent cross-model memory for AI agents: verifiable, portable, client-side encrypted.

client:VS Code transport:stdio runtime:npm

Install ChainMemory in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "chainmemory-api-key",
      "description": "CHAINMEMORY_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "chainmemory-seed-phrase",
      "description": "CHAINMEMORY_SEED_PHRASE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "chainmemory-api-base",
      "description": "CHAINMEMORY_API_BASE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "aichain-key",
      "description": "AICHAIN_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "aichain-rpc",
      "description": "AICHAIN_RPC",
      "password": true
    }
  ],
  "servers": {
    "chainmemory": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "chainmemory-mcp"
      ],
      "env": {
        "CHAINMEMORY_API_KEY": "${input:chainmemory-api-key}",
        "CHAINMEMORY_SEED_PHRASE": "${input:chainmemory-seed-phrase}",
        "CHAINMEMORY_API_BASE": "${input:chainmemory-api-base}",
        "AICHAIN_KEY": "${input:aichain-key}",
        "AICHAIN_RPC": "${input:aichain-rpc}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

ChainMemory in other clients