Skip to main content

Quick start

This page takes you from nothing to an agent fetching a prompt in about five minutes. Choose Docker if you want no toolchain, or build from source if you already have Go.

On first start the server seeds a demo prompt, so you can fetch something right away.

# 1. run the server
docker run -d --name priompt -p 8443:8443 -v priompt-data:/data <docker-image>

# 2. install the Python client (it imports as `priompt`)
pip install <pypi-package>
Name not final
<docker-image>, <pypi-package> is a placeholder until the first public release. Build from source in the meantime (see From source).

Fetch the prompt from your code

from priompt import PromptClient

client = PromptClient(host="localhost:8443")
prompt = client.get("priompt://acme/onboarding/welcome")
print(prompt.template.format(name="Sujal", org="Acme"))
# Hi Sujal, welcome to Acme!

Try the safety net

These steps use the priompt binary from the source build. With Docker, run the same commands inside the container, for example docker exec -it priompt priompt ….

If a template and its declared slots disagree, the prompt is rejected and nothing is written:

./priompt put -uri priompt://acme/bad/x -file welcome.txt -slot name
# validation failed: template uses undeclared slots: org (exit 1)

Publish a second version and watch a subscriber receive the change with its semantic verdict:

# terminal A
./priompt watch -uri priompt://acme/onboarding/welcome

# terminal B
echo "Hi {name}, welcome back to {org}!" > v2.txt
./priompt publish -uri priompt://acme/onboarding/welcome -file v2.txt -slot name -slot org

# terminal A prints:
# priompt://acme/onboarding/welcome updated -> 4146f71b692c… [localized tweak]
Production

The server runs open when no tokens are configured. That's fine on your laptop and nowhere else. Run priompt init before exposing it (see Security), and turn off the demo prompt with PRIOMPT_SEED=false.

Next