Skip to main content

estudely-askai

Terminal CLI for querying Ollama models via the HTTP API.

Install

python -m venv .venv
source .venv/bin/activate
pip install -e .

Usage

askai --version
askai "what is the capital of france"
askai --models
askai --host http://localhost:11434 --model llama3.1 "hello"
askai --stream "stream me"

Options

--host      Ollama host (default: env OLLAMA_HOST or http://localhost:11434)
--model     Model name (default: env ASKAI_MODEL or llama3.1)
--timeout   Request timeout in seconds (default: 60)
--json      Print models as JSON (use with --models)
--stream    Stream response tokens
--models    List available models
--cloud     Use Ollama cloud host (requires OLLAMA_API_KEY)
--local     Force localhost host default

Cloud auth

Set OLLAMA_API_KEY to send Authorization: Bearer <key> on all requests.

Config file

Defaults can be set in ~/.config/estudely-askai/config.toml:

host = "http://localhost:11434"
model = "llama3.1"
timeout = 60

Release files for estudely-askai 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for estudely-askai 0.2.1
File Size Uploaded
estudely_askai-0.2.1.tar.gz 11.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for estudely-askai 0.2.1
File Interpreter ABI Platform
estudely_askai-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 22.5 kB

Release files / estudely_askai-0.2.1.tar.gz

Download URL estudely_askai-0.2.1.tar.gz
Size 11.4 kB
Tags Source
SHA-256 checksum
How to use checksums
34b7773ab76a2c46d2562841204e82b6c910a9d4deb235d28661524c2d1690c1
BLAKE2b-256 checksum
How to use checksums
4509d6aadffa1185c46d5a75deec511daed81328880c2cb9bef5156c9fb6e436
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / estudely_askai-0.2.1-py3-none-any.whl

Download URL estudely_askai-0.2.1-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f0733b204eb3ea6b2467ca8a14a6b4f93f4b18350be7d6f5bc74bfa893a01dc
BLAKE2b-256 checksum
How to use checksums
5dc4df53fba7cd5abe80b351227e0ffbebb0db5247a91dd10211cd48cb44ccc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page