Turn scattered notes, docs and transcripts into a queryable Markdown wiki — an LLM knowledge-base compiler with MCP access, no embeddings, self-hosted.
# Add to your Claude Code skills
git clone https://github.com/bybit-exchange/kaasLast scanned: 8/1/2026
{
"issues": [
{
"file": "README.md",
"line": 74,
"type": "remote-install",
"message": "Install command (remote install script piped to a shell — review the source before running): \"curl -fsSL https://raw.githubusercontent.com/bybit-exchange/kaas/main/install.sh\"",
"severity": "low"
}
],
"status": "PASSED",
"scannedAt": "2026-08-01T06:29:15.060Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}kaas is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by bybit-exchange. Turn scattered notes, docs and transcripts into a queryable Markdown wiki — an LLM knowledge-base compiler with MCP access, no embeddings, self-hosted. It has 106 GitHub stars.
Yes. kaas passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/bybit-exchange/kaas" and add it to your Claude Code skills directory (see the Installation section above).
kaas is primarily written in Python. It is open-source under bybit-exchange on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh kaas against similar tools.
No comments yet. Be the first to share your thoughts!
English · 中文
Turn scattered notes, documents, and transcripts into a searchable, queryable personal Wiki — powered by LLM-driven knowledge compilation.
Documentation · Quick Start · MCP access

Unlike typical RAG systems that chunk and embed raw text, KaaS compiles your content through a 4-phase LLM pipeline. What comes out is human-readable Markdown articles — not a black-box vector store.
What you get is a tree of Markdown articles: categories on the left, the rendered article in the middle, its headings down the right. Chat answers cite these articles by name, so an answer and the page it came from are one click apart.

Raw content passes through four LLM phases: extract concepts, entities and decisions; classify them into articles; write or merge the Markdown; update the indexes. Retrieval then reads whole pages rather than embedded fragments — the LLM walks the master index, picks the articles it needs, and answers from their full text.
KaaS started as an internal tool. Our knowledge lived scattered across documents, meetings, and email — and every time someone changed roles or left, the context they'd built up walked out with them. New people spent weeks piecing it back together.
A distillation pipeline fixed that. It compiles each person's scattered material into a wiki tied to their role rather than their identity — so when someone moves on, the raw data goes but the distilled judgment stays for whoever fills the seat next.
The payoff is the same either way: the organization stops re-answering the same questions. That's what convinced us it was worth open-sourcing.
KaaS calls LLMs through any OpenAI-compatible API (OpenAI, DeepSeek, Ollama, vLLM, Azure OpenAI, etc.). Pick one of the three paths below.
Already living in a coding agent (Claude Code, Codex, openclaw, …)? Give it this repository's URL and ask for what you want — it can do the whole setup. Or paste this to save it a step:
Set up KaaS to build a queryable knowledge base from my files.
Fetch https://raw.githubusercontent.com/bybit-exchange/kaas/main/docs/agent-quickstart.md
and follow it exactly.
If you are an AI agent reading this: fetch
docs/agent-quickstart.mdand follow that instead of the shell snippets below. It routes the three things users ask for — build a wiki from their files, run the full service with the web UI, or point yourasktool at a KaaS that already exists — and marks where to stop and ask them.
That snippet asks for one specific outcome: the AI engine and a queryable wiki, no web UI. Ask your agent for the web UI instead and the runbook sets up the full service — which is the same ground Options B and C cover, written for a human to run by hand.
docker run -d --name kaas \
-p 8080:8080 \
-v ./data:/app/data \
-e LLM_API_KEY=sk-xxx \
-e LLM_BASE_URL=https://api.openai.com/v1 \
-e LLM_MODEL=gpt-4o-mini \
ghcr.io/bybit-exchange/kaas:edge
Prebuilt for linux/amd64 and linux/arm64. edge tracks main. From the
first stable release there will also be version tags and latest — pin a
version for anything you actually depend on. To build from source instead:
docker build -t kaas .
# Install (Linux amd64/arm64, macOS arm64)
curl -fsSL https://raw.githubusercontent.com/bybit-exchange/kaas/main/install.sh | sh
# Start the service
export PATH="$HOME/.kaas:$PATH" # where the installer put the binary
export LLM_API_KEY="sk-xxx" # OpenAI-compatible API key
export LLM_BASE_URL="https://api.openai.com/v1" # API endpoint
export LLM_MODEL="gpt-4o-mini" # Model name
kaas serve # Default: http://localhost:8080
Supported platforms: Linux amd64/arm64 and macOS arm64 (Apple Silicon); there is
no darwin/amd64 build, so Intel Macs need Option A or B. The binary is symlinked into
~/.kaas, which the installer will tell you to add to PATH. Uninstall:
rm -rf ~/.local/share/kaas ~/.kaas/kaas.
LLM_BASE_URL defaults to https://api.openai.com/v1 and LLM_MODEL defaults to
gpt-4o-mini. Change them to point at any OpenAI-compatible endpoint, then open
http://localhost:8080.
Running from a checkout instead of a release? See Development.
To let Claude Code or other MCP clients connect to the knowledge base, set
KAAS_MCP_ENABLED=true. Environment variables override kaas.toml on every
start, so this works for both Docker and kaas serve:
docker run -d --name kaas \
-p 8080:8080 \
-v ./data:/app/data \
-e LLM_API_KEY=sk-xxx \
-e KAAS_MCP_ENABLED=true \
-e KAAS_MCP_TOKEN=your-secret-token \
ghcr.io/bybit-exchange/kaas:edge
MCP client URL: http://<host>:8080/mcp, Authorization: Bearer your-secret-token.
| Layer | Tech | Purpose |
|---|---|---|
| Web UI | React + Vite + shadcn/ui | Chat, Submit, Wiki, Status |
| Backend | Go (net/http + go-zero/conf) | REST API, Worker Pool, Task Queue, MCP endpoint |
| AI Engine | Python (kb-ai daemon) | LLM Compile Pipeline, LLM-iterative retrieval, Chat |
| Storage | SQLite (default) / MySQL | Job queue, compile state |
| Retrieval | LLM iterative | master-index → LLM page selection → full-article context (no embeddings) |
The Go backend spawns the Python AI engine as a long-running daemon process, communicating via a multiplexed stdin/stdout protocol. A single Docker image bundles everything — no sidecar containers needed.
ask toolExpose the compiled wiki to any Model Context Protocol
client (Claude Code, Codex, openclaw, …) through a single ask tool —
ask(query, paths?, model?) returns a cited Markdown answer grounded in the
wiki. Two transports:
stdio (local — the agent spawns the server, fully self-contained):
# The agent launches this; set KAAS_KB_DIR to the knowledge-base root and
# the LLM_* credentials in the environment.
kb-ai mcp # stdio is the default transport
# Claude Code:
claude mcp add kaas -- kb-ai mcp
For Codex / openclaw, add a stdio MCP server with command kb-ai mcp and env
KAAS_KB_DIR + LLM_*.
streamable-http (remote — published through the backend's :8080 origin):
Run the container with KAAS_MCP_ENABLED=true (see Quick Start).
The backend exposes the MCP endpoint at /mcp. Point a remote agent at it:
# Claude Code:
claude mcp add --transport http kaas http://host:8080/mcp
Set KAAS_MCP_TOKEN to require Authorization: Bearer <token> on the HTTP
transport (off by default — local/intranet assumption). stdio has no network
surface and is unauthenticated.
All configuration lives in etc/kaas.toml. Copy and edit it:
[llm]
api_key = "sk-..."
base_url = "https://api.openai.com/v1"
model = "gpt-4o-mini"
[ai.mcp]
enabled = false # set true to expose /mcp endpoint
token = "" # bearer token for MCP auth (empty = no auth)
timeout_sec = 120 # tools/call timeout
With Docker or the CLI, pass secrets as environment variables — they override the TOML at startup:
| Env Var | Overrides | Default |
|---|---|---|
LLM_API_KEY |
[llm] api_key |
(empty) |
| `LLM_ |