Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

okfsmith

Latest version: v0.41.5

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
PyPI package Publisher: bilal-junaid-jiwani
62 Versions
4.9K Downloads

Scan summary

okfsmith was last scanned on 1 Dec 2026 at version 0.41.5. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 62 versions; the latest 5 were published within 4 days (28 Nov – 1 Dec 2026).
  • Findings: No rules fired in version 0.41.5.
  • Downloads: 4,904 downloads.

Versions

62 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.41.5 LATEST 1 Dec 2026 No rules fired
0.41.4 30 Nov 2026 No rules fired
0.41.3 29 Nov 2026 No rules fired
0.41.2 28 Nov 2026 Not shown
0.41.1 28 Nov 2026 Not shown

No rules fired in 0.41.5

Findings

Findings for v0.41.5. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.41.5; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

okfsmith

PyPI Python License Docs

Forge messy documents into OKF v0.2 knowledge bundles.

okfsmith is a Python CLI that ingests PDFs, markdown, wiki dumps, and Notion exports and emits spec-conformant OKF v0.2 bundles: markdown files with YAML frontmatter, plus reserved index.md and log.md. Every concept carries provenance (sources[]), a trust tier, and lifecycle metadata, and every bundle is checked by a built-in §11 validator. Serve it to your agents with one MCP command.

okfsmith dashboard — knowledge overview

60-second quickstart

pip install okfsmith

okfsmith init ./kb
okfsmith ingest ./kb notes/ report.pdf --no-llm   # offline first pass
okfsmith validate ./kb
okfsmith graph ./kb --format html   # writes ./kb/viz.html — open in a browser

Point any MCP-capable agent at the bundle:

pip install "okfsmith[mcp]"
okfsmith mcp ./kb

Tools exposed: nine read tools (index, list, search, get, neighbors, traverse, provenance, diff, validate) plus four governed write-back tools (preview_write_concept, write_concept, update_concept, audit_log) — every answer traces back to sources[] in the bundle, and every write lands unverified, validator-gated, provenance-stamped, and audit-logged.

⭐ If okfsmith helped you, a star means a lot — it helps other developers find the project.

Why okfsmith

Clean markdown already has good OKF tooling. The messy middle — 200-page PDFs with broken reading order, sprawling Notion exports, wiki dumps — is where knowledge usually lives, and that's what okfsmith ingests first:

parse → section → extract → link → emit → validate → serve

  • Tiered parsing, free first. Tier 1 is local and keyless: LiteParse for PDFs, stdlib parsing for markdown/text. Office formats (.docx, .pptx, .xlsx) via the optional okfsmith[office] extra; Docling OCR sidecar via okfsmith[ocr] for scanned pages. PyMuPDF is deliberately avoided (AGPL).
  • Two extraction modes. --no-llm writes one draft concept per section — fast, offline, deterministic. With an LLM (Ollama by default, or an OpenAI-compatible API via env vars), a draft + critic flow extracts claims with [^source-id] citations feeding sources[].
  • OKF v0.2 native. Only type is required in frontmatter. okfsmith also emits sources[]/provenance, generated/verified trust metadata, and lifecycle fields.
  • §11 validator. The spec's hard conformance rules (E001–E004) plus advisory lints (dead links, orphans, stubs, legacy v0.1 fields). Broken links are warnings, never errors (spec §6).
  • Graph visualization. okfsmith graph --format html renders a self-contained viz.html (works offline): nodes colored by type with a colorblind-safe palette, shaped by trust tier, with backlinks, search, and keyboard access — and non-current concepts (superseded / expired / not yet valid) struck through with a temporal badge, so stale knowledge never reads as live.
  • One-command MCP server. okfsmith mcp ./kb over stdio, SSE, or streamable HTTP.
  • Skill pack. src/okfsmith/skills/okfsmith-build/SKILL.md teaches agents the init → ingest → validate → serve loop — and the MCP server serves it to clients over Skills over MCP, so no copy is needed there.

CLI reference

Command What it does
okfsmith init BUNDLE scaffold index.md + log.md
okfsmith ingest BUNDLE SOURCE... parse, section, extract → draft concepts
okfsmith sync BUNDLE SOURCE... incremental sync: only new/changed/renamed/deleted sources processed (flags: --watch/--interval, --dry-run, --format text\|json)
okfsmith validate BUNDLE check OKF §11 conformance (exit 0 = conformant)
okfsmith list BUNDLE list concepts (filter by --tier, --type)
okfsmith read BUNDLE ID print one concept
okfsmith graph BUNDLE links: text / json / mermaid / html
okfsmith search BUNDLE QUERY BM25 full-text search (flags: --limit/-n, --format text\|json, --tier, --type)
okfsmith diff BUNDLE diff against another bundle (--against) or the sync snapshot: added / removed / changed (flags: --as-of, --format text\|json)
okfsmith eval BUNDLE golden-set evaluation: RAG Triad scores, retrieval-vs-generation diagnosis, --fail-under CI gate
okfsmith mcp BUNDLE serve over MCP
okfsmith chat BUNDLE interactive Q&A over the bundle (REPL)
okfsmith doctor check dependencies, extras, Ollama

The bundle is always the first positional argument. Expected failures print error [CODE]: with a hint and never a traceback; usage errors exit 2.

