---
title: "Cerbos Playgrounds"
description: "Experiment, learn, and prototype with our interactive authorization sandbox. Write, test, and debug Cerbos policies in your browser or in your Cerbos Hub account."
canonical: "https://www.cerbos.dev/features-benefits-and-use-cases/cerbos-playground"
source: "https://www.cerbos.dev/features-benefits-and-use-cases/cerbos-playground"
---

# Cerbos Playgrounds

Experiment, learn, and prototype with our interactive authorization sandbox. Write, test, and debug Cerbos policies in your browser or in your Cerbos Hub account.

## What is the Cerbos Playground?

The Cerbos Playground is an interactive online environment where users can write, test, and visualize Cerbos policies in real-time. It's designed to help both newcomers and experienced developers understand and experiment with Cerbos' capabilities without any setup or installation.

Open source PDP users can take advantage of our <a href="https://play.cerbos.dev/" class="after:!content-none" target="_blank">public playground</a>. Cerbos Hub includes a <a href="https://hub.cerbos.cloud/?utm_source=website&utm_medium=content&utm_campaign=playground" class="after:!content-none" target="_blank">private playground</a> with collaborative features and a live connection to a development PDP.

- **Instant feedback:** Write policies and see immediate results, streamlining the learning process.
- **Zero setup:** Dive straight into Cerbos without any installations or configurations.
- **Safe environment:** Experiment freely without any risks to your actual systems or data.
- **Sample policies:** Get started fast with pre-built examples for common application permission models.

### Advanced collaboration and testing features in the Cerbos Hub Playground

