jpskill.com
🎨 画像AI コミュニティ

blockrun

ユーザーがClaudeでは対応できない画像生成やリアルタイムなX(Twitter)データ取得を必要とする場合、または外部モデル(Grok, GPT, DALL-E, DeepSeekなど)の利用を明示的に求めている場合に、それらの機能を活用するSkill。

📜 元の英語説明(参考)

Use when user needs capabilities Claude lacks (image generation, real-time X/Twitter data) or explicitly requests external models ("blockrun", "use grok", "use gpt", "dall-e", "deepseek")

🇯🇵 日本人クリエイター向け解説

一言でいうと

ユーザーがClaudeでは対応できない画像生成やリアルタイムなX(Twitter)データ取得を必要とする場合、または外部モデル(Grok, GPT, DALL-E, DeepSeekなど)の利用を明示的に求めている場合に、それらの機能を活用するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o blockrun.zip https://jpskill.com/download/20066.zip && unzip -o blockrun.zip && rm blockrun.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/20066.zip -OutFile "$d\blockrun.zip"; Expand-Archive "$d\blockrun.zip" -DestinationPath $d -Force; ri "$d\blockrun.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して blockrun.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → blockrun フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

BlockRun

BlockRunはClaude CodeとGoogle Antigravityと連携します。

あなたは画像を生成できません。リアルタイムのX/Twitterアクセスもありません。BlockRunはこれらの機能を提供します。

哲学

あなたはウォレットを持っています。不足している機能が必要なとき、自律的にその対価を支払います。

あなたが必要とするもの あなたが呼び出すもの 料金
画像生成 DALL-E $0.04/画像
リアルタイムXデータ Grok + Live Search $0.025/ソース
セカンドオピニオン GPT-5.2 $1.75/M入力、$14/M出力
より安価な処理 DeepSeek $0.14/M入力、$0.28/M出力

仕組み: BlockRunはx402マイクロペイメントを使用して、あなたのリクエストをOpenAI、xAI、Google、およびその他のプロバイダーにルーティングします。APIキーは不要です。あなたのウォレットがトークンごとに支払います。

予算管理(オプション)

ユーザーが予算(例:「最大$1を使用」)を指定した場合、支出を追跡し、予算に達したら停止します。

from blockrun_llm import setup_agent_wallet

client = setup_agent_wallet()
budget = 1.0  # User's budget

# Before each call, check if within budget
spending = client.get_spending()
if spending['total_usd'] >= budget:
    print(f"Budget reached: ${spending['total_usd']:.4f} spent")
    # Stop making calls
else:
    response = client.chat("openai/gpt-5.2", "Hello!")

# At the end, report spending
spending = client.get_spending()
print(f"💰 Total spent: ${spending['total_usd']:.4f} across {spending['calls']} calls")

いつ使用するか

トリガー あなたの行動
ユーザーが明示的に要求する(「GPTでセカンドオピニオンをblockrunで...」、「grokを使って確認して...」、「dall-eで画像を生成して」) BlockRun経由で実行する
ユーザーがあなたができないこと(画像、ライブXデータ)を必要とする BlockRunを提案し、確認を待つ
あなたがタスクを問題なく処理できる 自分で実行し、BlockRunについては言及しない

ユーザープロンプトの例

ユーザーは次のように言います。

ユーザーが言うこと あなたがすること
「blockrunで夕日の画像を生成して」 ImageClient経由でDALL-Eを呼び出す
「grokを使ってXで何がトレンドになっているか確認して」 search=TrueでGrokを呼び出す
「blockrunでGPTにこのコードをレビューさせて」 LLMClient経由でGPT-5.2を呼び出す
「AIエージェントに関する最新ニュースは何?」 Grokを提案する(あなたはリアルタイムデータを持っていません)
「私のスタートアップのロゴを生成して」 DALL-Eを提案する(あなたは画像を生成できません)
「blockrunで残高を確認して」 get_balance()経由でウォレット残高を表示する
「blockrunでdeepseekにこのファイルを要約させて」 コスト削減のためにDeepSeekを呼び出す

