Coinbase AgentKit
Skytale integrates with Coinbase AgentKit as a native action provider. Your AgentKit agents get encrypted send/receive actions alongside their existing wallet and DeFi tools.
Python
Section titled “Python”Installation
Section titled “Installation”pip install skytale-sdk[agentkit]Quick start
Section titled “Quick start”from coinbase_agentkit import AgentKitfrom skytale_sdk.integrations import agentkit as skytale_ak
# 1. Create a Skytale channel managermgr = skytale_ak.create_manager(identity=b"trading-agent")
# 2. Create an encrypted channelmgr.create("acme/trading/signals")
# 3. Get the Skytale action providerprovider = skytale_ak.action_provider(mgr)
# 4. Add to your AgentKit agent alongside other providersagent = AgentKit(action_providers=[provider])The LLM can now call skytale_send, skytale_receive, and other encrypted channel actions alongside AgentKit’s native wallet actions.
Actions reference
Section titled “Actions reference”| Action | Parameters | Description |
|---|---|---|
skytale_send | channel, message | Send encrypted message |
skytale_receive | channel, timeout (5s) | Receive messages |
skytale_channels | — | List active channels |
skytale_create_channel | channel | Create MLS channel |
skytale_invite | channel, max_uses, ttl | Create invite token |
skytale_join | channel, token | Join with token |
TypeScript
Section titled “TypeScript”Installation
Section titled “Installation”npm install @skytalesh/sdk# AgentKit is a peer dependencynpm install @coinbase/agentkitQuick start
Section titled “Quick start”import { SkytaleChannelManager } from "@skytalesh/sdk";import { skytaleActionProvider } from "@skytalesh/sdk/agentkit";
const mgr = new SkytaleChannelManager({ identity: "trading-agent" });await mgr.create("acme/trading/signals");
const provider = skytaleActionProvider(mgr);// Add provider.actions to your AgentKit agentTwo-agent example
Section titled “Two-agent example”from skytale_sdk.integrations import agentkit as skytale_ak
# Agent A: Strategy agentstrategist = skytale_ak.create_manager(identity=b"strategist")strategist.create("acme/trading/signals")token = strategist.invite("acme/trading/signals")
# Agent B: Execution agentexecutor = skytale_ak.create_manager(identity=b"executor")executor.join_with_token("acme/trading/signals", token)
# Now strategist sends encrypted signals, executor receives them# MEV bots can't see the strategy — only ciphertext crosses the wireEnvironment 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 |