The CLI (ef) and the Python SDK (embodiflow) let you do from a terminal or a script what you do in the console: upload a folder, download a version, write and test an algorithm on your own machine. Both come from your deployment, so their version always matches its API, and nothing has to come from a public package registry.
Before you start
- Node 24 for the CLI, and Python 3.11 or newer for the Python SDK.
- Your deployment's API address. Here it is
https://api.embodiflow.io; on your own servers it is usually your console address withapi.in place ofapp.. Your admin can confirm it.
The whole install
Run the block. API is the address above; change it if yours differs. The steps below explain each part.
# Your deployment's API address
API="https://api.embodiflow.io"
# The CLI and SDK version this deployment serves
VERSION=$(curl -fsSL "$API/v1/sdk/index" | node -e 'let s="";process.stdin.on("data",c=>s+=c).on("end",()=>console.log(JSON.parse(s).data.sdkVersion))')
# The CLI (ef), from your deployment; needs Node 24
curl -fL -o embodiflow-cli.tgz "$API/v1/sdk/artifacts/embodiflow-cli-$VERSION.tgz"
npm install --global ./embodiflow-cli.tgz
# Sign in: opens your browser
ef login --api-url "$API"
# Check the API, your sign-in and object storage
ef config doctor
# The Python SDK; needs Python 3.11+
python3 -m pip install --extra-index-url "$API/v1/sdk/simple/" "embodiflow[algorithm]==$VERSION"Install the CLI
/v1/sdk/index lists what your deployment serves, and sdkVersion is the version of the CLI and the Python SDK it ships. The CLI is one npm package that installs a program under two names, embodiflow and the shorter ef.
Sign in
ef login opens your browser and saves the credential with the API address, so later commands need neither. They go to ~/.embodiflow/config.json, or to $EMBODIFLOW_CONFIG_DIR if you set it. To keep a second account apart, add --profile <name> to ef login and to the commands that should use it.
A script or a CI job has no browser. Give it a personal access token or a team API key instead, either saved once or only in the environment of the job. Here the token is in $TOKEN:
printf '%s' "$TOKEN" | ef login --pat-stdin --api-url "$API"
# or nothing saved on disk:
export EMBODIFLOW_API_URL="$API"
export EMBODIFLOW_API_KEY="$TOKEN"
ef whoamiCheck the setup
ef config doctor checks, without changing anything, that the CLI reaches the API and object storage and that your credential works. Each failed check prints what to do, and the command exits with 1. ef whoami shows who you are signed in as, the team, and what the credential may do.
If ef was installed before, check its version: running ef with the --version flag should print the sdkVersion that curl -fsSL "$API/v1/sdk/index" returns. An older one lacks commands and flags these docs use; run the install block again to replace it.
Install the Python SDK
The last line installs the embodiflow package at the same version as the CLI. Your deployment serves only the EmbodiFlow package itself; its dependencies, such as numpy and pyarrow, come from your usual package index. That is why the line uses --extra-index-url. Behind a proxy, or without internet access, point PIP_INDEX_URL at your mirror. The algorithm extra adds what you need to run algorithms on your machine; leave it out if you only call the API.
Keep both current
When your deployment is upgraded, ef self-update installs the CLI version it now serves. For the Python SDK, run the first two lines and the pip install line again.
If something fails
| What you see | What to do |
|---|---|
curl fails on /v1/sdk/index with a 404 | Your deployment has published no SDK yet. Ask your admin. |
VERSION is empty | Check API: it is the API address, not the console address, and starts with https://. |
| npm reports an unsupported engine | Install Node 24. |
pip finds no matching distribution for embodiflow | Use Python 3.11 or newer, and check that VERSION is set. |
ef config doctor reports a failed check | Follow the hint it prints. Most often the API address is wrong or the credential expired: run ef login again. |