Skip to content

Welcome to SonnyLabs

SonnyLabs is an AI firewall that analyses your AI application's inputs and outputs for security or privacy threats.

With SonnyLabs, you can block or audit threats and sensitive information to your AI agents in real time.

Getting Started

Create a SonnyLabs Account

  1. Visit the registration page and create an account.
  2. Click on the "Confirm My Email" button in the email that you receive.

Create a SonnyLabs API Token

This token will be used by your application to authenticate with SonnyLabs.

  1. Go to API Keys.
  2. Select "API Keys", "Generate New API Key".
  3. Take a note of this key as you'll need it later.

Create a SonnyLabs Analysis

An analysis is a grouping of all API requests from a particular application or group of applications. It's a way for you to understand where API calls are coming from in situations where you have more than one application.

  1. Go to the Analysis Dashboard.
  2. Click "Create New Analysis".
  3. Given the analysis a name, e.g. "Customer Service Chatbot".
  4. Click "Submit".
  5. Note the analysis id in the URL, i.e. in https://sonnylabs-servicetest.onrender.com/analysis/9 the analysis id is 9. Note: the analysis id is also available on the Analysis Dashboard.
  6. Copy the analysis id and paste it into your AI application's .env file (or similar), and name it SONNYLABS_ANALYSIS_ID. e.g.
    SONNYLABS_ANALYSIS_ID=[your_analysis_id]
    

From here you can try our quickstart application to learn how SonnyLabs works.

To start using SonnyLabs in your AI applications follow the appropiate guide.