Skip to content

MicahThePro/CMDGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 

Repository files navigation

🧠 CMDGPT

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.


πŸš€ Features

  • πŸ€– 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 here to ask questions right from the terminal.
  • πŸ“‹ Clipboard Support β€” Use c to 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.

πŸ› οΈ How to Install

  1. Extract the cmdgpt.zip
  2. Open Command Prompt
  3. cd into the directory containing the cloned/extracted project
  4. Run this command:
python install_and_setup.py

This sets up CMDGPT so you can run it globally using:

cmdgpt

πŸ“¦ Dependencies

  • openai
  • pyperclip

Setup installs these. No need to do it yourself.


πŸ’‘ How to Use

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.

Example

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.


πŸ§ͺ Development Notes

  • Configuration is saved to: ~/.cmdgpt/config.json
  • The entry point is cli.py
  • You can run it manually using:
python cmdgpt/cli.py

Made by MicahThePro with terminal wizardry and GPT magic.


About

An AI that helps run commands on your computer.

Resources

Stars

Watchers

Forks

Packages

No packages published