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

@computesdk/cli

v2.6.3

Published

ComputeSDK CLI - Cloud-native workspace management

Readme

@computesdk/cli

The compute CLI for the ComputeSDK platform — Actions CI, the compute market, sandboxes, and the benchmarks toolchain.

Install

npm i -g @computesdk/cli        # or: pnpm dlx @computesdk/cli <cmd>

Login

compute login                   # OAuth device flow → ~/.benchsdk/credentials.json
compute logout                  # clear stored credentials
compute --login / --logout      # same, as flags

Login uses the same OAuth device flow as bench auth login — every first-party CLI shares one credential store (~/.benchsdk/credentials.json) and refresh tokens renew automatically.

Commands

compute actions …               # Actions API — repos, dispatch, runs, logs, vault
compute market …                # buy and sell on the compute market (cap, bids, credits, listings)
compute sandboxes …             # platform sandbox control plane
compute bench …                 # benchmarks CLI (run, auth, org, results, …)
compute providers               # sandbox provider credential status
compute org list                # your organizations (* = active)
compute org use <slug>          # switch the stored login's active org
compute org current / whoami    # current user + active org

All platform commands accept --api-key / COMPUTE_API_KEY and fall back to the stored OAuth credentials.

The active org comes from the stored login (compute org use changes it — it's per user, so every CLI on every machine sees the switch). For a one-off override, pass --org <slug> (on the root command or any sandboxes / actions / market subcommand) or set COMPUTE_ORG; it sends X-Org-Slug on the request. Precedence: --org > COMPUTE_ORG > the stored login's org. The platform ignores the header for org API keys.

For compute sandboxes exec and compute sandboxes spawn, everything after the command's first word goes to the sandbox untouched — flags like uname -a or node -e are not CLI options. Pass CLI options (--json, --timeout-ms, --cwd, -e/--env, --stdin, --org) before the command; a bare -- before the command is optional but supported.

compute sandboxes exec sb1 uname -a
compute sandboxes spawn sb1 --cwd /app -e NODE_ENV=production -- npm run dev

Managed-agent persistence

compute agents run <agent> starts a conversation. On platforms with managed Archil storage, the first run provisions the agent's disk automatically. After its turn finishes, compute agents stop <sessionId> flushes storage and releases compute. Resume that conversation, including Pi history and workspace:

compute agents run my-agent --resume <sessionId>
compute agents run my-agent "Continue the task" --resume <sessionId>

Resume preserves the session ID and event journal but acquires a new sandbox. Only one session per agent can be active at a time. Legacy sessions without persistent state cannot be recovered retroactively. Requires the platform's managed-volume/resume API; no account storage credentials are needed in the CLI.

Migrating from @computesdk/cli 1.x

v2 removes the legacy console authentication and its commands:

  • Removed commands: compute create, compute sandbox, compute connect, compute workspace, compute run, and the interactive REPL. Sandbox management moved to compute sandboxes, which drives the platform's /api/v1/sandboxes API.
  • Auth: compute login no longer opens a browser flow against console.computesdk.com or writes ~/.computesdk/credentials.json — that credential store is gone. compute login now runs the platform's OAuth device flow and writes ~/.benchsdk/credentials.json (the same store bench auth login uses). Run compute login once after upgrading.
  • compute providers is unchanged.