# How to text a Claude-powered agent by SMS

Claude has an app, so why text it? Because a text works on a flip phone and with one bar of signal, and you can give the number to someone who will never install anything. This makes your own Claude-powered bot; it isn't an official Anthropic service.

## Let Claude Code do it

1. [Start a line](https://www.textyouragent.dev/new), choose **Let your agent set it up**, and pick Claude.
2. Paste the prompt into Claude Code in a new folder, with what you want:

```text
Make a small Cloudflare Worker that answers each text using the Anthropic API.
Keep my API key as a Worker secret; ask me to enter it myself.
It helps my dad, who texts from a flip phone. One or two short sentences. No lists, no links.
If he asks about medicine or money, tell him to call me.
```

3. Claude Code deploys the Worker to your account and runs our test. It has a terminal, so there's nothing to paste back.
4. Text your keyword.

## Who runs what

The Worker, the model and the API key are yours. We POST each text to your URL and send back its answer. We don't run Claude and never see your key.

## What's different from the Claude app

- It doesn't know your Claude chats, projects or memory.
- Each request carries the last 20 messages with that person. The prompt tells Claude Code where to find them.
- Replies are capped at 320 characters unless you raise the limit, so ask for brevity.

## Protect your credit

Your endpoint spends your API credit, so have Claude Code check `X-Arrow-Signature` and refuse everything else. [How it works](https://www.textyouragent.dev/docs/relay.md#verify-the-signature).

## Questions

### Is my Claude subscription enough?

It covers Claude Code building this on plans that include it. The deployed bot calls the Anthropic API, which is billed separately.

### Do you need my Anthropic key?

No. We don't run models for anyone. Keep the key in your own deployment.

### Can I use claude.ai without Claude Code?

It can write the endpoint and walk you through deploying it. You then paste the deployed URL back.

---
Source: https://www.textyouragent.dev/guides/text-claude · Index: https://www.textyouragent.dev/llms.txt
