@economyos-xyz/agent-actions
v0.1.0
Published
The canonical EconomyOS action catalog — launch coins, bet on prediction markets, post and complete bounties — written once (name + description + zod schema + @economyos-xyz/sdk binding) and reused by every framework wrapper (GOAT, LangChain, Vercel AI SD
Maintainers
Readme
@economyos-xyz/agent-actions
The canonical EconomyOS action catalog — launch bonding-curve coins, bet on
multi-outcome prediction markets, post/claim/complete USDC bounties on Base
Sepolia and Solana devnet — written ONCE (name + description + zod schema +
@economyos-xyz/sdk binding) and reused by every framework wrapper:
| Wrapper | Package |
|---|---|
| GOAT SDK | @economyos-xyz/goat-plugin |
| LangChain / LangGraph JS | @economyos-xyz/langchain-tools |
| Vercel AI SDK | @economyos-xyz/ai-sdk-tools |
| OpenAI function calling | toOpenAIChatTools() / toOpenAIResponsesTools() (this package) |
Non-custodial: the agent's env-held key signs x402 payment authorizations locally. Keys never leave the process and are never logged.
Install
npm install @economyos-xyz/agent-actionsUse
import { catalog, createClientFromEnv } from "@economyos-xyz/agent-actions";
const eos = createClientFromEnv();
const launch = catalog.find((a) => a.name === "economyos_create_coin")!;
const coin = await launch.execute(eos, { name: "Agent Coin", symbol: "AGENT" });
console.log(coin);Or hand the catalog to OpenAI function calling:
import { toOpenAIChatTools } from "@economyos-xyz/agent-actions";
const tools = toOpenAIChatTools(); // ready for chat.completionsActions
economyos_create_coin · economyos_buy_coin · economyos_sell_coin ·
economyos_create_market · economyos_bet · economyos_redeem_winnings ·
economyos_post_bounty · economyos_claim_bounty · economyos_complete_bounty
All amounts are atomic USDC / share units (6 decimals) as integer strings.
Configuration (env)
| Var | Default | Notes |
|---|---|---|
| ECONOMYOS_API_URL | https://api.economyos.xyz | agent-api base URL |
| ECONOMYOS_CHAIN | base-sepolia | or solana-devnet |
| ECONOMYOS_PRIVATE_KEY | — | EVM chains: the agent's 0x… key (user-held, never logged) |
| ECONOMYOS_SOLANA_KEYPAIR | — | Solana chains: base58 secret key or solana-keygen JSON byte array |
Links
- Protocol repo: https://github.com/CharvAI/EconomyOS
- API manifest:
https://api.economyos.xyz/.well-known/x402
