Skip to main content

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:

  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:

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.

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

losna_cli-0.1.1.tar.gz (120.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

losna_cli-0.1.1-py3-none-any.whl (32.6 kB view details)

Uploaded Python 3

File details

Details for the file losna_cli-0.1.1.tar.gz.

File metadata

  • Download URL: losna_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 120.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for losna_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6ee4c5ab050b07daf37b6af413eed4d5d4988b2583da53372480fa8cf88d4f5b
MD5 4fc165e45fdff5a1ca7903bcd7c318ae
BLAKE2b-256 e148e826519c8c03c118110a1231ca1c3cb22699418d01727e446097225edcd6

See more details on using hashes here.

File details

Details for the file losna_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: losna_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 32.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for losna_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 40e174aaeaddf8479c7eb7a4e19cdcbd919c052371512d085496427e234a3557
MD5 17b3a9b28b2addc2aa1862eb5ea2c211
BLAKE2b-256 ed3cf17aae1ac9ab63d5084a3fcb2b769be9fb1799234692c131898a5fc70a05

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page