Skip to main content

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

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 implementations
  • bootstrap — 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 ollama binary or library; v3 bootstraps installation attempts via bootstrap in src/main.py.
  • Web fetch features require requests and beautifulsoup4 (optional).

License

  • MIT — see LICENSE

Contributing

  • PRs and issues welcome. Keep changes focused and include tests where appropriate.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ollama_agentic-0.1.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ollama_agentic-0.1.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

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

Hashes for ollama_agentic-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4bc6b3a1de45102a11f8a3f156f1034a48b4d0a837414434ce6fe21b73b3ed5f
MD5 6cbddab96d3b5de0ab9ae3fcb0287a2a
BLAKE2b-256 b17cc6ea654679df2924d1d8cb448b53e30c1fd9b0889908426dbebbf53d5cc3

See more details on using hashes here.

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

Hashes for ollama_agentic-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0765f5bc1ef5f7adf5f91b77af6d0183c4698d127fb36b3cf3e6cf8d4cd3e6b
MD5 8da29cfc4d69201ed0a611736d007a5c
BLAKE2b-256 e7df462b5354ef0bb3e978be2ec09043408e7c95254ceae1869406b910396596

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page