Transform any CSV into a production-ready ML predictor from the command line.
pip install featrix-shellffs login # save API key to ./.featrix (project-local)
ffs login --global # save API key to ~/.featrix (user-wide)
ffs whoami # verify identity and connection
ffs upgrade # upgrade featrix-shell and featrixsphereffs looks for a .featrix file starting from the current directory and walking
up to $HOME. This lets you use different API keys per project:
~/work/client-a/.featrix <- ffs uses this key when you're in client-a/
~/work/client-b/.featrix <- ffs uses this key when you're in client-b/
~/.featrix <- fallback for everything else
Search order:
FEATRIX_API_KEYenvironment variable (always wins).featrixin current directory.featrixin each parent directory up to$HOME~/.featrix
The file is JSON:
{"api_key": "sk_live_..."}ffs [global-options] <command> [subcommand] [options] [args]
--server URL API server (default: https://sphere-api.featrix.com)
--cluster NAME Compute cluster
--json Output raw JSON
--quiet Minimal output
ffs login [--global] Save API key (project-local or ~/.featrix)
ffs whoami Show current user/org/connection
ffs upgrade Upgrade featrix-shell and featrixsphere
ffs foundation create --name NAME --data FILE [--epochs N] [--ignore-columns COL,COL]
ffs foundation list [--prefix PREFIX]
ffs foundation show MODEL_ID
ffs foundation columns MODEL_ID
ffs foundation card MODEL_ID
ffs foundation wait MODEL_ID [--poll-interval N] [--timeout N]
ffs foundation extend MODEL_ID --data FILE [--epochs N]
ffs foundation encode MODEL_ID RECORD_JSON [--short]
ffs foundation publish MODEL_ID --org ORG --name NAME
ffs foundation unpublish MODEL_ID
ffs foundation deprecate MODEL_ID --message MSG --expires DATE
ffs foundation delete MODEL_ID
ffs predictor create MODEL_ID --target-column COL --type {classifier,regressor} [--labels FILE] [--name NAME] [--epochs N]
ffs predictor list MODEL_ID
ffs predictor show MODEL_ID
ffs predict MODEL_ID '{"col": "val"}' Single prediction (JSON)
ffs predict MODEL_ID --file FILE [--target-column COL] Batch (CSV, JSON, Parquet)
ffs predict MODEL_ID '{"col": "val"}' --explain Include feature importance
ffs vectordb create MODEL_ID [--name NAME] [--records FILE]
ffs vectordb search MODEL_ID RECORD_JSON [-k N]
ffs server health
# Login
ffs login
# Create a foundational model from CSV
ffs foundation create --name "customers" --data customers.csv
# Wait for foundation training
ffs foundation wait MODEL_ID
# Train a classifier on a target column
ffs predictor create MODEL_ID --target-column churned --type classifier
# Wait for predictor training (same wait command)
ffs foundation wait MODEL_ID
# Single prediction
ffs predict MODEL_ID '{"age": 35, "income": 50000}'
# Batch prediction from file
ffs predict MODEL_ID --file new_customers.csvMODEL_ID=session_idin the Featrix Sphere API- Wraps the
featrixsphereOO API (FeatrixSphere,FoundationalModel) - Built with Click + Rich