Skip to content

Latest commit

 

History

1,196 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

KeelBase — Build and Run Business-safe AI Applications

Build AI applications that enterprises can trust — from scratch or from existing systems. Governed, auditable and private by default.

KeelBase governance and value landscape — enterprise applications (existing + AI-enabled, built with KeelBase) → Business-safe AI Runtime (onboarding · AI execution chain · governance · platform) → AI Agents & model services

License: Apache-2.0 GitHub release CI Versioning: public plan

Open-source Business-safe AI Runtime — connect AI agents with existing business systems, without replacing existing technology stacks.

The KeelBase DNAAI Generates. Architecture Constrains. Runtime Governs. Tests Verify. Humans Decide. Business boundaries are enforced by the Runtime, not prompts; an Agent's capability ≠ its authority; trust is proven by runnable verification, not claimed; important actions are recoverable. Full engineering philosophy: docs/keelbase-dna.md.


🚀 Try in 60 Seconds

Prefer instant? Open the live demokeelbase-demo (alex/Alex@2026$Demo — workbench, ask "which customers need attention?"). Visit guide: demo-live.md.

Or watch the demo videoEnglish demo (GitHub Pages) · China mirror (4-min, with real system demos; download: GitHub release).

Docker only — one command brings up the entire application (backend + workbench + Admin Console + mobile preview), no build:

docker run -d --name keelbase -p 3000:3000 ghcr.io/rain6fish/keelbase:latest

No LLM API key needed to try it: when no cloud/local model is configured, the AI runs in deterministic demo mode — the full golden path (analyze → confirm → create → audit → revoke) works out of the box. Bring your own DeepSeek/Qwen/OpenAI/Ollama key (-e DEEPSEEK_API_KEY=...) for real LLM responses.

Reset to a clean demo state anytime: docker rm -f keelbase && docker run -d --name keelbase -p 3000:3000 ghcr.io/rain6fish/keelbase:latest — data lives in the container's SQLite (no volume), so removing the container wipes demo data and the seed re-runs on next start.

Then walk the golden path in 6 steps:

1. Open http://localhost:3000            (workbench) — /admin is the Admin Console
2. Sign in — alex/Alex@2026$Demo, or admin/Admin@2026$KeelBase (consistent across all environments)
3. Ask: "Which customers are at the highest risk this week?"
4. Watch AI analyze real business data
5. Approve a follow-up task              (human confirmation)
6. Open the audit trace                  (every action recorded & reversible)

Prefers a local demo? ./deploy/demo.shhttp://localhost:3000 (opens the AI CRM Golden Flow workbench).


🎯 See AI Actually Do Business

KeelBase's flagship AI CRM is not a demo — it's a working product loop:

You:
"Which customers are at the highest risk this week?"

KeelBase AI:
3 customers require attention…
  → Analyze customer risk
  → Read authorized orders and activities
  → Create a follow-up task
  → Ask for your confirmation
  → Write to the CRM
  → Record audit
  → Allow revoke

One business scenario says more than a list of twenty features.


🎯 Who It's For

Two ways to meet KeelBase — one runtime underneath.

For AI-native builders — ship an AI business application without rebuilding the foundation:

  • Generate a full business module (entities / CRUD / permissions / AI tools / audit) from a protocol in ~30 minutes — real, editable code, not a low-code engine
  • Bring your own LLM (cloud or local); data stays under your control

For teams with existing business systems — you already run CRM / ERP / OA or a decade-old Java stack, and you want it to think:

  • Bridge existing systems in (OpenAPI / SQL schema / Java service) without rewriting them
  • AI acts as a business assistant on your real data — risk analysis, follow-ups, summaries, approvals
  • Private deployment: Docker / offline / local models — data never leaves your perimeter

Standalone or connected — KeelBase is a complete application development platform in its own right (generate full-stack business apps from a protocol), and a Business-safe AI Runtime for existing systems. No legacy system required.


🔐 Business-safe by Design

User Request → AI Understanding → Business Data → Tool Call
        → Permission Check → Human Confirmation
        → Side Effect → Audit → Revoke

AI can act — but only within explicit business boundaries.

  • User-scoped tools — every call carries the authenticated user; AI can only touch that user's data
  • Human confirmation — write operations require explicit approval before execution
  • Audit & revoke — every action lands on a tamper-evident audit hash chain; AI-created side effects are tracked and reversible
  • Explainable — "why did the AI do that?" is answered by a decision trace, not a black box

🏗 Build — Protocol-Driven Generation

Build AI applications from new business models or existing systems:

  • Application Protocol — a human/AI-readable schema describing an application
  • keelbase init — natural language / SQL schema / OpenAPI → Protocol → a complete business module with permissions, AI tools, confirmation, and audit
  • AI Bridge — connect a Java/legacy system; AI reads and acts on it under governance

Generated artifacts are normal source code. No proprietary runtime metadata. No drag-and-drop lock-in.


▶️ Run — AI Does Real Business Work

  • Tool calling, RAG, memory, sub-agents, proactive AI
  • AI reads and acts on business data — not just chat
  • Every tool call scoped, every write confirmed, every action audited

🔒 Trust — Governance & Audit

