# Send x402 Compute to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "x402-compute",
    "name": "x402 Compute",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/ivaavimusic/x402-compute",
    "canonicalUrl": "https://clawhub.ai/ivaavimusic/x402-compute",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/x402-compute",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=x402-compute",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "requirements.txt",
      "SKILL.md",
      "scripts/browse_regions.py",
      "scripts/browse_plans.py",
      "scripts/wallet_signing.py",
      "scripts/list_instances.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "x402-compute",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-12T22:52:54.808Z",
      "expiresAt": "2026-05-19T22:52:54.808Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=x402-compute",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=x402-compute",
        "contentDisposition": "attachment; filename=\"x402-compute-1.3.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "x402-compute"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/x402-compute"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/x402-compute",
    "downloadUrl": "https://openagent3.xyz/downloads/x402-compute",
    "agentUrl": "https://openagent3.xyz/skills/x402-compute/agent",
    "manifestUrl": "https://openagent3.xyz/skills/x402-compute/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/x402-compute/agent.md"
  }
}
```
## Documentation

### x402 Singularity Compute

Provision and manage GPU/VPS instances paid with USDC via the x402 payment protocol.

Base URL: https://compute.x402layer.cc
Networks: Base (EVM) • Solana
Currency: USDC
Protocol: HTTP 402 Payment Required

Access Note: Preferred access is SSH public key. If no SSH key is provided, a one-time password fallback can be fetched once via API.

### 1. Install Dependencies

pip install -r {baseDir}/requirements.txt

### 2. Set Up Wallet

Option A: Base (EVM) Private Key

export PRIVATE_KEY="0x..."
export WALLET_ADDRESS="0x..."

Option B: Solana Private Key

export SOLANA_SECRET_KEY="base58-or-json-array"
export SOLANA_WALLET_ADDRESS="YourSolanaAddress"
export COMPUTE_AUTH_CHAIN="solana"

Create COMPUTE_API_KEY (optional) for management endpoints:

python {baseDir}/scripts/create_api_key.py --label "my-agent"

### ⚠️ Security Notice

IMPORTANT: This skill handles private keys for signing blockchain transactions.

Never use your primary custody wallet - Create a dedicated wallet with limited funds
Private keys are used locally only - They sign transactions locally and are never transmitted
For testing: Use a throwaway wallet with minimal USDC

### Scripts Overview

ScriptPurposebrowse_plans.pyList available GPU/VPS plans with pricingbrowse_regions.pyList deployment regionsprovision.pyProvision a new instance (x402 payment, --months or --days)create_api_key.pyCreate an API key for agent access (optional)list_instances.pyList your active instancesinstance_details.pyGet details for a specific instanceget_one_time_password.pyRetrieve one-time root password fallbackextend_instance.pyExtend instance lifetime (x402 payment)destroy_instance.pyDestroy an instancesolana_signing.pyInternal helper for Solana x402 payment signing

### Instance Lifecycle

Browse Plans → Provision (pay USDC) → Active → Extend / Destroy → Expired

Instances expire after their prepaid duration. Extend before expiry to keep them running.

### A. Browse and Provision

# List GPU plans
python {baseDir}/scripts/browse_plans.py

# Filter by type (gpu/vps/high-performance)
python {baseDir}/scripts/browse_plans.py --type vcg

# Check available regions
python {baseDir}/scripts/browse_regions.py

# Generate a dedicated SSH key once (recommended for agents)
ssh-keygen -t ed25519 -N "" -f ~/.ssh/x402_compute

# Provision an instance for 1 month (triggers x402 payment)
python {baseDir}/scripts/provision.py vcg-a100-1c-2g-6gb lax --months 1 --label "my-gpu" --ssh-key-file ~/.ssh/x402_compute.pub

# Provision a daily instance (cheaper, use-and-throw)
python {baseDir}/scripts/provision.py vc2-1c-1gb ewr --days 1 --label "test-daily" --ssh-key-file ~/.ssh/x402_compute.pub

# Provision for 3 days
python {baseDir}/scripts/provision.py vc2-1c-1gb ewr --days 3 --label "short-task" --ssh-key-file ~/.ssh/x402_compute.pub

# Provision on Solana
python {baseDir}/scripts/provision.py vc2-1c-1gb ewr --months 1 --label "my-sol-vps" --network solana --ssh-key-file ~/.ssh/x402_compute.pub

# ⚠️ After provisioning, wait 2-3 minutes for Vultr to complete setup
# Then fetch your instance details (IP, status):
python {baseDir}/scripts/instance_details.py <instance_id>

### B. Manage Instances

# Optional: create a reusable API key (avoids message signing each request)
python {baseDir}/scripts/create_api_key.py --label "my-agent"

# List all your instances
python {baseDir}/scripts/list_instances.py

# Get details for one instance
python {baseDir}/scripts/instance_details.py <instance_id>

# Optional fallback if no SSH key was provided during provisioning
python {baseDir}/scripts/get_one_time_password.py <instance_id>

# Extend by 1 day
python {baseDir}/scripts/extend_instance.py <instance_id> --hours 24

# Extend by 1 month
python {baseDir}/scripts/extend_instance.py <instance_id> --hours 720

# Extend on Solana
python {baseDir}/scripts/extend_instance.py <instance_id> --hours 720 --network solana

# Destroy
python {baseDir}/scripts/destroy_instance.py <instance_id>

### x402 Payment Flow

Request provision/extend → server returns HTTP 402 with payment requirements
Script signs payment locally:

Base: USDC TransferWithAuthorization (EIP-712)
Solana: signed SPL transfer transaction payload


Script resends request with X-Payment header containing signed payload
Server verifies payment, settles on-chain, provisions/extends instance

For Solana, transient facilitator failures can happen. Retry once or twice if you get a temporary 5xx verify error.

### Plan Types

TypePlan PrefixDescriptionGPUvcg-*GPU-accelerated (A100, H100, etc.)VPSvc2-*Standard cloud computeHigh-Perfvhp-*High-performance dedicatedDedicatedvdc-*Dedicated bare-metal

### Environment Reference

VariableRequired ForDescriptionPRIVATE_KEYBase paymentsEVM private key (0x...)WALLET_ADDRESSBase modeBase wallet address (0x...)SOLANA_SECRET_KEYSolana modeSolana signer key (base58 or JSON byte array)SOLANA_WALLET_ADDRESSSolana modeSolana wallet address (optional if derivable from secret)COMPUTE_AUTH_CHAINSolana/base auth overridebase or solanaCOMPUTE_API_KEYOptionalReusable API key for compute management endpoints

### API Reference

For full endpoint details, see references/api-reference.md.

### Resources

📖 Documentation: studio.x402layer.cc/docs/agentic-access/x402-compute
🖥️ Compute Dashboard: compute.x402layer.cc
🌐 x402 Studio: studio.x402layer.cc
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: ivaavimusic
- Version: 1.0.7
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-12T22:52:54.808Z
- Expires at: 2026-05-19T22:52:54.808Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/x402-compute)
- [Send to Agent page](https://openagent3.xyz/skills/x402-compute/agent)
- [JSON manifest](https://openagent3.xyz/skills/x402-compute/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/x402-compute/agent.md)
- [Download page](https://openagent3.xyz/downloads/x402-compute)