ウォレットと残高

setup_agent_wallet()を使用してウォレットを自動作成し、クライアントを取得します。これにより、初回使用時にQRコードとウェルカムメッセージが表示されます。

クライアントの初期化(常にこれで開始します):

from blockrun_llm import setup_agent_wallet

client = setup_agent_wallet()  # Auto-creates wallet, shows QR if new

残高の確認(ユーザーが「残高を表示して」、「ウォレットを確認して」などを尋ねたとき):

balance = client.get_balance()  # On-chain USDC balance
print(f"Balance: ${balance:.2f} USDC")
print(f"Wallet: {client.get_wallet_address()}")

資金調達のためのQRコードの表示:

from blockrun_llm import generate_wallet_qr_ascii, get_wallet_address

# ASCII QR for terminal display
print(generate_wallet_qr_ascii(get_wallet_address()))

SDKの使用方法

前提条件: pip install blockrun-llmでSDKをインストールしてください。

基本的なチャット

from blockrun_llm import setup_agent_wallet

client = setup_agent_wallet()  # Auto-creates wallet if needed
response = client.chat("openai/gpt-5.2", "What is 2+2?")
print(response)

# Check spending
spending = client.get_spending()
print(f"Spent ${spending['total_usd']:.4f}")

リアルタイムX/Twitter検索(xAI Live Search)

重要: リアルタイムのX/Twitterデータの場合、search=Trueまたはsearch_parametersでLive Searchを有効にする必要があります。

from blockrun_llm import setup_agent_wallet

client = setup_agent_wallet()

# Simple: Enable live search with search=True
response = client.chat(
    "xai/grok-3",
    "What are the latest posts from @blockrunai on X?",
    search=True  # Enables real-time X/Twitter search
)
print(response)

フィルター付きの高度なX検索

from blockrun_llm import setup_agent_wallet

client = setup_agent_wallet()

response = client.chat(
    "xai/grok-3",
    "Analyze @blockrunai's recent content and engagement",
    search_parameters={
        "mode": "on",
        "sources": [
            {
                "type": "x",
                "included_x_handles": ["blockrunai"],
                "post_favorite_count": 5
            }
        ],
        "max_search_results": 20,
        "return_citations": True
    }
)
print(response)

画像生成

from blockrun_llm import ImageClient

client = ImageClient()
result = client.generate("A cute cat wearing a space helmet")
print(result.data[0].url)

xAI Live Searchリファレンス

Live SearchはxAIのリアルタイムデータAPIです。コストはソースあたり$0.025(デフォルト10ソースで約$0.26)です。

コストを削減するには、max_search_resultsをより低い値に設定します。

# Only use 5 sources (~$0.13)
response = client.chat("xai/grok-3", "What's trending?",
    search_parameters={"mode": "on", "max_search_results": 5})

検索パラメーター

パラメーター タイプ デフォルト 説明
mode string "auto" "off"、"auto"、または "on"
sources array web,news,x クエリするデータソース
return_citations bool true ソースURLを含める
from_date string - 開始日(YYYY-MM-DD)
to_date string - 終了日(YYYY-MM-DD)
max_search_results int 10 返す最大ソース数(コストを制御するためにカスタマイズ)

ソースタイプ

X/Twitterソース:

{
    "type": "x",
    "included_x_handles": ["handle1", "handle2"],  # Max 10
    "excluded_x_handles": ["spam_account"],        # Max 10
    "post_favorite_count": 100,  # Min likes threshold
    "post_view_count": 1000      # Min views threshold
}

Webソース:


{
    "type": "web",

(原文がここで切り詰められています)
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

BlockRun

BlockRun works with Claude Code and Google Antigravity.

You can't generate images. You have no real-time X/Twitter access. BlockRun gives you these capabilities.

Philosophy

You have a wallet. When you need a capability you lack, you pay for it autonomously.

You Need You Call Pricing
Image generation DALL-E $0.04/image
Real-time X data Grok + Live Search $0.025/source
Second opinion GPT-5.2 $1.75/M input, $14/M output
Cheaper processing DeepSeek $0.14/M input, $0.28/M output

How it works: BlockRun uses x402 micropayments to route your requests to OpenAI, xAI, Google, and other providers. No API keys needed - your wallet pays per token.

Budget Control (Optional)

If the user specifies a budget (e.g., "use at most $1"), track spending and stop when budget is reached:

from blockrun_llm import setup_agent_wallet

client = setup_agent_wallet()
budget = 1.0  # User's budget

# Before each call, check if within budget
spending = client.get_spending()
if spending['total_usd'] >= budget:
    print(f"Budget reached: ${spending['total_usd']:.4f} spent")
    # Stop making calls
else:
    response = client.chat("openai/gpt-5.2", "Hello!")

# At the end, report spending
spending = client.get_spending()
print(f"💰 Total spent: ${spending['total_usd']:.4f} across {spending['calls']} calls")

When to Use

Trigger Your Action
User explicitly requests ("blockrun second opinion with GPT on...", "use grok to check...", "generate image with dall-e") Execute via BlockRun
User needs something you can't do (images, live X data) Suggest BlockRun, wait for confirmation
You can handle the task fine Do it yourself, don't mention BlockRun

Example User Prompts

Users will say things like:

User Says What You Do
"blockrun generate an image of a sunset" Call DALL-E via ImageClient
"use grok to check what's trending on X" Call Grok with search=True
"blockrun GPT review this code" Call GPT-5.2 via LLMClient
"what's the latest news about AI agents?" Suggest Grok (you lack real-time data)
"generate a logo for my startup" Suggest DALL-E (you can't generate images)
"blockrun check my balance" Show wallet balance via get_balance()
"blockrun deepseek summarize this file" Call DeepSeek for cost savings

Wallet & Balance

Use setup_agent_wallet() to auto-create a wallet and get a client. This shows the QR code and welcome message on first use.

Initialize client (always start with this):

from blockrun_llm import setup_agent_wallet

client = setup_agent_wallet()  # Auto-creates wallet, shows QR if new

Check balance (when user asks "show balance", "check wallet", etc.):

balance = client.get_balance()  # On-chain USDC balance
print(f"Balance: ${balance:.2f} USDC")
print(f"Wallet: {client.get_wallet_address()}")

Show QR code for funding:

from blockrun_llm import generate_wallet_qr_ascii, get_wallet_address

# ASCII QR for terminal display
print(generate_wallet_qr_ascii(get_wallet_address()))

SDK Usage

Prerequisite: Install the SDK with pip install blockrun-llm

Basic Chat

from blockrun_llm import setup_agent_wallet

client = setup_agent_wallet()  # Auto-creates wallet if needed
response = client.chat("openai/gpt-5.2", "What is 2+2?")
print(response)

# Check spending
spending = client.get_spending()
print(f"Spent ${spending['total_usd']:.4f}")

Real-time X/Twitter Search (xAI Live Search)

IMPORTANT: For real-time X/Twitter data, you MUST enable Live Search with search=True or search_parameters.

from blockrun_llm import setup_agent_wallet

client = setup_agent_wallet()

# Simple: Enable live search with search=True
response = client.chat(
    "xai/grok-3",
    "What are the latest posts from @blockrunai on X?",
    search=True  # Enables real-time X/Twitter search
)
print(response)

Advanced X Search with Filters

from blockrun_llm import setup_agent_wallet

client = setup_agent_wallet()

response = client.chat(
    "xai/grok-3",
    "Analyze @blockrunai's recent content and engagement",
    search_parameters={
        "mode": "on",
        "sources": [
            {
                "type": "x",
                "included_x_handles": ["blockrunai"],
                "post_favorite_count": 5
            }
        ],
        "max_search_results": 20,
        "return_citations": True
    }
)
print(response)

Image Generation

from blockrun_llm import ImageClient

client = ImageClient()
result = client.generate("A cute cat wearing a space helmet")
print(result.data[0].url)

xAI Live Search Reference

Live Search is xAI's real-time data API. Cost: $0.025 per source (default 10 sources = ~$0.26).

To reduce costs, set max_search_results to a lower value:

# Only use 5 sources (~$0.13)
response = client.chat("xai/grok-3", "What's trending?",
    search_parameters={"mode": "on", "max_search_results": 5})

Search Parameters

Parameter Type Default Description
mode string "auto" "off", "auto", or "on"
sources array web,news,x Data sources to query
return_citations bool true Include source URLs
from_date string - Start date (YYYY-MM-DD)
to_date string - End date (YYYY-MM-DD)
max_search_results int 10 Max sources to return (customize to control cost)

Source Types

X/Twitter Source:

{
    "type": "x",
    "included_x_handles": ["handle1", "handle2"],  # Max 10
    "excluded_x_handles": ["spam_account"],        # Max 10
    "post_favorite_count": 100,  # Min likes threshold
    "post_view_count": 1000      # Min views threshold
}

Web Source:

{
    "type": "web",
    "country": "US",  # ISO alpha-2 code
    "allowed_websites": ["example.com"],  # Max 5
    "safe_search": True
}

News Source:

{
    "type": "news",
    "country": "US",
    "excluded_websites": ["tabloid.com"]  # Max 5
}

Available Models

Model Best For Pricing
openai/gpt-5.2 Second opinions, code review, general $1.75/M in, $14/M out
openai/gpt-5-mini Cost-optimized reasoning $0.30/M in, $1.20/M out
openai/o4-mini Latest efficient reasoning $1.10/M in, $4.40/M out
openai/o3 Advanced reasoning, complex problems $10/M in, $40/M out
xai/grok-3 Real-time X/Twitter data $3/M + $0.025/source
deepseek/deepseek-chat Simple tasks, bulk processing $0.14/M in, $0.28/M out
google/gemini-2.5-flash Very long documents, fast $0.15/M in, $0.60/M out
openai/dall-e-3 Photorealistic images $0.04/image
google/nano-banana Fast, artistic images $0.01/image

M = million tokens. Actual cost depends on your prompt and response length.

Cost Reference

All LLM costs are per million tokens (M = 1,000,000 tokens).

Model Input Output
GPT-5.2 $1.75/M $14.00/M
GPT-5-mini $0.30/M $1.20/M
Grok-3 (no search) $3.00/M $15.00/M
DeepSeek $0.14/M $0.28/M
Fixed Cost Actions
Grok Live Search $0.025/source (default 10 = $0.25)
DALL-E image $0.04/image
Nano Banana image $0.01/image

Typical costs: A 500-word prompt (~750 tokens) to GPT-5.2 costs ~$0.001 input. A 1000-word response (~1500 tokens) costs ~$0.02 output.

Setup & Funding

Wallet location: $HOME/.blockrun/.session (e.g., /Users/username/.blockrun/.session)

First-time setup:

  1. Wallet auto-creates when setup_agent_wallet() is called
  2. Check wallet and balance:
    from blockrun_llm import setup_agent_wallet
    client = setup_agent_wallet()
    print(f"Wallet: {client.get_wallet_address()}")
    print(f"Balance: ${client.get_balance():.2f} USDC")
  3. Fund wallet with $1-5 USDC on Base network

Show QR code for funding (ASCII for terminal):

from blockrun_llm import generate_wallet_qr_ascii, get_wallet_address
print(generate_wallet_qr_ascii(get_wallet_address()))

Troubleshooting

"Grok says it has no real-time access" → You forgot to enable Live Search. Add search=True:

response = client.chat("xai/grok-3", "What's trending?", search=True)

Module not found → Install the SDK: pip install blockrun-llm

Updates

pip install --upgrade blockrun-llm