Organizations using Cerbos Hub can create an unlimited number of different playgrounds for testing different versions and iterations of their authorization policies. Users within the same organization can collaborate on policies in real time just like a Google doc. And Hub users have the ability to create a live connection with a local PDP in a development environment for faster, hassle-free policy testing and iteration. [Check out the Cerbos Hub Playground here.](https://hub.cerbos.cloud/?utm_source=website&utm_medium=content&utm_campaign=playground)

- Real-time collaborative editing: Experience an editing environment where multiple users can work on policies simultaneously. Ideal for pair programming sessions, team reviews, and collaborative policy development. Ideal for reducing errors and enhancing policy reliability.
- Instant feedback and testing: Provides real-time feedback on changes, helping to quickly identify and resolve issues, and accelerate your policy development process. It also features an automated test runner, streamlining the policy testing process.
- Cohesive experience: Supports the creation of playgrounds directly from GitHub repositories for a cohesive development cycle.
- Policy evolution support: Facilitates the evolution of authorization policies with ease, integrating into your Git-based workflow. Encourages iterative development and continuous improvement of policy logic.
- Jumpstart with new policies: The RBAC policy generator enables users to create role-based access control policies using a simple, no-code wizard. Complete with a pre-defined test dataset which can be used for troubleshooting and further experimentation.
- Verification of how policies work: The API request simulator allows users to simulate API requests without running a local policy decision point (PDP) and view the output of the Check Resources and Query Plan Resources APIs for any combination of user and resource.
- Real-time policy testing: Connecting a PDP to the Playground supports developers in establishing a live connection between their development environment and the Hub Playground, enabling the testing of authorization policies in real-time.

[#videoitems#]

### Essential policy testing in the Cerbos public playground

Our public playground is a web browser environment you can use to experiment with policies. You can save and share your policies with your teammates by creating and account. And when you’re done you can export your files and check them into your repo for use with Cerbos Hub.

### Pre-built example policies

| **Use case**        | **Language** | **Policy Playground**                                                                                                                                                                                                                  | **GitHub**                                                                                    | **Video**                                                                                              |
| ------------------- | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
| Multi-tenant SaaS   | YAML         | <a href="https://play.cerbos.dev/p/gE623b0180QlsG5a4QIN6UOZ6f3iSFW2" target="_blank">Multi-tenant SaaS Policy</a>                                                                                                                      | <a href="https://github.com/cerbos/demo-multitenant-saas" target="_blank"> Repo </a>          | N/A                                                                                                    |
| SaaS Workspaces     | YAML         | <a href="https://play.cerbos.dev/p/IJxlK6131f642ND65F1EhPmiT18Ap1A5" target="_blank">SaaS Workspaces Policy</a>                                                                                                                        | N/A                                                                                           | N/A                                                                                                    |
| HRIS Application    | Python       | <a href="https://play.cerbos.dev/p/UWG3inHjwrFhqkv60dec623G9PoYlgJf?utm_source=website" target="_blank">Leave Policy</a>                                                                                                               | <a href="https://github.com/cerbos/demo-python" target="_blank"> HR Demo Repository </a>      | <a href="https://www.loom.com/share/0425d8a075804d528185ad2ba30817b3" target="_blank"> Video (7m) </a> |
| Expense Application | Node         | <a href="https://play.cerbos.dev/p/XhkOi82fFKk3YW60e2c806Yvm0trKEje?utm_source=website" target="_blank">Expense Policy</a>                                                                                                             | <a href="https://github.com/cerbos/demo-graphql" target="_blank">Expense Demo Repository </a> | <a href="https://www.loom.com/share/cb213efcc1674229b0084a7198b232e5" target="_blank"> Video (4m) </a> |
| Online Store        | Go           | <a href=" https://play.cerbos.dev/p/bvcxiZY0610b114aig5k1vsm6YPvO5X8?utm_source=website&_gl=1*1vcu1n4*_ga*MzYwODgzMjgxLjE2NDE0NjkxNDE.*_ga_8G3G3MS838*MTY0Mjc1NTY0OS44Ny4xLjE2NDI3NTk2MTMuNTc. " target="_blank">E-commerce Policy</a> | <a href="https://github.com/cerbos/demo-rest" target="_blank"> Repo </a>                      | N/A                                                                                                    |
| Express + JWT       | Node         | <a href="https://play.cerbos.dev/p/g4K42DBkZEdPG611f7f84FWZgHYZdB2d?utm_source=website&_gl=1*1vcu1n4*_ga*MzYwODgzMjgxLjE2NDE0NjkxNDE.*_ga_8G3G3MS838*MTY0Mjc1NTY0OS44Ny4xLjE2NDI3NTk2MTMuNTc." target="_blank">CRUD Policy</a>         | <a href="https://github.com/cerbos/demo-rest" target="_blank"> Repo </a>                      | N/A                                                                                                    |
| Product Packaging   | YAML         | <a href="https://play.cerbos.dev/p/iW60ed5947D0s79JJpdJfo7J4UVdgTF2?utm_source=website" target="_blank">Product Policy</a>                                                                                                             | N/A                                                                                           | N/A                                                                                                    |

## Further resources on the Cerbos Playgrounds

- [Documentation for the Cerbos Hub Playground](https://docs.cerbos.dev/cerbos-hub/playground) — Explore features and setup details.
- [Cerbos Public Playground](https://play.cerbos.dev/) — Get started with the Cerbos Playground now
- [Cerbos Hub Playground policy testing](https://www.cerbos.dev/news/new-tools-for-effortless-policy-creation-and-testing-in-cerbos-hub) — Dive into the new features that further simplify how developers write, test, and iterate on authorization policies. Updates include the RBAC policy generator, API request simulator, and connecting a local PDP.
- [Community insights](https://community.cerbos.dev/?_gl=1*5ozo82*_ga*MTk1NjcwNzQ1MC4xNjY2Mjc5NjI2*_ga_8G3G3MS838*MTY5NDE5MTE5Ny41MjcuMS4xNjk0MTkyNzgyLjIwLjAuMA) — Need help with modeling your application and building your policies? Get in touch with the Cerbos team and learn from other Cerbos users in our slack community

