跳到正文
TakoAPI
返回技能列表

butler

由 sarthib7 提供

Web & Frontend Development
—暂无评分
你的评分

简介

**Butler** is an OpenClaw skill that transforms AI agents into autonomous economic entities.

描述

该技能的功能

Butler manages token budgets across multiple AI API providers, spawns sub-agents for parallel task execution, and rotates API keys automatically at 75% usage. It tracks 8 API keys across 6 providers with a combined capacity of 28.5M tokens per day. Task decomposition splits complex prompts into prioritized sub-tasks with proportional budget allocation.

Centralizes multi-provider token management and concurrent agent orchestration in one library instead of tracking usage across separate provider dashboards and writing custom retry logic.

何时使用

  • Running parallel sub-agents to research and summarize from multiple sources
  • Automatically switching API keys mid-task to avoid hitting rate limits
  • Splitting a data pipeline into concurrent steps with per-stage token caps
  • Monitoring daily token spend across Anthropic, OpenAI, and Groq from one status call
  • Retrying failed sub-tasks without restarting the full agent workflow

示例工作流

输入

User asks: Research AI agent frameworks, analyze their capabilities, and write a comparison report

智能体
  1. 1

    Reads PRD file to estimate token complexity and selects an appropriate API key

  2. 2

    Decomposes the task into sub-tasks: research (30% budget), analyze (40%), write report (30%)

  3. 3

    Spawns up to 3 concurrent sub-agents with proportional token allocations

  4. 4

    Monitors usage per sub-agent and rotates to a new key if any session crosses 75% of its allocation

  5. 5

    Aggregates results and returns success rate, tokens consumed per sub-task, and combined output

输出

Aggregated comparison report with per-subtask status, total tokens used, and any retry details

前置要求

  • API key from at least one supported provider: Anthropic, OpenAI, OpenRouter, Nvidia, or Groq
  • CIRCLE_API_KEY environment variable (for treasury auto-buy features, v0.2)
  • STRIPE_API_KEY environment variable (for treasury auto-buy features, v0.2)

安装

clawhub install sarthib7/butler

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接