KryptixDocs
07 · Local API

Local API

The Kryptix desktop app runs a small HTTP server on your own machine. Anything you can do in the app — create profiles, assign proxies, launch and stop them, import cookies, run RPA flows — you can do from a script. Launching a profile for automation also gives you a Chrome DevTools Protocol endpoint for Puppeteer, Playwright or Selenium.

Available on every planREST over HTTP · JSONCDP endpoint per profile10 min readUpdated November 2026
On this page

Basics#

  • Base URL: http://127.0.0.1:8777. The port can be changed in Settings → Local API; the app must be running and signed in.
  • Local only. The server listens on the loopback interface and refuses requests that do not come from your machine. It is not reachable from the network.
  • Format. Send JSON with Content-Type: application/json. Most endpoints are POST; a few read-only ones are GET. Responses are JSON.
  • Profile IDs are the id strings returned by /api/state and /api/create.

Authentication#

By default the API trusts any program running on your computer. To require a key, open Settings → Local API, generate a key, save, and send it with every request as the X-Api-Key header (or as a ?key= query parameter). Requests without a valid key get 401.

curl http://127.0.0.1:8777/api/state -H "X-Api-Key: YOUR_KEY"

Profiles#

GET/api/state

Everything the app knows: profiles (with their persona summary, folder, proxy and running state), folders and the option lists used by the profile editor.

Response

{
  "profiles": [
    { "id": "7f3c…", "name": "acme-07", "folder": "general", "proxy": "socks5://user:pass@host:1080",
      "running": false, "tags": ["ads"], "notes": "",
      "summary": { "os": "Windows 11", "gpu": "NVIDIA GeForce RTX 3060", "cpu": 8, "ram": 16,
                   "locale": "de", "timezone": "Europe/Berlin", "screen": "1920x1080", "webrtc": "proxy-only" },
      "profile": { "...": "full persona JSON" } }
  ],
  "folders": [ { "id": "general", "name": "General" } ],
  "options": { "osFamilies": [ "..." ], "regions": [ "..." ], "screens": [ "..." ] }
}
POST/api/create

Create one or more profiles. Leave fields empty and set randomizeDevice to get a fresh, consistent persona per profile. The language, timezone and location always follow an IP: the exit IP of the proxy when you pass one, otherwise your own public IP (matchIp). When matchIp is omitted the app uses the setting Always create new profiles to match the IP (on by default), so a plain {"count": 1} request is matched to your IP, just like a profile created in the app. Send "matchIp": false to get a random region instead.

{
  "folder": "general",            // optional folder id
  "name": "acme",                 // optional; bulk creates "acme 1", "acme 2", …
  "count": 3,                     // 1–200
  "matchIp": true,                // optional; omitted = follow the Settings toggle (on by default). Without a proxy: your own public IP
  "proxy": "socks5://user:pass@host:1080",   // optional shortcut for fields.proxy; the profile always follows the proxy's exit IP
  "randomizeDevice": true,        // new persona per profile (ignores device fields below)
  "region": "de",                 // used when matchIp is false; see options.regions
  "fields": {
    "osFamily": "windows",        // windows | windows10 | macos | linux
    "platformVersion": "19.0.0",  // optional, see options.windows / macVersions / linuxVersions
    "webglRenderer": "",          // optional, exact renderer string from /api/gpus
    "cores": 8, "memory": 16,     // optional
    "resolution": "1920x1080",
    "proxy": "socks5://user:pass@host:1080",   // http://, https:// or socks5://; host:port:user:pass also accepted
    "udpProxy": false,            // route WebRTC / QUIC UDP through a UDP-capable SOCKS5 proxy
    "canvas": "real", "audio": "real", "clientRects": "real",   // real | noise | off
    "webrtc": "proxy-only",       // real | proxy-only | proxy-public-ip
    "tags": ["ads", "eu"]
  }
}

Response

{ "created": ["7f3c…", "a91e…", "c0d2…"], "warning": "",
  "matchIp": true, "ipSource": "real-ip" }

