Installation
Install the 0Latency MCP server globally via npm:
npm install -g @0latency/mcp-server
Or use it directly with npx (no installation required):
npx -y @0latency/mcp-server
Authentication
Get your API key from 0latency.ai and set it as an environment variable:
export ZEROLATENCY_API_KEY=zl_live_...
Your API key is used to authenticate all requests to the 0Latency memory API.
First Memory
Python SDK
Store and recall memories using the Python SDK:
from zerolatency import Memory
# Initialize the client
memory = Memory(api_key="zl_live_...")
# Store a memory
result = memory.seed(
agent_id="assistant-1",
facts=[{
"text": "User prefers concise responses",
"category": "preference"
}]
)
# Recall memories
memories = memory.recall(
agent_id="assistant-1",
query="How should I format my responses?"
)
print(memories)
JavaScript SDK
Use the JavaScript SDK in Node.js or browser environments:
import { Memory } from '@0latency/sdk';
// Initialize the client
const memory = new Memory({ apiKey: 'zl_live_...' });
// Store a memory
await memory.seed({
agentId: 'assistant-1',
facts: [{
text: 'User prefers dark mode',
category: 'preference'
}]
});
// Recall memories
const memories = await memory.recall({
agentId: 'assistant-1',
query: 'What are the user settings?'
});
console.log(memories);
MCP Setup
Connect 0Latency to Claude Desktop, Cursor, Windsurf, or any MCP-compatible client.
Claude Desktop Configuration
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"0latency": {
"command": "npx",
"args": ["-y", "@0latency/mcp-server"],
"env": {
"ZEROLATENCY_API_KEY": "zl_live_..."
}
}
}
}
Verify Connection
Restart Claude Desktop and verify the MCP server is connected:
- ✓ Look for the 0Latency icon in the toolbar
- ✓ Try: "Store this memory: I prefer Python over JavaScript"
- ✓ Try: "What programming language do I prefer?"
Next Steps — Choose Your Path
Get started based on your use case:
🧑💻 Casual User
Use ChatGPT, Claude, or Gemini? Get a free API key, install the Chrome extension, and your AI remembers everything.
Get API Key + Chrome Extension →👨💻 Developer / Team
Building AI agents? Integrate with MCP, Python/JS SDKs, or REST API.
View Integrations →All Integrations
0Latency works with your existing tools and frameworks:
MCP Server
Model Context Protocol
Claude Desktop
Native Claude app integration
Claude Code
Coding assistant memory
Cursor
AI code editor integration
Windsurf
Windsurf IDE memory
LangChain
LangChain agent memory
CrewAI
Persistent memory for crews
AutoGen
Multi-agent memory sharing
OpenClaw
Memory for OpenClaw agents
Claude.ai (Web)
Chrome extension for Claude
REST API
Direct API integration