A beautiful, agentic CLI for Ollama — run local LLMs with auto tool-calling, memory, and more
Project description
Ollama CLI — Terminal UI for Local LLMs
A beautiful, agentic CLI for running local Ollama models with tool-calling, memory, planning, and compare modes.
Quick links
- src/main.py — main v3 implementation (contains
OllamaCLIandmain()entry) - ollama_cli.py — simpler v1 CLI
- ollama_cli_v2.py — v2 CLI with themes and expanded features
- pyproject.toml — project metadata & dependencies
Requirements
- Python >= 3.10
- Install runtime deps listed in pyproject.toml: pip install rich prompt_toolkit ollama requests beautifulsoup4
Run
- From the package entry (if installed): ollama-cli (configured in pyproject.toml:
ollama_cli.main:main) - Directly:
- v3: python src/main.py
- v2: python ollama_cli_v2.py
- v1: python ollama_cli.py
Features
- Interactive chat with streaming output and Markdown rendering
- Agentic mode: auto tool-calling (shell, file, fetch, ls) and iterative plan execution
- /plan: generate and execute step plans
- /run: debug loop for running and auto-fixing Python scripts
- Long-term memories (/remember, /memories, /forget)
- Model management and side-by-side model comparison
- Save/load conversations and personas
Key symbols
OllamaCLI— primary CLI class and command implementationsbootstrap— ensures Ollama is installed/running and can pull models_run_tool— executes shell/file/fetch/ls tool calls
Config & data
- Config stored at:
~/.ollama_cli_config.json - History:
~/.ollama_cli_history - Saves:
~/.ollama_cli_saves - Personas:
~/.ollama_cli_personas - Memory:
~/.ollama_cli_memory.json
Development
- Run unit tests (if any) via pytest (dev deps in pyproject)
- Linting and formatting recommended with tools of choice
Notes
- The CLI requires the
ollamabinary or library; v3 bootstraps installation attempts viabootstrapin src/main.py. - Web fetch features require
requestsandbeautifulsoup4(optional).
License
- MIT — see LICENSE
Contributing
- PRs and issues welcome. Keep changes focused and include tests where appropriate.
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 ollama_agentic-0.1.0.tar.gz.
File metadata
- Download URL: ollama_agentic-0.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bc6b3a1de45102a11f8a3f156f1034a48b4d0a837414434ce6fe21b73b3ed5f
|
|
| MD5 |
6cbddab96d3b5de0ab9ae3fcb0287a2a
|
|
| BLAKE2b-256 |
b17cc6ea654679df2924d1d8cb448b53e30c1fd9b0889908426dbebbf53d5cc3
|
File details
Details for the file ollama_agentic-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ollama_agentic-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0765f5bc1ef5f7adf5f91b77af6d0183c4698d127fb36b3cf3e6cf8d4cd3e6b
|
|
| MD5 |
8da29cfc4d69201ed0a611736d007a5c
|
|
| BLAKE2b-256 |
e7df462b5354ef0bb3e978be2ec09043408e7c95254ceae1869406b910396596
|