Losna CLI AI agent assistant
Project description
Losna CLI
An advanced, terminal-based AI developer assistant designed to interface with OpenRouter APIs. Losna CLI streamlines complex workspace orchestration, code generation, diagnostics, and testing with a clean, light-weight terminal interface.
Features
- Interactive Shell: Seamless conversational loop powered by OpenRouter models (defaults to Deepseek V4 Flash) with auto-suggestions, slash command autocompletion, and visual feedback.
- Web Search Integration: Optional, dynamic web search powered by Tavily. Prompts for API keys only when the search tool is requested.
- Dynamic Task Execution: Executes operations, tests, and file modifications safely through integrated agent tools.
- Memory Compaction: Automatically compresses conversational context to optimize token usage and maintain long-term memory constraints.
- Local Persistence: Encapsulates chat logs, sessions, and long-term memory in a local SQLite database.
Installation
Install Losna CLI directly from PyPI:
pip install losna-cli
Alternatively, run it instantly without global installation using uv:
uvx losna-cli
Setup
Upon the first execution, Losna CLI will guide you through the setup process:
- OpenRouter API Key: Required for core operations.
- Web Search Configuration: Asks if you would like to enable the optional web search feature. If enabled, it will request your Tavily API key.
Your configuration keys are stored securely in your user home directory (~/.losnarc).
Usage
Start the interactive session:
losna
Slash Commands
/help- Displays the help menu listing all commands./sessions- Lists all active chat sessions and their IDs./new <title>- Starts a new chat session with a custom title./switch <id>- Switches to another chat session by its ID./search <query>- Executes an agent-guided web search./exitor/quit- Closes the active session.
License
This project is licensed under the ISC License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 losna_cli-0.1.2.tar.gz.
File metadata
- Download URL: losna_cli-0.1.2.tar.gz
- Upload date:
- Size: 120.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f1e2dcdfdd4ca9bf5e83f19e404ddef7a1a552dbeda7737dad41a0d3aedf51c
|
|
| MD5 |
c8d5e17254b04cccfda5eae87b2906d1
|
|
| BLAKE2b-256 |
e972653b84b008a81515a6193526282f35461cd5f3175b99b1d96542bcc9ea95
|
File details
Details for the file losna_cli-0.1.2-py3-none-any.whl.
File metadata
- Download URL: losna_cli-0.1.2-py3-none-any.whl
- Upload date:
- Size: 32.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b2ecfcd656f7a11413f565aaa6d1ca96457922867b229ce8f90584404a74d1d
|
|
| MD5 |
fa77948b65982715cc13c1507712f3fd
|
|
| BLAKE2b-256 |
197556061875eb534e5fc9b93ed370f253223d2d2be672a647da0f3390c536c6
|