Developer quickstart
One key. One fact. One recall. The same memory is there the next time your agent starts.
Looking to use Gomind with ChatGPT, Claude, or Grok? Follow the connection guides—no coding needed.
Before you begin
Create an organization and an API key in the Gomind dashboard. Set it as
GOMIND_API_KEY on your server. Never put an API key in
browser code.
Remember. Recall. Repeat.
SDK / API
$
npm install @gomind/sdkmemory.ts
import { GomindClient } from '@gomind/sdk';
const memory = new GomindClient(
'https://api.gominddb.com',
process.env.GOMIND_API_KEY!
);
await memory.remember(
'user:maya', 'has_skill', 'TypeScript'
);
const { facts } = await memory.recall('user:maya');
console.log(facts);
Memory persists. Even when the session doesn’t.
$
go get github.com/ingate/[email protected]main.go
package main
import (
"context"
"fmt"
"log"
"os"
gomind "github.com/ingate/gomind-go-sdk"
)
func main() {
memory, err := gomind.NewClient(os.Getenv("GOMIND_API_KEY"))
if err != nil { log.Fatal(err) }
ctx := context.Background()
_, err = memory.Remember(ctx, "user:maya", "has_skill", "Go", "")
if err != nil { log.Fatal(err) }
result, err := memory.Recall(ctx, "user:maya", 20)
if err != nil { log.Fatal(err) }
fmt.Println(result.Facts)
}
Memory persists. Even when the session doesn’t.
$
composer require ingate/gomind-php-sdkmemory.php
<?php
require 'vendor/autoload.php';
use Ingate\Gomind\Client;
$memory = new Client(getenv('GOMIND_API_KEY'));
$memory->remember(
'user:maya', 'has_skill', 'PHP'
);
$result = $memory->recall('user:maya', 20);
foreach ($result->getFacts() as $fact) {
echo $fact->getObjectOrValue();
}
Memory persists. Even when the session doesn’t.
$
export GOMIND_API_KEY="your-api-key"terminal
# Store a fact
curl https://api.gominddb.com/v1/remember \
-H "Authorization: Bearer $GOMIND_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"subject": "user:maya",
"predicate": "has_skill",
"object": "TypeScript"
}'
# Recall it in another session
curl https://api.gominddb.com/v1/recall \
-H "Authorization: Bearer $GOMIND_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "user:maya", "limit": 20}'
Memory persists. Even when the session doesn’t.
REST is the same contract:
curl https://api.gominddb.com/v1/remember \
-H "Authorization: Bearer $GOMIND_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"subject": "user:maya",
"predicate": "has_skill",
"object": "TypeScript"
}'
curl https://api.gominddb.com/v1/recall \
-H "Authorization: Bearer $GOMIND_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "user:maya", "limit": 20}'
Next: how facts are shaped, or connect an agent over MCP.