Kahuna
OfficialClick on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Kahunalearn the docs/ folder"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
The Problem
Every time you start a new conversation with your AI copilot, it forgets everything.
š You repeat the same context about your project, your team, your standards
𤷠The copilot makes mistakes you've already corrected in past sessions
š Your policies, specs, and business rules sit in files the copilot never sees
š§ Decisions and rationale from past conversations are lost forever
Copilots are powerful ā but they have amnesia.
Related MCP server: Mono Memory MCP
The Solution
Kai gives your copilot a persistent memory that grows smarter over time.
Without Kai | With Kai |
Copilot starts fresh every session | Copilot remembers what it learned |
You repeat context manually | Context surfaces automatically |
Knowledge lives in your head | Knowledge lives in a structured KB |
Decisions are forgotten | Decisions persist across sessions |
How it works: Kai runs as an MCP server alongside your copilot. You teach it your context once ā policies, specs, decisions, patterns ā and it proactively surfaces relevant information when you need it.
š All data stays local. Your code and context never leave your machine.
Quickstart (Claude Code)
Step 1: Add Kai to Claude Code
claude mcp add kai -s user -e ANTHROPIC_API_KEY="your-anthropic-api-key" -- npx @aurite-ai/kaiScope options:
-s projectā Config stored for current project only
-s userā Config stored globally (available across all projects)
Step 2: In any project, tell your copilot:
"Set up Kai"
This deploys copilot rules and runs onboarding. The copilot asks a few questions to understand your context ā this only happens once.
Step 3: Start teaching it your context:
"learn ~/Downloads/api-guidelines.pdf"
"learn the docs/ folder"
Step 4: Start working ā Kai surfaces the right context automatically.
"build a customer support agent"
Kai feeds your copilot your API conventions, auth patterns, and related context. No reminders needed.
npm (Global Install)
npm install -g @aurite-ai/kaiConfigure your MCP client to use kai-mcp as the command.
npx (No Install)
npx @aurite-ai/kaiDocker
docker pull kai/mcp
docker run -i kai/mcpFrom Source
git clone https://github.com/Aurite-ai/kai.git
cd kai
pnpm install
pnpm --filter @aurite-ai/kai build
pnpm --filter @aurite-ai/kai bundleWhat It Looks Like
You teach Kai your company's context:
"learn ~/docs/api-guidelines.pdf"
"learn the docs/ folder"
Later, you start a task:
"build a customer support agent"
Kai automatically surfaces the relevant context to your copilot:
ā Your API conventions and auth patterns
ā Customer data models and access policies
ā Error handling and response format standards
ā Related endpoints already in the codebase
Your copilot builds it right the first time ā no reminders needed.
How It Works
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā YOU COPILOT KAI ā
ā ā
ā "set up Kai" āāāāāāāāāāāāāāāāāāāŗ deploys rules āāāāāāŗ .kai/ ā
ā asks questions stores ā
ā context ā
ā ā
ā "learn these docs" āāāāāāāāāāāāāāāāāŗ kai_learn āāāāāāŗ knowledge ā
ā base ā
ā ā
ā "build feature X" āāāāāāāāāāāāāāāāāāŗ kai_prepare āāāāāāŗ surfaces ā
ā _context relevant ā
ā files ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāš” If Kai saves you from repeating yourself, consider giving it a ā. It helps others discover the project.
Contents
How It Compares
Feature | Kai | Copilot Memory | RAG Tools | Manual Context |
Persists across sessions | ā | Partial | ā | ā |
Learns from files & conversations | ā | ā | Files only | N/A |
Proactive context surfacing | ā | ā | Query-based | ā |
Auto-classifies knowledge | ā | ā | ā | Manual |
Works across projects | ā | ā | Varies | ā |
Zero-config for copilot | ā | ā | ā | ā |
Data stays local | ā | ā | Varies | ā |
Kai is not a replacement for built-in copilot memory ā it's what copilot memory should have been.
Features
š§ Knowledge Base ā Store, categorize, and retrieve context from markdown files
šÆ Smart Context Surfacing ā Automatically surface relevant knowledge for your task
š Integration Management ā Discover, verify, and use external service integrations
š Secure Credential Vault ā Store and manage secrets with multiple provider support
š Usage Tracking ā Monitor token consumption and costs per project
š Onboarding System ā Guided setup for organization and project context
Available Tools
Tool | Description |
| Deploys copilot rules, runs onboarding |
| Adds files to knowledge base with classification |
| Surfaces relevant knowledge for a task |
| Quick Q&A against the knowledge base |
| Remove outdated files from the knowledge base |
| Store org or user context in the knowledge base |
| View token usage and cost summary for the project |
| List all discovered integrations and their status |
| Execute operations on discovered integrations |
| Verify integration credentials and connectivity |
| Verify MCP server connectivity |
Documentation
For Users:
MCP Server Documentation ā Installation, tools, configuration
Advanced Documentation ā Integrations, vault, KB structure
For Contributors:
Product Design ā Core concepts, tool specifications
Migrating from Kahuna
Kai was previously named Kahuna. Kai does not read any of the old Kahuna paths or settings, so everyone with an existing install needs to do these steps once.
Before you start: check that
~/.kahunaholds Kai data (knowledge/,integrations/,connectors/,.env) and not files from another Kahuna project.
1. Update your local clone (contributors only)
git remote set-url origin https://github.com/Aurite-ai/kai.git
git checkout main && git pull
pnpm install
pnpm clean && pnpm build2. Move your data directory
mv ~/.kahuna ~/.kai3. Rename environment variables and secrets
Every KAHUNA_* variable is now KAI_* (for example, KAHUNA_KNOWLEDGE_DIR is now KAI_KNOWLEDGE_DIR).
# Secrets stored by Kai
sed -i '' 's/KAHUNA_/KAI_/g' ~/.kai/.env
# Local MCP server config (contributors only)
sed -i '' 's/KAHUNA_/KAI_/g; s/\.kahuna-knowledge/.kai-knowledge/g' apps/mcp/.env
# Find leftovers in your shell profile, then rename them by hand
grep -n KAHUNA_ ~/.zshrc ~/.bashrc ~/.profile 2>/dev/nullOn Linux, use
sed -iinstead ofsed -i ''.
If you used apps/mcp/scripts/setup-claude.sh, also rename the repo-local knowledge base: mv .kahuna-knowledge .kai-knowledge.
4. Re-register the MCP server
Remove the old server:
claude mcp remove kahuna -s user
claude mcp remove kahuna -s projectThen add Kai back, using the published package or your local build:
# Published package
claude mcp add kai -s user -e ANTHROPIC_API_KEY="your-anthropic-api-key" -- npx @aurite-ai/kai
# Local build of this repo (contributors)
pnpm mcp:setupRestart Claude Code, run claude mcp list, and confirm kai is connected and kahuna is gone.
5. Update projects that use Kai
Tool names changed from kahuna_* to kai_* (for example, kahuna_learn is now kai_learn). In each project where Kai was set up:
[ -d .kahuna ] && mv .kahuna .kai # usage history and context guide
[ -f .kahuna-test.json ] && mv .kahuna-test.json .kai-test.json # test projects onlyThen refresh the copilot rules so they use the new tool names. kai_initialize skips files that already exist, so run it with overwrite:
Commit or back up any rules you customized (for example,
.claude/CLAUDE.md).Tell your copilot: "Run kai_initialize with overwrite=true"
Review the changes with
git diffand restore any customizations.
Also replace any .kahuna entries in the project's .gitignore with .kai.
6. Verify
ls -d ~/.kahuna 2>/dev/null
grep -n KAHUNA_ ~/.kai/.env apps/mcp/.env 2>/dev/nullNeither command should print anything.
Contributing
We welcome contributions of all kinds!
š Found a bug? Open an issue
š” Have an idea? Open a feature request
š§ Want to contribute code? Open a PR
Prerequisites
Node.js 18+
pnpm 9+
Quick Start
# Install dependencies
pnpm install
# Set up environment
cp apps/mcp/.env.example apps/mcp/.env
# Build workspace packages
pnpm build
# Run tests
pnpm testScripts
Command | Description |
| Build all packages (via Turborepo) |
| Run all tests across workspace |
| Lint codebase (Biome) |
| Lint and auto-fix issues |
| Format codebase (Biome) |
| Type-check all packages |
| Remove build artifacts and caches |
Testing CLI
Command | Description |
| Run testing CLI |
| Create a test project from a scenario |
| List available scenarios and test projects |
| Collect results from a test session |
Project Structure
kai/
āāā apps/
ā āāā mcp/ # MCP server (stdio) ā context management tools
ā āāā src/
ā ā āāā knowledge/ # Knowledge base domain logic (agents, storage, surfacing)
ā ā āāā integrations/ # External service integration management
ā ā āāā vault/ # Secure credential management
ā ā āāā usage/ # Token usage and cost tracking
ā ā āāā tools/ # MCP tool handlers
ā āāā templates/ # Project initialization templates
āāā packages/
ā āāā testing/ # QA testing infrastructure (scenarios + CLI)
ā āāā vck-templates/ # Copilot configuration templates
āāā docs/ # DocumentationLicense
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
An MCP memory server. One memory your agents share ā across models, devices and apps.
Persistent personal memory for AI assistants ā save, search, and recall across every MCP client.
Persistent AI memory shared across Claude, ChatGPT, coding agents, and compatible MCP clients.
- EngramOAuthapp.getengram
Persistent, verbatim, searchable memory for AI assistants ā one memory across every MCP client.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceAn MCP server enabling AI assistants to store, retrieve, and manage contextual information across conversations with features like persistent memory, advanced search, tagging, and privacy controls.MIT
- AlicenseNot gradedqualityDmaintenanceA self-hosted MCP server that provides AI assistants with a shared, persistent SQLite-backed memory for storing and retrieving project context, decisions, and discoveries. It enables cross-session continuity and team-wide knowledge sharing to keep AI coding tools aligned and informed.3MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides persistent, cross-session memory and team knowledge sharing for AI development workflows. It enables project DNA scanning, semantic search, context budgeting, and git-aware indexing to prevent AI context loss between sessions.11 npmMIT
- AlicenseBqualityCmaintenanceMCP server that provides cross-session persistent memory for AI coding assistants using local vector database and semantic search, enabling automatic recall of project context, issues, and tasks.922 PyPI91Apache 2.0