Get started: what rply is, the quickstart, and setting up an agent so it runs on its own # Set up your agent > Teach your agent to use rply and get woken up when you write to it. Once an agent is set up, it reports to you on its own, asks when a decision is yours, and starts working when you send it a message, even when nobody has a session open. ## The short way: give your agent the setup prompt [Section titled “The short way: give your agent the setup prompt”](#the-short-way-give-your-agent-the-setup-prompt) The quickest setup is to let the agent do it. Paste this into Claude Code, Codex or any agent with a shell: ```text Connect yourself to rply (https://rply.sh) so you can send me updates and ask me questions. If you're Hermes Agent, use the rply plugin instead of the CLI: - hermes plugins install rply-platform --enable - hermes rply init https://app.rply.sh --name "" - Show me the claim link it prints, then run hermes gateway restart (or hermes gateway install if the gateway isn't installed yet). Otherwise: 1. Install the CLI: npm install --global @rply/cli 2. Create your channel: rply init https://app.rply.sh --name "" Show me the claim link it prints and wait until I've opened it and signed in. 3. Run rply guide setup and follow it from step 3. ``` The same prompt is behind the **Copy setup prompt** button on [rply.sh](https://rply.sh). If you created the channel in the app instead, the app shows a prompt with a one-time agent code; the agent runs `rply join` (or `hermes rply join`) with it instead of `rply init`. Agents with an [integration](/docs/integrations/), like Hermes Agent, connect through it instead of the CLI, which is why the prompt has a separate branch for them. The rest of this page explains what the agent does, so you can do it by hand or check its work. ## What `rply guide setup` walks through [Section titled “What rply guide setup walks through”](#what-rply-guide-setup-walks-through) `rply guide setup` prints a checklist written for agents. The steps are: ### 1. Install the CLI globally [Section titled “1. Install the CLI globally”](#1-install-the-cli-globally) ```sh npm install --global @rply/cli ``` Use a global install rather than `npx`. The background service in step 5 needs a stable path to the `rply` command. ### 2. Connect to a channel [Section titled “2. Connect to a channel”](#2-connect-to-a-channel) Either join a channel you created in the app, using the agent code it shows: ```sh rply join https://app.rply.sh K7QX-M2PD --agent-name "seo-bot" ``` or create one and send you the claim link: ```sh rply init https://app.rply.sh --name "SEO bot" --agent-name "seo-bot" ``` `--agent-name` is how this agent appears in the channel’s agent list. It defaults to the machine’s hostname. ### 3. Learn the commands and remember them [Section titled “3. Learn the commands and remember them”](#3-learn-the-commands-and-remember-them) The agent reads the full guide with `rply guide all`, then adds a short instructions block to the file its future sessions read, such as `AGENTS.md` or `CLAUDE.md`: ```sh rply guide --snippet >> AGENTS.md ``` The snippet looks like this: ```md ## Talking to the human (rply) This agent reports to its human through the `rply` CLI. Run `rply guide` once per session before using it. - Send progress with `rply send`, keep `rply status` up to date, and check `rply inbox` for new instructions. - Ask with `rply ask ... --wait` when a decision is the human's. - Request credentials with `rply secret request`, never through messages. - To let the human try a running web app (e.g. a dev server), see `rply guide previews`; ask them how to expose it first. - When you were started because of new rply messages, run `rply inbox` first and answer through rply. - If `rply` is missing, reinstall it with `npm install --global @rply/cli` (the package is @rply/cli, not rply). - If an rply integration for your agent framework is installed (a plugin or messaging platform), follow its instructions where they differ from these. ``` ### 4. Pick a wake command [Section titled “4. Pick a wake command”](#4-pick-a-wake-command) Most agents don’t run all the time. rply starts the agent when you write to it, using one shell command that runs the agent headless in its project. For example: ```sh # Claude Code claude -p "You have new messages in rply. Run rply inbox and handle them." # Codex codex exec "You have new messages in rply. Run rply inbox and handle them." ``` Use your agent’s non-interactive mode, with permissions that let it work unattended, and run the command once by hand to check it works. ### 5. Install the background service [Section titled “5. Install the background service”](#5-install-the-background-service) From the agent’s project directory: ```sh cd ~/projects/acme-seo rply serve --install --on-message 'claude -p "You have new messages in rply. Run rply inbox and handle them."' ``` This installs `rply serve` as a background service (systemd on Linux, launchd on macOS) that restarts on crash and reboot. It does two things: * **Wakes the agent.** When you write, it runs the `--on-message` command in the project directory, with the new messages as JSON on stdin. It runs one at a time; messages that arrive during a run trigger one more run afterwards. Runs stop after an hour by default; raise that with `--on-message-timeout 4h`, or `0` for no limit. * **Runs command scripts for apps.** See [Build an app](/docs/guides/apps/). If the channel has other agents, they can all use `--on-message`: each is woken for messages that mention it or nobody (see [Several agents in one channel](/docs/guides/channels/#several-agents-in-one-channel)). Remove the service with `rply serve --uninstall`. Caution Don’t start the agent in the background from the wake command. Runs would overlap. If runs take longer than an hour, raise `--on-message-timeout` instead. ### 6. Check that it works [Section titled “6. Check that it works”](#6-check-that-it-works) The agent sends a test message: ```sh rply send "Setup done. Reply to this message to check I get woken up." ``` Reply in the app. If the agent is woken and answers, the setup is complete. ## Troubleshooting [Section titled “Troubleshooting”](#troubleshooting) * **Nothing happens when you reply.** Check the service log at `~/.config/rply/logs/.log` (next to your config file). Make sure the wake command works when you run it by hand from the project directory. * **No service manager** (some containers and sandboxes). Run `rply listen` in a long-running process instead. It prints your messages as they arrive. * **The agent can’t do something.** A good setup prompt tells the agent to say so with `rply send` rather than pretend. Fix the permissions and run `rply guide setup` again. ## Next steps [Section titled “Next steps”](#next-steps) * [Take instructions from the app](/docs/guides/instructions/) covers the inbox and acknowledgements in detail. * [Use several channels](/docs/guides/channels/) if one machine runs several agents. # Introduction > What rply is, how the pieces fit together, and where to start. rply lets your AI agents reach you. An agent runs a command, and you get a push notification on your phone or laptop. It can send you updates, ask you a question and wait for the answer, keep a live status at the top of the chat, and ask you for an API key without ever seeing it. You can also write to the agent at any time to give it new work. ![The rply web app showing a conversation with an SEO agent: a file, a chart, a pinned status and an open question](/_astro/thread.Dc60An-I_Z2mQ7nF.webp) ## How it works [Section titled “How it works”](#how-it-works) There are three parts: * **The `rply` CLI** runs on the agent’s machine. Any agent that can run a shell command can use it: Claude Code, Codex, Cursor, Gemini CLI, OpenClaw, or your own scripts, cron jobs and CI. * **The server** stores the conversations and relays messages. Use the hosted one at [app.rply.sh](https://app.rply.sh) or [run your own](/docs/self-hosting/overview/). * **The apps** are where you read and answer. The web app works in any browser and can send push notifications. A mobile app is on the way. Each agent gets a **channel**, a conversation between you and that agent. An agent that waits for your answer just blocks on a command such as `rply ask "Publish?" --choices Publish,"Not yet" --wait` and continues when you tap a button. ## What rply isn’t [Section titled “What rply isn’t”](#what-rply-isnt) * It’s not a remote control for one coding agent. rply doesn’t mirror sessions or run your agent; your agent decides when to reach you. * It doesn’t host agents. Your agent runs wherever it already runs: your laptop, a VPS, exe.dev or CI. ## Where to start [Section titled “Where to start”](#where-to-start) * **[Quickstart](/docs/start/quickstart/):** connect an agent and answer its first question in five minutes. * **[Set up your agent](/docs/start/agent-setup/):** make it use rply on its own and wake up when you write to it. * **[Guides](/docs/guides/send-updates/):** recipes for updates, questions, status, secrets, files and apps. * **[Self-hosting](/docs/self-hosting/overview/):** run the server yourself. # Quickstart > Connect an agent to app.rply.sh and answer its first question in five minutes. In this tutorial you connect your terminal to the hosted app at app.rply.sh, send yourself a message, and answer a question from the app. Afterwards, [Set up your agent](/docs/start/agent-setup/) shows how to hand the same setup to an agent. You need Node.js 20 or newer and a browser. Everything else is installed along the way. ## 1. Install the CLI [Section titled “1. Install the CLI”](#1-install-the-cli) ```sh npm install --global @rply/cli ``` This installs the `rply` command. Check it with `rply --version`. ## 2. Create a channel [Section titled “2. Create a channel”](#2-create-a-channel) A channel is the conversation between you and one agent. Create one on app.rply.sh: ```sh rply init https://app.rply.sh --name "My first agent" ``` The CLI prints a link: ```plaintext Created channel "My first agent" on https://app.rply.sh, saved as "my-first-agent" (default) Give your human this link to add the channel to their rply account (within 60 minutes, single use): https://app.rply.sh/claim?c=6A7P-NS11 or they enter code 6A7P-NS11 under Add channel > From the agent ``` Open the link and sign up or sign in. The channel is added to your account and appears in the sidebar. ## 3. Send a message [Section titled “3. Send a message”](#3-send-a-message) ```sh rply send "Hello from my terminal" ``` The message shows up in the app right away. Messages support Markdown, so `rply send "Deployed **3** new pages"` works too. ## 4. Ask a question [Section titled “4. Ask a question”](#4-ask-a-question) ```sh rply ask "Ship the release?" --choices Ship,Wait --wait ``` The command waits. In the app, the question has buttons: ![A question in the app with Publish and Not yet buttons](/_astro/question.ID1x0Kgk_ZcKU7V.webp) Tap one, and the command prints your answer and exits: ```plaintext Ship ``` That’s the loop at the core of rply: the agent asks, waits, and carries on with your answer. ## 5. Write to the agent [Section titled “5. Write to the agent”](#5-write-to-the-agent) Type a message into the box at the bottom of the channel, for example “Also update the changelog”. Then read it from the terminal: ```sh rply inbox ``` ```plaintext [10/13/2026, 9:20:11 AM] (90rsxg78rg81gzfx) Also update the changelog Acknowledge with: rply ack working|done ``` ## 6. Turn on notifications [Section titled “6. Turn on notifications”](#6-turn-on-notifications) Click the bell at the top of the sidebar and allow notifications. From now on, new messages and questions notify you even when the tab is closed. On iPhone, add the app to your Home Screen first. See [Get notifications](/docs/guides/notifications/). ## Next steps [Section titled “Next steps”](#next-steps) * [Set up your agent](/docs/start/agent-setup/) so it uses rply on its own and wakes up when you write to it. * [Ask questions](/docs/guides/ask-questions/) covers forms, defaults and timeouts. * [Keep a live status](/docs/guides/live-status/) pins an overview to the top of the chat.