npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@madarco/agentbox-provider-sdk

v4.3.0

Published

Public SDK for building AgentBox sandbox providers as installable community packages

Readme

@madarco/agentbox-provider-sdk

The public, semver'd SDK for building an AgentBox sandbox provider as an installable package. A provider plugin lets agentbox --provider <name> run coding agents on your own cloud/infra — with zero edits to AgentBox itself.

This is the only AgentBox dependency a plugin needs: it re-exports the whole provider-facing surface (Provider, CloudBackend, ProviderModule, createCloudProvider, doctor + prepared-state + attach + checkpoint helpers, resolveSharedRuntimeAsset, …) with AgentBox's private internals inlined, so a plugin never imports @agentbox/* internals directly. That indirection is the stable seam that lets AgentBox refactor without breaking published plugins.

Install

npm install @madarco/agentbox-provider-sdk

The shape of a provider plugin

Implement the thin CloudBackend (~13 methods over your cloud's SDK), wrap it with createCloudProvider to get the full box lifecycle for free, and export a providerModule:

import {
  createCloudProvider,
  type CloudBackend,
  type ProviderModule,
} from '@madarco/agentbox-provider-sdk';

const backend: CloudBackend = {
  name: 'myprovider',
  async provision(req) {
    /* create the VM/sandbox, return { sandboxId } */
  },
  async get(id) {
    /* … */
  },
  async start(h) {}, async stop(h) {}, async pause(h) {}, async resume(h) {},
  async destroy(h) {}, async state(h) { return 'running'; },
  async exec(h, cmd, opts) {
    /* … */
  },
  async uploadFile(h, local, remote) {}, async downloadFile(h, remote, local) {},
  async listFiles(h, dir) { return []; },
  async previewUrl(h, port) { return { url: `https://…:${port}` }; },
  // optional: createSnapshot/deleteSnapshot (checkpoints), list (prune),
  // refreshPreviewUrl, signedPreviewUrl, attachArgv, renewTimeout, …
};

const provider = createCloudProvider(backend, {
  defaultResources: { cpu: 2, memory: 4, disk: 40 },
});

export const providerModule: ProviderModule = {
  provider,
  doctorChecks: async () => [{ label: 'credentials', status: 'ok', detail: 'configured' }],
  // optional: backend, ensureCredentials, readCredStatus, currentBaseFingerprintLive
};

Only provider and doctorChecks are required — createCloudProvider supplies the entire lifecycle (workspace seeding, ctl launch, relay wiring, preview URLs, checkpoints, cp) on top of the thin CloudBackend. "A cloud is one file."

Package requirements

  • Name it agentbox-provider-<name> (or @scope/agentbox-provider-<name>).
  • Declare the contract version in package.json:
    { "agentbox": { "providerApiVersion": 3 } }
  • Export a providerModule (or providerModules for a multi-provider package).

The CLI loads a plugin only if its providerApiVersion is in the CLI's supported set — the exported SDK_API_VERSION is the compatibility gate (bumped on any breaking change to Provider / CloudBackend / ProviderModule).

Operating a plugin

npm i -g agentbox-provider-myprovider
agentbox plugin add agentbox-provider-myprovider   # validates + records it (a path also works)
agentbox doctor                                    # shows your provider's group
agentbox create --provider myprovider              # first create triggers ensureCredentials

A provider plugin runs in-process with full host + credential access — it is trusted code, exactly like the CLI. agentbox plugin add is the consent boundary.

Learn more

License

MIT