Scan your whole stack
From OX Research Newsroom
Are you using budgetdex?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.0.2
budgetdex was last scanned on 29 Nov 2026 at version 0.0.2. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.0.2 LATEST | 29 Nov 2026 | No rules fired |
| 0.0.1 | 29 Nov 2026 | No rules fired |
Findings for v0.0.2. 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.0.2; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
A local index over your own documents and tables, for AI agents. The agent says how many tokens it can spend; budgetdex returns the most useful hits packed into that budget (top hits in full, the rest as snippets or title lines). No LLM is called to build or query the index, no account is needed, and nothing leaves your machine unless you add a connector or download the optional model.
Status: alpha (0.0.2). Tested on macOS (Apple silicon) and, in CI, on Linux (Python 3.11–3.13); Windows is not tested. Search headers and CLI messages are currently in Japanese (the tool works on English and Japanese text alike). 日本語の説明は README_JA.md。
uv tool install "budgetdex[vec]" # or: pipx install "budgetdex[vec]"
Extras: vec (vector search: numpy, onnxruntime, tokenizers; no PyTorch), xlsx (openpyxl), pdf (pypdf), docx (python-docx), postgres (psycopg). Combine them as budgetdex[vec,xlsx,pdf,docx]. The core depends only on mcp. Without an extra, the affected files are listed by budgetdex status with an install hint, and search uses BM25 alone. Python 3.11+.
budgetdex add ~/notes # index a folder (md, txt, csv, tsv; xlsx/pdf/docx with extras)
budgetdex search "refund deadline" -b 500 # results packed into 500 tokens
budgetdex get <id> -b 800 # full text of one hit
budgetdex sql "select count(*) from my_table" # read-only SQL over indexed CSV/xlsx tables
budgetdex status # what is indexed, what was skipped and why
Later runs of budgetdex sync re-read changed files only. The index lives in ~/.budgetdex/default.db (set BUDGETDEX_HOME to move it).
Vectors are optional (better for paraphrases and English/Japanese mixes):
budgetdex embed --download # one-time ~135 MB model download, then embeds all chunks
After later CLI syncs, run budgetdex embed again for new chunks; the MCP server does this by itself in the background.
Claude Code:
claude mcp add budgetdex -- budgetdex mcp
Any other MCP client (JSON config):
{
"mcpServers": {
"budgetdex": { "command": "budgetdex", "args": ["mcp"] }
}
}
The server re-syncs all sources in the background when it starts. A Claude Code plugin (server definition plus a usage skill) is in plugin/.
| Tool | What it does |
|---|---|
search(query, budget, where) |
Ranked hits within budget tokens, one [id] title|source date line each. where narrows to a path glob. Items already returned in the session come back as a title line marked ※既出. A header ending in 一致弱め means the matches are weak (the answer may not be in the index). |
get(id, budget, start) |
Full text of one hit within budget; a cut text ends with the start to continue from. |
sql(query, budget) |
Read-only SQL over the tables that search shows as 表 (CSV/TSV, xlsx, Notion databases, Postgres). Tab-separated, within budget. |
The same is available from Python: budgetdex.open().search("...", budget=800).
Chosen per index with budgetdex profile NAME.
| Profile | What it does | Memory (one CLI process) | Search p50 | Extra disk |
|---|---|---|---|---|
light |
BM25 only, no model | ~19–23 MB | ~35–45 ms | — |
standard (default) |
BM25 + vectors (multilingual-e5-small) | ~205 MB (peaks ~390–470 MB while loading / embedding) | ~50–70 ms | model ~143 MB |
max |
+ cross-encoder re-ranking | ~466 MB | ~0.3 s | + ~144 MB |
Without the model, standard behaves like light-style BM25 search. As an MCP server, idle memory is ~51–54 MB (no model is loaded until a search needs it); after 100 searches ~61 MB (light) and ~240–260 MB (standard). The index file is about 3x the size of the indexed text.
Measured on one machine (Apple M2 Pro, a 1.5 MB / 1,525-chunk folder, macOS phys_footprint). Your numbers will differ.
Nothing is contacted unless you add it explicitly. Secrets come from an environment variable (--env VAR, default BUDGETDEX_POSTGRES_URL / NOTION_TOKEN) or, on macOS only, the keychain (--keychain SERVICE; on Linux/Windows add --keychain stops with an error, use --env). Secrets are read when needed and never stored in the index, printed or returned to the agent.
Postgres / Supabase — budgetdex add postgres [--schema NAME] (extra postgres).
sql queries go to the database in a READ ONLY transaction with a statement timeout, a server-side cursor, a row cap and one 5 s deadline. A textual pre-check refuses writes first.SELECT — a function with side effects can still run inside a read-only transaction. Joins between local tables and Postgres tables are refused. Tables with row-level security and no policy for your role return 0 rows (the card shows RLS有効 and budgetdex status prints a policy example).Notion API — budgetdex add notion.
GET requests and POST /search to api.notion.com.budgetdex status. System properties (created by, etc.) are not indexed; people properties only by the display name the API already returns.Notion "Markdown & CSV" export zips can also be added as files (budgetdex add export.zip), without any network access.
api.notion.com), and (2) the explicit budgetdex embed --download. No telemetry.https://huggingface.co/<repo>/resolve/<pinned revision>/<file>, following Hugging Face's redirect to its file CDN (User-Agent budgetdex):Xenova/multilingual-e5-small @ 761b726d…: onnx/model_quantized.onnx (118,308,185 bytes) and tokenizer.json (17,082,730 bytes) — ~135 MB.--reranker: cross-encoder/mmarco-mMiniLMv2-L12-H384-v1 @ 1427fd65…: onnx/model_qint8_arm64.onnx (118,620,017 bytes, plain int8 ops, runs on any CPU) and tokenizer.json (17,082,660 bytes) — ~136 MB.$BUDGETDEX_HOME/models/.default.db, mode 0600, not encrypted). Deleting a source file removes it at the next sync..env*, key files (*.pem, id_rsa*, ...), names that look like passwords / tokens / API keys, .git, .ssh, .aws, .gnupg, .config, node_modules, .venv, ... and .gitignored paths. --allow GLOB overrides only .gitignore. Obvious secrets (PEM keys, known key prefixes, password=...) are masked in output.--table-values). Rows are reachable through sql. One exception: when a question word (3+ characters) appears in no document but as a whole word in a text cell of a local table, the search header names the table, column and row count (never the value); personal- and secret-looking columns are never read for this.sql runs on a separate read-only SQLite connection with an authorizer (SELECT on user tables only; no writes, ATTACH, PRAGMA or extensions), a 5 s timeout and a row cap.See SECURITY.md to report a problem.
No model is bundled; the optional ones are downloaded by you and keep their own licences:
intfloat/multilingual-e5-small (ONNX build Xenova/multilingual-e5-small): MIT. cross-encoder/mmarco-mMiniLMv2-L12-H384-v1: Apache-2.0 per its model card; it was trained on mMARCO, a translation of MS MARCO, whose terms restrict use to non-commercial research. Check whether that matters for your use before enabling max. src/budgetdex/spm.py re-implements the SentencePiece-Unigram segmentation of Hugging Face tokenizers (Apache-2.0) to save memory; see NOTICE.
Measured at retrieval level: a question counts as answered when the answer string appears in the returned text. This is not an end-to-end agent measurement. Token counts are this package's own estimate, not calibrated against a real tokenizer.
standard at budget 1,000 answered 92% and 96% using ~885 tokens on average; returning the top 10 hits in full answered 93% and 96% using ~2,100–2,200 tokens. The data is synthetic and written by the same project, so real documents may behave differently.standard 0.68–0.75 at budgets 1,000–1,900 (~880–1,690 tokens). Roughly the same answer rate at a quarter to a half of the tokens; the difference is within noise. An earlier independent 50-question set did not reach parity (0.52 vs 0.62).sql only when every non-empty cell is a clean number (no leading zeros, at most 15 digits, thousands separators like 1,234 allowed, decimals that a double keeps exactly); empty cells of those columns are NULL. Everything else stays text: codes with leading zeros (007, postal codes), longer digit strings, full-width digits, currency / units / percentages (¥1,200, 30%), (5), dates and mixed columns. The table card says 整数 / 数値 for numeric columns and 数字の文字列 for numeric-looking text, which compares as text (cast it yourself if you need numbers). Indexes from before this change are converted once when opened writable (budgetdex status shows tables still waiting).BUDGETDEX_HOME; no multi-user or server mode.claude mcp remove budgetdex # if you registered it with Claude Code
uv tool uninstall budgetdex # or: pipx uninstall budgetdex
rm -rf ~/.budgetdex # the index and downloaded models ($BUDGETDEX_HOME if you set it)
Keychain items you created for connectors are not touched; delete them with security delete-generic-password -s SERVICE.
uv sync --all-extras && uv run pytest -q
uv run budgetdex bench eval/sample/questions.jsonl --corpus eval/sample/corpus
See CONTRIBUTING.md and CHANGELOG.md. Licensed under the Apache License 2.0.
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.