Migrate from the deepset Cloud SDK
Migrate from the legacy deepset Cloud SDK to the Haystack Enterprise SDK. We actively maintain the Haystack Enterprise SDK. The legacy deepset Cloud SDK is no longer supported and will be deprecated in the future.
What Changed
This table shows the key differences between the two SDKs:
| Before | Now | |
|---|---|---|
| Product | deepset Cloud SDK | Haystack Enterprise SDK |
| Package | deepset-cloud-sdk | haystack-enterprise-sdk |
| Import | deepset_cloud_sdk | haystack_enterprise_sdk |
| CLI command | deepset-cloud (or python -m deepset_cloud_sdk.cli) | haystack-enterprise (or python -m haystack_enterprise_sdk.cli) |
| Config file | ~/.deepset-cloud/.env | ~/.haystack-enterprise/.env |
| Platform | deepset Cloud, deepset AI Platform | Haystack Enterprise Platform |
Identifiers That Keep the Old Name
Two identifiers still contain deepset_cloud. They're part of the platform's wire contract, not branding, so leave them as they are:
deepset_cloud_custom_nodes.*— the import path prefix for components the platform provides. It appears in thetypefield of those components in your generated pipeline YAML.deepset_cloud_version— a field in the deployment payload the SDK sends to the platform.
You see both in --dry-run output. Don't change them.
Migrate to the Haystack Enterprise SDK
-
Remove the old package:
pip uninstall deepset-cloud-sdk# or, if you installed it as a tooluv tool uninstall deepset-cloud-sdk -
Log in to the Haystack Enterprise Platform. The SDK reads
~/.haystack-enterprise/.env. Your old~/.deepset-cloud/.envis ignored.haystack-enterprise loginYou can also move the file yourself. The contents are unchanged (
API_KEY,API_URL,DEFAULT_WORKSPACE_NAME):mkdir -p ~/.haystack-enterprisecp ~/.deepset-cloud/.env ~/.haystack-enterprise/.envProject-local
.envfiles need no change. You can use the same file for both SDKs. -
Update your imports:
# beforefrom deepset_cloud_sdk.workflows.sync_client.files import upload# nowfrom haystack_enterprise_sdk.workflows.sync_client.files import upload -
Update scripts and CI that call the old command. The subcommands you already use (
login,upload,download,list-files, and others) keep their names and flags.# beforedeepset-cloud upload ./my-files# nowhaystack-enterprise upload ./my-filesThe pipeline commands
validate,run,deploy, andservice-statusare new in the renamed package and have nodeepset-cloudequivalent.
Related Information
Was this page helpful?