New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@tenkicloud/openclaw

Package Overview
Dependencies
Maintainers
3
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tenkicloud/openclaw

OpenClaw sandbox backend for Tenki Cloud microVM sessions via the @tenkicloud/sandbox SDK.

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
0
Maintainers
3
Weekly downloads
 
Created
Source

OpenClaw Tenki Cloud Sandbox

OpenClaw sandbox backend that runs agent tool execution in remote Tenki Cloud VM sessions via the @tenkicloud/sandbox TypeScript SDK.

One Tenki session is created per sandbox scope (found-or-created by a runtime tag; paused sessions are resumed). The local workspace is mirrored into the session, shell and filesystem-bridge commands run over the SDK exec surface, and interactive exec runs over plain ssh through an in-process loopback forwarder backed by the SDK's gateway SSH stream.

Originally proposed as a bundled OpenClaw extension in openclaw/openclaw#111792; this repo packages the same plugin standalone.

Install

From ClawHub (@tenkicloud/openclaw):

openclaw plugins install clawhub:@tenkicloud/openclaw

Or from a local checkout:

git clone https://github.com/LuxorLabs/tenki-openclaw
openclaw plugins install ./tenki-openclaw

Usage

{
  "plugins": {
    "entries": {
      "tenki": {
        "enabled": true,
        "config": {
          "image": "ubuntu-24",
          "memoryMb": 4096,
        },
      },
    },
  },
  "agents": {
    "defaults": {
      "sandbox": {
        "mode": "all",
        "backend": "tenki",
      },
    },
  },
}

Authentication uses TENKI_AUTH_TOKEN / TENKI_API_KEY from the environment (preferred), or the authToken plugin config value.

Config reference

KeyDescription
authTokenTenki API token. Prefer the TENKI_AUTH_TOKEN / TENKI_API_KEY env vars over storing it in config.
baseUrlTenki API endpoint override. Defaults to the SDK's TENKI_API_ENDPOINT / TENKI_API_URL fallback.
workspaceIdTenki workspace the sessions are created in.
imageBase image id for created sandbox sessions. Omit for the Tenki default image.
workspaceRootAbsolute path inside the session used for per-scope workspaces.
idleTimeoutMinutesTerminate the session after this many idle minutes.
cpuCores / memoryMb / diskSizeGbResources per session.
tagsExtra tags attached to created sessions.

How exec works

Interactive exec spawns plain ssh against a loopback forwarder whose upstream is the SDK's gateway SSH stream — no tenki CLI required anywhere, and usePty maps to real PTY allocation (ssh -tt). The gateway stream terminates at Tenki's edge SSH gateway, which only accepts certificate auth: a dedicated ed25519 keypair is generated once under the OpenClaw state dir, and a short-lived per-session user certificate is minted through the SDK and re-minted automatically near expiry.

Development

npm install
npm run typecheck
npm test

Known limitations

  • The skills workspace is uploaded once at runtime bootstrap, not refreshed per exec.
  • Workspace upload buffers a tarball in memory; large workspaces should stream.
  • The SSH forwarder listener lives for the gateway process lifetime (one per sandbox scope; backend handles have no dispose hook).

FAQs

Package last updated on 03 Aug 2026

Related posts