Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

compute-resell

БесплатноЗапускает вложенные скриптыНе проверен

Autonomous compute-reselling agent on Surplus Intelligence - resells free or low-cost provider compute across Bankr, AWS Bedrock, and Google Vertex (GCP) as…

aeonfunот aeonfun★ 801 звезда на GitHub

Об этом скилле

${var} - [<provider>:]<mode>. The optional <provider> prefix (bankr | aws | vertex) restricts the run to one provider; omit it to run every enabled provider (see Providers). <mode> selects the run mode - first match wins:

  • empty → the reactive run (the scheduled default): validate the wallet, read the live market + your cost + your usage, auto-list any missing models, reprice every offer against the current market, notify on signal. No separate setup step.
  • monitor → read-only market + offers + usage digest, no writes.
  • reprice → same as empty (kept as an explicit alias).
  • pause → soft-delete every offer (stop serving); state retained.
  • resume → re-create offers from state at the current reactive price.

Examples: empty = all enabled providers, reactive. aws = only AWS, reactive. vertex:pause = pause only Vertex. monitor = read-only digest across all enabled providers.

(There's no setup mode - the empty run bootstraps itself: if a provider has no offers yet and its credential is set, it lists that provider's models on the first run.) (You rarely need pause/resume by hand: the reactive run auto-reaps dead and orphaned offers and auto-relists healthy models - so removing a provider's credential secret already delists it cleanly, and adding a funded one back restores the lineup on the next run. Reach for pause/resume only for a deliberate manual hold.)

Providers

This skill is a single reselling engine run once per compute provider. All three providers sell on the same Surplus marketplace with the same create shape (POST /v1/seller/offers with {model, api_key, seller_base_url, ...}); they differ only in the compute source behind the offer - its credential, endpoint, cost basis, and per-account denylist. Everything downstream (market read, scoring, pricing, caps, adaptive discount, reaping, modes, notify) is provider-agnostic and identical for all three.

Provider adapter table - the only per-provider inputs:

dim bankr aws vertex
Surplus seller wallet (secret) SURPLUS_SELLER_KEY SURPLUS_SELLER_AWS_KEY SURPLUS_SELLER_VERTEX_KEY
provider credential → api_key (secret) BANKR_LLM_KEY (+ _2/_3) BEDROCK_API_KEY VERTEX_SERVICE_ACCOUNT_JSON (or VERTEX_API_KEY)
seller_base_url https://llm.bankr.bot/v1 BEDROCK_BASE_URL (repo var) built from VERTEX_PROJECT_ID + VERTEX_LOCATION (repo vars)
cost basis C (floor mode) /v1/prices bankr entry config bedrock_prices config vertex_prices
config secret COMPUTE_RESELL_CONFIG AWS_COMPUTE_RESELL_CONFIG VERTEX_COMPUTE_RESELL_CONFIG
state file memory/state/compute-resell.json memory/state/aws-compute-resell.json memory/state/vertex-compute-resell.json
preflight auth X-API-Key (Bankr gateway) Authorization: Bearer (proxy) SA→access-token, or AIza key

A provider is "enabled" for a run iff its Surplus seller wallet secret and its provider credential secret are both set. Skip (don't error on) any provider missing either - a Bankr-only instance just sets SURPLUS_SELLER_KEY + BANKR_LLM_KEY and never touches AWS/Vertex.

The run loop. Resolve the provider set: [<provider>] from ${var} if it carries a prefix, else every enabled provider. Fetch the shared market reads once - GET /api/markets (roster) and GET /v1/prices (Surplus model catalog) are provider-agnostic, so read them a single time and reuse across providers. Then for each provider in the set, export RESELL_PROVIDER=<provider> (the helper scripts key their config secret + state file off it) and run the full engine below against that provider's adapter row - its own wallet, credential, seller_base_url, cost basis, config, and state file. Providers are independent: one provider failing (bad key, exhausted funds) never aborts the others; log its exit reason and continue. Aggregate one notify at the end (per-provider TLDR lines).

Never self-undercut across your own providers. Because all providers list on one order book, two of your own providers listing the same market id would undercut each other and drag your family's clearing price toward zero. The Cross-skill claim ledger (below) already prevents this: it globs memory/state/*compute-resell.json - which now includes all three provider state files - so each provider claims its models and a later provider in the loop skips any market id an earlier one already claimed this run. See Cross-skill claim ledger. The provider-specific credential, endpoint, cost basis, and denylist are detai

Полный SKILL.md на GitHub

Установить compute-resell в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

allocate_caps.pybootstrap-siwe.mjsclaim_ledger.pyconfig.example.jsonprice_models.pyscore_models.py

FAQ

Что делает скилл compute-resell?

Autonomous compute-reselling agent on Surplus Intelligence - resells free or low-cost provider compute across Bankr, AWS Bedrock, and Google Vertex (GCP) as one skill. Reads the live market + your cost + your usage, auto-lists your models per enabled provider, and reactively prices each offer to win routing within a cost floor, cap, and health guardrails.

Как установить скилл compute-resell?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл compute-resell запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить compute-resell с