From 9a89b759638b84c53a80868de3055e4c343a8e69 Mon Sep 17 00:00:00 2001 From: Vladimir Prelovac Date: Thu, 4 Sep 2025 06:39:23 -0700 Subject: [PATCH 1/6] Update README.md --- README.md | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index d3acf48ede3ecf9873a2c516c4e72c1e3f6c94e8..31cf95cd14464767464ca1d53f22d39261ad5614 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,12 @@ A lightweight bash script for querying AI models via the OpenRouter API, optimiz # Clone and setup git clone https://github.com/yourusername/ask.git cd ask + chmod +x ask +sudo cp ask /usr/local/bin/ + -# Set your API key +# Make sure you have you OpenRouter API key export OPENROUTER_API_KEY="your-api-key-here" # Test it @@ -18,36 +21,17 @@ export OPENROUTER_API_KEY="your-api-key-here" grep -vFf file2 file1 > file3 && mv file3 file1 -[inception/mercury-coder via Inception - 0.86s - 20.9 tok/s] +[inception/mercury-coder via Inception - 0.66s - 20.9 tok/s] ``` -## Installation - -### Option 1: Using install.sh -```bash -sudo ./install.sh -``` - -### Option 2: Manual installation -```bash -chmod +x ask -sudo cp ask /usr/local/bin/ -``` - -### Persistent API key setup - -Add to your shell profile (`~/.bashrc`, `~/.zshrc`, etc.): -```bash -export OPENROUTER_API_KEY="your-api-key-here" -``` +We also provide a handy install script. ## Usage ### Basic usage ```bash -ask "What is 2+2?" -ask "Write a Python hello world" +ask "ffmpeg command to convert mp4 to gif" ``` ### Model selection From 3abfe99dcb6f23b32af04c902630bb590aed1f9f Mon Sep 17 00:00:00 2001 From: Vladimir Prelovac Date: Thu, 4 Sep 2025 06:39:39 -0700 Subject: [PATCH 2/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 31cf95cd14464767464ca1d53f22d39261ad5614..6f67980d3768d632781e71c2fc7cd76d3a955b40 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ sudo cp ask /usr/local/bin/ export OPENROUTER_API_KEY="your-api-key-here" # Test it -./ask remove lines in file1 that appear in file2 +ask remove lines in file1 that appear in file2 grep -vFf file2 file1 > file3 && mv file3 file1 From cc98443f6cc512c25e711054c63eacfa912db1f6 Mon Sep 17 00:00:00 2001 From: Vladimir Prelovac Date: Thu, 4 Sep 2025 06:40:30 -0700 Subject: [PATCH 3/6] Update README.md --- README.md | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/README.md b/README.md index 6f67980d3768d632781e71c2fc7cd76d3a955b40..17c5da1f7f015fb1a0026e8241c6a30cf785ef9f 100644 --- a/README.md +++ b/README.md @@ -156,27 +156,6 @@ docker ps -a | ask "Which containers are using the most memory?" - OpenRouter API key (get one at [openrouter.ai](https://openrouter.ai)) - Set as environment variable: `OPENROUTER_API_KEY` -### Missing dependencies -```bash -# Check for required tools -which curl jq bc - -# Install on macOS -brew install jq bc - -# Install on Ubuntu/Debian -sudo apt-get install jq bc -``` - -### No response or errors -```bash -# Test with verbose curl output -curl -v https://openrouter.ai/api/v1/chat/completions \ - -H "Authorization: Bearer $OPENROUTER_API_KEY" \ - -H "Content-Type: application/json" \ - -d '{"model":"google/gemini-2.5-flash","messages":[{"role":"user","content":"test"}]}' -``` - ## License MIT From 5feff9a173015d161c783af61b7f221e0df8aa59 Mon Sep 17 00:00:00 2001 From: Vladimir Prelovac Date: Thu, 4 Sep 2025 06:44:57 -0700 Subject: [PATCH 4/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 17c5da1f7f015fb1a0026e8241c6a30cf785ef9f..97445e8cb86f90b4de998f865ea3e338a09399e2 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ sudo cp ask /usr/local/bin/ export OPENROUTER_API_KEY="your-api-key-here" # Test it -ask remove lines in file1 that appear in file2 +> ask remove lines in file1 that appear in file2 grep -vFf file2 file1 > file3 && mv file3 file1 From 55a7924a500639d720811e5931fab9c9221d30b2 Mon Sep 17 00:00:00 2001 From: Vladimir Prelovac Date: Thu, 4 Sep 2025 06:46:09 -0700 Subject: [PATCH 5/6] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 97445e8cb86f90b4de998f865ea3e338a09399e2..c0747e2a7307cb56c874e557f6f19ef1dd33e820 100644 --- a/README.md +++ b/README.md @@ -31,14 +31,14 @@ We also provide a handy install script. ### Basic usage ```bash -ask "ffmpeg command to convert mp4 to gif" +ask ffmpeg command to convert mp4 to gif ``` ### Model selection ```bash # Default model (Mercury Coder - optimized for code) -ask "Write a Python function" +ask find files larger than 20mb # Shorthand flags for quick model switching ask -c "prompt" # Mercury Coder (default, best for code) From 1561e4041ddc0d07e75d981b6d4a045914a1557c Mon Sep 17 00:00:00 2001 From: Vladimir Prelovac Date: Thu, 18 Sep 2025 09:18:37 -0700 Subject: [PATCH 6/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c0747e2a7307cb56c874e557f6f19ef1dd33e820..76be733f9d03df2f8a226ee007f685ed5ff47fb8 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ A lightweight bash script for querying AI models via the OpenRouter API, optimiz ```bash # Clone and setup -git clone https://github.com/yourusername/ask.git +git clone https://github.com/kagisearch/ask.git cd ask chmod +x ask