Where KeelBase differs from a plain agent framework:

  • CASL row-level permissions · tool governance · write confirmation
  • Audit hash chain (tamper-evident) · side-effect idempotency · revoke
  • Decision trace · AI eval · prompt-injection defense

Enterprise Safety Validation

These aren't just claims — every one is verified by an executable test that ships with the repo:

  • Permission boundary tests — cross-user access denied via CASL (39-case authorization matrix)
  • Tool governance tests — abuse / confirmation-bypass / prompt-injection blocked (12/12 security eval)
  • Human approval tests — writes stay untouched until a human confirms (Golden Flow e2e)
  • Audit integrity tests — audit hash chain verifies, tampering fails (/audit/verify)
  • Agent behavior tests — decision trace + business-safe agent benchmark (15/15 Run/Trust/Safety)
  • End-to-end business flow — AI CRM: read → risk → task → confirm → write → audit → revoke (deterministic e2e)

Boundaries matter — what "audit / revoke / tamper-evident" does and does not promise (e.g. within-application only, not vs. DBA/root; revoke is scoped per revokeClass, not a cross-system rollback): SECURITY.md → Trust Boundaries (Not-a-*)


🏠 Deploy — Private by Design

Cloud LLM  OR  Local Model / Ollama
        → Local Embedding → Local RAG → Business-safe Agent → Local Audit

Run the entire AI application locally when your data cannot leave your environment.

Docker single-container · offline / intranet deploy · local models & embeddings.


🛠 Build Your First Application

npm install -g keelbase
keelbase init --desc "Customer management"

Natural Language → Module Spec → Protocol → Application Code → AI Tools → Governance.

Full flow: Build an AI CRM in 30 minutes · 30-minute acceptance · Dev Challenge — 中文 · EN · EN · EN


📦 Existing System AIization

Existing DB / OpenAPI / Java System
        → Application Protocol → Generated Module
        → AI Tools + Governance → Business Agent

Give a 10-year-old business system AI capability without rewriting it.

Java Starter (Spring Boot)

For Java/Spring teams: annotate existing @RestController methods with @KeelbaseTool and they become governed KeelBase AI tools — delegated identity, human-confirmed writes, audit and revocation are handled by the KeelBase runtime. No rewrite. Requires Spring Boot 3.x + Java 17+ (Boot 2 / Java 8 go through the API-proxy path).

Get started — Maven cn.com.keelbase:keelbase-spring-boot-starter (Maven Central) → github.com/rain6fish/KeelBase-java-starter — 5-minute trial, reference projects (CRM / PM / Approval), development guide.


🧩 Architecture

One main thread — Build → Run → Trust → Private Deploy:

  • BuildProtocol-driven generation: Application Protocol (conventions); AI generates the business modules — no low-code engine
  • RunBusiness-safe Agent Runtime: user-scoped tools, human-confirmed writes, full audit and revoke
  • Trust / Private DeployData Sovereignty: data stays on-prem; AI stays accountable and reversible

The core is UI-framework-agnostic; Flutter / Vue / React are Renderers (architecture-boundary · EN).

📍 Where KeelBase Sits

KeelBase is a Business-safe AI Runtime — it connects AI agents with existing business systems, adding identity, governance, auditability, and private deployment, without replacing existing technology stacks.

      AI Applications / Agents
      Agent Frameworks
  LangGraph · AutoGen · CrewAI
  Custom Agents · MCP Clients
                    ▲
                    │ identity · policy · governance
                    │ audit · runtime · deployment
              ┌─────────────┐
              │  KeelBase   │
              └─────────────┘
                    │
                    │ bridge · protocol · capability mapping
                    ▼
      Existing Business Systems
      CRM · ERP · OA · MES · Database
  • Up — the AI world (northbound): any agent can enter governance. Agent frameworks connect via open standards (MCP / OpenAPI / function calling) — KeelBase does not re-build orchestration, agent loops, or memory strategies
  • Down — the business world (southbound): any existing system can become AI-capable. Business systems connect via the Bridge (protocol + capability mapping) — no rip-and-replace
  • In between — the trust layer: identity, policy, permission, human confirmation, side-effect control, audit & revoke, private deployment

📚 Documentation

Every guide ships in 中文 and English — pick your language below.


🤝 Community & Contributing

Repositories

Directory Description
Server-NestJS/ NestJS backend (REST API)
Front-Flutter/ Flutter main app (iOS / Android / Web)
Front-Taro/ Taro H5 / mini-program app
Web-Admin-Vue/ Web host — workbench + admin console, one shell (Vue3 + Element Plus)
Web-Admin-React/ Admin console React preview (React 19 + MUI)
docs/ Specs, requirements, manuals

Tech Stack

Flutter 3.x · Vue3 + Element Plus · React 19 (preview) · NestJS 11 + TypeORM · SQLite / PostgreSQL · Redis + BullMQ · JWT + CASL · OpenAI-compatible LLMs (DeepSeek / Qwen / OpenAI / Claude / Gemini) · pino + Prometheus + OpenTelemetry · Docker / Nginx · CI (GitHub Actions)

About

Open-source AI application engineering platform for building business-safe AI applications from existing systems or new business models—with governance, auditability, and private deployment built in. Existing System / New Business → Protocol → AI Application → Business-safe Agent → Governance → Audit → Private Deploy

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages