loki-cli
AI-powered code analysis CLI with error detection, RAG chat, and web UI.
Features
- 12 CLI commands for code analysis
- AI-powered error detection and fixes
- RAG chat with your codebase
- Web UI with real-time monitoring
- Secure - API keys in OS keychain, encrypted cache
Installation
pip install loki-cli
Quick Start
loki init # Scan codebase
loki errors # Show errors
loki ai # Chat with AI
loki show # Open web UI
loki report # Generate report
Commands
| Command | Description |
|---|---|
loki init |
Scan codebase, build cache |
loki errors |
Show detected errors |
loki show |
Open web UI |
loki describe |
Detailed error explanations |
loki ai |
Terminal chat with AI |
loki exit |
Clear cache |
loki fix |
AI-powered fix suggestions |
loki watch |
Live file monitoring |
loki report |
Generate markdown report |
loki models |
Switch AI providers |
loki capture |
Capture console errors from running processes |
loki inject |
Inject error capture hook into Python files |
Getting Help
Every command includes detailed help with examples:
loki --help # Show all commands
loki init --help # Show help for specific command
loki errors --help # Each command has OPTIONS, EXAMPLES, and NOTES
Security
- API keys stored in OS keychain (never in files)
- Cache encrypted with Fernet
- AI guardrails prevent prompt injection
- Secure deletion with 3-pass overwrite
License
MIT
Metadata
Release files for LOKK 0.1.6
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 | |
|---|---|---|---|---|
| lokk-0.1.6.tar.gz | 94.3 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lokk-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 155.8 kB
Release files / lokk-0.1.6.tar.gz
| Download URL | lokk-0.1.6.tar.gz |
|---|---|
| Size | 94.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e712dac5aaca43e88e5061d1637dc60498a2a266135f33599d459ac263223edc
|
|
BLAKE2b-256 checksum How to use checksums |
d4855792ae34a95bd8cf9f6a95cc662fa29c0caa6d279a2903a5ae98d4b19de4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 21, 2026.
Transparency logRelease files / lokk-0.1.6-py3-none-any.whl
| Download URL | lokk-0.1.6-py3-none-any.whl |
|---|---|
| Size | 61.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea492c3098481220f708838f54304926a3846ee180ab20994567c5ddac043ab8
|
|
BLAKE2b-256 checksum How to use checksums |
027b02dacc33cbbebd3f6e72fc2e26e0e84a9d854a68fcde8795a0a20a20f4a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 21, 2026.
Transparency logSecurity for LOKK 0.1.6
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 lokk-0.1.6.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 Jun 21, 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.