OpenAssistant-AI
An open-source serverless Telegram assistant built with TypeScript and Supabase Edge Functions. Features multi-provider LLM routing, structured tool execution, and scheduled morning intelligence digests.
Serverless Edge Functions (Deno)
Supabase PostgreSQL
Gemini 2.5/3.5 · Claude · OpenAI
$0 Idle Running Cost
HOW IT WAS ACTUALLY BUILT.

An AI assistant on the messaging client I already use
Existing AI assistants require dedicated apps, expensive subscriptions, and always-on servers. I wanted a zero-maintenance, private assistant living inside Telegram that wakes up instantly and incurs zero costs when idle.
Sub-second webhook execution on Deno
Engineered a TypeScript runtime deployed to Supabase Edge Functions. Incoming Telegram webhook updates are verified with cryptographic headers and dispatched in under 50ms with no server provisioning.
Balancing speed, token economy, and reasoning
Created a dynamic provider router that automatically dispatches fast lookups to Gemini Flash, deep code analysis to Claude 3.5 Sonnet, and utility tasks to OpenAI with automated graceful failover.
Automated 8:00 AM daily briefing briefings
Utilized pg_cron and edge invocations to autonomously summarize RSS feeds, priority reminders, and market news into a clean morning intelligence brief delivered directly to chat every morning.
Deterministic actions from natural language
Implemented strict JSON schema tool validation for reminders, web searches, note storage, and calculator operations, turning conversational instructions into verified database transactions.
THE NUMBERS BEHIND THE BUILD.
Cold start time
Monthly hosting cost
Provider uptime
DEEP DIVE INTO THE STACK.
Architecture specifics across firmware, hardware design, and models.
Stateless TypeScript handlers handling webhook ingestion, streaming chunk synthesis, and markdown formatting for Telegram Bot API.
Custom API client supporting token counting, retry backoff with jitter, conversation sliding windows, and prompt caching.
Supabase PostgreSQL instance storing user session contexts, scheduled jobs, and encrypted configuration with strict row-level security.