ipSource tells you what the new profiles were matched to: proxy (exit IP of the proxy), proxy-pending (the proxy did not answer yet; the profile is fixed automatically the first time it opens), real-ip (your own public IP), random (matchIp is false and there is no proxy) or failed (your public IP could not be determined, a random region was used and warning says so). Check it, or call /api/ipinfo first, when a script must never end up with a profile that is not tied to the intended IP.

POST/api/update

Change a profile's persona fields and/or metadata. Only the keys you send are changed; the fingerprint seed is kept.

{ "id": "7f3c…",
  "fields": { "proxy": "http://user:pass@host:8080", "resolution": "1366x768" },
  "meta":   { "name": "acme-07", "folder": "general", "tags": ["ads"], "notes": "", "proxy": "http://user:pass@host:8080" } }

Response

{ "ok": true }
POST/api/clone

Duplicate a profile with a new identity (new id, new fingerprint seed). Cookies are not copied.

{ "id": "7f3c…" }

Response

{ "id": "e5b7…" }
POST/api/delete

Delete a profile and all of its data. Irreversible.

{ "id": "7f3c…" }

Response

{ "ok": true }
GET/api/gpus?os=windows&mode=smart

Renderer strings you can put into fields.webglRenderer. os: windows | windows10 | macos | linux (Linux also needs &pv= kernel version from options.linuxVersions). mode: smart (consistent with this computer) | normal (whole list).

Response

{ "os": "windows", "mode": "smart", "gpus": [ { "vendor": "Google Inc. (NVIDIA)", "renderer": "ANGLE (NVIDIA, …)", "name": "…" } ] }

Launch & stop#

POST/api/launch

Open a profile window (no automation endpoint). Returns immediately. The optional launch options let you open it full screen and add command-line switches.

{ "id": "7f3c…" }

// with launch options (all optional)
{ "id": "7f3c…",
  "window": "maximized",       // or "fullscreen"
  "args": ["--lang=de"],       // extra switches
  "urls": ["https://example.com"] }

Response

{ "status": "acildi" }

status is acildi when the browser was started and zaten acik when the profile was already running. When you sent launch options the response also has an options object (see below).

Launch options#

Every call that opens a profile (/api/launch, /api/launchmany, /api/open, /api/automation/start and /api/rpa/motor/open) accepts the same optional fields. Without them nothing changes.

FieldWhat it does
window"maximized" makes the window fill the screen the profile claims to have, not your real monitor, so a page never sees a window larger than its own screen. "fullscreen" is real F11 full screen: the window covers the whole monitor, so a page can notice it if your monitor is bigger than the profile's screen. "normal" or leaving it out keeps the usual window. Shortcuts: "maximized": true and "fullscreen": true. Mobile profiles keep their phone-shaped window.
argsA list of Chromium switches (or one string separated by spaces), each written --switch or --switch=value. They are added after the switches Kryptix sets itself, so for the same switch yours wins, and --enable-features / --disable-features are merged with ours.
urlsOnly on /api/launch and /api/launchmany: http(s) pages to open instead of the folder's start pages. /api/open takes a single url instead.

For safety these switches are never applied and come back in ignoredArgs: anything that changes the proxy (--proxy-*, --no-proxy-server), the profile folder (--user-data-dir) or Kryptix's own channels (--kryptix-*, --staygold-*). Set a proxy on the profile itself (fields.proxy) instead. In RPA mode the DevTools switches (--remote-debugging-*, --remote-allow-origins, --enable-automation) are dropped as well.

{ "status": "acildi",
  "options": { "applied": true, "window": "maximized",
               "args": ["--lang=de"], "urls": ["https://example.com"],
               "ignoredArgs": [ { "arg": "--proxy-server=direct://", "reason": "blocked" } ] } }

reason is blocked (see above) or invalid (not written as --switch[=value]). Options only take effect when the call really starts the browser: for a profile that is already running nothing is changed and applied is false. An unknown window value or an args that is not a list or a string returns 400 and opens nothing.

POST/api/launchmany

Open several profiles at once. Launch options, if you send them, apply to every profile in the list.

{ "ids": ["7f3c…", "a91e…"], "window": "fullscreen", "args": ["--mute-audio"] }

Response

