Show HN: Runprompt – run .prompt files from the command line
14 days ago
- #Python
- #AI
- #Automation
- A single-file Python script named 'runprompt' for running .prompt files.
- Quick start guide includes downloading the script, setting API keys, and running example .prompt files.
- Supports piping structured JSON data between prompts for chained operations.
- Allows command-line overrides for frontmatter values and model specifications.
- Supports multiple AI providers including Anthropic, OpenAI, Google AI, and OpenRouter.
- Environment variables can be used to set default configurations across multiple runs.
- Verbose mode (-v) available for debugging request/response details.
- OpenRouter provides access to multiple AI models through a single API key.