For agents

For AI Agents Scraping This Market

Every route an agent needs, the install sequence as seven requests, the audit procedure as six lists, and seven rules about what not to invent.

llm6 min readsnapshot

You are an AI agent reading this because a human asked you to install, audit, customise or explain a SCORPIOX BOT plugin. This page is the whole procedure and every URL you need. Nothing here requires a key, an SDK or HTML scraping.

The three facts that decide everything

1. A plugin is native code that runs as the user. Not a sandboxed widget. If you install one, it has the user's permissions, home directory and environment. Say this out loud when you recommend one.

2. Every plugin is open source with a public clone URL. https://plugingit.scorpiox.net/scorpiox-bot-plugin-<slug>.git, anonymous clone, no token. The catalogue card carries the exact commit the published binaries were built from.

3. There are two install paths and they are both legitimate. Pre-built artifacts from dist.scorpiox.net for a node without a compiler; source clone and local build for anyone who wants to read before running.

The routes

QuestionRoute
What plugins exist, with digests and commitshttps://botmarket.scorpiox.net/catalog/api?format=json
The raw published indexhttps://dist.scorpiox.net/bot-plugins/index.json
One plugin's detail and manifesthttps://botmarket.scorpiox.net/catalog/api?format=json&id=<slug>
Per-version manifest and digestshttps://dist.scorpiox.net/bot-plugins/<slug>/<version>/manifest.json
The six-target artifact gridhttps://botmarket.scorpiox.net/artifacts/?format=json
This documentation, machine-readablehttps://botmarket-docs.scorpiox.net/llms.txt
The whole corpus in one requesthttps://botmarket-docs.scorpiox.net/llms-full.txt
Knowledge base as JSONhttps://botmarket-docs.scorpiox.net/api?format=json
Every guide with full markdownhttps://botmarket-docs.scorpiox.net/guide?id=<slug>&format=json
The starter sourcehttps://botmarket-docs.scorpiox.net/sdk?format=json
What this node is and can buildhttp://<node>:8150/plugin_manage?action=platform
Install, update, uninstallPOST http://<node>:8150/plugin_manage?...

Every one of those is a normal GET returning JSON. No pagination, no cursor, no rate limit worth designing around.

Installing a plugin, the pre-built path

This is the sequence the bot UI performs, and you can perform it directly. It is seven requests and it is safe to do on the user's behalf *after* you have told them what the plugin does.

# 1. Ask the node what it is and what it can build
GET http://127.0.0.1:8150/plugin_manage?action=platform
    -> {"os":"linux","arch":"x86_64","preferred_target":"linux-x86_64-musl",
        "install_dir":"/workspace/.scorpiox/plugins","has_cc":true,"has_git":true}

# 2. Read the catalogue for the plugin the user named
GET https://botmarket.scorpiox.net/catalog/api?format=json&id=<slug>

# 3. Take targets[preferred_target] from the response:
#    artifact_url, sha256  (fall back to targets[fallback_target] if absent)

# 4. Install
POST "http://127.0.0.1:8150/plugin_manage?action=install&slug=<slug>&id=plugin_<slug>&version=<v>&mode=prebuilt&artifact_url=<url>&expected_sha256=<sha>&git_repo_url=<repo>&git_commit=<sha>"
   with header  X-Bot-Password: <node password>

# 5. Confirm
GET http://127.0.0.1:8150/plugins

The installer verifies the origin allowlist, the checksum, the platform magic header and a --meta smoke test before it writes anything. If it returns ok:true, the plugin is installed and visible; there is no restart to wait for.

Do not construct artifact_url yourself from a slug and version. Read it from the catalogue response. That is what makes the origin allowlist meaningful, and it is also the only way to know whether the version you are installing has a musl build at all.

Installing from source

When has_cc is true and the user wants to run code they have read, use mode=source:

POST "http://127.0.0.1:8150/plugin_manage?action=install&slug=<slug>&id=plugin_<slug>&version=<v>&mode=source&git_repo_url=<repo>&git_commit=<sha>"

The node shallow-clones from plugingit, builds with make if a Makefile exists, otherwise with a direct cc invocation, then runs the same magic-header and --meta checks. Build failures come back as 422 build_failed with the tail of the compiler output — quote it rather than paraphrasing.