{ "results": [ { "id": "7f3c…", "status": "acildi", "optionsApplied": true },
               { "id": "a91e…", "status": "zaten acik", "optionsApplied": false } ],
  "options": { "window": "fullscreen", "args": ["--mute-audio"], "urls": [], "ignoredArgs": [] } }

A profile that could not be opened has "error": "…" instead of a status. optionsApplied and options are only present when you sent launch options.

POST/api/stop

Close a profile. force kills it if it does not close gracefully.

{ "id": "7f3c…", "force": false }

Response

{ "status": "kapatildi" }
POST/api/stopmany

Close several profiles.

{ "ids": ["7f3c…", "a91e…"] }

Response

{ "ok": true, "count": 2 }
POST/api/stopall

Close every running profile.

POST/api/open

Open a URL in a profile. If the profile is running the page opens as a new tab; if it is closed the profile is started with that page and the launch options apply.

{ "id": "7f3c…", "url": "https://example.com", "window": "maximized" }

Response

{ "status": "sekme acildi" }

status is sekme acildi (new tab in the running profile) or acildi (profile started).

Automation (CDP)#

Start a profile through /api/automation/start and attach your own tool to the returned Chrome DevTools Protocol endpoint. Fingerprint, proxy and leak protection are all applied by Kryptix before your code connects, so the session looks exactly like one opened by hand. Never start the browser executable yourself.

POST/api/automation/start

Launch the profile with remote debugging enabled and wait for the endpoint (up to ~12 s). If the profile is already running with CDP, the existing endpoint is returned. You can also pass the launch options window and args (for example full screen, or --lang=de); the response then has an options object, and options.applied is false when the profile was already running and nothing could be changed.

{ "id": "7f3c…" }

// with launch options
{ "id": "7f3c…", "window": "maximized", "args": ["--lang=de"] }

Response

{ "ok": true, "status": "started", "port": 51234,
  "browserUrl": "http://127.0.0.1:51234",
  "webSocketDebuggerUrl": "ws://127.0.0.1:51234/devtools/browser/0c3a…" }
GET/api/automation/endpoint?id=7f3c…

Endpoint of a profile that is already running with CDP.

Response

{ "ok": true, "port": 51234, "browserUrl": "http://127.0.0.1:51234", "webSocketDebuggerUrl": "ws://…" }

Proxies#

POST/api/proxy/test

Test a proxy and get its exit IP. HTTP, HTTPS and SOCKS5 with authentication are supported.

{ "proxy": "socks5://user:pass@host:1080" }

Response

{ "ok": true, "scheme": "socks5", "query": "203.0.113.7", "country": "Germany", "countryCode": "DE",
  "city": "Frankfurt am Main", "isp": "…", "proxy": true, "hosting": true, "mobile": false }
POST/api/proxy/assign

Assign a list of proxies to a list of profiles, in order (if there are fewer proxies than profiles they repeat). Lines without a scheme get defaultScheme.

{ "ids": ["7f3c…", "a91e…"], "proxies": ["host:1080:user:pass", "socks5://user:pass@host2:1080"], "defaultScheme": "socks5" }
POST/api/ipinfo

Exit IP, country and timezone of a proxy (or of your own connection when proxy is omitted).

{ "proxy": "socks5://user:pass@host:1080" }

Cookies#

POST/api/cookies/get

Read the cookies stored in a profile, already decrypted, so a script can reuse a login or keep a backup. It also works while the profile is open, but Chromium writes cookies to disk with a short delay (typically up to about 30 seconds), so a cookie that was set a moment ago may not be there yet: wait a little, or close the profile first. The running field of the response tells you whether the profile was open.

{
  "id": "7f3c…",                    // required
  "domain": "x.com",                // optional; text or list
  "names": ["auth_token", "ct0"],   // optional; exact cookie names
  "format": "json"                  // json (default) | header | netscape
}

Response with "format": "json"

{ "ok": true, "id": "7f3c…", "name": "acme", "running": false,
  "format": "json", "count": 2,
  "cookies": [
    { "domain": ".x.com", "name": "auth_token", "value": "…",
      "path": "/", "expires": 1800000000, "session": false,
      "secure": true, "httpOnly": true },
    { "domain": "mobile.x.com", "name": "lang", "value": "en",
      "path": "/i", "expires": null, "session": true,
      "secure": false, "httpOnly": false }
  ] }

