# AI Text-a-roo: setup guide for AI agents AI Text-a-roo is an SMS gateway for AI agents. It gives an agent its own phone number: the user texts it from any phone (no app), and the agent can text the user back or first. Message content is never stored. Setup needs two things from the user: their Canadian mobile number (US numbers are coming soon), and the 6-digit code that AI Text-a-roo texts to it. The agent can do the rest. Choose the path that matches the environment. Agent Skill (recommended reading): https://aitextaroo.com/skills/aitextaroo/SKILL.md Overview for agents: https://aitextaroo.com/llms.txt ## Path A: apps with connector settings (Claude, Claude Duet, ChatGPT, Grok Bot) Add the remote MCP server as a custom connector and sign in with the user's phone (OAuth). No API key is needed. MCP server URL: https://api.aitextaroo.com/mcp - Claude / Claude Duet: Customize > Connectors > Add custom connector. - ChatGPT: Plugins > + > Add custom MCP server > OAuth > Create as a plugin. (On ChatGPT Pro, custom MCP servers are limited to read-only tools.) - Grok Bot: "Add a custom MCP server called AI Text-a-roo at https://api.aitextaroo.com/mcp" ## Path B: agents that can run commands or make HTTP requests 1. Ask the user for their mobile number in international format, for example +14165550123. 2. Request a code: POST https://api.aitextaroo.com/v1/auth/verify {"phone": "+14165550123"} (CLI equivalent: aitextaroo-setup --phone +14165550123) 3. Ask the user for the 6-digit code they received (valid 5 minutes). 4. Confirm it, with an optional label that names the key for the user: POST https://api.aitextaroo.com/v1/auth/confirm {"phone": "+14165550123", "code": "123456", "label": "Bridge on studio-mac"} -> {"api_key": "...", "key_id": "key_...", "assigned_number": "+1...", "tier": "free"} (CLI equivalent: aitextaroo-setup --phone +14165550123 --code 123456 --save, which stores the key owner-only in ~/.aitextaroo/credentials.json) 5. Store the API key where future sessions can read it (a secrets store, a user-only config file, or the AITEXTAROO_API_KEY environment variable). It is shown once. Confirming a code for a phone that already has an account adds another key: the account's other keys and connected apps keep working, and the user gets a text saying a key was added. Up to 10 keys: adding one more removes the key unused the longest, never the one that forwards the user's texts. 6. Tell the user their AI's number (assigned_number) and suggest saving it as a contact such as "My AI". Send a short test text. With an API key, any MCP client can use the remote server with the header "Authorization: Bearer ": claude mcp add --transport http --scope user aitextaroo https://api.aitextaroo.com/mcp --header "Authorization: Bearer $AITEXTAROO_API_KEY" codex mcp add aitextaroo --url https://api.aitextaroo.com/mcp gemini mcp add --transport http --scope user --header "Authorization: Bearer $AITEXTAROO_API_KEY" aitextaroo https://api.aitextaroo.com/mcp MCP tools: send_text, wait_for_reply, get_recent_messages, verify_pin, set_pin, get_account, get_upgrade_link, set_webhook, remove_webhook, list_connections, remove_connection, get_help (how it works and how it's secured). The user's texts reach the agent only while wait_for_reply is waiting, or through a webhook (Path D) or the bridge (Path C); otherwise they're kept in memory for 5 minutes (get_recent_messages) and then dropped. If the user asks to be able to text the agent anytime, get_help with topic text_anytime has step-by-step instructions for every kind of agent. Security PIN: ask the user to choose 4-8 digits, then call set_pin (or POST /v1/account/pin {"pin": "4821"}). An agent changing or removing an existing PIN needs the current one ({"pin", "current_pin"}, or DELETE with {"current_pin"}), and the user is texted before any change. Never choose the PIN for the user. The user can also set one at aitextaroo.com/dashboard, or remove it there without the current one. Connections: list_connections (GET /v1/account/connections) shows the account's keys and app sign-ins, which one is the caller, and which set up forwarding. remove_connection (DELETE /v1/account/connections/{id}, with {"pin": "4821"} when the user has a PIN) disconnects one at once, along with forwarding it set up; the user is texted. The user can see and remove them, stop forwarding, and sign out everything at aitextaroo.com/dashboard. Plugins that bundle the MCP server (OAuth sign-in) and the Agent Skill: Claude Code: /plugin marketplace add rwfresh/aitextaroo-clients, then /plugin install aitextaroo@aitextaroo Codex: codex plugin marketplace add rwfresh/aitextaroo-clients, then codex plugin add aitextaroo@aitextaroo Gemini CLI: gemini extensions install https://github.com/rwfresh/aitextaroo-clients Other skills-aware agents: npx skills add rwfresh/aitextaroo-clients Agents with a shell but no MCP can use the aitextaroo command from the same package (pipx install aitextaroo). It prints JSON and reads the saved key: aitextaroo send "Build finished." aitextaroo ask "Deploy now? Reply YES or NO" --timeout 120 aitextaroo verify-pin <<< 4821 (PIN on stdin; exits 2 if wrong) ## Path C: local CLI agents that should answer texts (Claude Code, Codex, Hermes, OpenClaw, Grok, Gemini CLI, Antigravity, Goose, Cursor, NanoClaw) The bridge keeps one outbound connection to AI Text-a-roo, turns each text the user sends into a prompt for the local agent, and texts back the answer. No public IP or webhook is needed. pipx install aitextaroo (or: pip install --user aitextaroo) aitextaroo-setup --phone +14165550123 aitextaroo-setup --phone +14165550123 --code 123456 --save nohup aitextaroo-bridge > ~/aitextaroo.log 2>&1 & - --agent claude|codex|hermes|openclaw|grok|gemini|antigravity|goose|cursor selects the agent (default: auto-detect; Cursor only when chosen). - Any other CLI that takes the prompt as its last argument and prints the reply, such as NanoClaw: --agent-command "pnpm --silent --dir ~/nanoclaw run chat" - History is kept locally in ~/.aitextaroo/sessions/. - SMS commands for the user: /help, /new (fresh conversation), /status. - Check: pgrep -f aitextaroo-bridge Logs: tail -20 ~/aitextaroo.log - One stream per account: a second bridge (with any of its keys) disconnects the first. - To keep it running after a restart, install it as a systemd user service (Linux) or a launchd agent (macOS): ready-made files are in https://aitextaroo.com/skills/aitextaroo/references/setup.md (section C). ## Path D: agents with an inbound webhook URL (for example, Grok Bot webhook routines) With the MCP server, call set_webhook (url, auth_header, and pin if the user has a PIN). Grok Bot shows a routine's webhook address and key only on a computer, in the routine's Webhook section: the user copies "POST to" (the url) and "header" into their chat with Grok Bot, and nowhere else, since the header holds the routine's key. auth_header takes the header's value, "Bearer " (the whole "Authorization: Bearer " line works too). Over HTTP: POST https://api.aitextaroo.com/v1/webhook Authorization: Bearer THE_KEY {"url": "https://example.com/hook", "auth_header": "Bearer ", "pin": "4821"} Each text the user sends is POSTed as JSON ({"event": "message.inbound", "data": {"text": ..., "channel": "sms", "trust_level": "low", "has_pin": ...}, "timestamp": ...}) with an X-Signature header (hex HMAC-SHA256 of the body, keyed with the secret returned at registration) and, if set, an Authorization header. How forwarding is protected: if the user has a PIN, registering needs it; the user is texted the destination host before forwarding starts (if that text can't be sent, nothing changes); the user can text UNHOOK to their AI Text-a-roo number anytime to stop it, or stop it at aitextaroo.com/dashboard; changes are limited to 5 an hour. DELETE /v1/webhook (or remove_webhook) stops forwarding and texts the user. Forwarding belongs to the key or app sign-in that set it up: disconnecting that one stops it too. ## Using it POST /v1/send {"text": "..."} text the user (max 1600 chars) POST /v1/messages/wait {"timeout_seconds": 60} wait up to 120 s for the user's reply GET /v1/messages/recent texts from the last 5 minutes GET /v1/stream SSE stream of inbound texts POST /v1/verify-pin {"pin": "4821"} check a PIN the user texted POST /v1/account/pin {"pin": "4821"} set or change the PIN (4-8 digits) GET /v1/account plan, number, usage, daily limit GET /v1/account/connections keys and app sign-ins on the account DELETE /v1/account/connections/{id} {"pin": "4821"} disconnect one (PIN when set) POST /v1/billing/checkout Stripe link to start Pro All authenticated endpoints take "Authorization: Bearer ". Base URL: https://api.aitextaroo.com OpenAPI: https://api.aitextaroo.com/openapi.json Good texts are plain text (no markdown), short, and say what reply is needed. Before sensitive actions, ask the user to text their PIN and check it with /v1/verify-pin. The PIN is the only secret to ask for by text: never ask the user to text passwords or card numbers. ## Plans and limits - Free: 10 messages a day. Pro: US$5/month (14-day free trial), 200 a day. - What counts: texts the agent sends. The user's texts to the agent don't. - AI Text-a-roo only carries texts between an agent and its user. It can't text anyone else: a request with "to" is refused with owner_only. - A text to a phone in a region we can't text yet fails with unsupported_region, and nothing is sent. - Up to 5 texts per minute. Limits reset at midnight UTC. ## Links - Docs: https://aitextaroo.com/docs - MCP server reference: https://aitextaroo.com/docs/mcp - Python SDK, aitextaroo command and bridge: https://pypi.org/project/aitextaroo/ - Source and plugins: https://github.com/rwfresh/aitextaroo-clients