Aurite-ai

๐Ÿง  Kai

Community Aurite-ai
Updated

๐Ÿง  Kai is a context engineering platform. It's persistent memory for AI coding copilots. Teach it once, surface context automatically. MCP server for Claude Code.

๐Ÿง  Kai

Your AI copilot's memory. Persistent context across sessions, projects, and teams.

Give your coding agent the context it needs โ€” automatically.

Works with Claude Code ยท more copilots coming soon

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.

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/kai

Scope 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.

๐Ÿ“ฆ More installation options (npm global, Docker, from source)

npm (Global Install)

npm install -g @aurite-ai/kai

Configure your MCP client to use kai-mcp as the command.

npx (No Install)

npx @aurite-ai/kai

Docker

docker pull kai/mcp
docker run -i kai/mcp

From 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 bundle

What 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

  • The Problem
  • The Solution
  • Quickstart
  • What It Looks Like
  • How It Works
  • How It Compares
  • Features
  • Available Tools
  • Documentation
  • Migrating from Kahuna
  • Contributing
  • License

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
kai_initialize Deploys copilot rules, runs onboarding
kai_learn Adds files to knowledge base with classification
kai_prepare_context Surfaces relevant knowledge for a task
kai_ask Quick Q&A against the knowledge base
kai_delete Remove outdated files from the knowledge base
kai_provide_context Store org or user context in the knowledge base
kai_usage View token usage and cost summary for the project
kai_list_integrations List all discovered integrations and their status
kai_use_integration Execute operations on discovered integrations
kai_verify_integration Verify integration credentials and connectivity
kai_discover_integration Discover and add a connector for a new service, API, or tool
kai_update_connector Update or refresh an existing integration connector
health_check 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
  • Architecture: Repository Infrastructure
  • Architecture: Context Management System

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 ~/.kahuna holds 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 build

2. Move your data directory

mv ~/.kahuna ~/.kai

3. 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/null

On Linux, use sed -i instead of sed -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 project

Then 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:setup

Restart 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 only

Then refresh the copilot rules so they use the new tool names. kai_initialize skips files that already exist, so run it with overwrite:

  1. Commit or back up any rules you customized (for example, .claude/CLAUDE.md).
  2. Tell your copilot: "Run kai_initialize with overwrite=true"
  3. Review the changes with git diff and 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/null

Neither command should print anything.

Contributing

We welcome contributions of all kinds!

๐Ÿ› ๏ธ Developer Setup

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 test

Scripts

Command Description
pnpm build Build all packages (via Turborepo)
pnpm test Run all tests across workspace
pnpm lint Lint codebase (Biome)
pnpm lint:fix Lint and auto-fix issues
pnpm format Format codebase (Biome)
pnpm typecheck Type-check all packages
pnpm clean Remove build artifacts and caches

Testing CLI

Command Description
pnpm kai-test Run testing CLI
pnpm test:create Create a test project from a scenario
pnpm test:list List available scenarios and test projects
pnpm test:collect 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/                   # Documentation

License

MIT

MCP Server ยท Populars

MCP Server ยท New

    hermes-labs-ai

    Fidelis Memory

    Zero-LLM agent memory for Claude Code and AI agents: local-first BM25, dense-vector, and reciprocal-rank-fusion retrieval. Returns original passages verbatim by default. Available on PyPI as fidelis-memory. MIT.

    Community hermes-labs-ai
    n24q02m

    Better Code Review Graph

    Knowledge graph for token-efficient code reviews -- semantic search and call-graph resolution across your codebase.

    Community n24q02m
    Noveum

    Orbit

    Free, open source, realtime task manager. Issues, boards, sprints, projects and docs that sync instantly. Keyboard-first, self-hostable, with an MCP server for AI agents. No pricing, ever.

    Community Noveum
    feder-cr

    aihawk

    Anti detect browser and web browsing agent: an open-source MCP server for undetected browsing, AI web scraping and computer use agents. No captchas.

    Community feder-cr
    LeandroPG19

    MemoryIndustry

    Persistent memory MCP server for AI agents โ€” Rust, 19 tools, knowledge graph, Hebbian learning, episodic memory, contradiction detection, prospective triggers, Bayesian calibration, zero-config Docker setup.

    Community LeandroPG19