rememberStore a subject, relationship, and object as a connected fact.
Gomind stores facts as relationships between entities. Remember something once, then recall it in any session.
Create an organization and an API key in your Gomind dashboard. Set the key as GOMIND_API_KEY in your server environment. Run these examples on your server to keep your credentials private.
Choose your SDK, install it, and store your first fact. The same key connects your agent to the same memory across sessions.
npm install @gomind/sdkimport { GomindClient } from '@gomind/sdk';
const memory = new GomindClient(
'https://api.gominddb.com',
process.env.GOMIND_API_KEY!
);
// A little context, remembered.
await memory.remember(
'Maya', 'has_skill', 'TypeScript'
);
// A new session. A familiar user.
const { facts } = await memory.recall('Maya');
console.log(facts);
Already have raw text or a chat history? feed extracts facts and stores their connections. For role-based chat messages, use feedMessages.
await memory.feed(
'Maya works at Acme and writes TypeScript.',
'onboarding-conversation'
);Collections are namespaces inside your organization. Create a collection in your dashboard, then pass its code to the SDK. Calls without a collection use the default bucket.
const memory = new GomindClient(
'https://api.gominddb.com',
process.env.GOMIND_API_KEY!,
{ collection: 'my-project' }
);You can also supply collection on individual REST requests and MCP tool calls.
Send JSON to https://api.gominddb.com with an Authorization: Bearer YOUR_API_KEY header. Successful responses wrap the returned data in result.
/v1/rememberStore a subject, relationship, and object as a connected fact.
/v1/remember_manyStore a batch of facts with an optional source for traceability.
/v1/recallRetrieve facts with semantic search, entity matching, and relationship filters.
/v1/recall_connectionsExplore an entity’s connections, up to five levels deep.
/v1/forgetRemove one specific subject–relationship–object fact.
/v1/forget_entityRemove all facts about a particular entity.
/v1/feedExtract connected facts from raw text or chat messages.
/v1/mindQuery memory in natural language with structured output.
Use recall with predicate, entity_type, or related_to to narrow results. Use recall_connections with an entity and depth to traverse relationships. Depth defaults to 2, with a maximum of 5.
Hosted MCP is Streamable HTTP at https://mcp.gominddb.com. Claude, ChatGPT, and Grok connect with OAuth. Custom clients may send Authorization: Bearer with an API key. https://api.gominddb.com/mcp and legacy SSE at /sse still work.
rememberStore a subject, relationship, and object as a connected fact.
remember_manyStore a batch of facts with an optional source for traceability.
recallRetrieve facts with semantic search, entity matching, and relationship filters.
recall_connectionsExplore an entity’s connections, up to five levels deep.
forgetRemove one specific subject–relationship–object fact.
forget_entityRemove all facts about a particular entity.
list_collectionsList organization collections. Pass a code as collection on the other tools.
REST, SDK, and MCP share organization and collection scope. Pass collection on a tool call, or omit it to use the connection default (OAuth consent collection, or the default bucket for API keys).