Repo of the Day
openbkn-ai/bkn-foundry
Published: Nov 29, 2026
Open repository ↗BKN Foundry is the Ontology back-end foundation of OpenBKN. It transforms ontology-driven business semantics into runtime services: data, logic, actions, security governance, and observability
Summary
BKN Foundry is the Go-based backend foundation of OpenBKN. It converts ontology-driven business models into runtime services for data access, business logic, actions, security governance, and observability. It is a backend-only framework, so engineers interact with it through the OpenBKN CLI, SDKs, or APIs rather than a bundled web console.
What it is useful for
BKN Foundry is useful when an agent needs more than plain retrieval from enterprise documents or systems. Its Business Knowledge Network models business concepts as Data, Logic, Risk, and Action, allowing context to be retrieved around specific objects and constraints instead of concatenating large amounts of text.
The platform provides several useful layers:
- Context loading: The Context Loader performs retrieval recall followed by coarse and fine ranking.
- Data access: VEGA virtualizes differences between underlying multi-source and multi-modal data.
- Controlled execution: Exec Factory orchestrates tools, MCP servers, and Skills, while BKN Safe applies identity, object/action permissions, pre-execution validation, policy interception, and audit logging.
- Traceability: BKN Trace follows an action from its intent through the relevant knowledge node, data source, mapping or tool, and final invocation.
- Business modeling: BKN Lang is a Markdown-based language for defining objects, relationships, risks, and actions.
For example, after authentication, an engineer can search a knowledge network for “What risks exist in the supply chain?” This is more appropriate than passing entire policy documents to an agent when the required answer is tied to a particular business object, rule, or action.
How engineers can use it
The README directs full installations to Linux; macOS local development with kind is optional. It does not document a direct build-from-source workflow, so start with the documented deployment repository:
git clone https://github.com/openbkn-ai/openbkn-deploy.git
cd openbkn-deploy
chmod +x preflight.sh deploy.sh onboard.sh
sudo bash ./preflight.sh
./deploy.sh openbkn install
sudo bash ./onboard.sh
The preflight script checks host requirements. onboard.sh is recommended because it registers an LLM and embedding model, updates BKN configuration, and, for a full installation, creates and assigns roles to the initial business user.
Install the client SDK separately, then authenticate and inspect the deployed knowledge networks:
npm install -g @openbkn/bkn-sdk
openbkn auth login https://<node-ip> -u test -p '<password>' -k
openbkn bkn list
openbkn bkn search <kn-id> "What risks exist in the supply chain?"
Programmatic integrations can instead use the documented TypeScript client. Administrators can use openbkn admin commands for users, organizations, roles, models, and audit logs. The separate BKN Studio repository contains the web console; it is not included in this backend release.