Skip to main content

labagent

labagent is an open-source CLI that launches hands-on labs for RAG, LLM apps and Databricks, then removes them so you do not pay for leftovers. It also sets up and cleans AWS training sandboxes with Terraform.

Quick start

pip install 'labagent[rag]'          # Python 3.9+; labs use the Databricks CLI: databricks auth login
labagent packs                       # list the labs
labagent launch rag-sec-filings --name demo
labagent destroy rag-sec-filings --name demo

Every step is safe to re-run. launch resumes where it stopped. destroy removes only what the lab created.

Lab catalog

Lab What you learn Cost Command
rag-sec-filings RAG over real SEC 10-K filings: chunking, hybrid search, citations, a quality gate before deploy Databricks Free Edition labagent launch rag-sec-filings --name demo
rag-lakebase The same RAG pipeline on a small demo corpus, to smoke-test your setup Databricks Free Edition labagent launch rag-lakebase --name demo
rag-sec-filings-live Fetch fresh filings from SEC EDGAR at launch Databricks Free Edition labagent launch rag-sec-filings-live --name demo --param "user_agent=Your Name you@example.com"
db-agent Deploy db-agent, a text-to-SQL agent, over a Databricks sample dataset Databricks Free Edition labagent launch db-agent --name demo

Free Edition limits apply: one Lakebase project, three apps, and apps stop after 24 hours. Details: docs/packs.md.

Run a RAG lab on Databricks Lakebase

rag-sec-filings builds a RAG app on Postgres with pgvector. It loads a pinned snapshot of 10-K filings, runs a retrieval quality check, and deploys the app only if the check passes. The app has company and year filters, suggested questions and cited answers.

labagent launch rag-sec-filings --name demo

The data comes from a checksummed release in labagent-datasets. Known gaps are listed in its README.

Text-to-SQL agent on Databricks

db-agent clones github.com/db-agent/db-agent at a pinned commit and deploys it to Databricks Apps. It then asks a test question through the live app. The data is the samples catalog every workspace has.

labagent launch db-agent --name demo --param dataset=bakehouse

Use labagent from plain English

A small local model turns a sentence into a command. You see the command and confirm it before anything runs.

ollama pull qwen2.5-coder:0.5b
labagent "deploy rag-sec on databricks"

Any OpenAI-compatible endpoint works. See docs/packs.md.

AWS sandboxes for workshops

labagent creates IAM users, a sandbox policy and a Lambda role per cohort with Terraform. Passwords are returned encrypted. It also tears down what learners created and cleans an untagged shared account from an explicit ruleset.

Command What it does
provision Create a cohort's IAM layer with Terraform
inventory, sweep List and delete what learners created. Plan first, then apply that reviewed plan
reset, offboard Rotate a password. Destroy a cohort
audit, cleanup Clean a long-lived account from a ruleset (docs)
labagent --config lab.json run --job job.json --output result.json

Job format: docs/job-contract.md. State and secrets: docs/state-and-secrets.md.

Safety

  • Plan first, then apply. The plan is bound to the account, its items, an age limit and the hash a human approved.
  • Only a delete rule can delete. A keep rule always wins. Unmatched resources are reported, never removed.
  • labagent refuses to run in an AWS account that is not on your allow list.
  • No plaintext secrets or emails in output or logs. No personal data in this repo. Tests enforce both.

Early release. Try labs in a throwaway account or workspace first. Apache-2.0. See SECURITY.md and CONTRIBUTING.md.

Running labs for a class or team? Private batches and dashboard: https://becloudready.com

Metadata

Release files for labagent 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for labagent 0.2.1
File Size Uploaded Provenance
labagent-0.2.1.tar.gz 130.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for labagent 0.2.1
File Interpreter ABI Platform
labagent-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 227.8 kB

Release files / labagent-0.2.1.tar.gz

Download URL labagent-0.2.1.tar.gz
Size 130.6 kB
Tags Source
SHA-256 checksum
How to use checksums
296a7e7918e35557fa0bc85ea3acd62f6a423c44375aa50504c1e1943d553219
BLAKE2b-256 checksum
How to use checksums
62878924350f59d12022c723855d75c32757bf1c9b58932646f59de6c8faedf7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

Release files / labagent-0.2.1-py3-none-any.whl

Download URL labagent-0.2.1-py3-none-any.whl
Size 97.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b1319663e34f3c8470d13f66e1d44a805d3e943bdb793a7d13f783837f3a4cb
BLAKE2b-256 checksum
How to use checksums
2c6298e5efdda4d38b0e6e94f4088d3ed6accf9078196b89f1a476fa426cd7d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

Security for labagent 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for labagent-0.2.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files Full provenance

0.2.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page