Guide
The Open Knowledge Format (OKF), explained
The Open Knowledge Format (OKF) is an open specification from Google Cloud, published in June 2026, that represents knowledge as a directory of markdown files with YAML frontmatter. It formalizes the LLM-wiki pattern into a portable, vendor-neutral format that humans can read and AI agents can parse without an SDK. This guide covers what OKF is, how the format works, a worked example, the field reference, how it compares to llms.txt, and how to add a bundle to your own site.
By WitsCode. Published June 18, 2026. Last updated August 12, 2026.
On this page
What is the Open Knowledge Format?
The Open Knowledge Format is an open, human- and agent-friendly format for representing knowledge: the metadata, context, and curated insight that surround data and systems. Google Cloud's Data Cloud team, led by Sam McVeety and Amir Hormati, published OKF v0.1 in June 2026 in the public Knowledge Catalog repository. It formalizes the LLM-wiki pattern that Andrej Karpathy described (a markdown knowledge base an agent reads and maintains like code) into a portable, vendor-neutral standard.
The point is producer and consumer independence. A bundle hand-written by a person can be read by an AI agent. A bundle generated by one tool can be browsed in another. Because it is just markdown, just files, and just YAML frontmatter, anyone who can open a file can read it and anyone who can clone a git repo can ship it. OKF is the file format agents read, not a service you call.
Where OKF fits: the agent-readable web stack
OKF is the top floor of a stack of conventions for making a site legible to machines. Each layer hands an agent a little more, and the lower layers only pay off when there is substance up here: Ahrefs found llms.txt adoption grew 8.8x in the year to mid-2026 while 97 percent of the files received zero AI fetches. A pointer with nothing behind it is just a pointer.
robots.txt and sitemap.xml
Tells a crawler which URLs exist and may be fetched.
llms.txt
Points an agent at the handful of pages worth reading.
AGENTS.md and CLAUDE.md
Tells a coding agent how to behave inside one repository.
Open Knowledge Format
Hands the agent the knowledge itself, as a portable graph of typed concepts.
A sitemap says which pages exist. llms.txt and AGENTS.md or CLAUDE.md point and instruct. OKF goes one floor higher and hands over the content itself, as a graph an agent can traverse. For the full picture of making a site legible to AI, see our guide to AI search optimization.
Why Google built OKF
In most organizations, the knowledge an AI agent needs lives in fragmented surfaces: metadata catalogs with their own APIs, wikis and shared drives, code comments and docstrings, and the heads of a few senior engineers. When an agent has to answer a question like how weekly active users are computed from the event stream, it reassembles the answer from scattered, mutually incompatible places, every time.
Google's argument is that the fix is not another knowledge service. It is a format: a way to represent knowledge that anyone can produce without an SDK, anyone can consume without an integration, that survives moving between systems, lives in version control next to the code it describes, and is readable by humans and parseable by agents in the same file. That format is OKF.
The OKF format in depth
A bundle is a directory tree of markdown files. This site ships a real one in its repository, 26 concepts joined by 128 links across 10 concept types, and trimmed to its folders it looks like this.
knowledge/
├── index.md (bundle root, navigation)
├── architecture/ (routes, deploy flow, content source)
├── conventions/ (design tokens, image system, redirects)
├── features/ (blog, guides, OG images, site search)
├── pipelines/ (lead pipeline, analytics)
├── glossary/
├── env.md
└── log.md (dated change history)Each concept is one .md file. The concept id is its bundle-relative path, so the file's location is its identity, and links written in the absolute bundle-relative form (/services/technical-seo.md) survive file moves, which is the form spec v0.2 recommends. A YAML frontmatter block carries the structured fields, and the body is normal markdown.
---
type: Service
title: AI search optimization
description: Get a brand cited by ChatGPT, Perplexity, and Google AI Overviews.
resource: https://witscode.com/ai-search-optimization
tags: [seo, aeo, ai-search]
status: stable
generated:
by: human:sudhakar
at: 2026-08-12T09:00:00Z
---
# What it is
Structuring content and entities so large language models cite you.
# Related
Pairs with [technical SEO](/services/technical-seo.md) for crawlability.The only required field is type, a short non-empty string naming the kind of concept. Two filenames are reserved: index.md lists a folder's concepts for progressive disclosure, and log.md records dated changes.
# Knowledge bundle
## Services
* [Web application development](/services/web-application-development.md) - custom web apps
* [AI search optimization](/services/ai-search-optimization.md) - get cited by AI
## Pipelines
* [Lead pipeline](/pipelines/lead-pipeline.md) - how website leads reach the CRMInternal links are the important part. A link from one concept to another is a directed edge, so the directory becomes a graph. An agent does not just learn what each concept is, it learns how they sit relative to each other, which is most of what understanding a system actually means.
OKF field reference
The full set of frontmatter fields. Only type is required. Everything else is recommended or optional, and producers may add their own keys.
| Field | Status | What it carries |
|---|---|---|
type | Required | A short, non-empty string naming the kind of concept, such as Service, Metric, or Runbook. The only field the spec requires. |
title | Recommended | A human-readable name for the concept. |
description | Recommended | A one-line summary an agent can use without reading the body. |
resource | Recommended | A canonical URL the concept maps to, such as a page, an API, or a dashboard. |
tags | Recommended | A list of labels for grouping and retrieval. |
generated | Recommended (v0.2) | Who or what produced the concept and when: a by actor (human:id, process:id, or producer/version) and an ISO 8601 at. Supersedes timestamp. |
verified | Optional (v0.2) | A list of verification records, each with by and at, so a concept can carry evidence of review. The basis of OKF's trust tiers, from unverified to machine-confirmed to human-reviewed. |
status | Optional (v0.2) | The lifecycle state of the concept: draft, stable, or deprecated. |
stale_after | Optional (v0.2) | An absolute YYYY-MM-DD date after which the concept should be treated as stale and re-verified. |
sources | Optional (v0.2) | Provenance for the claims in the body. Supersedes the older Citations body-heading convention. |
okf_version | Optional (v0.2) | The spec version the bundle targets. Declared once, in the bundle root index.md, the only frontmatter a reserved file may carry. |
timestamp | Legacy | An ISO 8601 time the concept was created or last changed. Still accepted by validators; generated supersedes it in v0.2. |
custom keys | Optional | Producers may add any keys they like. Consumers ignore what they do not understand, so the format stays forward-compatible. |
How agents read an OKF bundle
OKF separates two roles. Enrichment agents write into a bundle, drafting concepts from a database, a codebase, or a catalog and adding citations and schemas. Consumption agents read and traverse it. Because the contract between them is just files, neither has to know anything about the other.
A consumption agent typically starts at the root index.md, reads the entries it needs, and follows links deeper, a pattern Google calls progressive disclosure. This is the same instinct behind a shared markdown library that agents read and update over time, which is where production AI agents and MCP servers are heading: less re-deriving the same facts, more reading a curated source of truth.
How to add OKF to your website and WordPress
You add OKF by publishing a bundle alongside your site. There are three common paths.
Pick the knowledge worth sharing
Schemas, metric definitions, runbooks, join paths, product facts, FAQs. The context an agent keeps re-deriving from scratch.
Write each concept as one markdown file
Add a YAML frontmatter block with a type field at minimum. Put the detail in the body as normal markdown.
Link concepts and add an index.md
Cross-link related concepts so the bundle becomes a graph, and add an index.md so an agent can navigate the hierarchy.
Host the bundle at a stable path
A git repo, a tarball, or a folder served at a URL such as /okf/ on your domain.
Validate it
Run the bundle through a conformance validator so any tool can consume it, pass or fail.
On WordPress
WordPress has no official OKF integration yet, so the practical route is a generator: map your post types and pages to concept types, emit one markdown file per concept with frontmatter, serve the bundle at /okf/, and rebuild on publish so it never goes stale. The generation is the easy, mechanical part. The value is in typed concepts (a Service, a Metric, a Runbook) linked to each other the way they actually relate, which no automatic export can decide for you. The same is true whether you run WordPress, headless, or a custom web app.
Done properly
We make your site agent-ready
We map your real entities to typed OKF concepts, link them into a graph, generate the bundle, and validate it so any agent can read it. Then we measure whether AI search actually picks you up. It is the same AI search optimization work, with OKF as one more surface.
OKF vs llms.txt, AGENTS.md, and CLAUDE.md
These conventions solve different problems. llms.txt is a pointer, AGENTS.md and CLAUDE.md are instructions, and OKF is the portable knowledge itself.
| Format | What it is | Scope | Who reads it |
|---|---|---|---|
| OKF | A directory of typed markdown concepts | A whole knowledge base | Any agent or tool, across orgs |
| llms.txt | A single file at a site root | One pointer list | Web crawlers and LLMs |
| AGENTS.md, CLAUDE.md | An instructions file in a repo | One repo or agent | The coding agent in that repo |
Is OKF worth it? An honest take
First, clear up the common myth: OKF is not an SEO ranking signal. Google's search systems do not fetch a bundle from your site and rank you on it. It is an internal knowledge format for agents, not a web publishing signal. A bundle will not move your rankings this week, or next week.
It is also early. Google still frames the spec, now at v0.2, as a starting point, not a finished standard. The spec is deliberately lenient (broken links and unknown types are tolerated), which buys resilience as a wiki grows but means quality varies a lot between bundles. And an agent-updated knowledge base is a real attack surface: if an agent writes from untrusted input, a bundle becomes a vector for indirect prompt injection, so what you let write into it matters.
The honest case for adopting now is the schema-markup case from a decade ago. It is cheap to ship, it makes your knowledge legible to the agents and answer engines that are starting to field questions about you, and shipping early is how you learn the format before it matters. A small, well-typed, validated bundle beats a large auto-generated one. If you ship anything, ship that.
Latest OKF updates
OKF is a moving spec, already at v0.2. We keep this guide current as it evolves. The notable milestones so far:
August 12, 2026
This guide updated for OKF v0.2, the current spec revision: trust and provenance fields (generated, verified, status, stale_after, sources), the Attested Computation concept type, hardened reserved-file rules (index.md carries no frontmatter), and absolute bundle-relative links. The WitsCode conformance suite realigned to v0.2 the same day and is verified against Google's four published reference bundles, which all pass.
July 2026
Agents became the majority readers of documentation: Mintlify measured 66 percent of docs traffic coming from AI agents rather than humans, roughly 213 million agent requests in one month.
June 27, 2026
Inkeep open-sourced OpenKnowledge, a local-first markdown LLM-wiki editor, adding independent momentum to the pattern OKF formalizes.
June 15, 2026
Ahrefs published a 137,000-domain study: llms.txt adoption grew 8.8x in a year, yet 97 percent of the files received zero AI fetches. A pointer file only pays off when there is structured substance behind it, which is the layer OKF supplies.
June 13, 2026
Google Cloud's Data Cloud team published OKF v0.1 in the public Knowledge Catalog repository, announced by Sam McVeety and Amir Hormati.
Validate your OKF bundle
A bundle is only useful if any tool can read it, so check it against the spec before you publish. WitsCode maintains a free, open-source conformance suite and validator that tells you, pass or fail, whether a bundle follows the Open Knowledge Format. It tracks spec v0.2 and is verified against Google's own reference bundles. The suite also ships a graph tool (okf-graph.mjs) that renders any bundle as an interactive visualization in a single self-contained HTML file, and an agent skill that teaches a coding agent to produce, consume, and maintain a bundle without drifting from the spec.
Open Knowledge Format FAQ
What is the Open Knowledge Format?
The Open Knowledge Format (OKF) is an open specification from Google Cloud, published in June 2026, for representing knowledge as a directory of markdown files with YAML frontmatter. It formalizes the LLM-wiki pattern into a portable, vendor-neutral format that humans can read and AI agents can parse without an SDK. Its only required field is type, so any tool that can read files can read an OKF bundle.
Who created OKF and when?
Google Cloud's Data Cloud team created the Open Knowledge Format. Tech leads Sam McVeety and Amir Hormati announced OKF v0.1 in June 2026, and the specification lives in the public Knowledge Catalog repository on GitHub. It is an open, vendor-neutral format, not a hosted Google product.
Does OKF help SEO or improve my Google rankings?
No. OKF is not a ranking signal and Google's search systems do not read a bundle from your site to rank it. It is an internal knowledge format for AI agents, not a web publishing signal. The value is in giving agents and answer engines clean, structured knowledge to read, which is a different goal from ranking blue links.
What does an OKF bundle look like?
A bundle is a directory of .md files. Each concept file opens with a YAML frontmatter block (a required type field, plus fields like title, description, resource, tags, and since v0.2 the trust fields generated, verified, and status) followed by a normal markdown body. Reserved files index.md and log.md list contents and record changes, and under v0.2 index.md carries no frontmatter of its own. Internal links turn the directory into a graph of related concepts.
How do I add OKF to my website?
Write your key knowledge as markdown concept files with a type in the frontmatter, link them together, add an index.md, and host the bundle at a stable path such as /okf/ on your domain or a git repository. Then validate it with a conformance checker so any tool can trust its structure. The bundle this site ships lives in its repository and is validated in CI on every change.
How do I add OKF to WordPress?
WordPress has no official OKF integration, so the practical route is generating a bundle from your existing content: map post types and pages to concept types, emit one markdown file per concept with frontmatter, serve the result at a stable path such as /okf/, and regenerate on publish. The generation is mechanical; the judgment is giving concepts real types and cross-links rather than one generic type per post. WitsCode builds this for client sites as part of AI search optimization.
OKF vs llms.txt: what is the difference?
llms.txt is a single file at your site root that points an agent at the pages worth reading. OKF is a whole directory of cross-linked, typed markdown concepts that hands the agent the knowledge itself. llms.txt is a pointer; OKF is the content. They are complementary, and a site can ship both.
What changed in OKF v0.2?
OKF v0.2 adds a trust and provenance layer: a generated field (who or what produced a concept, and when) that supersedes timestamp, verified records for review evidence, a status lifecycle (draft, stable, deprecated), stale_after dates, and a sources field for citations. It introduces the Attested Computation concept type for sanctioned, reproducible computations, hardens the reserved files (index.md carries no frontmatter, log.md uses ISO date headings), and recommends absolute bundle-relative links because they survive file moves. Conformance stays deliberately permissive: broken links and unknown types are tolerated, never failures.
Is the Open Knowledge Format the same as the Open Knowledge Foundation?
No. The Open Knowledge Format (OKF) is Google Cloud's 2026 file-format specification for agent-readable markdown knowledge bundles. The Open Knowledge Foundation is a long-standing non-profit that advocates for open data. They are unrelated beyond the similar name, and this page is about the file format.
Is OKF worth adopting yet?
OKF is an early spec, now at v0.2, that Google still frames as a starting point rather than a finished standard. A bundle will not change your traffic this week. The honest case for adopting now is the same as schema markup a decade ago: it is cheap to ship, it makes your knowledge legible to the agents that are starting to answer questions about you (agents already generate the majority of documentation traffic by some measures), and early movers learn the format before it matters.
How do I validate an OKF bundle?
Run the open-source OKF validator over your bundle: node validator/okf-validate.mjs ./your-bundle. It returns pass or fail, names every rule a file tripped, and exits with a code you can gate CI on. See the OKF conformance suite for the rules and the validator.
Sources: the Open Knowledge Format was announced by Google Cloud's Sam McVeety and Amir Hormati in June 2026. See the Google Cloud OKF announcement and the OKF specification (SPEC.md).