A command-line interface for Ollama API
Project description
mdllama
A CLI tool that lets you chat with Ollama models right from your terminal, with built-in Markdown rendering.
mdllama makes it easy to interact with Ollama's AI models directly from your command line, meanwhile providing you with real-time Markdown rendering
Features
- Chat with Ollama models from the terminal
- Built-in Markdown rendering
- Simple installation and removal (see below)
Screenshots
Chat Interface
Help
Live Demo
Go to this mdllama demo to try it out live in your browser. The API key is 9c334d5a0863984b641b1375a850fb5d
[!NOTE] Try asking the model to give you some markdown-formatted text, like:
Give me a markdown-formatted text about the history of AI.
So try it out and see how it works!
Installation
Install using package manager (recommended)
Debian/Ubuntu Installation
-
Add the PPA to your sources list:
echo 'deb [trusted=yes] https://packages.qincai.xyz/debian stable main' | sudo tee /etc/apt/sources.list.d/qincai-ppa.list sudo apt update
-
Install mdllama:
sudo apt install python3-mdllama
Fedora Installation
-
Download the latest RPM from: https://packages.qincai.xyz/fedora/
Or, to install directly:
sudo dnf install https://packages.qincai.xyz/fedora/mdllama-<version>.noarch.rpm
Replace
<version>with the latest version number. -
(Optional, highly recommended) To enable as a repository for updates, create
/etc/yum.repos.d/qincai-ppa.repo:[qincai-ppa] name=Raymont's Personal RPMs baseurl=https://packages.qincai.xyz/fedora/ enabled=1 metadata_expire=0 gpgcheck=0
Then install with:
sudo dnf install mdllama
3, Install the ollama library from pip:
pip install ollama
You can also install it globally with:
sudo pip install ollama
[!NOTE] The
ollamalibrary is not installed by default in the RPM package since there is no systemollamapackage avaliable (python3-ollama). You need to install it manually using pip in order to usemdllamawith Ollama models.
Traditional Bash Script Installation (Linux)
To install mdllama using the traditional bash script, run:
bash <(curl -fsSL https://raw.githubusercontent.com/QinCai-rui/mdllama/refs/heads/main/install.sh)
To uninstall mdllama, run:
bash <(curl -fsSL https://raw.githubusercontent.com/QinCai-rui/mdllama/refs/heads/main/uninstall.sh)
Windows & macOS Installation
Install via pip (recommended for Windows/macOS):
pip install mdllama
License
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mdllama-3.3.1.tar.gz.
File metadata
- Download URL: mdllama-3.3.1.tar.gz
- Upload date:
- Size: 32.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03ded9f397f361bc3a09fc84436062ad75558a960011d6a8c990be8ca7733bae
|
|
| MD5 |
7ab29fc57ba0067ceb2539982c1b22fc
|
|
| BLAKE2b-256 |
645d9c637b7eb46c51b20b5cee5e4bbac11fc3b366f68faf82b1eb57582e65b1
|
Provenance
The following attestation bundles were made for mdllama-3.3.1.tar.gz:
Publisher:
publish-to-pypi.yml on QinCai-rui/mdllama
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mdllama-3.3.1.tar.gz -
Subject digest:
03ded9f397f361bc3a09fc84436062ad75558a960011d6a8c990be8ca7733bae - Sigstore transparency entry: 286957297
- Sigstore integration time:
-
Permalink:
QinCai-rui/mdllama@aad57e6ac3cfc69da7dd40e704b4e66633b850c4 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/QinCai-rui
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@aad57e6ac3cfc69da7dd40e704b4e66633b850c4 -
Trigger Event:
workflow_run
-
Statement type:
File details
Details for the file mdllama-3.3.1-py3-none-any.whl.
File metadata
- Download URL: mdllama-3.3.1-py3-none-any.whl
- Upload date:
- Size: 35.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4b4af040a95bf303ade5de7ea6a972b589b983adc9144f5bc9f68557b8af843
|
|
| MD5 |
201a2c3f144086918dd7e3b9841ec64a
|
|
| BLAKE2b-256 |
2f39072047277ec8a722f0aa4f481c9593153ec41d195f193c7b1c9e27b0a6e1
|
Provenance
The following attestation bundles were made for mdllama-3.3.1-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on QinCai-rui/mdllama
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mdllama-3.3.1-py3-none-any.whl -
Subject digest:
d4b4af040a95bf303ade5de7ea6a972b589b983adc9144f5bc9f68557b8af843 - Sigstore transparency entry: 286957317
- Sigstore integration time:
-
Permalink:
QinCai-rui/mdllama@aad57e6ac3cfc69da7dd40e704b4e66633b850c4 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/QinCai-rui
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@aad57e6ac3cfc69da7dd40e704b4e66633b850c4 -
Trigger Event:
workflow_run
-
Statement type: