BentoML
$ bentoml Official Med RiskBentoML (bentoml) packages AI/ML services and weights into portable Bentos (bentoml build), builds OCI images (bentoml containerize), and serves high-concurrency APIs (bentoml serve). Inspection subcommands like bentoml list -o json and bentoml models list -o json provide machine-readable JSON metadata.
pip install bentoml bentoml inspects local model/bento stores (~/bentoml), builds Python service bundles, and generates Docker images locally.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports -o json / --output json across list, models list, and build, plus --help and non-interactive packaging.
bentoml list -o jsonandbentoml models list -o jsonoutput structured JSON- Non-interactive
bentoml buildandbentoml containerize
Local store under ~/bentoml keeps build and containerize isolated locally; cloud deploys require explicit cloud / deploy commands.
- Clear separation between local
build/containerizeand remotedeploy
Cross-platform Python package (pip install bentoml) on macOS, Linux, and Windows; containerize requires Docker.
- Cross-platform PyPI package (
pip install bentoml)
Standardizes Python AI service packaging, adaptive batching, and OCI container generation.
- Unified
build,serve, andcontainerizeworkflow
Official bentoml/BentoML repository under Apache-2.0 license.
- Official
bentoml/BentoMLrepository (Apache-2.0)
Well-structured documentation at docs.bentoml.com and comprehensive --help.
- Official docs at docs.bentoml.com
Security, Auth & Guardrails
Local builds/serves need no auth; BentoCloud deployments use BENTO_CLOUD_API_KEY or bentoml cloud login config under ~/bentoml/.
Apache-2.0 open-source Python framework; deploying to managed BentoCloud incurs cloud compute charges.
# BentoML Agent Rules - Use `-o json` on `bentoml list`, `bentoml models list`, and `bentoml build` for structured parsing. - Never run `bentoml serve` synchronously in an agent tool call or `bentoml deploy` to BentoCloud without approval.
Agent-Ready Command Recipes
Safe Read-Only Queries
bentoml list -o json
Outputs all locally built Bento packages, tags, and sizes in JSON format.
bentoml models list -o json
Returns metadata for saved models in the local BentoML model store as JSON.
Controlled Writes & Previews
bentoml build -o json
Packages the local service.py and bentofile.yaml into a versioned Bento and prints JSON metadata.
Strengths for Agents
- + Native
-o jsonoutput onlist,models list, andbuildmakes automation straightforward. - + Cleanly bridges local Python serving (
bentoml serve) to production OCI images (bentoml containerize).
Caveats & Pitfalls
- !
bentoml serveis a blocking HTTP server daemon. - !
bentoml containerizerequires Docker and can produce large images.