// SDK
Koko SDK,
automate in code.
Connect over CDP, automate pages, and extract agent-friendly state — Browser, Context, Page, Locator APIs plus Koko-only helpers like markdown() and semanticTree().
// SDK
Koko SDK,
automate in code.
Connect over CDP, automate pages, and extract agent-friendly state — without pulling in a full Chromium stack.
Browser automation API
Browser, Context, Page, Locator, and wait strategies for scripts and test suites.
Koko-only agent APIs
markdown(), semanticTree(), detectForms(), searchGoogle(), and backendNodeId handles.
Direct CDP transport
Lightweight WebSocket CDP client — no third-party browser driver stack.
CLI helpers
koko-fetch and CDP probes for quick extraction and regression testing.
1"text-primary">import { Browser } "text-primary">from "koko-sdk";23"text-primary">const browser = "text-primary">await Browser.connect(4 "http://127.0.0.1:9222"5);6"text-primary">const page = "text-primary">await browser.newPage();// DOCUMENTATION
SDK guides and reference
Start with quickstart, then explore MCP agent tools and the full API surface.
Install and connect in minutes
npm install koko-sdk — launch or connect to a Koko CDP server and run your first automation script.