Kortix chrome

From kortix-ai/CompanyOS · View interactive version

Kortix chrome is an AI agent skill from the GitHub repository kortix-ai/CompanyOS. Kortix in Chrome: the Chrome extension that connects a user's own browser to Kortix so a session's sandbox drives it over CDP (`kortix chrome use` + `agent-browser --cdp 9333`). Load WHENEVER you touch apps/chrome-extension, apps/api/src/chrome, the kortixd browser bridge, `kortix browser` CLI, the

How to use this skill

Skill file

Kortix in Chrome

A user installs the Kortix Chrome extension and signs in. From then on, any

of their sessions can drive that browser, with its logins, from the cloud

sandbox. The agent runs kortix chrome use, then plain `agent-browser --cdp

9333 …` commands. The browser is a separate product from the agent tunnel

("Your computer"). It shares no code path, credential or UI with it.

The wire contract is references/protocol.md. Read it

before you change any part. A wire change edits that file in the same commit.

Where the code lives

| Part | Path |

|---|---|

| Extension (MV3) | apps/chrome-extension |

| API: control socket, REST, attach | apps/api/src/chrome/ |

| Tables | chrome_connections, chrome_grants, chrome_attachments |

| Sandbox bridge + CDP endpoint | apps/kortix-sandbox-agent-server/src/**/chrome* |

| CLI | apps/cli/src/commands/chrome.ts |

| Agent skill (served to sessions) | packages/starter/templates/managed/skills/kortix-chrome/SKILL.md |

| SDK hooks | packages/sdk/src/**/chrome* (useChromeConnections, useUpdateChromeConnection, useDeleteChromeConnection) |

| Web | apps/web/src/features/chrome/, packages/ui/src/internal/chrome/ (connect steps, Add to Chrome), Apps and extensions card, promo slide project-chrome-nav.tsx, settings tab chrome (/settings/chrome) |

How one action travels

  1. The agent runs kortix chrome use. The CLI calls kortixd

POST /kortix/chrome/attach.

  1. kortixd mints a ticket and calls POST /v1/chrome/attach with the session

credential.

  1. The API picks the owner's browser, applies the access mode, and sends an

attach frame down the extension's control socket. Another replica holds

the socket? Then the frame goes through pg_notify('kortix_chrome_cmd').

  1. The extension asks for consent if needed. It opens a tab group

Kortix · <session title> and dials the bridge through the existing preview

proxy /v1/p/<sandbox>/8000/kortix/chrome/bridge.

  1. kortixd serves the bridge as a CDP endpoint on 127.0.0.1:9333. The

extension's shim maps Target.* to chrome.tabs and forwards every page

command to chrome.debugger.

The preview proxy is the rendezvous. It already pipes a long-lived WebSocket

from any API replica into the sandbox, so no replica owns the CDP stream.

Build and load the extension

cd apps/chrome-extension
bun run build          # → dist/, ID gefbbnjgoiljpbnalgafbhbfdhikgjek (manifest key)
bun test               # shim + auth unit tests
bun run scripts/smoke.ts   # headless Chromium + real agent-browser through the shim

or Chromium (~/Library/Caches/ms-playwright/chromium-*/…).

apps/chrome-extension/dist.

(http://localhost:<api port> for a worktree, https://dev-api.kortix.com for dev).

Verify end to end

  1. Start the worktree stack (pnpm worktree start <slug>), with the tunnel on,

so cloud sandboxes reach the local API.

  1. Load the built extension in a headless Chromium. Sign in through the real

OAuth consent page on the local web app.

  1. Start a real session. In the sandbox, run kortix chrome use and

agent-browser --cdp 9333 open https://example.com then snapshot -i.

  1. Assert:

A sandbox runs the new kortixd and CLI only after the API serves them

(/v1/runtime-assets). They converge on boot and at turn end.

Publish to the Chrome Web Store

The item is public: https://chromewebstore.google.com/detail/gefbbnjgoiljpbnalgafbhbfdhikgjek,

publisher "Kortix" (non-trader). Version 1.0.1 went live on 2026-11-21, and the web, the API and

the CLI offer Kortix in Chrome to every project from the same date. Every field of the dashboard

(listing text, permission justifications, data disclosures, test instructions, assets) is in

references/store-listing.md.

An approved version goes live at once unless deferred publishing is on. Every upload goes

through review again.

  1. Raise version in src/manifest.json. The store accepts only a version higher than the last upload.
  2. bun run package → release/kortix-chrome-<version>.zip: the store build (kortix.com only)

without the manifest key, which the store rejects.

  1. Dashboard → Package → Upload new package, then Submit for review.
  2. Claude in Chrome cannot read or click the dashboard: Chrome blocks every extension on Web Store

pages ("The extensions gallery cannot be scripted"). A person clicks; the agent prepares the fields.

  1. The store fetches the Homepage and Support URLs before it allows a submit. A 404 blocks it

("Support URL is not reachable"). The listing uses https://kortix.com/support.

  1. Reviewers sign in at kortix.com, so prod must serve /v1/chrome/connections (401, not 404).

deploy-prod.yml sets KORTIX_CHROME_ENABLED=true.

Give the reviewer the prod reviewer account in the Test instructions tab

(references/store-listing.md).

  1. A brand-new item needs key.pem at the zip root on its first upload only:

dotenvx get BROWSER_EXTENSION_KEY_PEM_B64 -f apps/api/.env | base64 -d > key.pem.

Availability: one deployment switch, no feature flag

chrome graduated from the feature flags on 2026-11-24. No project can turn Kortix in Chrome

off. KORTIX_CHROME_ENABLED on the API is the only switch: dev, staging and prod set it, a

self-hosted server does not (/v1/chrome/* answers 404 there).

(apps/api/src/projects/lib/feature-flag-env.ts). kortixd withholds the kortix-chrome skill

(kortix-feature-flag: chrome) and the CLI hides kortix chrome without it.

Outside a box, the CLI reads it there.

(always / ask / off), and press Stop or Alt+Shift+K.

Extension surfaces

Troubleshooting

| Symptom | Cause | Fix |

|---|---|---|

| chrome_offline | Chrome closed, or the worker lost its socket | Open Chrome; the extension reconnects in 1–30 s |

| chrome_denied after Stop | Stop writes a deny grant for that session | The agent asks the user, then kortix chrome use --ask |

| 1011 No browser attached on 9333 | No bridge for this sandbox | Run kortix chrome use first |

| chrome_dial_failed | The extension could not open the bridge (token, proxy, sandbox stopped) | Check the extension worker console and the API preview-proxy logs |

| Commands hang on a background tab screenshot | The tab is not painted | The shim activates the tab before Page.captureScreenshot; an occluded or minimized window can still stall |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.