Askai
Development happens on Codeberg. GitHub is a read-only mirror for discovery — please open issues and pull requests on Codeberg.
CLI for one-shot, stateless questions to an LLM.
Meant for engineers living inside terminals, askai aims to fill those small information gaps that typically pop up while working, such as:
- commands syntax / flag names;
- tiny code examples;
- quick conceptual clarifications. Instead of wasting time switching to a browser or a dedicated AI app, simply:
askai "What does set -euo pipefail do?"
will return a concise, fluff-free answer, minimizing distractions and speeding up your workflow.
By default, askai uses Groq's free developer tier for inference, but can also be configured to use other Backends.
Installation
Install with pipx (recommended):
pipx install askai-py
Or with uv:
uv tool install askai-py
Then set your Groq API key (Groq is the default backend):
export GROQ_API_KEY="your-key"
askai "how do I rename the current git branch?"
Usage
askai "what's so special about the number 42?" # one-shot question
askai --backend codex --max-lines 20 \
"explain protocols vs abc classes in python" # runtime overrides
askai config show # inspect persisted config
Run askai --help for the full command reference, and askai doctor to check your setup status.
Backends
askai currently supports two backends:
groq(default) — API adapter calling Groq's OpenAI-compatible endpoint. Default model:llama-3.1-8b-instant. RequiresGROQ_API_KEY.codex— CLI adapter wrapping the Codex CLI. Requires a local Codex installation.
Switch backend:
askai config set backend codex
askai doctor
Adding a Backend
Contributions for new backends are welcome. To add one, you need to:
- Implement the
BackendAdapterprotocol insrc/askai/backends/ - Register it in
build_backend_adapters()(src/askai/backends/__init__.py) - Add the backend name to
KNOWN_BACKENDS(src/askai/config.py) - Add tests under
tests/ - Document it in the
Backendssection ofREADME.md
Corporate VPN / Proxy (Self-Signed Certificates)
If you are behind a VPN or intercepting proxy, set ASKAI_CA_BUNDLE to your CA certificate so askai trusts the TLS connection:
export ASKAI_CA_BUNDLE=/path/to/mytrusted-ca.pem
askai "List Tmux useful commands"
This adds your CA as a trust root alongside the system defaults, so normal HTTPS still works.
Metadata
Release files for askai-py 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| askai_py-0.1.3.tar.gz | 11.0 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| askai_py-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.0 kB
Release files / askai_py-0.1.3.tar.gz
| Download URL | askai_py-0.1.3.tar.gz |
|---|---|
| Size | 11.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7eb7c1736ff1b7a6ff1b34a2905da7fd2c34060b52df1352dca617bbe5d69ced
|
|
BLAKE2b-256 checksum How to use checksums |
1aa9ad1cd8d81244efd78687d3349c871528f081a42e57ec6c7cbd03c30c4c36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 12, 2026.
Transparency logRelease files / askai_py-0.1.3-py3-none-any.whl
| Download URL | askai_py-0.1.3-py3-none-any.whl |
|---|---|
| Size | 15.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
52755c8760e5f97a55c929df90bc9ee2f9b3411434ed470e2f99e849b9f35253
|
|
BLAKE2b-256 checksum How to use checksums |
92c7aa94c807791b20887319859917ca06dd60f7c3b8df3a2e7eee2a150ae458
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 12, 2026.
Transparency logSecurity for askai-py 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for askai_py-0.1.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 12, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.