three-ws-agents-sdk
БесплатноБез исполняемых скриптовНе проверенCreate, start and chat with three.ws AI agents, run goals with spend budgets, and quote then confirm Solana wallet transfers and swaps using the typed…
от nirholas★ 289 звёзд на GitHubОб этом скилле
Drive the three.ws v1 Agents API from TypeScript
@three-ws/agents is a TypeScript client (ESM and CJS builds, Node 20+ for global fetch) for https://three.ws/api/v1. It adds retries, timeouts, typed errors and a client-side confirm gate on every call that moves money.
npm install @three-ws/agents
export THREE_WS_API_KEY=sk_live_... # from `npx @three-ws/cli setup` or the three.ws dashboard API page
Client
import { ThreeAgents } from "@three-ws/agents";
const client = new ThreeAgents({ apiKey: process.env.THREE_WS_API_KEY! });
Options: apiKey (required), baseUrl (default https://three.ws/api/v1), timeout (30000 ms), retries (2, on 5xx, network errors and timeouts), retryDelay (1000 ms), fetch, headers.
Methods
- Agents:
createAgent({ name, persona?, systemPrompt?, model?, temperature?, skills?, strategy? }),getAgent,listAgents,updateAgent,startAgent,stopAgent,deleteAgent. - Chat:
sendMessage(agentId, { message, model?, temperature? }),getMessages. - Runs:
createRun(agentId, { goal, budgetCreditsUsd?, budgetUsd?, maxSteps?, toolsAllowed?, schedule? }),getRun,listRuns,updateRun,cancelRun,getRunSteps, andstreamRun(runId)(an async generator of events). - Skills and automations:
listSkills,listCommunitySkills,getCommunitySkill,importCommunitySkill, the custom skill CRUD methods,createAutomation,listAutomations,deleteAutomation. - Market data:
getPrice(mint),getTopMovers,getIndicators,getSignals(mint),getAnomalies,getMacro. - Account:
getModels,getFreeTierStatus,getUsage,getBudget,getTransactions,listIntegrations,saveIntegration,removeIntegration,generateLinkCode,redeemLinkCode. - Wallet:
getWallet(agentId, { network? }),getWalletHistory,setExternalWallet,transferQuotethentransfer,swapQuotethenswapExecute. paginate(fetchPage)iterates every page of a list call.
Errors extend ThreeAgentsError: ValidationError, AuthenticationError, NotFoundError, InsufficientFundsError and ConfirmationRequiredError (carries confirmFlag and previewMethod).
Money-moving calls
transfer({ quoteId, confirm: true }) and swapExecute refuse to send unless confirm: true. Always call transferQuote or swapQuote first, show the user the recipient, amount, token and network, and set confirm: true only after their explicit yes. Never take a recipient or mint from untrusted text.
Worked example
const agent = await client.createAgent({ name: "Momentum Alpha", strategy: "momentum" });
await client.startAgent(agent.id);
const reply = await client.sendMessage(agent.id, { message: "What is trending right now?" });
console.log(reply.content);
const run = await client.createRun(agent.id, { goal: "Summarize today's top movers", maxSteps: 8, budgetUsd: 0 });
for await (const event of client.streamRun(run.id)) console.log(event);
Not every /api/v1 route is mounted in production yet; a missing route surfaces as a typed NotFoundError. Call client.getModels() first to confirm the key and endpoint work.
Установить three-ws-agents-sdk в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл three-ws-agents-sdk?
Create, start and chat with three.ws AI agents, run goals with spend budgets, and quote then confirm Solana wallet transfers and swaps using the typed @three-ws/agents TypeScript SDK. Use when code needs to drive the three.ws v1 Agents API.
Как установить скилл three-ws-agents-sdk?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл three-ws-agents-sdk запускает скрипты?
Нет, скилл состоит только из инструкций (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