DEV Community

Cover image for What If You Could Text Your Laptop? Using OpenClaw to Control Your System via WhatsApp
Adeniji Olajide
Adeniji Olajide

Posted on

What If You Could Text Your Laptop? Using OpenClaw to Control Your System via WhatsApp

OpenClaw Challenge Submission 🦞

This is a submission for the OpenClaw Writing Challenge

Here's a scenario: you're away from your laptop because you at a meeting, at a café, visiting family, and you suddenly need a file that's sitting right there on your machine. It's on, it's connected to the internet, but you can't touch it.

What if you could just... text it?

That's the idea behind this post. Using OpenClaw, you can build a simple setup that lets you send a WhatsApp message to your own laptop asking it to find a file, check what's inside a document, or even send the file to you as an attachment. No special app. No complicated remote desktop software. Just a chat message.

Let's break down how this works and why it's more straightforward than it sounds.

The Big Picture: What's Actually Happening

Before anything else, it helps to understand the flow.

When you send a WhatsApp message, it goes to a small bot running on your laptop. That bot passes your message to an OpenClaw agent which is an AI that has been given a set of tools it can use on your machine, like searching for files or reading their contents. The agent reads your message, figures out what you want, uses the right tool, and sends the answer back to your WhatsApp.

The whole chain looks like this:

You (WhatsApp) → Bot → OpenClaw Agent → Your Files → Reply back to you

The magic is in the middle part, OpenClaw handles the intelligence. You don't have to write logic for every possible thing someone might ask. You just describe what tools are available, and the agent works out how to use them based on what you say in plain language.

What OpenClaw Brings to This

OpenClaw is built around the idea of skills small, focused capabilities you give your agent. Each skill is basically a tool with a plain-English description. For example:

  • "Search for files on this system by name"
  • "Read the contents of a text file and return them"
  • "List the files inside a folder"
  • "Check if a specific word appears anywhere in a file"

When you send a message like "find the budget spreadsheet", the agent reads it, matches it to the search skill, runs the search, and replies with what it found. You didn't have to say search_files(query="budget") natural language is enough.

That's the core value. OpenClaw removes the gap between what you mean and what actually runs on your machine.

The WhatsApp Side

To receive and send WhatsApp messages programmatically, you use a library called whatsapp-web.js a Node.js tool that connects to your existing WhatsApp account (no business account or paid API needed). When you first set it up, it shows you a QR code to scan with your phone exactly like linking WhatsApp Web on a laptop.

After that, it listens for incoming messages and can send replies, including file attachments.

The bot needs two simple rules baked in from the start:

  1. Only respond to your number. No one else should be able to trigger your agent.
  2. Only access a specific folder. You define a "safe root" a folder the agent is allowed to look inside. Everything outside that boundary is off-limits, no exceptions.

These two rules make the whole thing safe to run persistently on your machine.

What You Can Actually Ask It

Once everything is connected, your laptop responds to plain, natural messages:

Finding a file:

"find the Q3 report"

It searches your designated folder and replies with the matching file paths.

Reading a file:

"what's in my meeting notes from last week?"

It opens the file and sends you the contents — as long as it's a text file and not too large.

Searching inside a file:

"is the word 'invoice' anywhere in the contracts folder?"

It scans the file and tells you exactly which lines contain that word.

Browsing a folder:

"list what's on my Desktop"

It returns a simple list of everything in that folder.

Sending a file:

"send me the budget spreadsheet"

The file arrives in your WhatsApp chat as an attachment, ready to download.

You're not memorising commands. You're just talking to your laptop.

Why This Is Genuinely Useful

The obvious use case is the one from the intro being away from your machine and needing something on it. But once you have this running, you start noticing other moments where it comes in handy:

  • You're on your phone in bed and want to check something in a notes file without getting up
  • You want to quickly confirm whether a document exists before a call
  • You're sharing your screen with someone and want to pull up a file path without digging through Finder or Explorer
  • You want to send a file to your phone without emailing it to yourself

It sounds small. But "I can just text my laptop for that" changes how you interact with your own machine.

What to Keep in Mind

You want remote visibility, not remote control over everything.

The two most important safety habits:

Keep the safe root narrow. Point it at Documents or a specific project folder, not your entire home directory. The agent should only see what you actually need it to see.

Whitelist only your number. The bot should be completely silent to anyone who isn't you. This is a one-line config, but don't skip it.

As long as those two things are in place, the risk surface is very small.

How to Get Started

If you want to try this yourself, the pieces you need are:

  1. OpenClaw to handle the agent and skill setup
  2. Node.js the runtime everything runs on
  3. whatsapp-web.js to connect to your WhatsApp account
  4. An API key for whatever model OpenClaw is configured with

The setup is: install the dependencies, write a skill that describes your file tools in plain English, connect the WhatsApp bot, and scan the QR code. From that point, your laptop is listening.

OpenClaw's documentation walks through the skill format clearly once you understand that skills are just descriptions plus handlers, the rest clicks into place quickly.

The Bigger Idea

What's interesting about this isn't the WhatsApp part specifically. It's what it represents: your laptop becoming something you can have a conversation with.

WhatsApp just happens to be the interface that's already in everyone's pocket. But the same idea applies to Telegram, SMS, Discord, or anything else. The channel is just a pipe. The real shift is that OpenClaw turns your machine into an agent that understands intent, and acts on it.

That's a genuinely different relationship with your own computer. Not just a screen you sit in front of, but something you can reach out and ask things to, from wherever you are.

That's worth exploring.

Top comments (0)