Customer-managed agent

Run the Teleparsy agent in your VPC. Events POST to the same ingest API as the platform collector.

Prerequisites

  • Vercel ENABLE_INGEST_API=true
  • API key from app Security (bind to connector)
  • Telegram user session (not Bot API)

Run

cd services/agent
pip install -e .
export TELEPARSY_API_URL=https://app-rust-delta-39.vercel.app
export TELEPARSY_API_KEY=tp_...
export TG_API_ID=...
export TG_API_HASH=...
export TG_SESSION_STRING=...
export TG_TARGET_CHATS=-100...
python -m agent.main

Heartbeat posts to /api/v1/ingest/heartbeat on start. Messages use telegram.message.v1 schema.