Show HN: An AI copilot for your CLI

https://github.com/TejasQ/idli

🥚 Idli: Your CLI AI Copilot

As developers, we sometimes need to use ffmpeg for something simple like converting a video to a gif, but we often can't quite remember the exact command to use. We end up searching the internet for the command, and then copy-pasting it into our terminal. This is where Idli comes in.

Watch the video

Idli in action

Idli is a CLI AI copilot that helps you with your day-to-day tasks. It is a command-line tool that uses AI to generate commands for you. You can ask Idli how to do something in natural language, and it will generate the command for you and offer to run it, copy it, or exit.

Usage

Provided you've got Node.js installed, you can use Idli like this:

npx idli ask how do I convert ./video.mp4 here to a gif

This will generate the command for you. You can then choose to run it, copy it, or exit. For more of an API reference, here's what you can do with Idli.

API Reference

Command Options Description
npx idli ask [question] Ask Idli a question in natural language.
npx idli reset Reset your OpenAI API key.
npx idli help [command] Get help for any commands, or the main module.

Contributing

I made this by myself for myself. If there's some issue you face or use case it's not meeting, let's add it together. Start by opening an issue and we'll take it from there.

Why is the logo an egg and not an idli?

These are idlis:

idlis

There is no idli emoji unfortunately, so an egg looks close enough—especially if the idlis are misshapen like this:

misshapen idlis

If you'd like to help get an idli emoji, please upvote this issue so we can get it added to Unicode. 🙏

