Connect Copilot CLI
Start the Agent Memory server
In a separate terminal, start the memory server before launching Copilot:The server runs on port 3111. Keep this terminal open.
Wire Agent Memory into Copilot
Run the connect command:This merges
mcpServers.agentmemory into ~/.copilot/mcp-config.json (or $COPILOT_HOME/mcp-config.json when COPILOT_HOME is set), preserving any existing MCP server entries.Full Plugin Install (hooks and skills)
For the complete experience with lifecycle hooks and skills, install the plugin directly inside a Copilot session:Manual MCP Config
If you prefer to configure it yourself, add this block to~/.copilot/mcp-config.json:
The
"tools": ["*"] field tells Copilot to make all Agent Memory tools available. The "type": "local" field marks this as a locally-spawned MCP server.What Copilot Remembers
Once Agent Memory is connected, Copilot builds a persistent picture of your project across sessions:Project conventions and patterns
Naming conventions, folder structures, preferred libraries, and code style patterns observed across sessions.
Past bug fixes and root causes
When you fix a bug, Agent Memory records the root cause. Copilot can recall this context if a related issue comes up later.
Architecture decisions
Technology choices, dependency decisions, and the reasoning behind them — so Copilot understands why your project is structured the way it is.
Frequently accessed files
Files you touch often and their roles in the codebase, so Copilot understands what is important in your project.
Install Native Skills (optional)
After connecting, install Agent Memory’s skills to make Copilot more proactive about using memory:Verification
After connecting, start a new Copilot session and ask it about a past decision:What do you remember about how authentication is set up in this project?If Agent Memory has context from a previous session where you worked on auth, Copilot will surface it. If the session is fresh, ask it to use
memory_recall directly:
Use memory_recall to search for any context about this project.To check the server from your terminal:
http://localhost:3113 shows all stored memories and when they were last accessed.
Windows Note
agentmemory connect copilot-cli is the one connect adapter that is Windows-safe. On Windows, the MCP server config uses cmd.exe under the hood to spawn npx. All other agentmemory connect adapters currently require macOS or Linux (or WSL2 on Windows).