Connect to the Stata you already own
stata-cli detects Stata and PyStata on macOS, Windows, and Linux. No remote data upload and no replacement statistics engine.
Give any shell-capable agent a real Stata runtime. Keep your datasets, estimation commands, stored results, matrices, and graphs in one persistent session.
stata-cli detects Stata and PyStata on macOS, Windows, and Linux. No remote data upload and no replacement statistics engine.
A persistent daemon keeps datasets, macros, estimates, and frames alive across calls, with named sessions for parallel projects.
Agents can inspect variables, r()/e()/s(), matrices, labels, filtered rows, help files, and exported graphs instead of scraping terminal noise.
Inline Stata, multi-line analysis, stdin, and complete .do files with reliable exit codes.
Datasets, variable metadata, frames, labels, macros, matrices, and stored estimation results.
Built-in references for regression, panel data, DiD, IV, RDD, matching, graphics, and community packages.
Compact JSON responses, token-aware output, logs, and automatic PNG, SVG, or PDF graph export.
Stata 17 or newer and Python 3.9+ are all you need. Start the daemon once, then let your agent move at interactive speed.
$ pip install stata-cli $ stata-cli detect Stata detected $ stata-cli daemon start $ stata-cli --json run "sysuse auto, clear regress price mpg weight"