Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

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 & Execution

Running Losna CLI via uvx is the recommended method. It automatically manages Python, dependencies, and environment isolation without modifying your system's global state.

uvx losna-cli

Note: If you do not have uv installed, you can install it instantly via pip install uv or visit astral.sh/uv.

Method 2: Standard pip Installation

Install Losna CLI directly from PyPI:

pip install losna-cli

Then start the interactive session:

losna

Troubleshooting command not found:

If your operating system returns an error stating that losna is not recognized, it means the Python Scripts directory is not configured in your OS PATH environment variable. You can bypass this by executing the package module directly using Python:

python -m main
# or if main module structure is registered:
python -c "import main; main.main()"

Setup

Upon the first execution, Losna CLI will guide you through the setup process:

  1. OpenRouter API Key: Required for core operations.
  2. 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 using your preferred execution method above (e.g. uvx losna-cli or 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.
  • /exit or /quit - Closes the active session.

License

This project is licensed under the ISC License.

Metadata

Release files for losna-cli 0.1.3

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

Source distribution (sdist)

Source distribution for losna-cli 0.1.3
File Size Uploaded
losna_cli-0.1.3.tar.gz 120.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for losna-cli 0.1.3
File Interpreter ABI Platform
losna_cli-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 153.2 kB

Release files / losna_cli-0.1.3.tar.gz

Download URL losna_cli-0.1.3.tar.gz
Size 120.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5e0805d84245bcb62eed708bbdbdb230479f12bfbd0d8b7e7ba0f3fb36aff6e7
BLAKE2b-256 checksum
How to use checksums
2e060819abe50c06bf9da1b06e395986f5cb9164a38e2354562d54bf6987e650
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release files / losna_cli-0.1.3-py3-none-any.whl

Download URL losna_cli-0.1.3-py3-none-any.whl
Size 33.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a62fa0c74a84bb00d61e4ab7722f0aa21146c87aee578485b25d1056699ad8b4
BLAKE2b-256 checksum
How to use checksums
58ddadbe94b934876b6758264320e0817bb935ccb8040be110d0cb01f519315f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

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