VS Code
Use the first-party PowerMem VS Code extension to connect VS Code to PowerMem, query memories from the editor, save selected text, and link other AI tools.
Recommended setup — let VS Code agent set it up
First download the code and enter the directory:
git clone https://github.com/oceanbase/powermem
cd powermem
Then open the AI agent window in VS Code and paste this one line:
Read and follow apps/vscode-extension/SETUP.md to setup PowerMem
The agent follows apps/vscode-extension/SETUP.md, reuses or starts the HTTP API backend first, and only falls back to MCP-only when HTTP cannot be made healthy.
Prerequisites
- VS Code 1.104 or newer.
- A running PowerMem backend:
powermem-server --host 0.0.0.0 --port 8848for HTTP API + MCP.powermem-mcp sse(port 8848) when you only need MCP.
- A configured PowerMem
.envor equivalent environment variables. Set your LLM provider, API key, and model before starting the backend.
Install powermem[server] for the HTTP API server. Install powermem[mcp] for the
local MCP command, and add seekdb when using the default embedded seekdb
storage/embedder.
Manual setup
Use this section only when you want to wire VS Code by hand.
Install
From source:
cd apps/vscode-extension
npm install
npm run compile
Then press F5 in VS Code to launch an Extension Development Host.
From a packaged .vsix:
code --install-extension powermem-vscode-*.vsix
Configure
- Open the command palette.
- Run PowerMem: Setup.
- Set Backend URL to
http://localhost:8848or your remote PowerMem server. - Set API key only if the server requires
X-API-Key. - Keep Connection Mode as
mcpunless you need HTTP-only context integration. - Run Test connection.
The full agent-friendly setup prompt is apps/vscode-extension/SETUP.md.
Use
- PowerMem: Query Memories searches saved memories.
- PowerMem: Add Selection to Memory saves highlighted text.
- PowerMem: Quick Note saves a short note.
- PowerMem: Dashboard opens the extension dashboard.
- PowerMem: Link to AI Tools writes supported client configs for Cursor, Claude, Windsurf, and GitHub Copilot.
Verify
- Confirm the status bar shows PowerMem without a warning icon.
- Run PowerMem: Quick Note and save
PowerMem VS Code probe: dragonfruit-zx9. - Run PowerMem: Query Memories and search
dragonfruit-zx9. - Confirm the probe appears in the results.
Troubleshooting
- If the status bar is disconnected, verify
powermem.backendUrland the backend health endpoint. - If search returns nothing, check the server logs and confirm the same
userIdscope is used. - If linked clients do not detect PowerMem, rerun PowerMem: Link to AI Tools and reload the target client.