Shell scripts demonstrating LLMTrace HTTP API patterns using curl.
| File | Description | Use Case |
|---|---|---|
basic_usage.sh |
Send requests and check traces | Getting started |
security_testing.sh |
Trigger security detections | Security validation |
cost_monitoring.sh |
Check costs and usage metrics | Budget management |
api_exploration.sh |
Explore all API endpoints | API discovery |
-
Start LLMTrace:
docker compose up -d
-
Set your API key:
export OPENAI_API_KEY="your-openai-key"
-
Make scripts executable:
chmod +x *.sh -
Run a script:
./basic_usage.sh
- curl - HTTP client
- jq - JSON processor (
apt install jqorbrew install jq) - OPENAI_API_KEY - Environment variable with your API key