Skip to main content

drift — terminal-first, chat-based AutoML. Open source. No tokens. No auth.

Project description

drift

Terminal-first, chat-based AutoML. Open source. No tokens. No auth.


Install

pipx install drift-ml

Or:

npm install -g drift-ml

(Both require pipx install drift-ml for the Python CLI.)


Run

drift

On first run, drift downloads and starts the engine automatically. No backend setup. No config. No tokens.


How it works

  • Local-first — Engine runs on your machine. Data never leaves.
  • Chat-basedload data.csv, predict price, try something stronger
  • Auto-start — Engine downloads and starts in the background. You never start a backend manually.
  • No auth — No API keys for drift. (You need an LLM for training: Ollama, Gemini CLI, etc.)

Example (CLI)

drift › load iris.csv
drift › predict variety
drift › try something stronger
drift › quit

Use as library

pip install drift-ml
from drift import Drift

d = Drift()
d.load("iris.csv")
d.chat("predict sepal length")
result = d.train()
print(result["metrics"])

Or with an existing engine:

from drift import Drift

d = Drift(base_url="http://localhost:8000")
d.load("data.csv")
reply = d.chat("predict price")
print(d.get_last_reply(reply))

Windows (npm / pipx)

On Windows, when using npm or pipx, the engine can inherit a limited PATH — Gemini CLI may not be found. We now auto-prepend npm/pipx bin paths. If you still see "I'm ready for your first command" or planning failures:

  1. Add GEMINI_API_KEY — Create .env in project root with GEMINI_API_KEY=your-key. The backend will use the API instead of the CLI.
  2. Run backend manuallycd backend && python -m uvicorn main:app --host 0.0.0.0 --port 8000, then set DRIFT_BACKEND_URL=http://localhost:8000.

Philosophy

drift should feel like git, docker, brew — a tool you trust immediately. Zero friction. Open source.


Web UI (optional)

This repo also includes a web UI. For development:

./start.sh

Then open http://localhost:3000


Contributing

See CONTRIBUTING.md.


License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

drift_ml-0.2.14.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

drift_ml-0.2.14-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file drift_ml-0.2.14.tar.gz.

File metadata

  • Download URL: drift_ml-0.2.14.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for drift_ml-0.2.14.tar.gz
Algorithm Hash digest
SHA256 d337b91ba2a941cac00f74aaaf1bdad683f2b9d7a52e2f985a843a9dd32aefa5
MD5 a2aac9746f4fd54d2e3dd25e35b425ea
BLAKE2b-256 8a4e460c1644a4749b8ea2bb106ec6b94d1f61bcc9246e007bb7f9a8d54ad0d8

See more details on using hashes here.

File details

Details for the file drift_ml-0.2.14-py3-none-any.whl.

File metadata

  • Download URL: drift_ml-0.2.14-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for drift_ml-0.2.14-py3-none-any.whl
Algorithm Hash digest
SHA256 3e59b1570dcee2ebedd37e08a46fe717f3d531c21dcaeb0973179f0e0c148246
MD5 89473d86d01fb48d16ecf44bd902c2c2
BLAKE2b-256 8bb6b0f579964df2e82d41ded36f34efaf255c3a597b2a8d1ff4461551e18013

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page