Bantuity product family

The AI interface for Stata

Describe your analysis in plain language. Stata Copilot generates robust do-files, runs them on your licensed local Stata through a secure desktop connector, and explains the results — with full reproducibility.

Not another stats package — a calm research collaborator. Stata never runs in the cloud.

What it is

Natural language → Stata

Ask for Cox models, regressions, tables, or summaries. The AI produces clear, commented do-files you can review and edit.

Local execution only

A lightweight connector on your PC runs code via PyStata against your Stata license. Datasets stay under your control.

Reproducible by default

Every prompt, script, log, figure, and interpretation is stored in your project workspace for audit and reuse.

How it works

  1. Chat — describe the analysis in the browser (ChatGPT-like workspace).
  2. Generate — the API plans and returns Stata code + explanation.
  3. Connector — your desktop app receives the job over a secure channel.
  4. PyStata → Stata — licensed local Stata executes the do-file.
  5. Results — logs and interpretation appear in the dashboard.

How to run

2. Install the connector

In the workspace, open the Connector panel → Download connector config.

Unzip the connector package, place bootstrap.json next to install.ps1, then run the installer.

3. Start local Stata bridge

Launch Bantuity Stata Connector from the Desktop. Keep it running while you work. Requires Stata 17+ with PyStata (e.g. StataNow 19 SE).

# Local ops (developers)
powershell -File scripts\verify-stata.ps1
powershell -File scripts\start-connector.ps1

4. Analyze

In Chat, describe what you need, then Generate & run. Review code, log, and interpretation in the output panel.

Status should show: Connector online — licensed local Stata.

For operators (deploy)

Ship the control plane on Cloudflare (web) + your API host; analysts install the Windows connector.

# Build release artifacts
powershell -File scripts\build-release.ps1

# dist\
#   BantuityStataConnector-v1.0.0.zip   → end users
#   BantuityStataCopilot-Deploy-v1.0.0.zip → ops

# Web on Cloudflare Pages → stata-copilot.bantuity.com
# See docs/DEPLOY.md and frontend/wrangler.toml

Part of Bantuity

Ready when you are

Sign in to open your research workspace.

Sign in to Stata Copilot