Overview
PRPM Playground lets you test any package with leading AI models (Claude, GPT-4o, and more) directly in your browser or CLI. No installation required—just instant, interactive testing with real models.Why Use Playground?
Before Playground, you had to:- Install the package
- Set up your AI environment
- Create test scenarios
- Try it with your model
- Uninstall if it doesn’t work
Getting Started
Web Interface
- Browse packages at prpm.dev/search
- Click “Test in Playground” on any package page
- Enter your test input
- Get instant results from your chosen AI model
CLI Interface
Supported Models
| Model | Best For | Credit Cost |
|---|---|---|
| Claude Sonnet 3.5 | Balanced performance (default) | 2 credits |
| GPT-4o Mini | Fast, simple tasks | 1 credit |
| GPT-4o | Advanced reasoning | 3 credits |
| GPT-4 Turbo | Complex tasks | 4 credits |
| Claude Opus | Most capable, complex tasks | 7 credits |
1 credit = 5,000 tokens (input + output combined)
Credit System
Free Trial
- 5 free credits to get started
- No credit card required
- Test immediately after signup
PRPM+ Subscription
- 100 monthly credits for $6/month
- Credits roll over (max 200 balance)
- Unused credits expire after 1 month
- Organization members get PRPM+ for $3/month
Credit Packs
- Buy additional credits that never expire
- 100 credits = $5.00
- Stack with monthly credits
- Perfect for heavy users
Advanced Features
Compare Mode
Compare the same input with and without the package prompt to see the actual value added:- With package: Uses the package’s prompt
- Without package: Baseline model with no prompt
Interactive Mode
Have multi-turn conversations to stress test packages:- Multiple conversation turns
- Context maintained across messages
- Type
exitor press Ctrl+C to quit - Great for testing conversational packages
Model Selection
Choose the right model for your test:Custom Prompts (Verified Authors Only)
Custom prompts let verified authors test their own system prompts before publishing as packages. This is the fastest way to iterate on prompts.Requirements
To use custom prompts, you must be a verified author:- Run
prpm loginand link your GitHub account - Complete GitHub OAuth flow
- You’re now verified and can use custom prompts
prpm whoami
Why 2x Cost?
Custom prompts cost 2x normal credits because they don’t benefit from prompt caching:- Published packages cache the system prompt (cheaper follow-ups)
- Custom prompts can change between requests (no caching possible)
- Still cheaper than running your own API keys
Web UI Usage
- Go to prpm.dev/playground
- Toggle “Use Custom Prompt” (verified authors only)
- Enter your system prompt (10-50,000 characters)
- Enter your test input
- Click “Run Playground”
CLI Usage
Option 1: Inline String
Option 2: From File (Recommended)
Interactive Mode
A/B Testing with —compare
The most powerful feature for custom prompts is--compare mode. It runs your custom prompt and a baseline (no prompt) side-by-side:
File-Based Workflow (Best for Iteration)
This workflow enables 10 iterations in 10 minutes instead of 10 days:Workflow Comparison
Without PRPM (Editor Reload Cycle)
Without PRPM (Editor Reload Cycle)
- Write prompt in
.cursor/rulesor.claude/skills/ - Reload/restart your editor
- Ask AI a test question in your editor
- Realize it needs work
- Edit the prompt file
- Reload/restart editor again
- Test again
- Repeat 10x (lots of reloading, no comparison mode)
With PRPM but Without Custom Prompts
With PRPM but Without Custom Prompts
- Write prompt locally
- Create
prpm.jsonmanifest - Publish package (version 0.0.1)
- Test in Playground
- Realize it needs work
- Edit prompt locally
- Bump version (0.0.2) and publish again
- Test new version
- Repeat 10x (versions 0.0.3 through 0.0.12)
With PRPM + Custom Prompts
With PRPM + Custom Prompts
- Write prompt in file
prpm playground --prompt-file ./prompt.txt --input "test" --compare- Edit prompt
- ↑ (up arrow to repeat command)
- Repeat until perfect (seconds per iteration)
- Publish once
Example: Security Code Reviewer
You’re building a security-focused code reviewer that catches SQL injection, XSS, and auth bugs without false positives:Custom Prompt Limits
| Limit | Value | Why |
|---|---|---|
| Min length | 10 chars | Sanity check |
| Max length | 50,000 chars | Avoids token limits |
| Recommended | 500-5,000 chars | Best results, manageable cost |
| Max output | 1,024 tokens | ~750 words |
| Timeout | 30 seconds | Prevents runaway requests |
| Cost | 2x normal | No caching |
Best Practices for Custom Prompts
- Start simple - Write 2-3 sentences, test, iterate
- Use files - Version control your prompts
- Compare early - Use
--compareto ensure you’re adding value - Test multiple inputs - Don’t optimize for one example
- Check token usage - Long prompts = high costs
- Be specific - “Review for security issues” beats “Review code”
- Iterate rapidly - Edit file → ↑ (repeat command) → see results
Sharing Results
Web Interface
- Complete a test in the playground
- Click the “Share” button
- Get a shareable link
- Share with your team or the community
- The input you tested
- The model’s complete response
- Token usage and credit cost
- Package information
Community Results
Every package page shows recent community test results. See:- What inputs others tested
- Which models they chose
- Whether they found it helpful
- Token usage and costs
For Package Authors
Analytics Dashboard
Package authors get detailed analytics showing:- Total test sessions
- Popular AI models used
- Credit usage patterns
- Session duration averages
- Test input trends
Suggested Test Inputs
Help users test your package effectively:CLI Commands Reference
prpm playground
Test a package or custom prompt with AI models.
-p, --package <name>- Package name to test--input <text>- Input text (omit for interactive mode)-m, --model <model>- AI model (sonnet, opus, gpt-4o, gpt-4o-mini, gpt-4-turbo)-c, --compare- Compare with and without prompt (baseline)-i, --interactive- Start interactive conversation mode-v, --version <version>- Specific package version to test--custom <prompt>- Use custom prompt string (verified authors only)--prompt-file <file>- Load custom prompt from file (verified authors only)
prpm subscribe
Manage your PRPM+ subscription.
- (no command) - Subscribe to PRPM+
status- View subscription status and creditscancel- Cancel your subscription
prpm buy-credits
Purchase additional playground credits.
prpm suggested-inputs
Manage suggested test inputs for your packages.
add- Add a suggested inputlist- List all suggested inputsremove- Remove a suggested input
Best Practices
For Testing
- Use realistic inputs - Test with inputs you’d actually use in your workflow
- Try multiple models - Different models excel at different tasks
- Use compare mode - Verify the package actually adds value
- Test edge cases - Don’t just test the happy path
- Share useful results - Help the community learn from your tests
For Package Authors
- Add suggested inputs - Make it easy for users to test effectively
- Monitor analytics - See how users actually test your package
- Respond to feedback - Address issues users discover through testing
- Test your own packages - Verify they work as expected with different models
- Share best results - Feature great test results in your package README
Pricing & Limits
Credit Costs
Credits are spent based on token usage:- 1 credit = 5,000 tokens
- Tokens = input tokens + output tokens
- Cost shown after each test
Rate Limits
- Free tier: 5 credits total
- PRPM+: 100 credits/month + rollover (max 200)
- Credit packs: No limits, never expire
Fair Use
Playground is for testing packages, not production AI usage:- ✅ Testing packages before installing
- ✅ Comparing multiple packages
- ✅ Sharing test results with team
- ❌ Using as primary AI interface
- ❌ Automating bulk requests
- ❌ Sharing account credentials
Troubleshooting
”Insufficient credits”
Solution: Subscribe to PRPM+ or buy a credit pack:“Package not found”
Solution: Verify the package name is correct:CLI playground not working
Solution: Ensure you’re logged in:Test taking too long
Solution:- Try a faster model (GPT-4o Mini)
- Reduce input length
- Check your internet connection
Support
Need help with Playground?- Documentation: docs.prpm.dev
- Email: [email protected]
- Twitter: @prpmdev
- GitHub: github.com/pr-pm/prpm