domain matches that site and its subdomains: x.com finds .x.com and mobile.x.com, but not notx.com. expires is a Unix time in seconds, or null for a session cookie. With "format": "header" the response has a header string such as auth_token=…; ct0=…, ready to send as a Cookie header (add domain so cookies of different sites are not mixed). With "format": "netscape" it has a text string in the cookies.txt format. count is always the number of matching cookies; a profile that has never been opened simply returns 0.

The status is 400 when id or format is missing or invalid and 404 when the profile does not exist.

Handle with care: the values are live login secrets. The API only answers programs on this computer; if other software runs here, set an API key in Settings → Local API (see Authentication).
GET/api/cookies/export?id=7f3c…

Download the profile's cookies as a cookies.txt file (Netscape format, the same file as Export cookies in the app; the file name comes from the profile name). Pass ?ids=a,b,c instead to get one zip with a text file per profile. Use /api/cookies/get above when you want the cookies as data instead of a file.

curl -s "http://127.0.0.1:8777/api/cookies/export?id=7f3c…" \
  -H "X-Api-Key: $KEY" -o cookies.txt
POST/api/cookies/import

Create one profile per cookie file (Netscape cookies.txt or JSON export). The profile is named after the file; the other fields work exactly like /api/create.

{ "files": [ { "name": "acme-07.txt", "text": "# Netscape HTTP Cookie File\n.example.com\tTRUE\t/\tTRUE\t1800000000\tsid\tabc…" } ],
  "folder": "general", "matchIp": true, "randomizeDevice": true, "fields": { "proxy": "socks5://…" } }

Response

{ "results": [ { "ok": true, "id": "b7a0…", "name": "acme-07", "cookies": 42 } ] }

RPA flows (Pro)#

Flows are built in the app's RPA editor; see the RPA guide for steps, selectors and run options. These endpoints list and run saved flows.

GET/api/rpa/flows

List saved flows.

Response

[ { "id": "signup-flow", "name": "Sign-up flow", "steps": 14, "updatedAt": "2026-10-21T10:00:00" } ]
POST/api/rpa/run

Run a saved flow (id) or an inline flow object (flow) on one or more profiles. Profiles that are closed are opened in RPA mode. Optional: concurrency, startDelay (seconds between starts) and rows (one data row per profile, e.g. from a spreadsheet).

{ "id": "signup-flow", "profileIds": ["7f3c…", "a91e…", "c0d2…"],
  "concurrency": 3, "startDelay": 5,
  "rows": [ { "email": "[email protected]", "name": "Anna" }, { "email": "[email protected]", "name": "Ben" } ] }

Response

{ "ok": true, "jobId": "j_20261021_…", "items": 3, "warnings": [] }
GET/api/rpa/jobs

Running and finished jobs with per-profile progress.

POST/api/rpa/job/cancel

Cancel a running job.

{ "id": "j_20261021_…", "item": null }

Script the RPA engine (Pro)#

Want Playwright-style scripting without CDP? Two single-file clients, kryptix_rpa.py (Python 3.8+) and kryptix_rpa.mjs (Node 16+), drive the built-in RPA engine through three endpoints. The browser is opened with no DevTools port and nothing is injected into pages. The clients wrap them in plain functions such as kryptix_open, kryptix_click and kryptix_fill; see the RPA API guide for the full list.

from kryptix_rpa import *

kryptix_open("My profile")
kryptix_goto("https://example.com")
kryptix_click("text=More information")
kryptix_fill("input[name=q]", "hello world")
kryptix_press_key("Enter")
print(kryptix_title(), kryptix_url())
kryptix_close()
POST/api/rpa/motor/open

Open a profile in RPA mode (or attach if it already is) and wait until the engine connects. Body: profileId, plus the optional launch options window and args (DevTools switches are dropped because RPA mode has no DevTools port). Returns { "ok": true, "connected": true }, with an options object when you sent launch options (applied is false if the profile was already open and connected).

POST/api/rpa/motor/cmd

