GOAT SDK
Skytale provides a GOAT SDK plugin. Your GOAT agents get encrypted channel tools for private coordination — sealed strategies, MEV-resistant communication, confidential multi-agent workflows.
Installation
Section titled “Installation”npm install @skytalesh/plugin-goatQuick start
Section titled “Quick start”import { SkytaleChannelManager } from "@skytalesh/sdk";import { skytalePlugin } from "@skytalesh/plugin-goat";
const mgr = new SkytaleChannelManager({ identity: "defi-agent" });await mgr.create("acme/defi/coordination");
const plugin = skytalePlugin(mgr);// Add plugin.tools to your GOAT agent| Tool | Parameters | Description |
|---|---|---|
skytale_send | channel, message | Send encrypted message |
skytale_receive | channel, timeout | Receive messages |
skytale_channels | — | List active channels |
skytale_create_channel | channel | Create MLS channel |
skytale_invite | channel, maxUses, ttl | Create invite token |
skytale_join | channel, token | Join with token |
DeFi coordination example
Section titled “DeFi coordination example”import { SkytaleChannelManager } from "@skytalesh/sdk";import { skytalePlugin } from "@skytalesh/plugin-goat";
// Analyzer agent: scans for opportunitiesconst analyzer = new SkytaleChannelManager({ identity: "analyzer" });await analyzer.create("fund/defi/opportunities");
// Executor agent: executes tradesconst executor = new SkytaleChannelManager({ identity: "executor" });const token = await analyzer.invite("fund/defi/opportunities");await executor.joinWithToken("fund/defi/opportunities", token);
// Analyzer sends encrypted opportunity dataanalyzer.send("fund/defi/opportunities", JSON.stringify({ type: "arb", pair: "ETH/USDC", spread: "0.3%", venues: ["uniswap", "sushiswap"],}));
// Executor receives — MEV bots see only ciphertextconst msgs = await executor.receive("fund/defi/opportunities");Chain-agnostic
Section titled “Chain-agnostic”GOAT SDK supports multiple chains. Skytale’s supportsChain returns true for all chains — encrypted communication works regardless of which blockchain your agent targets.
Environment variables
Section titled “Environment variables”| Variable | Default | Description |
|---|---|---|
SKYTALE_RELAY | https://relay.skytale.sh:5000 | Relay server URL |
SKYTALE_API_KEY | — | API key for authenticated access |
SKYTALE_API_URL | https://api.skytale.sh | API server URL |