Llamalink
Link you Ollama models to LM-Studio
Install / Use
/learn @sammcj/LlamalinkREADME
Ollama to LM Studio Model Linker
Depreciation Notice
Llamalink has been replaced!
Llamalink has been replaced with my new tool - Gollama.
Gollama is a more feature-rich and user-friendly tool that can link Ollama models to LM Studio and other applications.
It is written in Go and has a TUI as well as a command-line interface. Please check it out if you are interested in linking Ollama models to LM Studio or if you are looking for a more versatile tool for managing Ollama models.

Deprecated llamaLink information follows
Llamalink is a simple command-line tool that allows you to easily link Ollama models to LM Studio's directory structure. It simplifies the process of symlinking Ollama models to LM Studio, making it convenient to use the models in both applications.
Features
- Retrieves the list of available Ollama models using the ollama list command.
- Displays the list of models and allows the user to select specific models to link or link all models at once.
- Retrieves the model path for each selected model using the ollama show --modelfile command.
- Creates the necessary directories in the LM Studio directory structure.
- Creates symlinks from the Ollama model paths to the corresponding LM Studio model paths.
- Removes any existing symlinks before creating new ones to avoid conflicts.
- Cleans up any broken symlinks in the LM Studio models directory.
- Can be run interactively or non-interactively.
Prerequisites
Before using this program, ensure that you have the following:
- Ollama command-line tool installed and accessible from the system PATH.
Installation
- Run
go install github.com/sammcj/llamalink@latest
or
- Download the latest build from the releases page.
Usage
Install the program using the instructions above.
Run llamalink
-iRun interactively to select which specific models to link.-ollama-dirSpecify a custom Ollama models directory.-lm-dirSpecify a custom LM Studio models directory.-min-sizeInclude only models over the given size (in GB or MB).-max-sizeInclude only models under the given size (in GB or MB).-qQuiet operation, only output an exit code at the end.-no-cleanupDon't cleanup broken symlinks.-cleanupRemove all symlinked models and empty directories and exit.-hPrint the help message.
If no flags are provided, the program will automatically link all models.
Configuration
The program uses the following default directories:
- Ollama models directory: ~/.ollama/models
- LM Studio models directory: ~/.cache/lm-studio/models
If your Ollama models or LM Studio models are located in different directories, you can modify the ollamaModelsDir and lmStudioModelsDir variables in the source code accordingly.
$ go install github.com/sammcj/llamalink@latest
$ llamalink
Ollama models directory: /Users/samm/.ollama/models
LM Studio models directory: /Users/samm/.cache/lm-studio/models
Select the models to link to LM Studio:
1. knoopx/hermes-2-pro-mistral:7b-q8_0
2. dolphincoder:15b-starcoder2-q4_K_M
3. llava:13b
4. nomic-embed-text:latest
5. qwen:14b
6. qwen:7b-chat-q5_K_M
7. stable-code:3b-code-q5_K_M
8. tinydolphin:1.1b-v2.8-q5_K_M
Enter the model numbers (comma-separated), or press Enter to link all: 3
Model: llava:34b-v1.6-q5_K_M
Path: /Users/samm/.ollama/models/blobs/sha256:4ddc7cc65a231db765ecf716d58ed3262e4496847eafcbcf80288fc2c552d9e6
LM Studio model directory: /Users/samm/.cache/lm-studio/models/llava/llava-34b-v1.6-q5-K-M-GGUF
Symlinked llava:34b-v1.6-q5_K_M to /Users/samm/.cache/lm-studio/models/llava/llava-34b-v1.6-q5-K-M-GGUF/llava-34b-v1.6-q5-K-M.gguf
Building
go build
License
This program is open-source and available under the MIT License.
Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
Related Skills
node-connect
350.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
350.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
