Skip to article
KipbyHandbookOpen Kipby ↗
Developers

Desktop protocol and Python client

Availability

Available in Windows tester 0.31.0. The signed release passed an installed upgrade from 0.30.0 on 25 November 2026. The public catalogue API at https://kipby.com/api/v1 works independently of the desktop app.

Installed Windows check

An external process read Billy Frontier v1.1.1 from the managed library and set a text panel for that edition. The panel appeared in the running game’s overlay Overview and disappeared after the client cleared it. The app denied a bad token, denied calls outside each grant’s scope, and rejected both connections after revocation.

Connect a tool

Sign into the desktop app. If the browser does not appear, use Copy sign-in link and paste it into your usual browser on the same PC. Approve the connection there and return to Kipby. For a mod manager, open Settings → Storage & backup → Mod manager connections. For an overlay plugin, open the edition’s Overview → Before you play → Overlay plugin connection. Choose Create session connection and paste the private connection details into the tool. Each grant has one permission. A plugin that needs both asks for two separately. Up to eight grants can be active. Never send connection details to a website or include them in a bug report.

Wire protocol

Use a native TCP client to connect to the supplied IPv4 loopback address and port. On each connection send one UTF-8 JSON object ending in LF. Read one JSON response line and close. The request limit is 32 KiB and the frame must arrive within two seconds. Every request includes the supplied token. Unexpected fields and malformed frames return {"error":"invalid_request"}. A method outside the grant returns {"error":"method_unavailable"}. Recover from a closed connection by prompting for new connection details. Each tool should keep its token in process memory.

Read games and versions

Send {"token":"…","method":"library.list"}. The response has an items array and nextAfter. Each item contains id, title, kind and version. For managed entries, version is the installed package tag, including after rollback. For imported executables, version is the user’s version label, or null when unspecified. The response describes registered desktop installations. Favourites and browser-only library saves do not create executable installations. Installation paths, arguments, save data and account identifiers stay private.

The app returns up to 100 records ordered by edition ID. Send the returned cursor in an after field on the next request and stop when nextAfter is null. Refresh on demand. Changes to the library can occur between pages. Use the public catalogue for release metadata. A custom shortcut ID may have no corresponding public edition.

Display a panel

Use the grant for the specific edition. Send {"token":"…","method":"overlay.set","title":"Load order","body":"Three enabled mods.\nLast checked just now."}. Supply plain text, up to 100 Unicode characters for title and 4,000 for body. Success returns {"ok":true}. Invalid text returns {"error":"invalid_panel"}. Repeated calls replace this plugin’s single panel. Send {"token":"…","method":"overlay.clear"} to remove it. Other plugins’ panels remain independent.

Launch the edition through Kipby, open its overlay and choose Overview. The overlay refreshes about every ten seconds. The panel is in memory and scoped to its edition and login session. Closing the app, signing out or disconnecting the tool ends the grant. Settings → Storage & backup → Disconnect all tools revokes every connection. An already visible overview refreshes on its next poll.

Python example

Save as kipby-tool.py. Python 3 requires only the standard library. Run it in a terminal, paste the connection when prompted, and select the matching mode by running python kipby-tool.py library or python kipby-tool.py overlay.

import getpass
import json
import socket
import sys

connection = json.loads(getpass.getpass("Paste Kipby connection: "))
if connection["apiVersion"] != 1 or connection["host"] != "127.0.0.1":
    raise ValueError("Unsupported Kipby connection")

def call(method, **fields):
    with socket.create_connection(("127.0.0.1", connection["port"]), timeout=5) as sock:
        with sock.makefile("rb") as reader:
            request = {"token": connection["token"], "method": method, **fields}
            sock.sendall((json.dumps(request) + "\n").encode("utf-8"))
            result = json.loads(reader.readline(1024 * 1024))
    if "error" in result:
        raise RuntimeError(result["error"])
    return result

if sys.argv[1] == "library":
    cursor = {}
    while True:
        page = call("library.list", **cursor)
        for game in page["items"]:
            print(game["title"], game["version"] or "(unknown)", game["kind"])
        if page["nextAfter"] is None:
            break
        cursor = {"after": page["nextAfter"]}
elif sys.argv[1] == "overlay":
    print(call("overlay.set", title="Plugin connected", body="This message came from a local Python process."))