Skip to main content
Get up and running with HipoCap AI Security in minutes. This guide will walk you through installation, setup, and your first security analysis.

Installation

Step 1: Get Your API Credentials

You’ll need two pieces of information from your HipoCap dashboard:
  1. API Key (HIPOCAP_API_KEY) - For authentication
  2. User ID (HIPOCAP_USER_ID) - For user context and RBAC
Get these from your HipoCap dashboard at http://localhost:3000 (or your hosted instance).

Step 2: Set Environment Variables

Add these to your environment:

Step 3: Initialize HipoCap

HipoCap consists of two components:
  • Observability Server (port 8000/8001) - Handles tracing and telemetry
  • Security Server (port 8006) - Performs security analysis
Initialize both when setting up:

Step 4: Create Your First Policy

Before using security analysis, you need to create a policy in the dashboard:
  1. Navigate to your project in the HipoCap dashboard
  2. Go to the Policies section
  3. Click “Create Policy”
  4. Configure basic settings (you can customize later)
This policy defines your security rules and thresholds.

Step 5: Protect Your First Function

Now let’s add security analysis to a function call:

What Happens Next?

  1. Traces are captured - All function calls are automatically traced
  2. Security analysis runs - Function calls are analyzed for threats
  3. View in dashboard - Open your HipoCap dashboard to see traces and security events

Understanding the Analysis Response

The analyze() method returns a security analysis result:

Common Issues

”Policy not found” error

  • Make sure you’ve created a policy in the dashboard (Step 4)
  • Check that the policy_key matches your policy name

Connection errors

  • Verify your HIPOCAP_SERVER_URL is correct
  • Check that the Security Server is running on port 8006
  • Ensure your Observability Server is running on ports 8000/8001

Analysis not running

  • Confirm input_analysis=True or llm_analysis=True is set
  • Check that your API key has the correct permissions

Next Steps