Experiments · No. 03 · Source on GitHub

Reproduce Experiment 03: a phone call orders groceries

Warning

Highly experimental. Proceed with caution. Reproducing this means flashing a new operating system and running code as root. One wrong step can brick your phone or erase everything on it. Use a spare phone you can afford to lose.

You call the phone from another phone and ask for groceries. An AI voice answers; Claude shops on blinkit.com in the phone's own browser and tells you each step; the order is placed, cash on delivery, only after you say yes. Everything runs on the phone. Write-up and video: Experiment 03.

This places a real order. You pay for it on delivery.

You need

Steps

  1. Check the phone can hear and speak into calls. With the phone on USB:

    ./probe/run-probe.sh check
    

    You want isPstnCallAudioInterceptable=true. If it says false, this phone's audio setup doesn't expose call audio, and the rest won't work.

  2. Install Chromium on the phone:

    ./phone/linux/browser.sh
    

    It downloads an official Chromium 160 build (441 MB, checksum-verified) and installs it. Claude drives it through its DevTools port, so you see every tap on the phone's screen.

  3. Log in to Blinkit in that browser. On the phone, open Chromium, go to blinkit.com, log in with your phone number and the OTP, and check your delivery address is saved. Empty the cart.

  4. Write the bridge settings. On your computer:

    cp bridge/.env.example bridge/.env
    

    Then edit bridge/.env:

    Setting Value
    OPENAI_API_KEY Your key
    OWNER_NAME Your name. The voice says it answers for you
    ORDER_ALLOWED_CALLERS The number you'll call from. Calls from any other number can't order
    DELIVERY_ADDRESS Text that appears in only one of your saved Blinkit addresses, e.g. its first line
    MAX_ORDER_RUPEES The most an order may cost. Default 500

    bridge/.env is gitignored. Keep it that way: it holds your key.

  5. Start everything:

    ./phone/linux/start.sh
    

    The first time, it copies bridge/.env to the phone. Check the last lines show:

    call bridge: 127.0.0.1:7070
    call answering: on (answers after 2 s)
    

    You can unplug USB now. Nothing runs on your computer.

  6. Call the phone from the number in ORDER_ALLOWED_CALLERS. It answers after two seconds and the voice greets you. Ask:

    Can you place an order for a carton of milk on Blinkit for me?
    

    Chromium comes to the front on the phone. While Claude works, the voice tells you each step: checking the cart, picking the address, searching, adding, checking out with cash. In the take this took about a minute.

  7. Listen to the read-back and answer. The voice reads the items, total, delivery time, address and payment method, and asks whether to place the order. Say yes to order, or no to stop. On yes, Claude checks the total hasn't changed, presses the order button once, and the voice reads you the order number.

  8. Hang up, or ask it to. A notification on the phone summarises the call.

Logs and recordings

SSH in (ssh -i ~/.ssh/rethink_phone -p 2222 rethink@<phone's Wi-Fi address>), then:

Changing settings later

start.sh copies bridge/.env only when the phone has none. After editing it on your computer, push it again and restart:

$ADB push bridge/.env /data/local/rethink/debian/opt/rethink/bridge/.env
./phone/linux/start.sh

If something's off

What's enforced, and what's asked

Enforced in code: only ORDER_ALLOWED_CALLERS can order; the order is placed only if the cart came back with pay on delivery and a total within MAX_ORDER_RUPEES; the ordering Claude has only browser tools (no shell, no files). Asked of the models: wait for a clear yes, stay on blinkit.com, add only what was asked for.

Code

bridge/ (server.js, the call bridge; blinkit.js, ordering), probe/ (CallBridge.java, answering and call audio), phone/linux/ (browser.sh, boot.sh).