mxbai-cli

mxbai-cli is a skill for Claude Code, Codex from mixedbread-ai/skills. It costs 55 tokens per session (1,707 once invoked), scanned A, original, Apache-2.0.

A command-line tool for managing Mixedbread stores and documents from a terminal. A store is a Mixedbread collection where uploaded files can be searched with natural-language questions.

In plain words
What is it for?
Creating stores, uploading files, searching documents, synchronising changed directories, and managing Mixedbread access from the command line.
Why use it?
It lets you upload, search, and synchronise documents through commands or automated CI/CD jobs. It also provides several ways to supply an API key.

Skill for Claude CodeCodex

Part of the mixedbread-skills plugin — 5 skills, 1 agent, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/mixedbread-ai/skills/mxbai-cli
Any agent
npx skills add mixedbread-ai/skills --skill mxbai-cli
Clone the repo
git clone --depth 1 https://github.com/mixedbread-ai/skills

Made for: Claude Code, Codex.

Or install mixedbread-skills, the plugin that ships this one along with the rest of its 5 skills, 1 agent, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mxbai-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/mixedbread-ai/skills/mxbai-cli.svg)](https://agentmods.dev/skills/mixedbread-ai/skills/mxbai-cli)
Your own site
<a href="https://agentmods.dev/skills/mixedbread-ai/skills/mxbai-cli"><img src="https://agentmods.dev/badge/skills/mixedbread-ai/skills/mxbai-cli.svg" alt="Measured on agentmods" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,707 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00055 $0.01707
Opus 5 $0.00028 $0.00853
Sonnet 5 $0.00011 $0.00341
Haiku 4.5 $0.00006 $0.00171

Measured 5d ago against content hash 2282169b520d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mxbai-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/mxbai-cli/SKILL.md · 194 lines

How it starts

The opening of the file, as written. The whole thing — 194 lines — stays where its author put it; the contents beside it link to each section on GitHub.

mxbai CLI

The mxbai CLI manages stores, uploads files, performs semantic search, and syncs directories with Mixedbread from the terminal.

Docs: https://www.mixedbread.com/cli.md Agent-readable docs: https://www.mixedbread.com/docs/llms.txt Latest docs search: https://www.mixedbread.com/question?q=cli&section=cli

Installation

npm install -g @mixedbread/cli    # global
npm install --save-dev @mixedbread/cli  # project-local (use npx mxbai)

Requires Node.js >= 20.0. Verify with mxbai --version.

Authentication

Resolved in priority order:

  1. Flag: --api-key mxb_xxxxx or --saved-key <name>
  2. Environment variable: export MXBAI_API_KEY=mxb_xxxxx
  3. Config file: mxbai config set api_key mxb_xxxxx

Get your API key at https://platform.mixedbread.com/platform?next=api-keys

Quick Start

# Create a store and upload docs
mxbai store create "my-docs" --description "Product documentation"
mxbai store upload "my-docs" "docs/**/*.md"

# Search
mxbai store search "my-docs" "How does authentication work?"

# Sync changed files (hash-based detection by default)
mxbai store sync "my-docs" "docs/**"

Decision Tree

  • Upload vs Sync?
    • One-time or manual upload → mxbai store upload
    • Ongoing updates (especially CI/CD) → mxbai store sync
  • Which change detection for sync?
    • In a git repo with known base commit → --from-git HEAD~1 (fastest)
    • Outside git or need exact comparison → hash-based detection (default, compares content hashes)
  • CLI vs SDK?
    • Shell scripts, CI/CD, one-off tasks → CLI
    • Application code, custom logic, programmatic access → Python/TypeScript SDK

Workflows

CI/CD Documentation Sync

Sync documentation to a store on every push using the default hash-based change detection.

GitHub Actions:

name: Sync Documentation
on:
  push:
    branches: [main]
    paths:
      - 'docs/**'

jobs:
  sync:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Install mxbai CLI
        run: npm install -g @mixedbread/cli

      - name: Sync docs to store
        env:
          MXBAI_API_KEY: ${{ secrets.MXBAI_API_KEY }}
        run: |
          mxbai store sync my-docs "docs/**/*.md" \
            --strategy high_quality \
            --yes

Read the full file on GitHub · 194 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 194 lines · 55 tokens per session scan A 2282169b520d

Subscribe to this mod's changes

mxbai-cli is a skill published in the GitHub repository mixedbread-ai/skills (13 stars, last pushed today), licensed Apache-2.0. It adds 55 tokens to every session and 1,707 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

karpathy-llm-wiki

Use when building or maintaining a personal LLM-powered knowledge base. Triggers: ingesting sources into a wiki, querying wiki knowledge, linting wiki quality, 'add to wiki', 'what do I know about', or any mention of 'LLM wiki' or 'Karpathy wiki'.

Astro-Han/karpathy-llm-wiki · 67 tokens

agentsop-dify

SOP for building LLM applications on Dify — visual workflow + chatflow + agent + RAG knowledge base + plugin marketplace + observability, self-hostable. Use when shipping LLM apps fast with a "no-code to pro-code" gradient, especially when non-engineers need to co-author the flow.

agentsope/SkillAlchemy · 69 tokens

agentsop-idempotent-ingestion

Re-ingest-correctness SOP for production RAG. Activate when a calling agent builds, reviews, or debugs an ingestion pipeline that runs more than once over a changing corpus — scheduled re-index, incremental updates, CI re-ingest, or a "retrieval has duplicates / shows deleted docs" bug. Encodes the rule — ingestion…

agentsope/SkillAlchemy · 205 tokens

agentsop-llamaindex

Operating-system distillation of LlamaIndex — the leading RAG / document-agent framework. Activate when the calling agent must build, debug, harden, or evaluate a Retrieval-Augmented Generation pipeline over unstructured/private data, decide between RAG primitives (Index types, retrievers, query engines, routers…

agentsope/SkillAlchemy · 178 tokens

agentsop-hybrid-retrieval

Enhancement-overlay SOP for adding sparse (BM25 / keyword) retrieval alongside dense (embedding) retrieval. Activate when a calling agent is building, reviewing, or debugging a retrieval pipeline whose corpus contains exact-match tokens — identifiers, error codes, SKUs, API/function names, proper nouns, citations…

agentsope/SkillAlchemy · 173 tokens

agentsop-multiscale-chunking

Designs multiscale chunking for RAG by embedding small units for retrieval precision and returning larger context for synthesis. Use when fixed-size chunks either lose surrounding context or dilute relevance in long documents, manuals, filings, or codebases. Covers sentence-window and parent-child or auto-merging…

agentsope/SkillAlchemy · 92 tokens