BlockRun OpenCode Plugin - AI agent payments via x402 micropayments
npm install @blockrun/opencodeOpenCode plugin for BlockRun AI agent payments via x402 micropayments.
Add to your opencode.json:
``json`
{
"plugin": ["@blockrun/opencode"]
}
- 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
Call any LLM model with a simple prompt.
``
Model: openai/gpt-4o
Prompt: What is the capital of France?
Multi-turn conversation with message history.
Generate images from text prompts.
``
Prompt: A sunset over mountains
Model: google/nano-banana (default)
Check wallet address and get funding links.
List available models with pricing.
View current session spending stats.
| 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 |
The plugin automatically creates a wallet on first use:
1. Wallet stored at ~/.blockrun/.session`
2. Private key never leaves your machine
3. Fund with USDC on Base to start
Recommended: Start with $1-5 USDC on Base.
- BlockRun
- Documentation
- GitHub
MIT