Skip to main content

CLI tool for AI-powered prompt enhancement

Project description

PMPT

AI-powered prompt enhancement tool that improves your prompts using OpenAI, Anthropic, and OpenRouter APIs.

Demo

Features

  • 🤖 Multiple AI Providers: OpenAI, Anthropic (Claude), OpenRouter
  • 🎨 Enhancement Styles: Gentle, Structured, Creative
  • 🔍 Smart Environment Detection: Automatically detects your project's programming environment
  • ⌨️ Command Completion: Tab completion for commands
  • 📋 Clipboard Integration: Automatic copying to clipboard
  • ⚙️ Easy Configuration: First-run setup wizard

Installation

Via pip (Recommended)

pip install pmpt-cli

Linux/macOS (Bash)

Run the installation script:

curl -fsSL https://raw.githubusercontent.com/hawier-dev/pmpt-cli/main/install.sh | bash

Manual Installation

git clone https://github.com/hawier-dev/pmpt-cli.git
cd pmpt-cli  
pip install -e .

Usage

Simply run:

pmpt

First Time Setup

The tool will automatically guide you through configuration:

  1. Choose your AI provider (OpenAI/Anthropic/OpenRouter/Custom)
  2. Enter your API key
  3. Specify your model
  4. Settings are saved to ~/.pmpt-cli/config.json

Configuration

Supported Providers

  • OpenAI: GPT models via OpenAI API
  • Anthropic: Claude models via Anthropic API
  • OpenRouter: Access to various models
  • Custom: Any OpenAI-compatible API

Configuration File

Located at ~/.pmpt-cli/config.json:

{
  "api_key": "your-api-key",
  "provider": "openai", 
  "model": "gpt-4o",
  "current_style": "gentle"
}

Requirements

  • Python 3.8+ (add to PATH during installation)
  • Git (for installation scripts)
  • API key for chosen provider (OpenAI, Anthropic, OpenRouter, etc.)

Development

git clone https://github.com/hawier-dev/pmpt-cli.git
cd pmpt-cli
pip install -e .

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pmpt_cli-0.1.5.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pmpt_cli-0.1.5-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file pmpt_cli-0.1.5.tar.gz.

File metadata

  • Download URL: pmpt_cli-0.1.5.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pmpt_cli-0.1.5.tar.gz
Algorithm Hash digest
SHA256 67ccb5f609cf09c7b61bb66993e95d9223f2022f7860578249a7f42b1cefd924
MD5 2348e647b7bb6023ca8aa1b3138ac389
BLAKE2b-256 7f29f22fd3006571be1ff2db2035069e0d347d93a127965a48ffe6d2e362d99c

See more details on using hashes here.

File details

Details for the file pmpt_cli-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: pmpt_cli-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pmpt_cli-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 07477abd3e7096d992b88b8f36931f5bd48208c9ec209c193c571c3711ba01ff
MD5 7c1452cfcda7b30e59de02629564f2ac
BLAKE2b-256 c95edf772f5d32c396704d0b63229be453171b5256fbcc56f63ce627404c9129

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page