agentbox-bootstrap
Original:🇺🇸 English
Translated
AgentBox agent operating instructions and provider configuration. Services, config, x402 payments, skill updates, OpenRouter setup, troubleshooting. Loads automatically on every AgentBox session.
2installs
Added on
NPX Install
npx skill4agent add cascade-protocol/agentbox agentbox-bootstrapTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →AgentBox Operating Instructions
You are running on a dedicated AgentBox agent - a single-tenant cloud instance with OpenClaw gateway, HTTPS, web terminal, and a Solana wallet for x402 micropayments.
Services
| Service | Port | Managed by |
|---|---|---|
| OpenClaw gateway | :18789 (loopback) | |
| Caddy (HTTPS reverse proxy) | :443 | |
| ttyd (web terminal) | :7681 (loopback) | |
Caddy routes HTTPS traffic to the gateway and terminal. Do NOT modify Caddy or systemd configs directly.
Key paths
| What | Path |
|---|---|
| OpenClaw config | |
| Solana wallet | |
| EVM wallet | |
| Mnemonic (root secret) | |
| Workspace | |
| Skills (managed) | |
| x402 plugin | |
| Gateway logs | |
x402 payment plugin
The plugin patches to handle HTTP 402 Payment Required responses automatically. When an LLM inference call returns 402, the plugin signs a USDC payment on Solana and retries. This is transparent - you don't need to do anything special.
openclaw-x402globalThis.fetchThe wallet at must have USDC balance for payments to work. Check balance with or:
~/.openclaw/agentbox/wallet-sol.json/x_walletbash
spl-token balance --owner $(solana address) EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1vCommands and tools
Slash commands:
- - wallet dashboard with balance, token holdings, recent transactions
/x_wallet - - send USDC to a Solana address
/x_wallet send <amount|all> <address> - - paginated transaction history
/x_wallet history [page] - - system overview (version, model, pricing, wallet summary)
/x_status - - update plugin and skills, restart gateway
/x_update
Agent tools:
- - check wallet SOL and USDC balances
x_balance - - swap any Solana token for another (SOL, USDC, meme tokens, any SPL token)
x_swap - - launch a new token on pump.fun
x_launch_token - - look up token price, market cap, volume, liquidity
x_token_info - - call any x402-enabled paid API
x_payment
Swaps use Jupiter aggregator for best routing, with automatic fallback to PumpPortal for bonding curve tokens. Amount is in input token units, slippage in basis points (default: 250 = 2.5%).
Default model provider
This instance comes with a preconfigured LLM provider (blockrun) that uses x402 for payments. To use a different provider like OpenRouter, see the OpenRouter Setup section below.
OpenRouter Setup
To configure OpenRouter as LLM provider (access to Claude, GPT, Gemini, and more via a single API key):
-
Get an API key: Sign up at https://openrouter.ai, go to https://openrouter.ai/keys, create a key (starts with)
sk-or- -
Configure OpenClaw:
bash
jq --arg key "sk-or-USER_KEY_HERE" \
--arg model "openrouter/anthropic/claude-sonnet-4-5" \
'.env.OPENROUTER_API_KEY = $key | .agents.defaults.model.primary = $model' \
~/.openclaw/openclaw.json > /tmp/openclaw-update.json \
&& mv /tmp/openclaw-update.json ~/.openclaw/openclaw.json- Restart gateway:
openclaw gateway restart
Popular models: , , , . Full list at https://openrouter.ai/models.
openrouter/anthropic/claude-sonnet-4-5openrouter/anthropic/claude-opus-4-6openrouter/openai/gpt-4oopenrouter/google/gemini-2.5-proSwitch model later (without re-entering API key):
bash
jq --arg model "openrouter/anthropic/claude-opus-4-6" \
'.agents.defaults.model.primary = $model' \
~/.openclaw/openclaw.json > /tmp/openclaw-update.json \
&& mv /tmp/openclaw-update.json ~/.openclaw/openclaw.json
openclaw gateway restartRestarting the gateway
After any config change to :
~/.openclaw/openclaw.jsonbash
openclaw gateway restartCheck status:
bash
openclaw statusUpdating skills
To get the latest AgentBox skills:
bash
npx skills add -g cascade-protocol/agentboxSkills are installed to (OpenClaw's managed skills path, auto-discovered). Changes take effect on the next new session.
~/.openclaw/skills/Troubleshooting
- Gateway won't start: Check and gateway logs at
openclaw status~/.openclaw/logs/ - x402 payments failing: Check USDC balance (see above). Wallet needs USDC on Solana mainnet.
- Config changes not taking effect: Run after editing
openclaw gateway restart~/.openclaw/openclaw.json - Skills not showing: Check . Run
ls ~/.openclaw/skills/to refresh.npx skills add -g cascade-protocol/agentbox - "Invalid API key" (OpenRouter): Verify the key starts with and has credit on https://openrouter.ai/credits
sk-or- - Model not responding (OpenRouter): Check model availability on https://openrouter.ai/models
- Config broken after edit: Check JSON syntax with
cat ~/.openclaw/openclaw.json | jq .
Important rules
- Always use to restart the gateway. Never use systemctl directly for the gateway.
openclaw gateway restart - When editing , read the current file first, modify it, write it back. Don't write partial configs.
~/.openclaw/openclaw.json - The wallet keys are at (wallet-sol.json, wallet-evm.key, mnemonic). Never share them or display them to users.
~/.openclaw/agentbox/