Skip to main content
Hipocap Shield currently supports Python only. The Hipocap Shield integrates with Laminar for observability, which supports both Python and TypeScript. However, the security analysis features (Shield) are only available in Python.

Quick Start Guide

Step 1: Install Hipocap

Install the Hipocap Python package:
Or with your package manager:

Step 2: Get Your API Keys

You’ll need API keys for Hipocap:
  1. Hipocap API Key (HIPOCAP_API_KEY): For security analysis and observability
    • Book a demo to get access to Hipocap Cloud, or
    • Use your self-hosted instance (see Hosting Options)
    • Get this from your Hipocap project settings
  2. Hipocap User ID (HIPOCAP_USER_ID): For user context and RBAC
    • Get this from your Hipocap project settings
    • Used for role-based access control

Step 3: Initialize Hipocap

Add initialization code at the start of your application (before any LLM calls):
For Hipocap Cloud:

Step 4: Add Tracing to Your Functions

Use the @observe() decorator to trace your functions:

Step 5: Add Security Analysis

Protect sensitive function calls with Hipocap Shield:

Complete Example

Here’s a complete working example:

What Happens Next?

  1. Traces are captured: All LLM calls and @observe() functions are automatically traced
  2. Security analysis runs: Function calls are analyzed for threats (if enabled)
  3. View in dashboard: Open your Hipocap dashboard to see traces and security events
Example trace screenshot

Next Steps

Tracing

Learn how to trace LLM calls, tool executions, and custom functions.

AI Security

Set up the Hipocap Shield to protect against prompt injection and sensitive keyword exposure.

Governance & RBAC

Configure role-based access control and function-level permissions.

Hosting Options

Choose between Hipocap Cloud and self-hosting.

Using LLM Assistants for Setup (Optional)

Want an LLM (or coding agent) to help with setup? Pick the prompt that matches what you’re doing and paste it into your assistant along with your codebase context. How to use:
  1. Choose the prompt that matches your scenario
  2. Click the button to copy the prompt
  3. Paste it into your LLM assistant (Claude, ChatGPT, etc.) along with your codebase
  4. The assistant will help you set up Hipocap step-by-step
Hipocap Shield currently supports Python only. TypeScript/JavaScript support is not available. If something looks off, follow the docs in this repo (or ask support) over the model’s output.