Skip to content

let your agent control your phone

docs: a cloud iPhone is a flat subscription, not "does not bill" (#160)

shawn panaea487d3d4ea4
diff --git a/SKILL.md b/SKILL.md
index 6c17455..952bae8 100644
--- a/SKILL.md
+++ b/SKILL.md
@@ -234,9 +234,10 @@ phone-harness cloud open # the dashboard: the user takes the
`cloud use` rewrites that shared fallback. Parallel agents should pass
`--session` and leave `cloud use` alone, or they will steal the fallback
from each other.
-- **A cloud Android bills by the minute while it is up; a cloud iPhone does
- not.** Start it once and keep it for the whole conversation. Stop an Android
- when the user is done, and say that you did. An iPhone can stay running.
+- **A cloud Android bills by the minute while it is up; a cloud iPhone is a
+ flat subscription and does not.** Start it once and keep it for the whole
+ conversation. Stop an Android when the user is done, and say that you did.
+ An iPhone can stay running.
`--for` is the length: `90s`, `15m` / `15min`, or a bare number of minutes.
Default 15, cap 30 (`cloud.minutes`, `cloud.max_minutes`).
- **Stop before the deadline; a session cannot be extended.** One that simply
@@ -293,16 +294,16 @@ A ready session carries `control: {url, token, expires_at}` and no `adb`.
From then on the helpers drive it over HTTPS. This machine needs no adb, no
shell, and no Mac. It is a phone granted to the user's account and kept
between sessions - not the personal iPhone mirrored on the Mac, which is a
-different device with its own apps and logins. It does not bill by the
-minute, so there is no need to stop it to save credit, or to ask before
-starting it. `cloud stop` returns at once; the phone keeps its own data. There is no Android-style
+different device with its own apps and logins. It is a flat subscription and
+does not bill by the minute, so there is no need to stop it to save credit, or
+to ask before starting it. `cloud stop` returns at once; the phone keeps its own data. There is no Android-style
disk save, and nothing on this phone for `cloud phone` to wipe.
An Android session can stay up beside it. Target one with `--session SID`.
`cloud use SID` only changes the terminal fallback.
Length, `ls`, `watch`, and `stop` are the **Cloud phones** commands
-above. An iPhone session reports `billing_mode: disabled`: no per-minute charge. Run scripts as
+above. An iPhone session reports `billing_mode: disabled`: the subscription covers it, with no per-minute charge. Run scripts as
plain `phone-harness` (with `--session` when you must pin one).
`PHONE_HARNESS_PLATFORM=...` selects a local backend and skips the attached
cloud phone.
diff --git a/install.md b/install.md
index 372796c..7598754 100644
--- a/install.md
+++ b/install.md
@@ -83,8 +83,10 @@ That reaches the default phone. If it fails, use the sections below.
`ios` / `android` when that names one phone. An Android needs adb, below.
An iPhone needs no adb and no Mac; driving it is **Cloud iPhone** in
the skill. A start lasts 15 minutes unless you pass `--for` (`90s`, `15m`,
- or a number of minutes). New accounts get $5 of credit (100 Android minutes). Only a cloud Android
- bills by the minute; a cloud iPhone does not.
+ or a number of minutes). New accounts get $5 of credit (100 Android minutes).
+ A cloud Android emulator bills 5¢ a minute from that credit. A cloud iPhone is
+ a real phone on a flat subscription, from $80 a month: it does not bill by the
+ minute.
No uv? `pip install phone-harness` works too. Upgrade that install with
`pip install -U phone-harness` (what `phone-harness update` prints for it).
diff --git a/integrations/hermes/README.md b/integrations/hermes/README.md
index f612c2f..fbb82df 100644
--- a/integrations/hermes/README.md
+++ b/integrations/hermes/README.md
@@ -105,7 +105,7 @@ is still the skill's consent rule: the agent asks you before those.
- Taps and types into your real phone, with your apps and accounts.
- Screenshots are PNG files in the system temp folder.
- A cloud phone streams its screen to Phone Harness Cloud and uses phone-harness's own cloud sign-in.
- A cloud Android bills by the minute; a cloud iPhone does not.
+ A cloud Android bills by the minute; a cloud iPhone is a flat subscription and does not.
- Hermes adds the plugin's toolset to every platform that has a saved tool
selection, messaging platforms included. Turn it off there with
`hermes tools` unless you want people who can message your bot to drive your
diff --git a/onboarding.md b/onboarding.md
index a9958cd..3892575 100644
--- a/onboarding.md
+++ b/onboarding.md
@@ -89,7 +89,8 @@ in the summary and move on. If yes:
browser), then the same demo as step 5 on the cloud phone — open
phone-harness.com in Chrome, offer the star — and `phone-harness cloud
stop`. Keep it to a few minutes: a cloud Android bills by the minute and the
- credit is theirs. (A cloud iPhone does not bill by the minute.)
+ credit is theirs. (A cloud iPhone is a flat subscription: it does not bill by
+ the minute.)
## Rules
diff --git a/setup/cloud.md b/setup/cloud.md
index 6142d15..0a5d8c4 100644
--- a/setup/cloud.md
+++ b/setup/cloud.md
@@ -11,7 +11,7 @@ Phone Harness Cloud hosts an Android or an iPhone. No hardware, any OS.
| HTTPS to the phone's control URL | yes | no |
| adb installed | no | yes |
| Outbound TCP to the phone's adb host and port (not HTTPS) | no | yes |
-| Billing | not per minute | per minute, from account credit |
+| Billing | flat subscription, not per minute | 5¢ per minute, from account credit |
A sandbox that only allows HTTPS can drive a cloud iPhone but not a cloud
Android. If installing is not possible at all, use the [API](api.md).
@@ -39,7 +39,10 @@ PY
phone-harness cloud stop # ends the session
```
-New accounts get $5 of credit (100 Android minutes). Only a cloud Android
-bills by the minute; a cloud iPhone does not, so it can stay running.
+New accounts get $5 of credit (100 Android minutes). A cloud Android emulator
+bills 5¢ a minute from that credit. A cloud iPhone is a real phone on a flat
+subscription: from $80 a month, $100 with an eSIM (a real number), or 20% off
+billed annually ($768 or $960 a year). It does not bill by the minute, so it
+can stay running.
A cloud iPhone is a separate phone from the user's own, with its own apps
and logins; if an app asks for an Apple ID or any sign-in, ask the user.
diff --git a/tests/test_pricing_copy.py b/tests/test_pricing_copy.py
new file mode 100644
index 0000000..32f7ce8
--- /dev/null
+++ b/tests/test_pricing_copy.py
@@ -0,0 +1,49 @@
+"""The prices these docs quote are the ones Phone Harness Cloud charges.
+
+phone-cloud owns the numbers: production's settings, and tests/test_pricing_drift.py
+there, which also checks this repository when PHONE_HARNESS_DIR names a checkout.
+This holds the docs still between those runs. Change a price there first.
+
+ python -m unittest discover tests -p test_pricing_copy.py
+"""
+import re
+import unittest
+from pathlib import Path
+
+ROOT = Path(__file__).resolve().parents[1]
+DOCS = ("README.md", "SKILL.md", "install.md", "onboarding.md", "setup/cloud.md",
+ "integrations/hermes/README.md")
+
+RATE, GRANT, TRIAL_MINUTES = "5¢", "$5", "100"
+IPHONE = {"$80", "$100", "$768", "$960"}
+FIGURES = {RATE, GRANT, *IPHONE}
+FIGURE = re.compile(r"(?<![\w$])\$\d+(?:,\d{3})*(?:\.\d+)?|(?<![\w.])\d+(?:\.\d+)?¢")
+
+
+def read(name):
+ return " ".join((ROOT / name).read_text(encoding="utf-8").split())
+
+
+class PricingCopy(unittest.TestCase):
+ def test_every_figure_is_a_published_price(self):
+ for name in DOCS:
+ with self.subTest(doc=name):
+ self.assertEqual(set(FIGURE.findall(read(name))) - FIGURES, set())
+
+ def test_the_starting_credit_and_the_minutes_it_buys(self):
+ for name in ("install.md", "onboarding.md", "setup/cloud.md"):
+ text = read(name)
+ self.assertIn(f"{GRANT} of credit", text, name)
+ self.assertRegex(text, rf"\b{TRIAL_MINUTES} (?:Android )?minutes", name)
+
+ def test_a_cloud_iphone_is_a_subscription_and_not_billed_by_the_minute(self):
+ for name in ("SKILL.md", "install.md", "onboarding.md", "setup/cloud.md",
+ "integrations/hermes/README.md"):
+ text = read(name)
+ self.assertIn("flat subscription", text, name)
+ self.assertNotRegex(text, r"(?i)iphone[^.|]*\b(not charged|is free)\b", name)
+ self.assertLessEqual(IPHONE, set(FIGURE.findall(read("setup/cloud.md"))))
+
+
+if __name__ == "__main__":
+ unittest.main()