The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.
Python agentic-memoryagentic-memory-systemagentsaiai-agentschatgptgenaillmlong-term-memorymemorymemory-managementpythonragstate-management
Doc: api_key changes (#2251)
Dev Khant1be0d70d02a6
diff --git a/docs/docs.json b/docs/docs.jsonindex 51767a49c..d4d924352 100644--- a/docs/docs.json+++ b/docs/docs.json@@ -54,7 +54,7 @@"features/direct-import","features/async-client","features/memory-export",- "features/webhook"+ "features/webhooks"]}]diff --git a/docs/features/async-client.mdx b/docs/features/async-client.mdxindex 18de6ed75..c520ba886 100644--- a/docs/features/async-client.mdx+++ b/docs/features/async-client.mdx@@ -14,13 +14,17 @@ To use the async client, you first need to initialize it:<CodeGroup>```python Python+import osfrom mem0 import AsyncMemoryClient-client = AsyncMemoryClient(api_key="your-api-key")++os.environ["MEM0_API_KEY"] = "your-api-key"++client = AsyncMemoryClient()``````javascript JavaScriptconst { MemoryClient } = require('mem0ai');-const client = new MemoryClient('your-api-key');+const client = new MemoryClient({ apiKey: 'your-api-key'});```</CodeGroup>diff --git a/docs/features/multimodal-support.mdx b/docs/features/multimodal-support.mdxindex 7bf913de7..a93a75910 100644--- a/docs/features/multimodal-support.mdx+++ b/docs/features/multimodal-support.mdx@@ -13,10 +13,12 @@ When a user submits an image, Mem0 processes it to extract textual information a<CodeGroup>```python Code+import osfrom mem0 import MemoryClient-# Initialize the MemoryClient with your API key-client = MemoryClient(api_key="your_api_key_here")+os.environ["MEM0_API_KEY"] = "your-api-key"++client = MemoryClient()messages = [{diff --git a/docs/features/webhook.mdx b/docs/features/webhooks.mdxsimilarity index 96%rename from docs/features/webhook.mdxrename to docs/features/webhooks.mdxindex abadc946c..8994d490e 100644--- a/docs/features/webhook.mdx+++ b/docs/features/webhooks.mdx@@ -17,9 +17,12 @@ Create a webhook for your project; it will receive events only from that project<CodeGroup>```python Python+import osfrom mem0 import MemoryClient-client = MemoryClient(api_key="your-api-key")+os.environ["MEM0_API_KEY"] = "your-api-key"++client = MemoryClient()# Create webhook in a specific projectwebhook = client.create_webhook(@@ -33,7 +36,7 @@ print(webhook)```javascript JavaScriptconst { MemoryClient } = require('mem0ai');-const client = new MemoryClient('your-api-key');+const client = new MemoryClient({ apiKey: 'your-api-key'});// Create webhook in a specific projectconst webhook = await client.createWebhook({diff --git a/docs/integrations/langchain-tools.mdx b/docs/integrations/langchain-tools.mdxindex e11945498..9edfa31c3 100644--- a/docs/integrations/langchain-tools.mdx+++ b/docs/integrations/langchain-tools.mdx@@ -25,9 +25,11 @@ from langchain_core.tools import StructuredToolfrom mem0 import MemoryClientfrom pydantic import BaseModel, Fieldfrom typing import List, Dict, Any, Optional+import os++os.environ["MEM0_API_KEY"] = "your-api-key"client = MemoryClient(- api_key=your_api_key,org_id=your_org_id,project_id=your_project_id)diff --git a/docs/open-source/quickstart.mdx b/docs/open-source/quickstart.mdxindex 26df8173d..50d71acac 100644--- a/docs/open-source/quickstart.mdx+++ b/docs/open-source/quickstart.mdx@@ -426,8 +426,12 @@ Get started with using Mem0 APIs in your applications. For more details, refer tHere is an example of how to use Mem0 APIs:```python+import osfrom mem0 import MemoryClient-client = MemoryClient(api_key="your-api-key") # get api_key from https://app.mem0.ai/++os.environ["MEM0_API_KEY"] = "your-api-key"++client = MemoryClient() # get api_key from https://app.mem0.ai/# Store messagesmessages = [