Windsurf (Devin Desktop) + agimem
Give your Devin Desktop or Windsurf agent persistent memory that survives across sessions.
Windsurf is now Devin Desktop, and its local agent is Devin Local. With agimem, your agent can remember things between sessions — architecture decisions, debugging notes, preferred libraries, and project-specific context. Connect agimem as an MCP server and your agent picks up where it left off instead of starting fresh.
Setup in 4 steps
Create a Capsule on agimem
Sign up at agimem.dev and create a Capsule from the dashboard. Each Capsule is an isolated memory space for your agent.
Generate an API key
Click your Capsule and generate an API key. It starts with agm_ — copy it immediately as it won't be shown again.
Add the MCP server
In Devin Desktop, open the Agents window, click Customize, then MCPs to open your config file, or edit it directly. Add the agimem server configuration with your API key.
Start using memory
Your agent now has access to memory tools. Ask it to store your project's conventions or architecture notes, and they'll persist across every future session.
Fastest way: paste a prompt
Give this prompt to your Windsurf (Devin Desktop) agent and it will configure everything automatically:
Agent prompt
Set up agimem as my memory server: https://agimem.dev/setup
Manual configuration
Add this to your user-level MCP configuration. On Windows the file is %APPDATA%\\devin\\mcp_config.json. Older Windsurf builds use ~/.codeium/windsurf/mcp_config.json and expect serverUrl in place of url:
~/.config/devin/mcp_config.json
{
"mcpServers": {
"agimem": {
"url": "https://agimem.dev/api/mcp",
"headers": {
"Authorization": "Bearer agm_your_api_key"
}
}
}
}What your agent can do with agimem
- Store and recall coding conventions
- Remember project architecture across sessions
- Share context between multiple agents
- Keep research notes and findings persistent
- Track preferences and writing style
- Maintain state for long-running automations
- Organize memories with tags
- Set time-to-live for temporary data
Frequently asked questions
Does Devin Desktop support remote MCP servers?
Yes. Devin Desktop supports remote MCP servers via Streamable HTTP transport, which is what agimem uses. No local process or stdio setup needed.
Can I use different Capsules for different projects?
Yes. Put a project-level config in .devin/mcp_config.local.json, which is gitignored, with that project's API key. Or use one Capsule for everything — it's up to you.
Why use agimem instead of built-in memories?
agimem gives you a portable memory layer that works across any MCP client, so your agent's memories aren't locked into one tool.
Ready to get started?
Create a free Capsule and connect Windsurf (Devin Desktop).