AI & Machine Learning

Prompt Declaration Language

Prompt Declaration Language (PDL) is a declarative prompt programming language.

By IBM. Free and open source for macOS, Linux. Latest version v0.9.3, released 2026-02-26.

Is Prompt Declaration Language safe?

Trust score 57/100: Use caution. Some warning signs. Read the notes, check the reviews, and verify the file before you run it.

Things to watch:

317 GitHub stars · 3.8k downloads.

Download Prompt Declaration Language

brew install --cask pdl

Downloads come straight from github.com/IBM/prompt-declaration-language.

About Prompt Declaration Language

PDL is a declarative language designed for developers to create reliable, composable LLM prompts and integrate them into software systems. It provides a structured way to specify prompt templates, enforce validation, and compose LLM calls with traditional rule-based systems.

A PDL program is written declaratively, in YAML. The pdl command line tool interprets this program, accumulating messages and sending them to the models as specified by your program. PDL supports both hosted and local models. See here for instructions on how to install an Ollama model locally.

Check out AutoPDL , PDL's prompt optimizer tool Spiess et al. (2025)! AutoPDL can be used to optimize any part of a PDL program. This includes few-shots examples and textual prompts, but also prompting patterns. It outputs an optimized PDL program with optimal values.

The following program accumulates a single message write a hello world example… and sends it to the ollama/granite-3.2:8b model:

Similar apps

Questions

Is Prompt Declaration Language safe to download?

Prompt Declaration Language has an OpenShelf trust score of 57/100 (Use caution). Some warning signs. Read the notes, check the reviews, and verify the file before you run it. Main thing to watch: Small community (317 stars): fewer people are watching the code.

Is Prompt Declaration Language free?

Yes. Prompt Declaration Language is free and open source under the Apache-2.0 license. The source code is public at github.com/IBM/prompt-declaration-language.

Does Prompt Declaration Language work on macOS and Linux?

Prompt Declaration Language is available for macOS, Linux. Ready-made downloads exist for macOS, Linux.

How do I install Prompt Declaration Language?

Download the official file from the project's GitHub releases (for example PDL-0.9.3-1.aarch64.rpm) and run it. Or install it with: brew install --cask pdl.

What are alternatives to Prompt Declaration Language?

Similar open-source apps: OpenClaw (trust 76/100), Opencode (trust 76/100), Ollama (trust 84/100), Langflow Desktop (trust 76/100).