Shell script to create symlinks for Ollama models to be used in LM Studio.
Based on powershell script from https://github.com/Les-El/Ollm-Bridge
Ensure you have jq
installed for JSON parsing.
On macOS with Homebrew: brew install jq
On Linux: Use your distribution's package manager
-
Normal execution:
./ollama-lmstudio-bridge.sh
-
Dry run mode (no changes made):
./ollama-lmstudio-bridge.sh --dry-run
-
By Default the model symlinks will be stored in
/home/${USER}/models
directory.
You can change the models directory with:
MODELS_DIR="/path/to/directory" ./ollama-lmstudio-bridge.sh
-
Combine dry run with custom directory:
MODELS_DIR="/path/to/directory" ./ollama-lmstudio-bridge.sh --dry-run