Get up and running with HipoCap AI Security in minutes. This guide will walk you through installation, setup, and your first security analysis.Documentation Index
Fetch the complete documentation index at: https://docs.hipocap.com/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Step 1: Get Your API Credentials
You’ll need two pieces of information from your HipoCap dashboard:- API Key (
HIPOCAP_API_KEY) - For authentication - User ID (
HIPOCAP_USER_ID) - For user context and RBAC
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
Step 4: Create Your First Policy
Before using security analysis, you need to create a policy in the dashboard:- Navigate to your project in the HipoCap dashboard
- Go to the Policies section
- Click “Create Policy”
- Configure basic settings (you can customize later)
Step 5: Protect Your First Function
Now let’s add security analysis to a function call:What Happens Next?
- Traces are captured - All function calls are automatically traced
- Security analysis runs - Function calls are analyzed for threats
- View in dashboard - Open your HipoCap dashboard to see traces and security events
Understanding the Analysis Response
Theanalyze() 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_keymatches your policy name
Connection errors
- Verify your
HIPOCAP_SERVER_URLis 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=Trueorllm_analysis=Trueis set - Check that your API key has the correct permissions
Next Steps
- Learn about Shields - Protect direct user input
- Understand Multi-Stage Analysis - How threat detection works
- Explore Threat Categories - What HipoCap protects against
