@raindrop-ai/pi-agent package automatically instruments Pi Agent to capture events, traces, and tool calls. Works with both the programmatic pi-agent-core API and the Pi Coding Agent CLI.
Installation
Quick Start — Programmatic
Quick Start — Pi Coding Agent CLI
RAINDROP_WRITE_KEY in your environment. Traces appear automatically.
Or configure via ~/.pi/agent/raindrop.json:
Configuration
Per-Subscribe Overrides
Override context per subscription when tracking multiple agents:Extension Configuration
The CLI extension reads config from environment variables and JSON files. Precedence: defaults ->~/.pi/agent/raindrop.json -> .pi/raindrop.json -> env vars.
| Setting | Env var | Default |
|---|---|---|
| Write key | RAINDROP_WRITE_KEY | — |
| API endpoint | RAINDROP_API_URL | https://api.raindrop.ai/v1 |
| Debug logging | RAINDROP_DEBUG | false |
| Capture system prompt | RAINDROP_CAPTURE_SYSTEM_PROMPT | false |
Supported Versions
@mariozechner/pi-agent-core>= 0.60.0@mariozechner/pi-coding-agent>= 0.65.2 (optional, for CLI extension)