- Prompt-based Command Generation: The tool asks for a prompt and generates shell commands based on that prompt.
- Run Commands: After generating the commands, the tool asks if you want to execute them in your terminal.
-
Hugging Face Integration: The tool uses the Hugging Face API and the
mistralai/Mistral-7B-Instruct-v0.3
model to generate relevant shell commands.
-
Clone this repository:
git clone https://github.com/UsboKirishima/inlinai cd inlinai
-
Install dependencies:
npm install
-
Create a
.env
file with your Hugging Face API key:HF_API_KEY=<your-hugging-face-api-key>
Note: The other entries (OPENAI_KEY, OPENAI_ENDPOINT, OPENAI_MODEL, DEEPSEEK_API_KEY) are experiments and can be ignored for this tool.
- Run using npm/pnpm/yarn:
npm run start gen "read file README.md" pnpm start gen "read file README.md" yarn start gen "read file README.md"
- Run by installing global package:
after installing run command:
npm i --global @333revenge/inlineai yarn global add @333revenge/inlineai pnpm add -g @333revenge/inlineai
inlineai gen "read file README.md"