Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Aleph Cloud Self-Deployment

БесплатноБез исполняемых скриптовНе проверен

This skill gives an AI agent everything it needs to: 1. Provision its own VM on the Aleph Cloud network 2. Install its agent framework (OpenClaw) on the new…

modbenderот modbender★ 21 звезда на GitHub

Об этом скилле

Aleph Cloud Self-Deployment

Teach an AI agent to deploy itself onto Aleph Cloud decentralized infrastructure — from provisioning a VM to configuring its own runtime, autonomously.

Overview

This skill gives an AI agent everything it needs to:

  1. Provision its own VM on the Aleph Cloud network
  2. Install its agent framework (OpenClaw) on the new instance
  3. Configure its own credentials, gateway, and identity
  4. Transfer its knowledge and skills to the new environment
  5. Become fully operational on decentralized compute — without human intervention

Prerequisites

  • aleph-client CLI installed (pip install aleph-client)
  • A funded Aleph Cloud account (credits on BASE/ETH/AVAX/SOL, or $ALEPH tokens for holding)
  • An SSH keypair for VM access
  • AI provider API key (Anthropic, OpenAI, etc.) to share with spawned agents

Install aleph-client

pip install aleph-client --break-system-packages

On Ubuntu 24+ you need --break-system-packages or use a venv.

Check Version

aleph --version

Step 1: Account Setup

Import or Create a Private Key

# Import existing private key
aleph account create --private-key <YOUR_HEX_PRIVATE_KEY> --chain BASE --active

# Or generate a new one
aleph account create --chain BASE --active

Keys are stored at ~/.aleph-im/private-keys/. Always chmod 600 key files.

Check Balance

aleph account balance

You need credits or $ALEPH tokens. Credits are the simplest (pay-as-you-go). Buy credits at https://account.aleph.im/ or hold $ALEPH tokens.

Pricing Reference

aleph pricing instance
Tier Compute Units vCPUs RAM Default Disk Credits/Hour Credits/Day
1 1 1 2 GiB 20 GiB 14,250 342,000
2 2 2 4 GiB 40 GiB 28,500 684,000
3 4 4 8 GiB 80 GiB 57,000 1,368,000
4 6 6 12 GiB 120 GiB 85,500 2,052,000

Disk size can be overridden with --rootfs-size <MiB>. The tier sets the minimum; you can allocate more (e.g., 40GB on a Tier 1). Extra disk costs ~4,416 credits/GiB/day.

Step 2: Generate SSH Keypair

ssh-keygen -t ed25519 -f ~/.ssh/aleph_agent -N "" -C "agent@aleph"
chmod 600 ~/.ssh/aleph_agent

Step 3: Find a Compute Resource Node (CRN)

List Active CRNs (Top 10 by Score)

aleph node compute --active --json 2>/dev/null | python3 -c "
import sys, json
nodes = json.load(sys.stdin)
scored = []
for n in nodes:
    score = n.get('score', 0) or 0
    name = n.get('name', 'unknown')
    node_hash = n.get('hash', '')
    url = n.get('address', '')
    if score > 0.5:  # Score is 0.0–1.0 (not percentage)
        scored.append((score, name, node_hash, url))
scored.sort(reverse=True)
for s, name, h, url in scored[:10]:
    print(f'{s*100:.1f}% | {name} | {h} | {url}')
"

Get Best CRN Hash (for scripts)

CRN_HASH=$(aleph node compute --active --json 2>/dev/null | python3 -c "
import sys, json
nodes = json.load(sys.stdin)
best = max(
    (n for n in nodes if (n.get('score', 0) or 0) > 0.5),
    key=lambda n: n.get('score', 0),
    default=None
)
print(best['hash'] if best else '')
")
echo "Best CRN: $CRN_HASH"

Step 4: Create the VM Instance

Known Rootfs Hashes

OS Rootfs Hash
Ubuntu 24 5330dcefe1857bcd97b7b7f24d1420a7d46232d53f27be280c8a7071d88bd84e
Ubuntu 22 (default if --rootfs omitted)

Create Instance (Non-Interactive)

The aleph instance create command has an interactive TUI for CRN selection. To bypass it completely, use --crn-hash + --skip-volume:

aleph instance create \
  --name "agent-v1" \
  --compute-units 1 \
  --rootfs 5330dcefe1857bcd97b7b7f24d1420a7d46232d53f27be280c8a7071d88bd84e \
  --rootfs-size 40960 \
  --payment-type credit \
  --payment-chain BASE \
  --ssh-pubkey-file ~/.ssh/aleph_agent.pub \
  --crn-hash "$CRN_HASH" \
  --crn-auto-tac \
  --skip-volume \
  --verbose

Critical flags:

  • --crn-hash <HASH>: Bypasses the interactive CRN picker TUI entirely
  • --crn-auto-tac: Auto-accepts CRN Terms & Conditions
  • --skip-volume: Skips the "add extra volumes?" interactive prompt
  • --rootfs: OS image hash (omit for Ubuntu 22 default)
  • --rootfs-size: Disk size in MiB (40960 = 40GB; overrides tier default)

If Interactive TUI Still Appears

Some versions of aleph-client may still show prompts. Use pexpect:

#!/usr/bin/env python3
"""Automate aleph instance create when CLI flags don't fully bypass TUI."""
import pexpect
import sys
import re

CRN_HASH = sys.argv[1] if len(sys.argv) > 1 else ""
NAME = sys.argv[2] if len(sys.argv) > 2 else f"agent-{int(__import__('time').time())}"

cmd = (
    f'aleph instance create '
    f'--name "{NAM
Полный SKILL.md на GitHub

Установить Aleph Cloud Self-Deployment в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Aleph Cloud Self-Deployment?

This skill gives an AI agent everything it needs to: 1. Provision its own VM on the Aleph Cloud network 2. Install its agent framework (OpenClaw) on the new instance 3. Configure its own credential...

Как установить скилл Aleph Cloud Self-Deployment?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Aleph Cloud Self-Deployment запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Aleph Cloud Self-Deployment с