Add an extension
Two ways, pick one: pass a store detail-page URL and let the client download it, or pass an absolute path to a local package the client reads directly. Either way the extension lands in the global extension library, where profiles can enable it.
Definition: POST · Checked on 2026-11-19.
Request
POST /api/addCrxUse the base URL and api-key shown on the client API screen. All examples use 9000 only as a placeholder port; see Overview for authentication.
JSON body
| Field | Type | Required | Description |
|---|---|---|---|
storeUrl | string | No | HTTPS detail URL from Chrome Web Store or Edge Add-ons; the extension ID has 32 lowercase a-p characters |
filePath | string | No | Absolute path to a local .crx / .zip package; only callable from the local machine (127.0.0.1 / ::1) |
When both are sent, filePath wins. Sending neither returns HTTP 400 with Missing required parameter: storeUrl or filePath.
cURL examples
Install from a store:
curl --request POST 'http://127.0.0.1:9000/api/addCrx' \
--header 'api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"storeUrl": "https://chromewebstore.google.com/detail/violentmonkey/jinjaccalgkegednnccohejagnlnfdag"
}'Install a local package (must run on the machine hosting the client):
curl --request POST 'http://127.0.0.1:9000/api/addCrx' \
--header 'api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"filePath": "D:/downloads/violentmonkey.crx"
}'Response
{
"success": true
}Response fields
| Field | Type | Usage |
|---|---|---|
success | boolean | Request succeeded; does not imply every item was written |
Limits for local package installs
| Item | Limit |
|---|---|
| Path | Must be absolute; UNC (\\server\share) and device paths (\\?\, \\.\) are rejected |
| Type | .crx / .zip only; must be a regular file — no directories, symlinks or shortcuts |
| Size | Single file ≤ 200 MB and non-empty |
| Header | .crx must start with Cr24, .zip with PK |
| ZIP content | ≤ 5000 entries, ≤ 500 MB unpacked, no .. or absolute entry names |
A .zip containing exactly one .crx (the usual shape of a store download) is unpacked automatically and installed as a CRX.
Notes
- Store installs accept only Chrome Web Store or Edge Add-ons HTTPS detail pages with a valid 32-character extension ID. Downloading uses the Electron-bundled Chromium version and still needs network access to the store.
- Local installs are restricted to loopback callers: the server listens on
0.0.0.0, so non-local requests get HTTP403, preventing LAN peers from triggering local file reads. - Common failures, all HTTP
400with a display-readyerrorstring:CRX_IMPORT_INVALID_PATH,CRX_IMPORT_UNSUPPORTED_TYPE,CRX_IMPORT_NOT_FOUND,CRX_IMPORT_INVALID_FORMAT,CRX_IMPORT_TOO_LARGE. - A failed store download or install step returns HTTP
500with an error such as下载失败:…or安装失败:….
On failure check both the HTTP status and the error message; see Errors.



