Open the Playground
Go to playground.tealtiger.ai. You’ll see three panels:- Left sidebar — Example policies and test scenarios
- Center — Monaco policy editor
- Right — Evaluation results
Write Your First Policy
The editor starts empty. You can either:- Load a template — click “Templates” in the sidebar, pick one (e.g., “PII Detection”), click “Use Template”
- Write from scratch — type a policy function in the editor
Add Test Scenarios
Click ”+ Add” in the Test Scenarios section. Each scenario needs:- Name — descriptive label
- Prompt — the user input to test
- Provider — OpenAI, Anthropic, Gemini, or Bedrock
- Model — e.g., gpt-4
- Test type —
pii,injection, ornormal(determines mock response content)
Run Evaluation
Click “Run Evaluation”. The playground executes your policy against each scenario and shows:- Decision — ALLOW, DENY, or MONITOR
- Execution time — how long the policy took
- Cost estimate — estimated LLM cost
- Token count — estimated tokens used
Export Your Policy
Click “Export” in the header to generate production-ready code:
Click “Copy” or “Download” from the preview modal.
Available API Helpers
These functions are available in the playground sandbox:Keyboard Shortcuts
Self-Hosting
The playground is open source. To run locally:http://localhost:5173. No Supabase or API keys needed for the core playground.