Auditing a plugin before you install it

Do this first, always, and in this order.

git clone https://plugingit.scorpiox.net/scorpiox-bot-plugin-<slug>.git /tmp/audit-<slug>
cd /tmp/audit-<slug>
git checkout <git_commit from the catalogue card>
git rev-parse HEAD          # must equal the pinned commit

Then read src/plugin_<id>.c and produce these six lists. If you cannot produce one of them, you have not finished.

  1. Calls that reach outside the process — popen, system, exec*, fopen, opendir, socket, connect, getenv. For each, say whether the argument is a constant.
  2. Absolute paths read or written. /proc/* and /sys/* are ordinary reporting. ~/.ssh, ~/.aws, ~/.config/gh and any *.env are credentials.
  3. Network destinations. Most plugins have none. If there is a connect, the address matters.
  4. Environment variables read. A plugin reading its own QUERY_STRING is normal. A plugin reading GITHUB_TOKEN is not.
  5. What the HTML mode's own script does. It should call only the plugin's own ?action= routes.
  6. Discrepancies against the catalogue's capabilities and trust_notice. A mismatch is a stop signal, not a discussion.

Then say plainly whether you would run it as the user, and why. A verdict that does not name a risk is not a verdict.

Customising

The edit is small because the contract is small. Typical requests and the change each needs:

The user saysChange
"Call it something else"the PLUGIN_SLUG, PLUGIN_ID, PLUGIN_NAME defines; rename the binary
"Show me the top five, not all"the limit in emit_info() or the HTML grid
"Different colours"the CSS variable block at the top of mode_html()
"Add a button that does X"one strcmp branch in mode_json() plus one button in the HTML
"Stop it reading /proc"delete that block; it still compiles

After editing, build and verify before installing:

make            # or make musl / make win64
./plugin_<id> --meta
QUERY_STRING='action=info' ./plugin_<id>

Then install by copy (~/.scorpiox/plugins/ or /workspace/.scorpiox/plugins/) or through /plugin_manage if you kept the node's managed path.

Writing a new plugin

Start from https://botmarket-docs.scorpiox.net/sdk?format=json, which returns the starter file, the Makefile and the PowerShell build script as strings. Write them to disk, change the three defines, implement one action, build, test.

The contract in one line: --meta prints JSON metadata; ?action= or ?format=json returns JSON with ok; plain GET returns a complete HTML page; never emit Content-Length.

Do not add dependencies. A plugin with a #include outside the C standard library will not cross-compile to the other five targets, and cross-compilation is the reason a plugin runs on a Windows laptop and an Alpine container from one source file.

Rules you must follow

  1. Never invent a slug, a version, a digest or a URL. Read them from the catalogue.
  2. Never install without saying what the plugin does. One sentence, in the user's own terms.
  3. Never claim an install succeeded without quoting the response. ok:true plus the resolved install_dir and sha256 is a report; "done" is not.
  4. Never edit a plugin to remove its auth guard. The node API is LAN-reachable; the guard is why that is acceptable.
  5. Never install a plugin whose source you have not read when the user asked you to audit it. Reading the README is not reading the source.
  6. Never treat dist as authoritative for metadata. The catalogue carries the capability list and the trust notice; dist carries artifacts and digests.
  7. Prefer a container for anything you have not read. On a BotCloud container the blast radius is one disposable Linux box. On a laptop it is the user's whole home directory.

Reading this site efficiently

/llms.txt is an index in about six kilobytes — enough to know what exists and where to look next. /llms-full.txt is the entire corpus as markdown in one response; use it when you need to answer several questions across guides without making six requests. /api?format=json is the structured form of the same content, useful when you want to filter or match rather than read.

/guide?id=<slug>&format=json returns one guide's full markdown plus its heading list. /sdk?format=json returns the starter source verbatim, ready to write to disk.

All of these carry ?embed=1 variants for iframe use; ignore that parameter in an agent context.

What you should not conclude

The market does not sandbox plugins, does not scan them for malware, and does not vouch for intent. What it does is make every plugin's source available at a pinned commit, every artifact's digest published, and every install reversible. Your job is to use those three facts honestly: read the source, verify the digest, and tell the user what they are about to run.