Send one engine command (click, type, find, navigate, …). Body: profileId, cmd and the command's parameters. Returns { "ok": true, "data": { … } }, or { "ok": false, "reason": "…", "error": "…" }.

POST/api/rpa/motor/status

Is the engine of this profile connected? Body: profileId.

Examples#

curl

# create 2 profiles with a proxy, persona from the exit IP
curl -s http://127.0.0.1:8777/api/create -H "Content-Type: application/json" -H "X-Api-Key: $KEY" \
  -d '{"count":2,"matchIp":true,"randomizeDevice":true,"fields":{"proxy":"socks5://user:pass@host:1080"}}'

# start one for automation and read the CDP endpoint
curl -s http://127.0.0.1:8777/api/automation/start -H "Content-Type: application/json" -H "X-Api-Key: $KEY" -d '{"id":"7f3c…"}'

Read a profile's cookies

# curl: the cookies of one site, as a Cookie header
curl -s http://127.0.0.1:8777/api/cookies/get -H "Content-Type: application/json" -H "X-Api-Key: $KEY" \
  -d '{"id":"7f3c…","domain":"x.com","format":"header"}'

# Python: reuse the login in a plain HTTP client
import requests
API = "http://127.0.0.1:8777"
H = {"X-Api-Key": "YOUR_KEY"}          # only if you set a key in Settings
r = requests.post(f"{API}/api/cookies/get", json={"id": pid, "domain": "x.com"}, headers=H).json()
jar = {c["name"]: c["value"] for c in r["cookies"]}
print(requests.get("https://x.com/home", cookies=jar).status_code)

Open a profile full screen with extra switches

curl -s http://127.0.0.1:8777/api/launch -H "Content-Type: application/json" -H "X-Api-Key: $KEY" \
  -d '{"id":"7f3c…","window":"maximized","args":["--lang=de","--mute-audio"],"urls":["https://example.com"]}'

# the same with CDP automation
curl -s http://127.0.0.1:8777/api/automation/start -H "Content-Type: application/json" -H "X-Api-Key: $KEY" \
  -d '{"id":"7f3c…","window":"fullscreen"}'

Python + Playwright

import requests
from playwright.sync_api import sync_playwright

API = "http://127.0.0.1:8777"
H = {"X-Api-Key": "YOUR_KEY"}

pid = requests.post(f"{API}/api/create", json={
    "count": 1, "matchIp": True, "randomizeDevice": True,
    "fields": {"proxy": "socks5://user:pass@host:1080"}}, headers=H).json()["created"][0]

ep = requests.post(f"{API}/api/automation/start", json={"id": pid}, headers=H).json()

with sync_playwright() as p:
    browser = p.chromium.connect_over_cdp(ep["browserUrl"])
    page = browser.contexts[0].pages[0]
    page.goto("https://example.com")
    print(page.title())

requests.post(f"{API}/api/stop", json={"id": pid}, headers=H)

Node + Puppeteer

import puppeteer from "puppeteer-core";

const API = "http://127.0.0.1:8777", H = { "Content-Type": "application/json", "X-Api-Key": "YOUR_KEY" };
const post = (p, b) => fetch(API + p, { method: "POST", headers: H, body: JSON.stringify(b) }).then(r => r.json());

const { created: [id] } = await post("/api/create", { count: 1, randomizeDevice: true, matchIp: true });
const ep = await post("/api/automation/start", { id });
const browser = await puppeteer.connect({ browserWSEndpoint: ep.webSocketDebuggerUrl });
const page = (await browser.pages())[0];
await page.goto("https://example.com");
browser.disconnect();
await post("/api/stop", { id });

Errors#

StatusMeaning
400A required parameter is missing or invalid (for example id on the cookie endpoints).
401Missing or wrong X-Api-Key (only when a key is set in Settings).
403Request did not come from this machine, or was sent by a web page from another origin.
404Unknown endpoint, or (on the cookie endpoints) a profile id that does not exist.
500The action failed; the JSON body has an error message (for example a profile that does not exist, or a plan without RPA).
Automation endpoints are available on every plan. Running RPA flows (/api/rpa/*) requires the Pro plan; on other plans the request returns an error explaining that.