EdgeAIG's picture
download
raw
835 Bytes
#!/bin/bash
# Start Pi in RPC mode with Telegram extension
set -e
# Load environment
if [ -f .env ]; then
export $(grep -v '^#' .env | xargs)
fi
# Validate required vars
if [ -z "$TELEGRAM_BOT_TOKEN" ]; then
echo "Error: TELEGRAM_BOT_TOKEN not set"
exit 1
fi
if [ -z "$ANTHROPIC_API_KEY" ] && [ -z "$OPENAI_API_KEY" ]; then
echo "Error: No API key set (ANTHROPIC_API_KEY or OPENAI_API_KEY)"
exit 1
fi
# Set Pi config
export PI_PROVIDER=${PI_PROVIDER:-anthropic}
export PI_MODEL=${PI_MODEL:-claude-sonnet-4-20250514}
# Free tier: ephemeral sessions (no session dir needed)
echo "Starting Pi Agent (ephemeral mode)..."
echo "Provider: $PI_PROVIDER"
echo "Model: $PI_MODEL"
# Start Pi in RPC mode with --no-session
exec pi --mode rpc \
--provider "$PI_PROVIDER" \
--model "$PI_MODEL" \
--no-session

Xet Storage Details

Size:
835 Bytes
·
Xet hash:
e390b9c3bf5fb8ba13bdc83aa75ef4e1e70966a663a746dba55c24d425a15281

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.