
runai - help run or automate AI/LLM and other tasks
A potentially-powerful tool, supporting AutoGen multi-agent framework, to help run or automate various kinds of LLM tasks (and other tasks) for nearly anything - such as code refactoring, software builds, business proposals, marketing, and more.
✅ Cross-platform
✅ Python-based
✅ Paid support and assistance available - contact me
✅ Supports OpenAI or local LLM instances, such as ollama/litellm
✅ Supports AutoGen multi-agent framework
✅ Supports various tasks, such as code refactoring, software builds, business proposals, marketing, and more
✅ Supports various file formats and languages, such as C++, PHP, Python, JavaScript, etc.
✅ Supports various AI/LLM models, such as GPT-4, o1-mini, and the latest AI models.
✅ Want it extended (say, with more tasks)? I could possibly do it under payment (for developer hours etc.), contact me
✅ Code block auto-extraction
✅ New feature: Automated testing script generation
✅ New feature: Seamless integration with CI/CD pipelines
✅ "Source-available" (but not open source)
➡️ Free to use for personal use only (or trial/evaluation commercial use)
➡️ For commercial users (including organizations/institutions such as government bodies), a 'Commercial Support and Licensing' fee is required - contact me to discuss
✅ Commercial support and integration assistance available
runai --gpt4 -t "Write a python script named getrate.py that gets and prints the current US$/EUR exchange rate" create -o "getrate.py"
➡️ You must first read & accept this EULA. It is "beta but stable"
➡️ For advanced users, it requires some technical skills, such as setting up Python projects. ("Developer-friendly", not friendly for non-technical users.)
Caution! For some tasks, this tool can modify files. Always (1) backup all your data first, (2) always work in a 'sandbox' copy, (3) always check all changes. Use at your own risk. (If you are worried, let me assist for a fee, to help support and make sure usage runs smoothly).
If you are a developer and want to contribute to this project, contact me to discuss.
For OpenAI use, you also need your own OpenAI API key, and per-usage OpenAI API fees would apply.
Sample screenshot:
Sample: "Create a Python application rendering an animated 2D graph demonstrating sin/cosine for kids":
Quick-start Help and Examples
Some brief quick getting-started examples and info. Run in your terminal (macOS, Linux, git bash) or Command Prompt (Windows).
runai -t "Write a Python script that can check daily for updated exchange rate for USD, EUR"
Show usage help:
runai -h
Use --showsettings to just show settings for current task and exit:
runai --showsettings refactor -w myapp.py
runai -t mytask.txt --showsettings refactor -w "*.cpp" "*.h"
Plain replacement (non-AI task):
runai refactor -w "main.py" -r "findme" --replace-with "foo"
Selecting model:
-4 or --gpt4 - use gpt4
-m "model to use" OR --model "model to use"
--o1-mini - use o1-mini
--o1-preview - use o1-preview
Example:
runai -3 -t "Write a short story about cats"
Create files mode
Show usage help for create mode:runai create -h
Example:
runai --gpt4 -t "Write a new python file called graph.py that displays a graph in a window that helps explain sin and cosine" create -o "graph.py"
Batch mode
You may use -i or --input to specify a filename for which to run the task for every line on the file. You may optionally use the special marker {$1} in the task string, which will be automatically replaced with each line's value in the task prompt. Example: input.txt:dogs
cats
pigs
runai -4 -t "Write a short story about {$1}" -i input.txt
Example: input.txt:
TLex Lexicography Software
tlTerm Terminology Software
tlCorpus Concordance Software
tlEditor (tlDatabase) Editing Software
runai -4 -t "Write a short product bio about the following product (briefly explaining what it does, and listing all its main features and strengths): {$1}" -i input.txt
Example: input.txt:
vec3d
vec2d
matrix4
runai -t "Create a C++ class for {$1} and return it in two code blocks with filenames {$1}.h and {$1}.cpp"
Code refactoring
runai -4 -tf /c/runai/tasks/copyright/task.txt -f ./cppcode_folder/ -s /c/runai/tasks/copyright/settings.py refactor -w "*.cpp"
Links
- runai GitHub page. Licensed under "Business Source License". ("All rights reserved" for copyright.)
- ChangeLog
- End-User License Agreement (EULA) and Disclaimers for runai

