@blockrun/opencode
v0.1.0
Published
BlockRun OpenCode Plugin - AI agent payments via x402 micropayments
Maintainers
Readme
@blockrun/opencode
OpenCode plugin for BlockRun AI agent payments via x402 micropayments.
Installation
Add to your opencode.json:
{
"plugin": ["@blockrun/opencode"]
}Features
- 30+ LLM Models: GPT-5, Claude, Gemini, Grok, DeepSeek, and more
- Image Generation: Nano Banana ($0.05/image), DALL-E 3, GPT Image
- Auto-generated Wallet: No setup required - wallet created automatically
- Pay-per-request: No API keys, no subscriptions
Tools
blockrun_chat
Call any LLM model with a simple prompt.
Model: openai/gpt-4o
Prompt: What is the capital of France?blockrun_chat_messages
Multi-turn conversation with message history.
blockrun_image
Generate images from text prompts.
Prompt: A sunset over mountains
Model: google/nano-banana (default)blockrun_balance
Check wallet address and get funding links.
blockrun_models
List available models with pricing.
blockrun_spending
View current session spending stats.
Pricing
| Model | Price | |-------|-------| | GPT-4o | $0.0025/1K input, $0.01/1K output | | Claude Sonnet | $0.003/1K input, $0.015/1K output | | DeepSeek | $0.00014/1K input, $0.00028/1K output | | Nano Banana | $0.05/image |
Wallet Setup
The plugin automatically creates a wallet on first use:
- Wallet stored at
~/.blockrun/.session - Private key never leaves your machine
- Fund with USDC on Base to start
Recommended: Start with $1-5 USDC on Base.
Links
License
MIT
