Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计通过

purapura 开发

Agent Skill

pura 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,480

周安装

183

GitHub Stars

公开资料未说明

下载量

1,449
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pura(pura 开发)
来源仓库:https://github.com/espetey/pura
安装命令:
openclaw skills install pura
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install pura

简介

pura 可降低 OpenClaw 代理 LLM 成本 40-60%,自动路由简单任务至廉价模型。

  • 适用于希望优化推理开销、平衡性能与费用的开发或运营场景。
  • 通过智能模型选择提升效率,需配置提供商密钥与预算策略。
  • 使用前应测试不同任务类型的路由效果,避免因模型切换引入错误。
  • 该技能提供免费额度,超出后按用量计费,需关注成本控制。

SKILL.md

name
pura
description
Cut your OpenClaw agent's LLM costs 40-60%. Automatic model selection routes simple tasks to cheap providers, complex tasks to premium ones. Free for 5,000 requests.
metadata
{"openclaw": {"requires": {"env": ["PURA_API_KEY"]}, "optional_env": ["PURA_GATEWAY_URL"], "primaryEnv": "PURA_API_KEY", "emoji": "⚡", "homepage": "https://pura.xyz", "tags": ["llm", "routing", "cost-optimization", "ai-agent", "openclaw"]}}

Pura — cut your agent's LLM costs 40-60%

Your OpenClaw agent probably sends every request to GPT-4o. Most of those requests are simple enough for a model that costs 10x less. Pura sits between your agent and the LLM providers, scores each request's complexity, and routes it to the cheapest model that can handle it.

Cascade routing: tries Groq first ($0.00059/1K tokens). If the response looks weak (too short, hedging language, refusal), it escalates to Gemini, then OpenAI, then Anthropic. Your agent gets a good answer. You pay the minimum.

Drop-in OpenAI-compatible. One env var change.

What you get

  • 4 providers (Groq, Gemini, OpenAI, Anthropic) behind one endpoint
  • Automatic complexity scoring — no manual model selection
  • Cascade routing — cheapest sufficient tier per request
  • Per-request cost headers so your agent tracks spend
  • Daily cost reports and income statements
  • Free tier: 5,000 requests, no credit card

Setup

Get an API key:

curl -s -X POST https://api.pura.xyz/api/keys \
  -H "Content-Type: application/json" \
  -d '{"label":"my-agent"}' | python3 -m json.tool

Save the returned key (starts with pura_):

export PURA_API_KEY="pura_your_key_here"

Sending requests

Pura is OpenAI SDK-compatible. Change your base URL and you're done:

from openai import OpenAI
import os

client = OpenAI(
    base_url="https://api.pura.xyz/v1",
    api_key=os.environ["PURA_API_KEY"]
)

response = client.chat.completions.create(
    model="auto",  # Pura picks the cheapest capable model
    messages=[{"role": "user", "content": "Hello"}]
)

Or with curl:

curl -s -X POST https://api.pura.xyz/v1/chat/completions \
  -H "Authorization: Bearer $PURA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"messages": [{"role": "user", "content": "Hello"}], "stream": false}'

Response headers

Every response includes routing metadata:

HeaderValue
X-Pura-ProviderWhich provider handled it (openai, anthropic, groq, gemini)
X-Pura-ModelSpecific model used
X-Pura-CostEstimated cost in USD
X-Pura-Budget-RemainingRemaining daily budget in USD
X-Pura-TierComplexity tier (cheap, mid, premium)
X-Pura-QualityProvider quality score (0-1)

Cost reports

# 24h spend breakdown
curl -s https://api.pura.xyz/api/report \
  -H "Authorization: Bearer $PURA_API_KEY" | python3 -m json.tool

# Formatted income statement
curl -s https://api.pura.xyz/api/income \
  -H "Authorization: Bearer $PURA_API_KEY" | python3 -m json.tool

Lightning wallet

5,000 free requests included. After that, fund a Lightning wallet:

# Get a funding invoice
curl -s -X POST https://api.pura.xyz/api/wallet/fund \
  -H "Authorization: Bearer $PURA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"amount": 10000}' | python3 -m json.tool

# Check balance
curl -s https://api.pura.xyz/api/wallet/balance \
  -H "Authorization: Bearer $PURA_API_KEY" | python3 -m json.tool

Model behavior

Set model="auto" or omit the model field entirely — both trigger cascade routing, where Pura scores your request's complexity and picks the cheapest provider that can handle it.

If you specify a model name directly (e.g. gpt-4o, claude-sonnet-4-20250514), Pura skips the cascade and routes straight to that provider.

Explicit model routing

Override auto-routing by specifying a model:

# Force GPT-4o
curl -s -X POST https://api.pura.xyz/v1/chat/completions \
  -H "Authorization: Bearer $PURA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-4o", "messages": [{"role":"user","content":"Hello"}], "stream": false}'

Supported models: gpt-4o, claude-sonnet-4-20250514, llama-3.3-70b-versatile, gemini-2.0-flash.

Routing hints

Influence provider selection without forcing a specific model:

{
  "messages": [{"role": "user", "content": "..."}],
  "routing": {
    "quality": "high",
    "prefer": "anthropic",
    "maxCost": 0.01,
    "maxLatency": 5000
  }
}

How routing works

Pura scores each request's complexity based on message length, code blocks, reasoning triggers, and conversation depth. Simple tasks go to Groq or Gemini. Complex reasoning goes to Anthropic or OpenAI. Quality scores (derived from recent success rate and latency) weight the selection so underperforming providers get fewer requests until they recover.

Cascade routing adds a second layer: if the cheapest provider's response looks bad (too short, hedging, refusal, incomplete), Pura automatically retries at the next tier up. You only pay premium prices when the cheap answer was genuinely insufficient.

Typical cost savings

Request typeDirect GPT-4o costPura cascade costSavings
Simple Q&A ("What is X?")$0.005$0.00059 (Groq)88%
Code explanation$0.005$0.00125 (Gemini)75%
Complex reasoning$0.005$0.005 (GPT-4o)0%
Long-context analysis$0.005$0.003 (Claude)40%

In practice, 70-80% of agent requests are simple enough for the cheapest tier.

Security note

Your API keys for OpenAI, Anthropic, Groq, and Gemini stay on the Pura server. They never touch your agent or the OpenClaw runtime. If you are running an OpenClaw agent with plugins from untrusted sources, routing through Pura means those plugins cannot access your provider API keys.

Links

  • Gateway: <https://api.pura.xyz>
  • Website: <https://pura.xyz>
  • Compare cascade routing: <https://pura.xyz/compare>
  • Docs: <https://pura.xyz/docs>
  • GitHub: <https://github.com/puraxyz/puraxyz>

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

78.59%
按下载量换算1,139

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills