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.6.tar.gz (14.5 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.6-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pmpt_cli-0.1.6.tar.gz
  • Upload date:
  • Size: 14.5 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.6.tar.gz
Algorithm Hash digest
SHA256 0ed7eae3d8a87e8ca6ee8f5c689dac8b2162976c81b2ef26175f6c8eb3b22bc8
MD5 d24a33bdf798ff63bbbe07f7cf9dbabe
BLAKE2b-256 88c0c652cec6057a6fcef823297579e292fff7a4a6ba2fad6968d72d3b9dc4d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pmpt_cli-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 17.1 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 97d7f3118605824b0a612e93014e2bebd51d8231f7ef591afed26a6549c37a40
MD5 56e381d2a10263489670ac8376d75653
BLAKE2b-256 0e10ad6d32ac7ddadbce1b47559c6e526a487debce8d88da63c8859b01386751

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