Flexible knowledge bases in Markdown that your agents can create, retrieve, maintain, validate, and publish.
🌐 Website | 📖 Documentation | 🧭 Commands | 📝 Changelog | 📐 OKF specification | ⚖️ License
Your project
│
▼
okn setup ──► your agent creates Wiki/
│
▼
okn validate Wiki
│
▼
okn setup complete
│
┌──────────┬──────────┬──────────┐
▼ ▼ ▼ ▼
search view MCP export html
curl -fsSL https://openknowledge.sh/install | bashRun the interactive setup wizard:
okn setupTo use an agent that already works inside the project, copy this prompt:
Set up Open Knowledge for this workspace. Check the CLI with `okn version`.
If it is missing, install it from https://openknowledge.sh/install and verify
the installation. Then run `okn setup --prompt` and follow its complete task.
Ask me before product-level decisions. Finish with the printed `okn validate`
and `okn setup complete` commands.
The generated task is the source of truth for the setup workflow. The default
target is Wiki.
To let the CLI launch an installed agent runtime, run:
okn setup --agent <codex|claude|opencode>Agent mode runs the same generated task. It validates and activates the wiki
through okn setup complete.
When the agent finishes:
okn validate WikiAlternative npm installation
npm install -g @openknowledge-sh/openknowledgeBoth installers provide okn and openknowledge. This documentation uses
okn. See Installation for supported
platforms and verification details.
Use setup for interactive onboarding. Use
okn setup --prompt for an existing agent. Use okn setup --agent <runtime>
to launch one. Use
search to retrieve knowledge. Use
validate to verify the wiki.
Use agent to run an agent task. Use
get to read one document. Use
list to inspect the content tree. Use
view to browse the wiki.
Use mcp to serve MCP tools. Use
export to publish portable output. Use
connect to add a source. Use
disconnect to remove a source. Use
registry to inspect the registry.
Use automation for jobs, insights,
runtime services, and deployments.
Use scaffold for deterministic bundle
creation. Other advanced tools are
prompt,
ast, and
spec.
See the command index for all commands. Use
okn <command> --help for exact command syntax.
okn export html creates a public distribution bundle in a local folder.
It does not deploy the bundle or start an MCP server.
Review the knowledge base before you create this bundle. After you enable
publication, Markdown is public unless it sets okf_publish: false. Add this
configuration to Wiki/.openknowledge.toml:
[publish]
enabled = trueExport the reviewed content:
okn export html --out ./site WikiThe bundle includes a static viewer, llms.txt, a connect manifest, and a
portable source archive. A deployed runtime can also expose filtered search
and HTTP MCP projections. See HTML export
and .openknowledge.toml for publication
filters and asset options.
pnpm install --frozen-lockfile
pnpm test
pnpm buildSee CLI operations for focused test, build, website, and release commands.
Open Knowledge is licensed under Apache-2.0.
The embedded OKF specification is Apache-2.0 material from
GoogleCloudPlatform/knowledge-catalog. See
THIRD_PARTY_NOTICES.md for attribution.
