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.11.tar.gz (17.0 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.11-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: drift_ml-0.2.11.tar.gz
  • Upload date:
  • Size: 17.0 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.11.tar.gz
Algorithm Hash digest
SHA256 6d6bcd9216a87e59c7a50ba796c5d34eac0a65f30dfd86bf5281426f3fdc9763
MD5 555cf5d9b04038417eb3cbcd0a3c2ced
BLAKE2b-256 3b4fb5ba656d41ed694c21ee5decad60462b3ebd09500893aa04e06620a308cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: drift_ml-0.2.11-py3-none-any.whl
  • Upload date:
  • Size: 18.2 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.11-py3-none-any.whl
Algorithm Hash digest
SHA256 fb43d8c2de1f3ddef05dc8e163bf54420e5e4c1630ffdc7d0b400a104dac36e3
MD5 af64d787a29ba34e948441650b0fd369
BLAKE2b-256 e7335d5a60b60c9eacfaffa30adb35a3d32aea4eaab5fd0cd48571d2fa45b2d3

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