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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pmpt_cli-0.1.7.tar.gz
  • Upload date:
  • Size: 16.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.7.tar.gz
Algorithm Hash digest
SHA256 46ca77534e1fafb49ff2ef3a24fe52b47788f46826c55de1f240fdc636ceaf3b
MD5 e0238584f5c1ce05e4b6f91bd64cb10e
BLAKE2b-256 7a88bd7800800807c3efed5b5909b2ea79998f3a7f8b093ea3516790c4b02bf3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pmpt_cli-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 18.7 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6c7b0abb2850934644a8a79a5b2f4438963b17795eb144841ccc90563afceca8
MD5 4d019d3a3ae0d5aee273ef7b6e00afeb
BLAKE2b-256 5bec8413a25cd056432fe95acef25ff7f92975e2444e843e20c0b887d90c0942

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