CMDGPT is a GPT-powered Windows command-line assistant that translates natural language into real executable CMD or PowerShell commands. MicahAI runs in your terminal and uses gpt-4o-mini to interpret your intent and execute commands on the fly β with retry logic, clipboard copying, and more.
- π€ Natural Language to Command Execution β Just type "create a folder with a file in it" and watch it run.
- π― PowerShell & CMD Detection β Automatically detects PowerShell syntax and runs appropriately.
- π GPT Retry System β Fails? It'll ask GPT to revise until it works.
- π§ GPT Chat Mode β Use
gpt your question hereto ask questions right from the terminal. - π Clipboard Support β Use
cto copy the generated command without running it. - π First-Run API Key Setup β Automatically prompts for and saves your OpenAI API key securely in a config file.
- Extract the cmdgpt.zip
- Open Command Prompt
cdinto the directory containing the cloned/extracted project- Run this command:
python install_and_setup.pyThis sets up CMDGPT so you can run it globally using:
cmdgptopenaipyperclip
Setup installs these. No need to do it yourself.
Once installed, run cmdgpt in any command prompt.
Youβll see:
π§ MicahAI v0.1 β Dual-Mode Desktop Assistant with Infinite Retry Power
Type commands like: 'Create a folder with ideas.txt inside it'
Type 'gpt your-question-here' to chat with GPT directly.
Type 'exit' to shut down.
You β€ create a folder named test with a file readme.txt inside
[MicahAI π§ ] Attempt 1 generating command...
[MicahAI π] Suggested command(s):
mkdir test && echo. > test\readme.txt
Execute this? (y/c/n): y
And boom, itβs done.
- Configuration is saved to:
~/.cmdgpt/config.json - The entry point is
cli.py - You can run it manually using:
python cmdgpt/cli.pyMade by MicahThePro with terminal wizardry and GPT magic.