Supabase phone sign-in without Twilio
Supabase lets you replace Twilio with any SMS service through its Send SMS hook. Point the hook to Telmian: Supabase keeps creating and checking the codes, Telmian delivers them across Europe at €0.05 per SMS, with no monthly fee.
Connect your AI to Telmian
Add the Telmian MCP server, then type /mcp, choose telmian › Authenticate and approve in the browser. Free test mode, no card.
claude mcp add --transport http telmian https://app.telmian.com/mcpAsk your AI to set up the hook
Say: "Connect Supabase phone sign-in to Telmian". It calls setup_supabase_sms and gets the hook URL and its secret.
Enable it in Supabase
Authentication › Sign In / Providers: enable Phone. Authentication › Hooks › Send SMS hook: type HTTPS, paste the URL and the secret. For local Supabase, your AI writes them in supabase/config.toml under [auth.hook.send_sms].
Sign in from your app
Nothing Telmian-specific in your code: use the usual Supabase calls.
const { error } = await supabase.auth.signInWithOtp({ phone: '+393331234567' }); // the user types the code received by SMS const { data } = await supabase.auth.verifyOtp({ phone: '+393331234567', token: '123456', type: 'sms' });Test for free
In test mode use +393000000001: the SMS is simulated and the code shows in the test phone of the Telmian panel (Messaggi).
Go live
Top up (your first top-up of €10 gets €5 more), have the business name shown in your SMS text approved (SMS come from a phone number), and connect the hook of your live project in the panel: Collegamenti › Integrazioni (Connections › Integrations).
Questions
Do I still need Twilio or MessageBird?
No. With the Send SMS hook Supabase does not use its SMS provider: Telmian sends the codes.
Who creates and checks the code?
Supabase, as usual. Telmian only delivers the SMS, checking the hook signature on every request.
How much does it cost?
€0.05 per SMS to European mobiles, prepaid, no monthly fee. Test mode is free.
Updated · llms.txt
Get started