Reference

Local API

The HTTP API that PassKeel's background service runs on your computer: finding it, API keys, a first script, errors, events and limits.

PassKeel’s background service runs an HTTP API on your own computer. The desktop app uses the same API, so anything you can do in the app, a script can do too: create and change profiles, open and close them, manage proxies, run recordings, and connect Puppeteer, Playwright or Selenium to an open profile.

This page explains the concepts. For every endpoint with its parameters, see the endpoint reference. If you work in Python or Node.js, the SDKs wrap all of this for you.

Where the API listens

  • Address: http://127.0.0.1:50325 by default. The API listens on the loopback address only, so other computers on your network can’t reach it.
  • Finding the port: open Settings in the app. The API keys section shows the address, for example Local API: http://127.0.0.1:50325. Scripts can also read it from GET /v1/config.
  • When it is available: whenever PassKeel’s background service is running. The service keeps running when you close the PassKeel window; it stops when you choose Quit PassKeel completely from the tray icon.

If your scripts run on a schedule or start before you open the app, turn on Start PassKeel when Windows starts in Settings. The service then starts with Windows and uses little memory while idle.

API keys

Every request needs an API key.

  1. Open Settings and find API keys (“For your scripts and automation tools (Puppeteer, Playwright, Selenium) on this computer”).
  2. Choose New key and give it a Label you will recognise, such as scraper or qa-scripts.
  3. Copy the key. It is shown once: “Copy this key now. It is shown only once.”

Send the key with every request, in either header:

curl -H "X-Api-Key: $PASSKEEL_API_KEY" http://127.0.0.1:50325/v1/profiles
curl -H "Authorization: Bearer $PASSKEEL_API_KEY" http://127.0.0.1:50325/v1/profiles

To revoke a key, choose Delete key next to it. Tools that use it stop working at once.

An API key can open, change and delete every profile your account can reach on this computer. Keep keys out of source control, give each tool its own key so you can revoke one without breaking the others, and delete keys you no longer use. PassKeel stores keys hashed, so a lost key can’t be shown again: make a new one.

Requests from web pages are refused unless they carry a valid key, and requests whose Host header isn’t 127.0.0.1:<port> or localhost:<port> are refused too. This stops websites you visit from talking to the API behind your back.

A first script

The four calls below list profiles, create one, open it and close it again.

# 1. List profiles (search with ?q=, filter with ?status=open, ?groupId=, ?tag=)
curl -H "X-Api-Key: $KEY" "http://127.0.0.1:50325/v1/profiles?view=summary"

# 2. Create a profile. Only the name is required: PassKeel generates a consistent fingerprint.
curl -X POST -H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
  -d '{"name": "Shop DE 0042", "tags": ["shop", "de"]}' \
  http://127.0.0.1:50325/v1/profiles

# 3. Open it
curl -X POST -H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
  -d '{}' http://127.0.0.1:50325/v1/profiles/<id>/open

# 4. Close it (saved, then synced if sync is on)
curl -X POST -H "X-Api-Key: $KEY" http://127.0.0.1:50325/v1/profiles/<id>/close

Opening a profile for automation

POST /v1/profiles/{id}/open starts the profile in its own browser and answers with its process ID, any warnings, timing, and an automation object:

{
  "automation": {
    "browserWSEndpoint": "ws://127.0.0.1:50325/cdp/<session-token>/devtools/browser/<id>",
    "browserURL": "http://127.0.0.1:50325/cdp/<session-token>",
    "webDriverUrl": "http://127.0.0.1:50325/wd/<session-token>"
  }
}
Field Use it with
browserWSEndpoint Puppeteer (puppeteer.connect) and Playwright (chromium.connectOverCDP)
browserURL Other Chrome DevTools Protocol clients. It serves /json/version, /json/list, /json/protocol, /json/new, /json/activate/<id> and /json/close/<id> like Chrome does
webDriverUrl Selenium Remote WebDriver. PassKeel runs the chromedriver that matches the profile’s browser version for you

While the profile stays open, GET /v1/profiles/{id}/automation returns the same object. Step-by-step examples for each tool are in Connect Puppeteer, Playwright or Selenium.

The session token inside these URLs is a credential: anyone who has the URL can drive the profile until it closes. Treat it like the API key.

Open options

Send these in the JSON body of the open request:

Option What it does
headless Opens without a window. The profile presents the same settings as with a window.
skipProxyCheck Skips the proxy check that normally runs before the profile opens.
offline Opens the copy on this computer when the sync server can’t be reached. Use it only if no other computer is using the profile.
keepVisibleWhenCovered Pages keep rendering while the window is covered by other windows (the window synchronizer uses this).
pin The 6-digit account PIN, required for every open of a PIN-locked profile.

What the automation bridge allows

Standard Chrome DevTools Protocol commands for pages and targets work as usual. Commands that would change a profile’s launch settings or close the browser behind PassKeel’s back (such as Browser.close) answer “method not found”, as Chrome does for unknown methods. Always close profiles with POST /v1/profiles/{id}/close so they are saved and synced.

In a team, someone without the Export data and automate permission on a shared profile gets no automation connection for it, and the profile opens without developer tools. See Sharing.

Errors

Errors answer with an HTTP status and a JSON body:

{ "error": { "code": "already_open", "message": "The profile is already open." } }
Status Meaning Common codes
400, 422 The request is invalid bad_request; 422 keel_exited means the browser exited, with its exit code, message and suggested fix
401 Missing or wrong API key
403 Not allowed by your plan, licence or team role, or the profile is locked plan_limit, profile_locked, wrong_pin, team_permission
404 Not found
409 Conflict with the current state already_open, not_open, busy, sync_locked (another computer has the profile open)
429 Too many requests Retry after the number of seconds given
502 The proxy check failed before opening
503 The sync server couldn’t be reached to open a synced profile sync_unreachable

GET /v1/exit-codes lists every browser exit code with its explanation and fix. Each endpoint’s possible codes are listed in the endpoint reference.

Events

GET /v1/events is a WebSocket that streams one JSON event per message: profile status changes, proxy errors and check progress, sync, synchronizer and automation progress, resource use every few seconds, and more. The app’s own screens use the same stream.

ws://127.0.0.1:50325/v1/events?key=<api key>

Browsers can’t set headers on a WebSocket handshake, so the key goes in the key query parameter. Use any WebSocket client (Node.js 22 and later has one built in; in Python, the websockets package).

Limits

  • Rate limit: 3,000 requests a minute per key, with bursts of up to 200. Over the limit, requests answer 429 with the seconds to wait.
  • Plan limits apply as in the app: the number of profiles, automation runs at once, schedules and the window synchronizer. See Plans and limits.
  • The local API, the SDKs and Puppeteer, Playwright and Selenium connections are included in every plan, Free included.

The OpenAPI description

The API describes itself in OpenAPI 3 at http://127.0.0.1:50325/openapi.json. Use it to generate a client in another language, or import it into a tool such as Postman or Insomnia (add the X-Api-Key header). The description of your installed version is always the right one for that version; the endpoint reference on this site is generated from the current release.