ninjasurfer --json output
--json prints one JSON document on stdout; progress, notes and warnings go to stderr, so stdout always parses. A workspace profile's --json is the same object the MCP tool of the same name returns (profile_create, profile_update): the command line, MCP and the app are one contract.
The shapes below are stable. A field is never renamed, removed or given another meaning without a Breaking line in the CHANGELOG. New fields may be added. Each block marked cli-json: is checked against the real output, key for key, by the test suite, so this page and the command cannot drift apart.
No output ever shows a proxy's password, its IP change link, its CA or a provider's keys: a proxy shows hasPassword, hasRotateUrl and hasCa instead.
profile create (workspace)
ninjasurfer profile create NAME --scope workspace --persona-os win|mac|android|ios [--proxy URL | --proxy-file FILE | --proxy-id ID] [--proxy-ca PEM-FILE] --json
{
"scope": "workspace",
"profile": "0b5f3a52-9d0e-4c4b-8f39-6c1a2e7d4b11",
"id": "0b5f3a52-9d0e-4c4b-8f39-6c1a2e7d4b11",
"name": "shop-1",
"title": "shop-1",
"persona_os": "win",
"engine": "chromium",
"local_id": "5d1c0f6e-2a47-4b8e-9c33-0e6f1a2b7c90",
"server_linked": true,
"proxy_id": "8f2e…",
"proxy": { "id": "8f2e…", "name": "px.example.net:1080", "scheme": "socks5", "host": "px.example.net", "port": 1080, "username": "alice",
"hasPassword": true, "hasRotateUrl": false, "provider": null, "hasCa": false, "tags": [], "color": null,
"created": "2026-12-02T00:00:00.000Z", "lastCheck": null },
"fonts": { "state": "preparing", "percent": 0 }
}profileandid: the workspace profile's id (ninjasurfer start <id>).nameis its SDK name,titlethe name shown in the app.engine:webkitfor an iPhone profile (persona_osios), elsechromium.local_id: this computer's copy of the profile,nullfor an iPhone profile (it has none until its first start).proxy_id: the workspace proxy its route names,nullfor a direct route.proxy: that proxy when this command saved it (--proxy,--proxy-file), elsenull.fonts: only withlocal_id: the profile's fonts download (preparing,readyorerror, withpercent).- MCP's
warnings(and other notices) appear only when there is something to say.
profile update (workspace)
ninjasurfer profile update PROFILE --scope workspace [--timezone TZ] [--locale L | --no-locale] [--proxy URL | --proxy-file FILE | --proxy-id ID | --no-proxy] [--proxy-ca PEM-FILE] --json
{
"scope": "workspace",
"id": "0b5f3a52-9d0e-4c4b-8f39-6c1a2e7d4b11",
"name": "shop-1",
"settings": { "network": { "kind": "proxy", "proxyId": "8f2e…" } },
"card": null,
"proxy_id": "8f2e…",
"proxy": null
}nameandsettings: the server row after the change (secrets as***).card: the profile's card in the workspace (color, icon, tags, status, notes, folder, pinned, sync and backup options),nullwhen it has none.proxy_idandproxy: only when a proxy flag set the route.proxy_idisnullafter--no-proxy;proxyis the proxy this command saved, elsenull.
profile update (local)
ninjasurfer profile update PROFILE --scope local … --json
{ "scope": "local", "id": "5d1c0f6e-2a47-4b8e-9c33-0e6f1a2b7c90", "name": "alice" }A proxy
Every proxy above (and MCP's workspace_list kind proxy and proxy_save) shows a workspace proxy this way:
{ "id": "8f2e…", "name": "px.example.net:1080", "scheme": "socks5", "host": "px.example.net", "port": 1080, "username": "alice",
"hasPassword": true, "hasRotateUrl": false, "provider": null, "hasCa": false, "tags": [], "color": null,
"created": "2026-12-02T00:00:00.000Z", "lastCheck": null }provider is null for a proxy entered by hand; for one bought from a provider it names the provider with its inputs, and any key or password in them reads (set).
Local profiles
profile create (local) and profile info print a local profile's info view, and profile list an array of them: the manifest (profiles.md, Manifest) with the proxy password removed, plus its launch settings and route_state.