MaskMatrix Documentation
Quick start, encrypted .fpack migration, Loopback REST API (:50819), Playwright CDP integration, and MCP setup.
1. Quick Start
Follow these steps to configure a clean isolated browser environment on macOS or Windows:
- Download & install MaskMatrix from /download.
- Install Kernel 148.0.7778.215 in the Kernels tab (SHA-256 verified with resumable download).
- Add or batch-import proxies in Proxies (
socks5://user:pass@host:port,http://..., orhost:port:user:pass) and click Check to sync GeoIP timezone & locale. - Create a profile (or import from TikMatrix Pro JSON), pick the proxy, and click Audit to verify all 7 execution contexts before launching.
2. Encrypted .fpack Profile Migration
.fpack archives use Argon2id key derivation (m=65536, t=3, p=4) and authenticated AES-256-GCM encryption to package profile specifications, proxy metadata, and live Chromium cookies (synced over CDP Storage.getCookies / Storage.setCookies).
Use the Export and Import .fpack actions from any profile row or toolbar. If a profile is stopped at export time, MaskMatrix automatically spins up an ephemeral headless bridge to extract its live cookies cleanly.
3. Local REST API (127.0.0.1:50819)
Available on Plus and Team / Business plans when automation is active. Every route rejects browser cross-origin requests (Origin header → 403) and non-loopback Host headers.
| Method | Path | Description |
|---|---|---|
GET |
/api/v1/bridge/status |
Service status, version, seat entitlement & active session count |
GET |
/api/v1/browser/profiles |
List local profiles (secrets always redacted) |
POST |
/api/v1/browser/sessions |
Launch profile and return authenticated loopback CDP WebSocket URL |
DELETE |
/api/v1/browser/sessions/:profile_uuid |
Stop running session cleanly |
Example: Launch & Stop a Session
# Inspect bridge status & active entitlement
curl -s http://127.0.0.1:50819/api/v1/bridge/status
# Launch a profile with automation gateway + initial URL
curl -s -X POST http://127.0.0.1:50819/api/v1/browser/sessions \
-H "Content-Type: application/json" \
-d '{
"profile_uuid": "YOUR_PROFILE_UUID",
"initial_url": "https://example.com"
}'
# Close the session
curl -s -X DELETE http://127.0.0.1:50819/api/v1/browser/sessions/YOUR_PROFILE_UUID
4. Playwright & CDP Gateway
When launching a session via POST /api/v1/browser/sessions, MaskMatrix returns a loopback ws://127.0.0.1:<port>/<token> URL backed by a constant-time token-verified WebSocket-to-pipe bridge (--remote-debugging-pipe). Connect directly with Playwright:
import { chromium } from "playwright";
const res = await fetch("http://127.0.0.1:50819/api/v1/browser/sessions", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ profile_uuid: "YOUR_PROFILE_UUID" }),
});
const { ws_endpoint } = await res.json();
const browser = await chromium.connectOverCDP(ws_endpoint);
const context = browser.contexts()[0];
const page = context.pages()[0] ?? (await context.newPage());
await page.goto("https://example.com");
5. MCP Server Integration
MaskMatrix exposes a stateless JSON-RPC 2.0 MCP endpoint at http://127.0.0.1:50819/mcp when enabled in the Automation tab. Write actions queue a foreground interactive approval card in the desktop UI before launching or closing any browser session.
{
"mcpServers": {
"maskmatrix": {
"url": "http://127.0.0.1:50819/mcp"
}
}
}
Exposed MCP tools: browser_list_profiles, browser_launch_session, and browser_close_session.
6. Security & Anti-Detect Guarantees
- No proxy credentials in CLI arguments: Chromium connects exclusively to a per-profile Rust loopback port on
127.0.0.1. Upstream passwords stay inside0600-protected storage. - No bad Chromium infobar flags: MaskMatrix avoids flagged resolver overrides, using remote DNS over SOCKS5 paired with hardened
Default/Preferences(dns_prefetching.enabled = false,disable_non_proxied_udp). - DNS-rebinding protection: Both
local-apiand the CDP gateway enforce strict loopbackHostand absent-Originchecks, rejecting malicious web scripts with HTTP403.