{
"by": "sublimetext",
"descendants": 0,
"id": 40246340,
"score": 2,
"time": 1714734764,
"title": "Show HN: An AI copilot for your CLI",
"type": "story",
"url": "https://github.com/TejasQ/idli"
}
{
"author": "TejasQ",
"date": null,
"description": "Your AI command-line copilot. Contribute to TejasQ/idli development by creating an account on GitHub.",
"image": "https://opengraph.githubassets.com/4ac18b8325ebec13a259940a93dd5c93845762f7eca588fe73206e305c055f4b/TejasQ/idli",
"logo": "https://logo.clearbit.com/github.com",
"publisher": "GitHub",
"title": "GitHub - TejasQ/idli: Your AI command-line copilot",
"url": "https://github.com/TejasQ/idli"
}
{
"url": "https://github.com/TejasQ/idli",
"title": "GitHub - TejasQ/idli: Your AI command-line copilot",
"description": "🥚 Idli: Your CLI AI Copilot As developers, we sometimes need to use ffmpeg for something simple like converting a video to a gif, but we often can't quite remember the exact command to use. We end up...",
"links": [
"https://github.com/TejasQ/idli"
],
"image": "https://opengraph.githubassets.com/4ac18b8325ebec13a259940a93dd5c93845762f7eca588fe73206e305c055f4b/TejasQ/idli",
"content": "<div><article><p></p><h2>🥚 Idli: Your CLI AI Copilot</h2><a target=\"_blank\" href=\"https://github.com/TejasQ/idli#-idli-your-cli-ai-copilot\"></a><p></p>\n<p>As developers, we sometimes need to use <code>ffmpeg</code> for something simple like converting a video to a gif, but we often can't quite remember the exact command to use. We end up searching the internet for the command, and then copy-pasting it into our terminal. This is where Idli comes in.</p>\n<p><a target=\"_blank\" href=\"https://youtu.be/1RoZOBGuP10\">Watch the video</a></p>\n<p><a target=\"_blank\" href=\"https://github.com/TejasQ/idli/blob/main/demo.gif\"><img src=\"https://github.com/TejasQ/idli/raw/main/demo.gif\" alt=\"Idli in action\" /></a></p>\n<p>Idli is a CLI AI copilot that helps you with your day-to-day tasks. It is a command-line tool that uses AI to generate commands for you. You can ask Idli how to do something in natural language, and it will generate the command for you and offer to run it, copy it, or exit.</p>\n<p></p><h2>Usage</h2><a target=\"_blank\" href=\"https://github.com/TejasQ/idli#usage\"></a><p></p>\n<p>Provided you've got Node.js installed, you can use Idli like this:</p>\n<div><pre>npx idli ask how <span>do</span> I convert ./video.mp4 here to a gif</pre></div>\n<p>This will generate the command for you. You can then choose to run it, copy it, or exit. For more of an API reference, here's what you can do with Idli.</p>\n<p></p><h3>API Reference</h3><a target=\"_blank\" href=\"https://github.com/TejasQ/idli#api-reference\"></a><p></p>\n<table>\n<thead>\n<tr>\n<th>Command</th>\n<th>Options</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>npx idli ask [question]</code></td>\n<td></td>\n<td>Ask Idli a question in natural language.</td>\n</tr>\n<tr>\n<td><code>npx idli reset</code></td>\n<td></td>\n<td>Reset your OpenAI API key.</td>\n</tr>\n<tr>\n<td><code>npx idli help [command]</code></td>\n<td></td>\n<td>Get help for any commands, or the main module.</td>\n</tr>\n</tbody>\n</table>\n<p></p><h2>Contributing</h2><a target=\"_blank\" href=\"https://github.com/TejasQ/idli#contributing\"></a><p></p>\n<p>I made this by myself for myself. If there's some issue you face or use case it's not meeting, let's add it together. Start by <a target=\"_blank\" href=\"https://github.com/tejasq/idli/issues/new\">opening an issue</a> and we'll take it from there.</p>\n<p></p><h2>Why is the logo an egg and not an idli?</h2><a target=\"_blank\" href=\"https://github.com/TejasQ/idli#why-is-the-logo-an-egg-and-not-an-idli\"></a><p></p>\n<p>These are idlis:</p>\n<p><a target=\"_blank\" href=\"https://camo.githubusercontent.com/c25f30b4fcff62ab78323ae7b3b1c9ec98c8b8237aac9fd543e32922d3bdcee7/68747470733a2f2f696d616765732e756e73706c6173682e636f6d2f70686f746f2d313538393330313736303031342d6439323966333937396462633f713d383026773d33323730266175746f3d666f726d6174266669743d63726f702669786c69623d72622d342e302e3326697869643d4d3377784d6a4133664442384d48787761473930627931775957646c664878386647567566444238664878386641253344253344\"><img src=\"https://camo.githubusercontent.com/c25f30b4fcff62ab78323ae7b3b1c9ec98c8b8237aac9fd543e32922d3bdcee7/68747470733a2f2f696d616765732e756e73706c6173682e636f6d2f70686f746f2d313538393330313736303031342d6439323966333937396462633f713d383026773d33323730266175746f3d666f726d6174266669743d63726f702669786c69623d72622d342e302e3326697869643d4d3377784d6a4133664442384d48787761473930627931775957646c664878386647567566444238664878386641253344253344\" alt=\"idlis\" /></a></p>\n<p>There is no idli emoji unfortunately, so an egg looks close enough—especially if the idlis are misshapen like this:</p>\n<p><a target=\"_blank\" href=\"https://camo.githubusercontent.com/8e5a5e496eb867745999c7a8aa11d2e9747e9fa52c580ee2c41ce002653c0601/68747470733a2f2f696d616765732e756e73706c6173682e636f6d2f70686f746f2d313633303338333234393839362d3432346534383264663932313f713d383026773d33313630266175746f3d666f726d6174266669743d63726f702669786c69623d72622d342e302e3326697869643d4d3377784d6a4133664442384d48787761473930627931775957646c664878386647567566444238664878386641253344253344\"><img src=\"https://camo.githubusercontent.com/8e5a5e496eb867745999c7a8aa11d2e9747e9fa52c580ee2c41ce002653c0601/68747470733a2f2f696d616765732e756e73706c6173682e636f6d2f70686f746f2d313633303338333234393839362d3432346534383264663932313f713d383026773d33313630266175746f3d666f726d6174266669743d63726f702669786c69623d72622d342e302e3326697869643d4d3377784d6a4133664442384d48787761473930627931775957646c664878386647567566444238664878386641253344253344\" alt=\"misshapen idlis\" /></a></p>\n<p>If you'd like to help get an idli emoji, please <a target=\"_blank\" href=\"https://github.com/TejasQ/idli/issues/1\">upvote this issue</a> so we can get it added to Unicode. 🙏</p>\n</article></div>",
"author": "",
"favicon": "https://github.githubassets.com/favicons/favicon.svg",
"source": "github.com",
"published": "",
"ttr": 59,
"type": "object"
}