Back to Home
MelloB1989 icon

karma

by MelloB1989

Overview

A modern, dark-themed chat interface demonstrating the Karma Memory system for AI agents, enabling context-aware conversations and dynamic switching of memory retrieval and caching strategies.

Installation

Run Command
cd backend && go run main.go

Environment Variables

  • OPENAI_KEY
  • PINECONE_API_KEY
  • PINECONE_INDEX_HOST
  • UPSTASH_VECTOR_REST_URL
  • UPSTASH_VECTOR_REST_TOKEN
  • REDIS_URL
  • XAI_API_KEY
  • GROQ_API_KEY
  • SARVAM_API_KEY
  • GOOGLE_PROJECT_ID
  • GOOGLE_LOCATION
  • GOOGLE_API_KEY
  • POSTHOG_KEY
  • POSTHOG_ENDPOINT
  • JWT_SECRET
  • KG_MCP_MEMORY_PATH

Security Notes

The example `knowledge_graph` MCP tool explicitly disables CORS with `origin: "*"`, which is a critical security vulnerability if exposed publicly, allowing any domain to make cross-origin requests. This could lead to CSRF or data leakage. While the primary Go backend uses environment variables for sensitive API keys, the `main.go` in the example `knowledge_graph` directory configures its server to use this insecure CORS policy by default. The system relies on LLM outputting valid JSON, which is sanitized by `cleanJSON`, but unexpected formats could still lead to application-level issues.

Similar Servers

Stats

Interest Score34
Security Score4
Cost ClassHigh
Avg Tokens1500
Stars5
Forks1
Last Update2026-01-11

Tags

AI ChatbotLLM MemoryContext ManagementVector SearchCachingGo Lang