Login
Get Started

Quick Start Guide

Estimated reading: 1 minute 13 views

Quick Start Guide
Deploy your first Carlo Ethical Firewall in under 5 minutes.
This guide walks you through installing the SDK, configuring your first Guardian, and deploying a basic policy.

Prerequisites
Before starting, make sure you have:

• Python 3.8 or higher
• A Carlo API key
• Basic understanding of APIs

Step 1: Install the SDK

Install the Carlo SDK using pip.
pip install carlo-ai

Step 2: Initialize Guardian

Create a new guardian instance in your application.

import carlo
guardian = carlo.Guardian(
api_key=”YOUR_API_KEY” )

Step 3: Define Your First Policy

Create a simple rule to block unsafe prompts.

policy block_harmful_content {
if input.contains(“violence”) {
block() } }

Step 4: Deploy the Policy

Deploy your governance policy.
guardian.deploy()

Your Ethical Firewall is now active.

Next Steps

Now that your firewall is running, you can:

• Configure advanced governance rules
• Connect with OpenAI or other LLM providers
• Monitor requests through the audit dashboard

Continue to the **API Reference** for full endpoint documentation.

Leave a Comment

Share this Doc

Quick Start Guide

Or copy link

CONTENTS
Need Help? Chat with us
Compliance Intake

Talk to Compliance Support

Share a few details so we can route you to the right compliance expert.

This site is registered on wpml.org as a development site. Switch to a production site key to remove this banner.