A cross-platform desktop application that provides an intuitive interface for interacting with AI language models through both OpenAI's API and LM Studio's local server.
- 🔄 Support for both OpenAI API and LM Studio local models
- 💻 Cross-platform compatibility (Windows and macOS)
- 🗂️ Chat history management with persistent storage
- 🛠️ System command generation and execution
- 📝 Real-time command output display
- 🔍 Model selection and refresh capabilities
- 🔒 Secure API key handling
OpenAI integration with model selection and API key configuration
LM Studio local server integration with process listing functionality
OpenAI integration showing system command generation
LM Studio integration displaying application listing functionality
-
Download the latest release for your platform:
- Windows:
AIPrompt-win.exefrom the releases page - macOS:
AIPrompt-mac.zipfrom the releases page
- Windows:
-
For macOS:
- Extract
AIPrompt-mac.zip - Move
AIPrompt.appto your Applications folder - Right-click and select "Open" the first time to bypass Gatekeeper
- Extract
-
For Windows:
- Run
AIPrompt-win.exe - If SmartScreen appears, click "More Info" and "Run Anyway"
- Run
Prerequisites:
- Python 3.8 or higher
- pip (Python package installer)
- Git
- GitHub Personal Access Token (for release management)
# Clone the repository
git clone https://github.com/yourusername/AIPrompt.git
cd AIPrompt
# Create and activate virtual environment
python -m venv .venv
# On Windows:
.venv\Scripts\activate
# On macOS:
source .venv/bin/activate
# Install dependencies
pip install -r requirements.txtThe project uses a cross-platform build pipeline that handles version management and releases:
-
Creating a New Release
# Set your GitHub token export GITHUB_TOKEN=your_github_token # On macOS/Linux $env:GITHUB_TOKEN = "your_github_token" # On Windows # Create a new release (increment version and build) python version.py [major|minor|patch] "Your release description"
This will:
- Increment the version number
- Update the changelog
- Build for the current platform
- Create a GitHub release
- Upload the current platform's build
-
Building for Other Platforms After creating a release on one platform, build for the other platform:
# On Windows: .\build-win.ps1 # On macOS: ./build-mac.sh
The build script will:
- Build the application
- Automatically update the latest GitHub release with the new platform build
-
Manual Building (without release) To build without creating a release:
# On Windows: .\build-win.ps1 # On macOS: ./build-mac.sh
Builds will be available in the
releasedirectory.
- Windows:
release/AIPrompt-win.exe - macOS:
release/AIPrompt-mac.zip
- Select "OpenAI" from the AI Provider dropdown
- Enter your OpenAI API key
- Click "Refresh Models" to load available models
- Select your desired model from the dropdown
- Start LM Studio and load your desired model
- Select "LM Studio" from the AI Provider dropdown
- Ensure the Server URL is set to
http://localhost:1234(default) - Click "Refresh Models" to load available models
- Select your desired model from the dropdown
- New Chat: Click "New Chat" to start a fresh conversation
- Chat History: Previous chats are saved automatically and can be accessed from the left sidebar
- Delete Chats: Select one or more chats and click "Delete" to remove them
- Clear All: Use "Clear All Chats" to remove all chat history
- Enter your prompt in the input field
- Click "Send Prompt" to generate commands
- Review the generated instructions and commands
- Click "Run Command" to execute the suggested command
- Use "Kill Command" if needed to stop long-running processes
- "Copy Output to Prompt" allows you to use command output in your next prompt
- Windows: Chat history and logs are stored in
%APPDATA%\AIPrompt - macOS: Chat history and logs are stored in
~/Library/Application Support/AIPrompt
See CHANGELOG.md for a detailed list of changes in each version.
This project is licensed under the MIT License - see the LICENSE file for details.
Latest release: v1.1.0
For older releases, visit the GitHub releases page.