Profile link
Last updated December 6, 2026
A profile in Cosmos Client is an https://… link. The app requests the configuration from it and then keeps it up to date on its own.
Request
GET /sub/<token> HTTP/1.1
Host: example.com
User-Agent: CosmosClientApp/1.0.0 (iOS; sing-box 1.14.8)
X-HWID: 3c6ea0fd-5aff-8e39-8ff1-d07060cde92b
httpsonly — for the link and for redirects.- User-Agent —
CosmosClientApp/<app version> (<OS>; sing-box <core version>). The server can use it to return a sing-box configuration for the right core version. - X-HWID — a device ID, for example to enforce a device limit. It survives reinstalling the app, a new token in the link and choosing another country; it changes after a factory reset or erasing the device, reinstalling Linux or Windows, or a new domain in the link. On Linux and Windows all users of a computer share it; on a Mac each user has their own. Each server gets its own ID for the same device, and redirects to another domain go without it. Optional: older app versions and an iPhone before its first unlock send no header. Treat it as an opaque string. If your response depends on it, send
Cache-Control: privateso a CDN or proxy doesn’t serve one device’s response to another.
Response
- Body — a sing-box configuration in JSON, up to 512 KB. A typical configuration is about 10 KB; larger responses are rejected.
- The
X-Metaheader — expiry, traffic, country and links (X-Meta header). Optional: without it the profile works, but the app won’t show this data.
Errors
404— the link isn’t found.403with anX-Metaheader — the profile has expired or access is closed.5xx— a temporary server error: the app connects with the last saved configuration and retries later.
Updates
The app requests the configuration again from time to time, and the user can also refresh it manually. A changed configuration is applied without turning VPN off.