Full reference with examples: docs/commands.md.

Interactive chat

okfsmith chat opens a Claude Code / Gemini CLI style REPL over your bundle: ask questions in plain language, get answers with [concept-id] citations. With local Ollama running (or OPENAI_API_KEY set) answers are synthesized and grounded; otherwise the chat stays useful in extractive mode, showing the keyword-matched concepts themselves. It never answers from thin air — no relevant concepts, no invented answer.

$ okfsmith chat ./kb
 ███  █   █ █████  ████ █   █ █████ █████ █   █
█   █ █  █  █     █     ██ ██   █     █   █   █
█   █ ███   ████   ███  █ █ █   █     █   █████
█   █ █  █  █         █ █   █   █     █   █   █
 ███  █   █ █     ████  █   █ █████   █   █   █
okfsmith chat v0.3.0
Bundle: kb (24 concepts) · openai · qwen3:8b

Tips for getting started:
  1. Ask questions about your documents.
  2. Type /help for chat commands.
  3. Type /ingest <path> to add more documents.

kb › how do I authenticate?
✦
Use a Bearer token in the Authorization header [api/auth].

*Sources: [api/auth]*
kb › aur iska source kya hai
✦
The dashboard, under Settings › API Keys [api/auth].

*Sources: [api/auth]*
kb › /exit
Goodbye — your bundle is untouched.

(On a real terminal the logo renders as a yellow→orange→magenta gradient, the prompt bundle name is colored, and answers carry a subtle ✦ marker. Piped output stays plain ASCII — zero escape codes, always.)

Slash commands: /help /ingest /list /read /search /validate /graph /doctor /model /clear /exit. Line history persists at ~/.okfsmith/history; Ctrl-C cancels input, Ctrl-D quits. Flags: --model to pick the model, --no-llm to force extractive mode.

Web dashboard

Prefer a UI? okfsmith dashboard launches a local web app — the full product in the browser: drag-and-drop ingest with live pipeline progress, an interactive knowledge graph, grounded chat with clickable citations, validation, temporal queries, MCP tools, eval, and settings.

okfsmith dashboard

It binds only to 127.0.0.1 (never exposed to the network), generates a fresh login token on every launch, and loads zero third-party resources — the entire UI is packaged with okfsmith and works fully offline. Same bundles, same CLI underneath.

okfsmith dashboard overview okfsmith dashboard knowledge graph

Full walkthrough with screenshots: Web dashboard guide.

Use any model (API key)

Ollama is the default, but any hosted model works — one key, any provider. OpenRouter is the flagship: a single key routes to hundreds of models (anthropic/claude-sonnet-4-style IDs included):

export OKFSMITH_API_KEY="sk-or-..."        # your OpenRouter key
okfsmith chat ./kb --provider openrouter --model anthropic/claude-sonnet-4
okfsmith ingest ./kb docs/ --provider openrouter --model openai/gpt-4o-mini

Anthropic's native API works directly too — no proxy needed:

export ANTHROPIC_API_KEY="sk-ant-..."      # your Anthropic key
okfsmith ingest ./kb docs/                # --provider anthropic is implied
okfsmith chat ./kb --provider anthropic --model claude-sonnet-4-5

Prefer env vars — the flags also work:

export OKFSMITH_API_KEY="..."              # Groq example
export OKFSMITH_PROVIDER=groq
okfsmith chat ./kb --model llama-3.3-70b-versatile

okfsmith chat ./kb --provider deepseek --model deepseek-chat
okfsmith chat ./kb --provider gemini --model gemini-2.0-flash

export AGENTROUTER_API_KEY="..."       # Agent Router gateway example
okfsmith chat ./kb --provider agentrouter --model gpt-4o-mini

Provider presets (16): openrouter · groq · mistral · deepseek · together · fireworks · deepinfra · anyscale · perplexity · xai · gemini · openai · agentrouter · lmstudio · ollama · anthropic (native Messages API — the one preset that isn't OpenAI-compatible).

Literally anything else — Azure OpenAI, self-hosted vLLM, a llama.cpp server, any compat proxy — works via --api-base:

okfsmith chat ./kb --api-base https://my-proxy/v1 --model my-model

Notes:

  • Put the key in OKFSMITH_API_KEY (AGENTROUTER_API_KEY is honored for the agentrouter preset, ANTHROPIC_API_KEY for the anthropic preset). --api-key also works but lands in your shell history — okfsmith warns you once per session about that.
  • Keys are never logged, never shown (banners and okfsmith doctor only say set (hidden)), and never written to disk.
  • okfsmith doctor shows the resolved provider, base URL, model, and key status without probing the network.

Install options

pip install "okfsmith[office]"   # DOCX / PPTX / XLSX
pip install "okfsmith[mcp]"      # MCP server
pip install "okfsmith[ocr]"      # Docling OCR sidecar
pipx install "okfsmith[office,mcp]"

okfsmith doctor verifies your setup.

Docs

📚 Live documentation: https://bilal-junaid-jiwani.github.io/okfsmith/ · 🌐 Website: https://bilal-junaid-jiwani.github.io/okfsmith/site/

Quickstart · Ingesting · Validation · Temporal model · MCP · Troubleshooting · FAQ

License

Apache-2.0. See LICENSE.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases okfsmith

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229