✦ Doushi AI CLI (doushi / dsh)
The official command-line interface for Doushi.ai — empowering developers, data scientists, and hackers to build, train, inspect, and deploy autonomous machine learning models directly from their terminal.
✨ Features
- ⚡ Zero-Boilerplate ML: Go from raw datasets (
.parquet,.xls,.xlsx,.json,.csv,.tsv) to production-ready models in a single command. - 🔒 Security-First Auth: AWS CLI-style credential management (
~/.doushi/credentialswith strict0600permissions). - 🛡️ Pre-Flight Limit Checks: Validates dataset integrity and file limits locally before uploading.
- 🔄 Real-Time Streaming: Watch the autonomous self-healing agent loop live in your terminal.
- 🚀 Live Inference & Pipes: Predict via inline JSON, batch CSV files, or standard input streams (
cat data.csv | doushi predict <id>). - 📦 No Vendor Lock-In: Export raw scikit-learn/XGBoost training code,
model.pkl, FastAPI microservice, and Dockerfile withdoushi export.
📦 Installation
Install via pip:
pip install doushi-cli
Or run instantly without installing using pipx:
pipx run doushi demo
(Both doushi and dsh are available as CLI aliases)
🚀 Quickstart in 60 Seconds
1. Authenticate your terminal
doushi configure
(Prompts for your API key from app.doushi.ai)
2. Try the 30-second instant demo
doushi demo
(Trains an autonomous model on a sample customer churn dataset and shows live performance metrics)
3. Train on your own dataset
doushi train ./my_dataset.csv --goal "Predict customer churn probability"
📖 Command Reference
Authentication
doushi configure # Set up API Key & verify credentials
doushi whoami # View active organization, plan tier, and project quotas
doushi logout # Remove stored local credentials
Model Training & Projects
# Upload dataset and train with autonomous agent
doushi train ./dataset.csv --goal "Predict house sale prices"
# List all organization projects and best metrics
doushi projects list
# Inspect detailed model parameters, KPIs, and dataset preview
doushi projects view <project_id>
# Delete a project
doushi projects delete <project_id>
Predictions & Inference
# 1. Predict with single inline JSON record
doushi predict <project_id> --data '{"age": 32, "tenure": 12, "balance": 4500.0}'
# 2. Batch predict from a test CSV file
doushi predict <project_id> --file ./test_records.csv --output ./predictions.csv
# 3. Unix standard input piping
cat records.csv | doushi predict <project_id> | jq '.predictions[]'
Observability & Code Export
# Stream real-time agent execution & self-healing sandbox logs
doushi logs <project_id> -f
# Export standalone model bundle (model.pkl + FastAPI + Dockerfile)
doushi export <project_id> --out ./model-bundle/
📂 Exported Model Bundle Structure
Running doushi export <project_id> gives you everything you need to run completely independent of Doushi:
model-bundle/
├── model.pkl # Pretrained model weights
├── pipeline.py # Complete scikit-learn / XGBoost training script
├── requirements.txt # Locked dependencies
├── serve.py # FastAPI REST microservice
├── Dockerfile # Production container
└── README.md # Local deployment instructions
🛠️ Development & Contributing
Local Setup
git clone https://github.com/doushi-ai/doushi-cli.git
cd doushi-cli
python3 -m venv venv
source venv/bin/activate
pip install -e ".[dev]"
Run Test Suite
python3 -m unittest discover -s tests
📄 License
Distributed under the MIT License. See LICENSE for more information.
Built with ✦ by the Doushi.ai Team
Metadata
Release files for doushi-cli 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| doushi_cli-1.0.4.tar.gz | 25.1 kB | Without provenance | Details for doushi_cli-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| doushi_cli-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for doushi_cli-1.0.4-py3-none-any.whl |
Total release size: 52.9 kB
Release files / doushi_cli-1.0.4.tar.gz
| Download URL | doushi_cli-1.0.4.tar.gz |
|---|---|
| Size | 25.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a4310a5cf1d9ef1c53f85bab09c739844a25beb8d3bd7f629f4b30419fb8e69
|
|
BLAKE2b-256 checksum How to use checksums |
6fa3ac384b7d894fb014776b5214d0d0e74e0afa9b9fd96bd93530031b9444b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|
Release files / doushi_cli-1.0.4-py3-none-any.whl
| Download URL | doushi_cli-1.0.4-py3-none-any.whl |
|---|---|
| Size | 27.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b5190441ab2628c9cc1900e8497993bddae509310f0c08d38c1bbcb2da11f828
|
|
BLAKE2b-256 checksum How to use checksums |
5a86072d144d0d70de192fc864870fe8198607d91b66785bbb2d15be4ca40566
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|
Security for doushi-cli 1.0.4
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.