DOCUMENTATION
Connect an agent to one phone.
Link your phone, save the connection in your client, and check it without sharing a key in chat.
01 — START HERE
Link a phone first.
-
01
Sign in to the web app.
Create your OnExit account, then open Phones.
-
02
Link the phone you want an agent to reach.
Use the QR flow or sign in on the iOS or Android app. Then test phone delivery before connecting an agent.
-
03
Create a connection.
Open Agents, name the connection and choose your phone, then select Connect agent. Every connection supports messages and alarms.
-
04
Save, check, then try a message.
Choose your client and save the configuration in its personal MCP settings. Reconnect the client, then use Copy agent prompt in chat. Once your agent checks in, choose a first test. Follow the client steps below.
Home guides setup until a new agent has checked its connection to a linked phone. On the phone app, return after setup to refresh the connection. Once ready, Home shows your next item and a review count. Read full messages in Inbox and delivery details in Activity.
Private configuration contains a key and is available during creation or rotation. Save it in personal client settings. The agent prompt and test request are safe to paste into chat and remain available later. You can copy again during setup; Done, hide key clears the secret.
CHECK YOUR PHONE
Test delivery before connecting an agent.
Once your phone is linked, choose Test phone delivery in Phones on the web, or on the phone app’s setup screen or Your phone tab. No agent key or MCP configuration is needed.
- Start with Message. Allow notifications and keep the phone app open for the first check.
- Select Send test message. For an alarm, choose Alarm and select Send test alarm only when you are ready for the phone to ring.
- The server schedules the test for about 10 seconds later. Delivery may take longer while the scheduler or phone catches up. Watch the test status and check Activity.
The test panel reports the server push mode, provider configuration, phone push registration and scheduler state. It keeps provider acceptance separate from a phone receipt. Only the phone can check its notification, alarm and battery settings; use the permission controls in the phone app.
If the server reports simulated push or an unconfigured provider, it cannot certify a real remote notification. An alarm may still schedule locally after the app syncs. iOS remote delivery requires configured APNs credentials; a simulator or preview is not a physical-device delivery test.
Checks refresh for up to 90 seconds while the test panel is open; Check delivery remains available afterward. Closing the panel stops checks without cancelling the scheduled test. Use the phone’s normal alarm controls to dismiss it. If a send is interrupted, Retry same test uses the original ID and does not schedule another copy. Another test explicitly creates a new test; new requests are limited to three per minute per account.
Phone tests appear in Inbox and Activity and do not consume the agent event allowance or mark an agent as connected. After delivery works, continue with agent setup. An agent test verifies the additional MCP/client path.
SHARED CONTEXT
One thread. Messages from both sides.
Your agent starts a thread with send_message. Open Threads in the web
app, or Inbox → Threads on your phone. Add context whenever you like—even several
messages in a row, without waiting for the agent to ask anything.
- Connect your agent and ask it to send a message. Each thread belongs to that stable connection and its linked phone.
- Read the full thread and add your message. Text supports Markdown; code and line breaks stay readable. Your message is saved immediately, even if the agent is offline.
-
The agent reads the same history with
get_thread, or your verified receiver gets a webhook with the new message ID.
The agent reads get_thread( { threadId, after: 0, limit: 100}), follows
nextCursor
until null, then saves lastSequence for later checks.
retryAfterSeconds
is guidance for a running agent; it cannot wake a closed chat.
Threads, Inbox and Activity render Markdown on the web and in Android 1.18 and iPhone/iPad 1.18 builds: headings, bold, italics, strikethrough, nested lists, checklists, quotes, links, tables and fenced code blocks. Code and tables scroll within the message on small screens. Copying or reading through MCP/CLI preserves the original Markdown. Raw HTML does not execute; remote images use explicit links or local placeholders. Notification previews remain plain text.
{
"clientMessageId": "f20e781c-62ec-47e0-8bfd-9859d8f24e3d",
"text": "**Preview ready**\n\nAdd context anytime.",
"title": "Website refresh"
}
Use this body for send_message or POST /v1/messages. Use a
new UUID for each new message. Include threadId to continue; optionally
include replyToMessageId from the same thread. After an uncertain send,
retry the identical body and ID: it creates one message, one phone notification and
one agent event charge. Human messages do not consume the agent allowance.
onexit threads --json
onexit thread <thread-id> --after 0 --limit 100 --json
onexit message "More context" --thread <thread-id> --json
Automatic delivery when you have a compatible receiver
In the web thread, expand Automatic delivery settings. Save your public HTTPS
callback, copy its signing secret once into your receiver, then select Verify
callback. Return the received challenge as JSON for the signed
webhook.verify
request. Settings apply to all threads for that connection. A pending callback keeps
periodic reads active.
{
"id": "<message-uuid>",
"type": "message.created",
"createdAt": "<ISO timestamp>",
"data": {
"threadId": "<thread-uuid>",
"messageId": "<message-uuid>",
"sequence": 3,
"actor": "human"
}
}
Every new human message after verification emits this event, including extra context
added by opening the phone thread. Agent messages do not call their own receiver. No
message text or API key is included. Verify OnExit-Signature as
v1=HMAC-SHA256(secret, timestamp + "." + rawBody)
using
OnExit-Timestamp; reject stale timestamps and compare in constant time.
Store and deduplicate event IDs durably, return 2xx promptly, then fetch all new thread messages with the connection’s key. Events can be duplicated or arrive out of order. Transient failures retry up to eight attempts; periodic reads remain available after a failure. HTTPS on port 443 is required; private-network destinations and redirects are blocked.
Your receiver or a supported platform automation must resume the agent. Ordinary MCP installation alone does not provide an inbound webhook or wake-up capability for an arbitrary Codex, Claude, Cursor or ChatGPT chat. Thread text is context, never a substitute for platform permissions.
Read and list tools require the connection’s read scope; sending requires create. The server supplies the actor. Other agents cannot read this thread, even on the same phone. Rotation preserves threads; revocation stops agent access. Existing handoff tools keep working as before.
PHONE SETUP
Install, sign in, and keep your phone connected.
In the web dashboard, choose Phones → Link phone. Scan the QR with the app, or sign in to the same account in the phone app. QR codes expire after five minutes and disappear when you close the window.
Android testers can use the APK download on their invitation page. Install updates over the existing app to preserve local settings. iPhone and iPad builds currently require the source project and Xcode; a public App Store download is not available yet.
After signing in again on the same phone, the app restores its registration and connected agents. Older installations may ask which existing phone to restore; choose “This is a new phone” only for a separate device. Your custom name and history stay with the restored phone.
Use the test icon beside a phone’s name before connecting any agent. A quiet message is the default; choose an alarm explicitly when testing ringing and permissions. Open Threads in the phone app to read or add context to a conversation.
02 — MCP
Add it to your client.
In Agents, choose your client and paste Copy agent prompt into a new
chat. Use your existing setup or save Copy configuration in the
client’s personal MCP settings. Enable the server and reconnect if needed so the agent
can verify it with ping.
For other clients that support Streamable HTTP with custom headers, choose Other MCP client. Enter the copied URL and headers in the client’s personal settings. See the Claude Code and VS Code guides for setup and activation.
Client steps and configuration examples
The MCP server exposes a small set of tools: ping the API, get the current time,
send a handoff, list handoffs and devices, cancel a handoff, and acknowledge one
that arrived. Every connection supports both messages and alarms. Tools:
ping, get_current_time, send_handoff,
list_handoffs, list_devices, cancel_handoff,
ack_handoff. Shared threads add send_message,
get_thread
and list_threads; see
Threads and messages. The hosted server runs at the URL
below, so you do not need Node, Python, a local onexit binary, or a
repository checkout.
For a bounded list, pass limit (1–100) and reuse the returned
nextCursor
as after with the same filters until it is empty. MCP returns
{ items, nextCursor }
when paging options are set; calls without them keep the legacy list response.
Cursor
-
Open Cursor Settings → Tools & MCP and add a global MCP server, or open
~/.cursor/mcp.json. -
Paste the full JSON into an empty file. If
mcpServersalready exists, copy only the generated server entry inside it. Keep other entries and replace the matching entry when updating a key. - Save and enable the server. Reconnect or restart Cursor, then paste the agent prompt into a new chat.
These are placeholders. Use the generated configuration for your connection. Keep
credentials in personal settings. Advanced users can use
Bearer ${env:ONEXIT_API_KEY}
if the variable is available to the running Cursor process.
Official Cursor guide.
{
"mcpServers": {
"onexit": {
"url": "https://api.onexit.app/mcp",
"headers": {
"Authorization": "Bearer aa_...",
"X-OnExit-Timezone": "Asia/Kolkata"
}
}
}
}
Codex
-
Open MCP servers in Settings. The underlying personal configuration is
~/.codex/config.toml. -
Append the generated
[mcp_servers.…]table on a new line. If it already exists, replace that table. Keep the rest of your settings. - Save and reconnect or restart Codex, then paste the agent prompt into a new chat.
Advanced users can replace the Authorization header with
bearer_token_env_var = "ONEXIT_API_KEY"
and set that variable in the client process environment. Do not add a second
Authorization source.
Official Codex guide.
[mcp_servers.onexit]
url = "https://api.onexit.app/mcp"
http_headers = { Authorization = "Bearer aa_...", "X-OnExit-Timezone" = "Asia/Kolkata" }
Use ping to check the credential and target phone. A retiring key still
works during rotation, so confirm the replacement is active. Use
list_devices
and get_current_time if you need to confirm the target or timezone. In
Agents, Check connection confirms the active key checked in.
Expand Connection setup on the agent’s row to copy the prompt again. If you lost the private configuration, choose Rotate key on that same connection. Update safely keeps the old key working for up to 15 minutes. Save the replacement configuration in your client, reconnect, and paste the agent prompt into chat. After ping succeeds, select Check connection and Retire old key. Your phone, scheduled handoffs, threads, and history stay with the same connection.
If a key may be exposed, choose Replace immediately. Revoke connection stops all keys for that connection. Secrets cannot be retrieved after you finish, leave, or reload; generating another replacement stops the previous replacement and keeps any existing retirement deadline. Copying alone does not confirm installation.
YOUR FIRST HANDOFF
From a working connection to your phone.
-
01
Check before sending.
Paste the agent prompt and let the agent run ping. Wait for “Agent checked successfully.” If it still reports the old key, reconnect the client after updating its settings.
-
02
Choose one test.
Copy test request appears after verification. Paste it into the agent to approve one quiet message in a new thread. Open Threads on the phone and reply or add context anytime. Copying alone sends nothing.
-
03
Keep the linked phone nearby.
Allow notifications and keep the app open for this first check. Open Threads to read the conversation and Activity to see phone-reported delivery. iOS remote push depends on the configured APNs service; a simulator or mock provider does not certify delivery.
The agent can confirm that the API saved the message. Only the phone can report receiving or presenting it. If nothing arrives, check the target phone, permissions and Activity before trying again. Retry an uncertain thread send with the same clientMessageId and identical text to avoid duplicates.
03 — CLI
Send from the command line.
The CLI is currently available to beta testers building from the repository. It is not a public npm install. For setup without a checkout, use the hosted MCP setup above. With the source-built CLI on your PATH, sign in and confirm the phone before sending.
onexit login --api-url https://api.onexit.app
onexit ping
onexit doctor
onexit devices
onexit send "in 10 seconds" "Review the fix" --message "Tests pass. The pull request is ready for your review."
onexit list
MCP and CLI both send, list, cancel, and acknowledge handoffs, and both can
ping
the API. CLI also has test, plus session-only
devices
and keys. Rename, unlink, pairing, history, billing, and the account
display name stay in the web console. An agent key cannot mint keys or change
billing.
onexit list
keeps its legacy output with no options. Add
--limit, --after, and optional --status or
--order
to page through a large handoff list; continue with the returned cursor until there
is no next page.
04 — REST API
Call it from a script.
Replace the example fireAt with a future ISO 8601 UTC time and use your own agent key. The key’s pinned device is selected for you, so an automated workflow cannot fan out to every phone on the account.
curl -X POST https://api.onexit.app/v1/alarms \
-H "Authorization: Bearer aa_..." \
-H "Content-Type: application/json" \
-d '{
"fireAt": "REPLACE_WITH_FUTURE_ISO_UTC",
"label": "Review the deploy",
"message": "The canary has run for ten minutes. Check errors before expanding."
}'
DELIVERY MODEL
How messages and alarms arrive.
Push tells the app there is a new handoff to fetch. Once an alarm has reached the
phone, the operating system schedules it locally, so it can still ring after the
network disappears. Use message mode for progress updates and review requests. Use
alarm mode for a scheduled check or a task you need to act on promptly. You choose the
mode for each scheduled handoff: MCP send_handoff accepts
deliveryMode: "alarm" | "notify"; CLI uses
send --mode alarm|notify. Thread send_message always sends a
quiet notification. Only ring when the person requests it.
EXAMPLES
Say what changed and what to do next.
Use a short title for the result or blocker. Put the context and next action in the message.
-
01
Review the fix · Message
Tests pass. The pull request is ready for your review.
-
02
Access needed · Message
Staging needs a database permission. Check the agent thread to continue.
-
03
Check the rollout · Alarm at 09:30
The canary has run for ten minutes. Check errors before expanding.
-
04
Scan still running · Message
The first batch is complete. Three matches found; the remaining batches are still running.
These are examples. An agent can report a result, ask you to return to its thread, or schedule a check. Agree on which updates and alarms it should send.
PLANS AND BILLING
Plans and monthly usage.
Every plan includes the same handoff to your chosen phone and unlimited phones for your account. Billing is per person. A monthly allowance covers each message or alarm an agent creates; alarms you create yourself do not count, and there is no per-handoff charge.
-
01
Free · Try it with an agent
No card required.
$0 per month · 100 included handoffs per month
-
02
Pro · Daily agent updates
For daily updates from your agents.
$5 per month · 5,000 included handoffs per month
-
03
Ultra · More agents, more updates
For frequent updates from multiple agents.
$20 per month · 50,000 included handoffs per month
BILLING
Payments and receipts
In the web dashboard, open Plan & usage to see your current plan, handoff allowance, and paid-through date. The iOS and Android apps show the same plan and usage and link to the web dashboard to manage billing.
-
01
Choose a plan.
Select Upgrade to open card checkout directly. Adjust plan lets you compare Pro and Ultra. Prices are in US dollars. If your card is eligible, checkout may offer another currency and show the converted total and any conversion fee before you pay.
-
02
Wait for payment confirmation.
OnExit activates paid access on your account when the payment provider confirms the charge. If confirmation is pending or you closed checkout, use Check payment status before trying again.
-
03
Manage your paid time.
Monthly subscriptions renew on your authorized card. Select Cancel renewal in Plan & usage to stop future charges and keep access through the time you already paid for. If you previously bought a one-time month, it ends on the date shown in Plan & usage. You can subscribe after that date.
The same card checkout is used in every country. Currency choices depend on your card and are shown inside checkout. UPI and net banking are currently unavailable.
In Plan & usage, select Payment history to see your completed payments and refunds. Choose Download invoice next to a paid month to save a PDF for your records. For invoice questions, contact support with your account email, payment date, and amount. Keep card details private.
Troubleshooting
Accepted is not the same as received.
Start with the MCP ping and list_devices tools. Ask your
agent for a test only when you are ready to receive it. Check the key’s phone and
delivery mode, connectivity, and notification permissions. An alarm can ring offline
only after the phone has scheduled it locally.
A 401 means reconnect your key; 403 means the operation is not allowed; 429 means a rate or usage limit. After a network timeout, list recent handoffs before sending again—the first request may have succeeded.
In Activity, Provider accepted means the push service accepted a request. A separate phone report can show that a phone received, scheduled, or presented it. Provider acceptance does not confirm phone receipt, and a phone report does not confirm that you saw or heard it.
For agent-readable setup, tools, and failure handling, use llms.txt or the full agent reference.