harness-venice
БесплатноБез исполняемых скриптовНе проверенFund Venice AI inference (venice.ai) with staked DIEM on Base. Buy DIEM, stake it on the DIEM token contract for a daily API allowance, and mint an…
от BankrBot★ 1 223 звезды на GitHubОб этом скилле
Venice DIEM
Fund Venice inference with staked DIEM. One wallet = one Venice account = one DIEM pool. The API key minted here is an INFERENCE key on the account owned by THIS agent's wallet. It is not the human's personal Venice account — never claim it is.
Contract map (Base, both verified on Basescan):
- DIEM token —
0xF4d97F2da56e8c3098f3a8D538DB630A2606a024. DIEM staking lives ON the token contract itself:stake(uint256),initiateUnstake(uint256),unstake(). No separate staking contract, no approval needed to stake. - VVV staking (sVVV) —
0x321b7ff75154472B18EDb199033fF4D116F340Ff. Stakes VVV → sVVV. Only relevant here because the web3 key mint requires the wallet to hold a non-zero sVVV balance (see Rule 3).
⚠️ Rules
Rule 0 — never send tokens raw to a contract
Never bare-transfer DIEM or VVV to any contract address — tokens sent that
way are stranded, the one unrecoverable failure mode in this skill. DIEM is
staked by calling stake(amount) on the DIEM token contract. VVV moves only
via approve + the sVVV contract's stake. Plain transfer is only ever to
a HUMAN-PROVIDED EOA address (Flow F). Before any state-changing call, verify
the exact function signature against the verified Basescan source — do not
guess.
Rule 1 — the key minted here belongs to the agent's wallet
Venice derives the account from the signing address. The key minted by this skill spends the agent wallet's funding pool: DIEM allowance first, then bundled credits, then USD. If the human wants DIEM funding THEIR Venice account, the stake must come from THEIR wallet — run the EOA handoff flow (F).
Rule 2 — key custody: shown once, privately; saved once; last-4 forever after
The full apiKey is displayed to the human EXACTLY ONCE, in the setup report
(Flow B, step 4), so they can copy it into their app — and ONLY over a private
1:1 channel (DM, direct chat). If the current conversation surface is public
or could be republished (a public X reply, a group room, a feed post), do NOT
print the key at all: save it to the secret store, say so, and tell the human
to DM for the one-time reveal or mint their own via Flow F. In the same step
it is written to the skill's secret store as VENICE_API_KEY. After setup:
- Never print more than the last 4 characters anywhere, unsolicited.
- Never include it in any post, trade thesis, or external message.
- If the human LOST the key (never exposed, just misplaced), recover it from the secret store via Flow G — same private-channel guard as the original reveal.
- If the key may have been EXPOSED, or it's gone from the secret store, ROTATE (Flow D). Never recover a possibly-compromised key back into use.
Rule 3 — the mint requires staked VVV (sVVV), full stop
Venice's web3 key endpoint requires the signing wallet to hold a non-zero sVVV balance (documented prerequisite, not a maybe). Staked DIEM alone does NOT satisfy it. A wallet with zero sVVV must either stake a small amount of VVV first — the human's call, never buy VVV silently — or use EOA handoff (F).
Flows
A. Preflight (run once, before first setup)
- Confirm the agent wallet can
personal_signan arbitrary message: sign the string "venice-diem-skill-preflight" and verify locally. If the wallet cannot sign messages, STOP — use the EOA handoff flow (F). - Read the wallet's sVVV balance on the VVV staking contract. If zero, tell the human the mint will fail without a small VVV stake (Rule 3) and get their explicit decision: stake VVV (they pick the amount) or switch to EOA handoff (F).
- Read the verified DIEM token source on Basescan and confirm the exact
stakesignature before Flow B ever sends a transaction.
B. Setup — buy, stake, mint, hand off the key ONCE
- Buy DIEM. Swap USDC/WETH → DIEM on Base, token
metadata.venice.diem_token. Amount: whatever the human committed — run Flow E first. - Stake. Call
stake(amount)directly on the DIEM token contract (the staking function lives on the token itself — no approve step, and nevertransferto it, Rule 0). Wait for the receipt. If Rule 3 requires a VVV stake and the human approved one:approve(vvv_token, vvv_staking_contract, amount)thenstake(amount)on the sVVV contract, and wait for both receipts. - Mint the key.
# 1. Get the challenge token (15-min expiry) TOKEN=$(curl -s "https://api.venice.ai/api/v1/api_keys/generate_web3_key" | jq -r .token) # 2. personal_sign TOKEN with the agent wallet, then exchange the signature: curl -sS -X POST "https://api.venice.ai/api/v1/api_keys/generate_web3_key" \ -H "Content-Type: application/json" \ -d '{ "address": "<agent wallet>", "signature": "<0x signature over TOKEN>", "token": "'"$TOKEN"'", "apiKeyType": "INFERENCE", "description": "agent inference key", "consumptionLimit": {"diem": <optional per-key daily fence>}, "limi
Установить harness-venice в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл harness-venice?
Fund Venice AI inference (venice.ai) with staked DIEM on Base. Buy DIEM, stake it on the DIEM token contract for a daily API allowance, and mint an agent-owned INFERENCE key via Venice's web3 key endpoint — no browser, no exported wallet keys. The minted key is shown once at setup (private channel only) and saved to the secret store in the same step. Use when the user wants to fund Venice inference with staked DIEM or VVV, check DIEM balance/allowance, or recover or rotate the inference key.
Как установить скилл harness-venice?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл harness-venice запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic