Installation¶
Requirements¶
- Go 1.21 or later
- A mem0 API key from mem0.ai
Install¶
API Key¶
Get your API key from mem0.ai and set it as an environment variable:
Or pass it directly when creating the client:
Verify Installation¶
package main
import (
"fmt"
"github.com/plexusone/mem0-go"
)
func main() {
client, err := mem0.NewClient()
if err != nil {
fmt.Printf("Error: %v\n", err)
return
}
fmt.Println("mem0-go installed successfully!")
_ = client
}
Next Steps¶
- Quick Start - Your first memory operation