# Set SDK Root/Resource Directory

**URL:** <https://community.stereolabs.com/t/set-sdk-root-resource-directory/8869>\
**Category:** C++\
**Tags:** linux, sdk\
**Created:** [May 21, 2025, 4:25pm UTC](https://community.stereolabs.com/t/set-sdk-root-resource-directory/8869 "2025-05-21T16:25:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Waelyn](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/w/9fc29f/32.png) [@Waelyn](https://community.stereolabs.com/u/Waelyn)\
**Post date:** [May 21, 2025, 4:25pm UTC](https://community.stereolabs.com/t/set-sdk-root-resource-directory/8869/1 "2025-05-21T16:25:42Z")

</div>

Hi folks,

I’m integrating the SDK into my toolchain, using `zed_sdk.run --noexec --noprogress --nox11 --chown --target my_install_dir` it was easy enough to install it to particular directory. Everything builds just fine using that, but when running my program fails complaining that it can’t download the calibration files/models/etc. to `/usr/local/zed` instead of using my\_install\_dir. `/usr/local/zed` doesn’t exist and would need root permission to create.

How do I change the directories it uses for the SDK _during runtime_? Or at least the resource directories for calibration files/optimized models? I looked all through the docs/Camera.hpp and didn’t see anything so any help would be appreciated.

Thanks!

---

<div class="post-metadata">

**Author:** ![adujardin](https://community.stereolabs.com/user_avatar/community.stereolabs.com/adujardin/32/4125_2.png) [@adujardin](https://community.stereolabs.com/u/adujardin)\
**Post date:** [May 21, 2025, 7:06pm UTC](https://community.stereolabs.com/t/set-sdk-root-resource-directory/8869/2 "2025-05-21T19:06:39Z")

</div>

In short, you currently can’t for AI models. This will be configurable in the future

For calibration files, you can set it in the InitParameters::optional\_settings\_path  
[https://www.stereolabs.com/docs/api/structsl\_1\_1InitParameters.html#aa8262e36d2d4872410f982a735b92294](https://www.stereolabs.com/docs/api/structsl_1_1InitParameters.html#aa8262e36d2d4872410f982a735b92294)

---

<div class="post-metadata">

**Author:** ![Waelyn](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/w/9fc29f/32.png) [@Waelyn](https://community.stereolabs.com/u/Waelyn)\
**Post date:** [March 5, 2026, 9:15pm UTC](https://community.stereolabs.com/t/set-sdk-root-resource-directory/8869/3 "2026-03-05T21:15:20Z")

</div>

Hi folks,

I wanted to see if this is supported yet, if there’s some sort of environment variable or something I can set to choose where the models get downloaded/optimized from?

---

<div class="post-metadata">

**Author:** ![adujardin](https://community.stereolabs.com/user_avatar/community.stereolabs.com/adujardin/32/4125_2.png) [@adujardin](https://community.stereolabs.com/u/adujardin)\
**Post date:** [March 23, 2026, 1:35pm UTC](https://community.stereolabs.com/t/set-sdk-root-resource-directory/8869/4 "2026-03-23T13:35:58Z")

</div>

You can set a custom install directory with recent versions.  
To install, you use the `install_path` option;

`bash ZED_SDK_XXX.zstd.run -- --install_path=/custom/path/zed`

Then the ZED\_DIR env var must be set to this value (you can put it in your bashrc for instance)
