CLI for querying Ollama models via HTTP API
Project description
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
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
estudely_askai-0.2.1.tar.gz
(11.4 kB
view details)
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 estudely_askai-0.2.1.tar.gz.
File metadata
- Download URL: estudely_askai-0.2.1.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34b7773ab76a2c46d2562841204e82b6c910a9d4deb235d28661524c2d1690c1
|
|
| MD5 |
6d3cb61be112fd12ed20ce093f98cc0c
|
|
| BLAKE2b-256 |
4509d6aadffa1185c46d5a75deec511daed81328880c2cb9bef5156c9fb6e436
|
File details
Details for the file estudely_askai-0.2.1-py3-none-any.whl.
File metadata
- Download URL: estudely_askai-0.2.1-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f0733b204eb3ea6b2467ca8a14a6b4f93f4b18350be7d6f5bc74bfa893a01dc
|
|
| MD5 |
a3af91e332e2ff18f11cfa710d3fcab7
|
|
| BLAKE2b-256 |
5dc4df53fba7cd5abe80b351227e0ffbebb0db5247a91dd10211cd48cb44ccc8
|