| # Docker entrypoint for Pi Telegram Agent | |
| set -e | |
| # Free tier: no persistent storage, ephemeral mode | |
| mkdir -p "$HOME/.pi/agent" | |
| # Load environment | |
| if [ -f /app/.env ]; then | |
| export $(grep -v '^#' /app/.env | xargs) | |
| fi | |
| # Configure Pi with Telegram extension | |
| # The extension needs to be started via pi CLI command | |
| echo "Pi Telegram Agent starting..." | |
| echo "Provider: ${PI_PROVIDER:-anthropic}" | |
| echo "Model: ${PI_MODEL:-claude-sonnet-4-20250514}" | |
| # Start Pi in RPC mode | |
| # Telegram extension will be loaded automatically from ~/.pi/agent/extensions/ | |
| exec pi --mode rpc \ | |
| --provider "${PI_PROVIDER:-anthropic}" \ | |
| --model "${PI_MODEL:-claude-sonnet-4-20250514}" \ | |
| --session-dir "${PI_SESSION_DIR:-/data/pi-sessions}" \ | |
| --no-session | |
Xet Storage Details
- Size:
- 761 Bytes
- Xet hash:
- b31dd491a57f735ae2ade278c97c2ba2cb5db4b811850454b9b4873045b86df1
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.