Installation and first steps
Desktop and the standalone CLI
Install NinjaSurfer Desktop from surfer.ninja: macOS arm64 (12+), Windows x64 and Linux x64 (AppImage; on Linux browsers are driven through the SDK, CLI or MCP). Desktop prepares each profile's engine and components. Its Settings install the command-line tool and configure MCP clients. The standalone CLI bundles its own Node and is published for the same three targets.
On Linux, Desktop keeps saved sign-ins, proxy passwords, VPN keys and the workspace key in the system keyring when there is one (Secret Service or KWallet); without one it seals them with a key in its own data folder (secret-store/store.key), so nothing needs installing and nothing is asked again at each start. They are then protected by your OS user's file permissions, like ~/.ssh: other users can't read them, and a copy of the data folder carries the key.
The Linux AppImage needs no libfuse2: it mounts itself with FUSE 3 (fusermount3, which desktop Ubuntu and Debian install). On a system with no FUSE at all it stops with "Cannot mount AppImage, please check your FUSE setup": install fuse3, or run it with APPIMAGE_EXTRACT_AND_RUN=1.
Desktop's sign-in screens have the theme (System, Light, Dark) and the language (System or any of Desktop's ten languages) in the top right corner: the same two settings as Settings → Appearance, so a choice made before signing in stays after it. The account's emails (the sign-up code, the password-reset code and the notice after a password change) come in the language Desktop shows: English, Russian, German, Spanish, French, Portuguese, Turkish, Chinese, Japanese or Korean. A code is valid for 15 minutes; the notice gives the time of the change in UTC.
A Windows, macOS or Android profile whose OS is not the computer's, and an iPhone profile on Linux, need the network
module (ninjasurfer-netstack) when they connect directly, without a proxy or a VPN: the module gives their
connections the persona OS's TCP/IP fingerprint. Without it such a start is refused (NETSTACK_NEEDED) and Desktop
offers to install it (one administrator password), or shows the command an administrator runs where this computer has
no administrator prompt. Through a proxy or a VPN the profile starts without the module: sites see the proxy server's
TCP/IP stack, or the persona's stack that ninjasurfer-net carries for the VPN. See
system components.
Linux requirements for the standalone CLI: x86_64 with glibc (Debian, Ubuntu, Fedora, Arch; musl/Alpine is not
supported) and libatomic.so.1 (libatomic1 on Debian/Ubuntu, libatomic on Fedora, gcc-libs on Arch). The
installer installs it before downloading when it runs as root or via sudo; otherwise it stops and prints the command.
Install the standalone CLI on macOS or Linux (if cdn.cf.surfer.ninja is not reachable from your network, use cdn.sl.surfer.ninja):
curl -fsSL https://cdn.cf.surfer.ninja/assets/get/install.sh | bash
The Chromium engine is published for every target; WebKit (the iPhone persona's engine) for macOS arm64 and Linux
x64, not for Windows. The host OS and the persona OS are separate choices. ninjasurfer update --check lists what is
missing or has a newer version on the stable channel, and downloads nothing.
Check an installed CLI (these only read; they start nothing):
ninjasurfer --version ninjasurfer verify-cli --json ninjasurfer profile --help ninjasurfer start --help
A standalone CLI reports verified when its own bytes match the signed catalog entry. The package CLI
(node node_modules/ninjasurfer/dist/cli.js) has the same commands; its verify-cli checks the signed CLI catalog and
reports signature-ok.
JavaScript SDK
The SDK is published on our signed CDN, not on public npm or GitHub Releases. The stable SDK catalog is a signed DSSE envelope; its base64 payload names each version's tarball, size and hashes. Clients check the signature, trust chain, freshness and revocations before they use it.
The SDK needs Node.js 26+. The catalog's latest is the current version; its packages entry for that version
gives the tarball name and its sha256. In a fresh project directory (macOS/Linux), with V and SHA256 taken from
that verified entry:
curl -fLO "https://cdn.cf.surfer.ninja/assets/sdk/$V/ninjasurfer-$V.tgz" echo "$SHA256 ninjasurfer-$V.tgz" | shasum -a 256 -c npm install "./ninjasurfer-$V.tgz" ws node node_modules/ninjasurfer/dist/cli.js --version
npm installs the playwright-core version the SDK names as its peer. Never take a hash from a payload you have not
verified. Do not run Playwright's browser installer for NinjaSurfer engines. On Windows, Desktop is the
simple path; a standalone SDK install needs the same tarball and hash check with Windows tools.
Installing the SDK installs no engine, signs nothing in and grants no profile. Then see the SDK guide for a first run, profiles and MCP and agents.
Starting a profile
In Desktop, create or select a profile, let its download finish and press Start. For a Chromium profile, ninjasurfer start --help shows how to pick a profile by name or id and get JSON with its CDP endpoint; attach Playwright, Puppeteer
or any CDP client to it. The app's command brings its own key-file context; a package CLI run on its own needs the
account and profile configured. Python automation can use the same CDP endpoint; there is no Python SDK. WebKit has no
Chromium CDP.
Where downloads come from
Every engine, component, font set, catalog and installer is a plain GET of /assets/<area>/..., the same path on
every download host. The CDN hosts are cdn.cf.surfer.ninja, cdn.bn.surfer.ninja and cdn.sl.surfer.ninja:
downloads use the one that answers for your network and move to the next when a host fails.
s3.surfer.ninja is the last resort, for one file at a time: after 3 consecutive real failures of that file on the
CDN (refused, reset, 5xx, a stall), its next attempts read the same path there; every other file starts on the CDN.
Fonts are public like everything else: no account, token or signed URL. Every file is checked against the
signed catalogs' SHA-256 whatever host served it. Behind a corporate proxy or firewall, allow these four hosts.
NINJASURFER_ASSETS_BASE points the SDK at a private mirror (an https URL or a local directory); the host choice and
the fallback are then off.
Servers and images: pre-seeded fonts
A persona's operator fonts are large (up to about 1.7 GB for macOS). On servers, fetch them once into a store that every new machine reuses, instead of each machine downloading them at its first start. (Speech voices need no download: no voice packs are fetched; a page's speech comes from this computer's own voices or none.)
| Variable | Store |
|---|---|
NINJASURFER_FONT_PACKS_DIR |
the font-pack store (absolute). Unset: the browser's default under the home directory, so set it on a server whose home directory is reset |
Build step (an image layer, or once onto a shared volume), with the same variables set:
ninjasurfer fetch ninjasurfer fonts fetch-operator
Run step: set the same variable. A start uses the seeded packs and downloads nothing when they hold exactly the bytes of the current signed index: every font file is matched by SHA-256 against the signed sets, and a fresh machine hashes the store once before it trusts it. A pack whose bytes differ, or that has a file the signed set lacks, is not used as a seed.
- Latest only. When the signed index names a newer set than the store holds, a writable store is updated as usual.
A store the process cannot write is never used for the older set instead: the start fails with
STORE_READ_ONLY, naming the pack; rebuild the image or update the volume. Nothing is half-written into a read-only store, and clean-up of old versions leaves it alone. - Keep the font store writable at run time. The browser keeps small per-version runtime files beside each pack (its verify record and fontconfig cache). A container's writable layer is enough; mount a shared volume read-write.
Releases
The signed CDN has one channel document each for the SDK, CLI, Desktop, Chromium, WebKit and components. A client
uses an artifact only when its channel document verifies and lists its hash. Nothing updates by itself: bring an
item up to date with ninjasurfer update <id…>, or everything with ninjasurfer update --all.