Skip to main content

kx: the KinetixAI command line

From a paper to its code, models and datasets, a local paper library with BibTeX/APA export, private Q&A over your own PDFs (BM25 in pure Python, plus Ollama when it is running), and an MCP server so open-source agents can use all of it. macOS, Linux and Windows, Python 3.10+.

Install

Where Command
macOS / Linux curl -fsSL https://kinetixai.ai/install.sh | sh
Windows (PowerShell) irm https://kinetixai.ai/install.ps1 | iex
Any OS, pipx pipx install "kinetixai[rag,mcp] @ https://kinetixai.ai/cli/dl/kinetixai-0.2.0-py3-none-any.whl"
From source (repo access) pipx install "git+https://github.com/rpaut03l/kinetixai-labs.git#subdirectory=cli"
PyPI (coming soon, not published yet) pipx install "kinetixai[rag,mcp]"
No Python standalone kx binaries: coming with the first release

The installers never use sudo/Administrator, check for Python 3.10+, verify the SHA-256 of the wheel they download, keep it in ~/.kinetixai/wheels (so pipx reinstall / pipx upgrade keep working), and use pipx if present (otherwise a venv in ~/.kinetixai). They never install from PyPI unless you set KX_SOURCE=pypi: kx is not published there yet, and an unclaimed name must not be installed by accident. Options: KX_EXTRAS (default rag,mcp), KX_SOURCE=site|pypi|git, KX_WHEEL=<local wheel>, KX_NO_PIPX=1, and on Windows KX_NO_MODIFY_PATH=1.

Extras: rag (pypdf, to read PDFs), mcp (the agent server), keyring (token in the OS keychain), all. Add one later with pipx inject kinetixai pypdf.

Then run kx doctor.

Use

# papers
kx search "speculative decoding" -n 5
kx get 1706.03762                    # metadata + abstract; --pdf to download, --bibtex
kx cite 1706.03762 --format apa
kx scholar "Tri Dao"

# paper -> code, models, datasets (GitHub + Hugging Face public APIs)
kx code 2205.14135                   # official repo first, then GitHub by stars
kx models 2307.09288                 # models that cite the paper
kx models whisper --task automatic-speech-recognition --sort likes
kx datasets "code generation"

# local library (JSON in your data dir; works offline)
kx library add 2205.14135 2106.09685 --pdf --tag attention
kx library add ~/Downloads/notes.pdf
kx library list
kx library export -o refs.bib        # or --format apa | json

# private RAG over the library (+ any folder)
kx rag index --path ~/papers
kx rag ask "How does FlashAttention reduce HBM traffic?"

# agents (MCP over stdio)
kx mcp --config goose                # also: claude-desktop, cline, continue, openhands, open-webui, cursor
kx mcp                               # run the server

# account (optional; only kx ask uses it)
kx login                             # paste a token from https://kinetixai.ai/account/tokens/
kx whoami
kx ask "What is RLVR?"
kx logout                            # revokes the token and forgets it

Every command takes --json, placed after the command (kx search "rope" --json, not kx --json search): ASCII-safe JSON on stdout, errors on stderr, exit code 1 on failure, 2 on bad usage.

Local RAG and privacy

kx rag index chunks your library (titles, abstracts and PDF text) and any --path folders (PDF, Markdown, text), and stores the index in your data directory. Retrieval is BM25 in pure Python. If Ollama is running at localhost:11434 with nomic-embed-text pulled, kx adds embeddings (hybrid retrieval, cached between runs); kx rag ask then answers with your Ollama model (kx config set ollama_model qwen2.5) and cites passages as [n]. Without Ollama you get the best passages with sources. With a local Ollama, nothing leaves the machine; if ollama_url/OLLAMA_HOST points elsewhere, kx says so on every answer.

MCP tools

search_papers, get_paper, find_code, find_models, find_datasets, library_search, rag_ask. Works with MCP SDK 1.x and 2.x. For Open WebUI, expose it through mcpo: uvx mcpo --port 8000 -- kx mcp.

Configure

kx config show
kx config set endpoint https://kinetixai.ai
kx config set ollama_model llama3.1
kx config set embed_model nomic-embed-text
kx config set token_store file       # skip the OS keyring

Environment: KINETIXAI_ENDPOINT, KX_TOKEN (CI), OLLAMA_HOST, GITHUB_TOKEN / HF_TOKEN (optional, higher rate limits, never stored), KX_CONFIG_DIR / KX_DATA_DIR (override the platformdirs locations).

Token handling

Tokens come from /account/tokens/, are shown once, and the server keeps only a SHA-256 hash. kx stores the token per endpoint in the OS keyring when the keyring extra has a working backend, otherwise in credentials.json in the config dir, created owner-only (0600) on macOS/Linux. kx never prints it, refuses to send it over plain http except to localhost, and only sends it to the configured KinetixAI endpoint. A token can call /api/auth/me, /api/ask, /api/rag/* and /api/research/*; it cannot manage tokens, payments or the account.

Develop

python -m venv .venv && . .venv/bin/activate   # Windows: .venv\Scripts\activate
pip install -e ".[dev]"
pytest -q                                      # offline; every HTTP source is mocked

Standalone binary: pip install ".[rag,mcp,build]" then pyinstaller --onefile --name kx --collect-submodules kinetixai --collect-all mcp --copy-metadata mcp packaging/kx_entry.py. python packaging/mcp_smoke.py dist/kx mcp does a real MCP handshake against it.

Metadata

Release files for kinetixai 0.2.0

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

Source distribution (sdist)

Source distribution for kinetixai 0.2.0
File Size Uploaded Provenance Actions
kinetixai-0.2.0.tar.gz 62.1 kB Without provenance Details for kinetixai-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kinetixai 0.2.0
File Interpreter ABI Platform Actions
kinetixai-0.2.0-py3-none-any.whl Python 3 none any Details for kinetixai-0.2.0-py3-none-any.whl

Total release size: 114.7 kB

Release files / kinetixai-0.2.0.tar.gz

Download URL kinetixai-0.2.0.tar.gz
Size 62.1 kB
Tags Source
SHA-256 checksum
How to use checksums
be612e64155d1df634b1131e8074f58e94a7530d71ce1b79af59b764ef268555
BLAKE2b-256 checksum
How to use checksums
e1c965a32708c2605a438a65df2e28197c8b2f3fe4c26929f23d5140440d8365
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / kinetixai-0.2.0-py3-none-any.whl

Download URL kinetixai-0.2.0-py3-none-any.whl
Size 52.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01f58ad48e83af635f2a7f4b0c340357406e507dc61a46fc00e6c4b083ceb8d0
BLAKE2b-256 checksum
How to use checksums
4d505a8592aa51af4d72d2e33a0f8c1e0ee810b828c8ba58a98a8ed974602b6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for kinetixai 0.2.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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