anajuliabit/aeon/beamr-route
Claude Code and agent skill by anajuliabit/aeon
- community
Checking that the SKILL.md file is still in the repository.
Route a prompt through a BEAMR x402 gateway and report the answer + onchain receipt
Install
npx vskill@latest install anajuliabit/aeon/beamr-routeSKILL.md
The same SKILL.md was published earlier as anajuliabit/aeon/beamr-route.
${var} — The prompt to send through BEAMR (e.g."Summarize the latest x402 spec changes"). Required. If empty, abort cleanly with a notify.
Today is ${today}. Send ${var} to a BEAMR inference gateway, pay for that single call over x402 (USDC on Base), and report the answer alongside the onchain settlement receipt.
BEAMR is an OpenAI-compatible inference router: it classifies the request, routes it to the cheapest capable provider, runs the completion, and settles the exact cost per call in USDC on Base via the x402 exact scheme. This skill is the buyer side — it pays a fraction of a cent and gets back both the model output and the settlement tx hash, so a run produces a verifiable onchain artifact, not just text.
Read memory/MEMORY.md for context before starting.
Steps
- Guard the input. If
${var}is empty, do not proceed:
``bash if [ -z "$SKILL_VAR" ]; then ./notify "beamr-route skipped: no prompt — pass var=\"your question\""; exit 0; fi ` (SKILL_VAR carries ${var} through the environment so embedded $`/quotes in the prompt aren't mangled by the shell.)
- Skip gracefully if unconfigured. This skill needs a BEAMR deployment and a funded payer wallet. If either secret is not set, skip rather than fail:
``bash if [ -z "$BEAMR_GATEWAY_URL" ] || [ -z "$BEAMR_PAYER_KEY" ]; then ./notify "beamr-route skipped: set BEAMR_GATEWAY_URL and BEAMR_PAYER_KEY (a low-balance USDC-on-Base wallet) to enable"; exit 0 fi ``
- Ensure the x402 client is available. The payment client depends on
x402-fetch(which pullsviem). Install on demand if missing:
``bash node -e "require.resolve('x402-fetch')" 2>/dev/null || npm install --no-save x402-fetch >/dev/null 2>&1 ``
- Pay and infer. Run the client with the prompt. It handles the full
402 → sign X-PAYMENT → retry → receipthandshake and prints one JSON line. The per-call spend is capped byBEAMR_MAX_PAY_USDC(default0.05) — an offer above the cap throws rather than overpaying.
``bash RESULT=$(node skills/beamr-route/scripts/beamr-pay.mjs "$SKILL_VAR") echo "$RESULT" ``
- Handle the result. Parse the JSON.
- If
.okisfalse, notify the error and stop:./notify "beamr-route failed: <error>". - If
.okistrue, extract.answer,.model,.usage, and.settlement(.txHash,.network,.payer). When a settlement is present, build a block-explorer link:https://basescan.org/tx/<txHash>forbase, orhttps://sepolia.basescan.org/tx/<txHash>forbase-sepolia. Anullsettlement means the answer came free (cache hit or paywall off) — say so.
- Notify. Send a concise message: the question, the answer, then a one-line footer with the model BEAMR chose, token usage, and the settlement link (or "free — served from cache"). Keep the answer readable; don't dump raw JSON.
``bash ./notify -f .pending-notify-temp/beamr-route-${today}.md ``
- Log. Append a one-line entry to today's
memory/logs/${today}.md: the prompt, the chosen model, the cost, and the tx hash — so repeat questions and spend are auditable over time.
Notes
- Use a dedicated, low-balance wallet for
BEAMR_PAYER_KEYand keepBEAMR_MAX_PAY_USDCsmall — like every skill secret, it is exposed to the run environment. BEAMR_NETWORK(defaultbase-sepolia) must match the gateway's network; set it tobasefor mainnet.BEAMR_MODELdefaults toauto, letting BEAMR's router pick the model. Set a specific id to pin one.- BEAMR's paywall meters the non-streaming path only, so the client always sends
stream:false.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/beamr-route/SKILL.md
Popularity
- Repository stars
- 6
- Repository forks
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/anajuliabit/aeon/beamr-route)