Discover and explore top open-source AI tools and projects—updated daily.
kagisearchAI CLI tool for querying models via OpenRouter API
Top 96.1% on SourcePulse
A lightweight bash script, ask, enables querying AI models through the OpenRouter API directly from the command line. It is optimized for generating executable output, making it a valuable tool for developers and power users seeking to integrate AI assistance into their shell workflows for tasks like command generation, code snippets, and quick technical answers.
How It Works
The project is a single bash script that leverages curl to interact with the OpenRouter API. It parses API responses using jq and performs calculations with bc for metrics. The core design prioritizes direct, executable output, allowing users to pipe AI-generated commands or code directly into other processes or execute them immediately. This approach offers a minimal footprint and seamless integration into existing command-line environments.
Quick Start & Requirements
Installation involves cloning the repository, making the script executable, and copying it to a directory in your system's PATH (e.g., /usr/local/bin/). Alternatively, an install script is provided.
git clone https://github.com/kagisearch/ask.git
cd ask
chmod +x ask
sudo cp ask /usr/local/bin/
curljqbcOPENROUTER_API_KEY.https://github.com/kagisearch/ask.githttps://openrouter.ai/Highlighted Details
-c for Mercury Coder, -g for Gemini 2.5 Flash) and custom model names (-m).--system) or disabling them (-r).--stream) for real-time responses.Maintenance & Community
The provided README does not contain specific details regarding maintainers, community channels (like Discord or Slack), sponsorships, or a public roadmap.
Licensing & Compatibility
The project is released under the MIT License. This permissive license generally allows for commercial use and integration into closed-source projects without significant restrictions.
Limitations & Caveats
The script's functionality is dependent on the availability and performance of the OpenRouter API. Output quality and accuracy are subject to the chosen AI model and the user's prompt engineering. As a bash script, it may have limitations in handling highly complex error scenarios or user interfaces compared to more robust applications. Compatibility with non-Unix-like systems (e.g., Windows without WSL) is not explicitly detailed.
2 months ago
Inactive
approximatelabs
anomalyco