| Crates.io | aineed-cli |
| lib.rs | aineed-cli |
| version | 0.1.1 |
| created_at | 2024-12-27 06:20:47.642511+00 |
| updated_at | 2024-12-27 06:20:47.642511+00 |
| description | AI assistant CLI tool for multiple providers |
| homepage | |
| repository | https://github.com/nbiish/aineed |
| max_upload_size | |
| id | 1496232 |
| size | 64,061 |
![]()
A minimal CLI tool for interacting with multiple AI providers (OpenAI, Anthropic, TogetherAI, OpenRouter) with a unified interface.
git clone https://github.com/Nbiish/aineed
cd aineed
cargo build --release
The binary will be available at target/release/aineed
Set your API keys:
# OpenAI
aineed --set-openai "your-api-key"
# Anthropic
aineed --set-anthropic "your-api-key"
# TogetherAI
aineed --set-togetherai "your-api-key"
# OpenRouter
aineed --set-openrouter "your-api-key"
# Default model (togetherai:meta-llama/Llama-3.3-70b-instruct-turbo)
aineed -p "Who are the Anishinaabe?"
# Using OpenAI
aineed openai:gpt-3.5-turbo -p "who are the Anishinaabe?"
# Using OpenRouter
aineed openrouter:google/gemini-exp-1206:free -p "who are the Anishinaabe?" -o Anishinaabe.txt
# Using OpenAI DALL-E 3 (saves as dall-e-3_TIMESTAMP.png)
aineed openai:dall-e-3 -i -p "Cyberpunk Nanaboozhoo"
# Using TogetherAI FLUX (with custom output name)
aineed togetherai:black-forest-labs/FLUX.1-schnell -i -p "Cyberpunk Nanaboozhoo" -o cyberpunk-nanaboozhoo.png
When using a file input with -f, you can provide a prompt with -p that will be prepended to the file content:
# Process a file with a specific instruction
aineed openai:gpt-4o -f story.txt -p "Take significant text and make it hashtags" -o story_optimized.txt
The API request will be formatted like so when using -p and -f:
USER PROMPT:
<your prompt>
FILE CONTENT:
<file content>
# Stream the response
aineed openai:gpt-4o-turbo -s -p "Tell me a story about Nanaboozhoo and the rabbits"
# Control max tokens and temperature
aineed openrouter:google/gemini-2.0-flash-exp --temp 0.9 -t 999 -p "Tell me a Nanaboozhoo fantasy adventure"
# Set a new default model
aineed -d "togetherai:meta-llama/Llama-3.3-70b-instruct-turbo"
The tool provides detailed error messages from providers to help troubleshoot:
MIT License - see LICENSE for details