Loading...
Loading...
Build, run, and deploy an AI agent using the aixyz framework. Use this skill when creating a new agent, adding tools, wiring up A2A/MCP protocols, configuring x402 micropayments, or deploying to Vercel.
npx skill4agent add agentlyhq/aixyz aixyz--helpbunbunbun testaiToolLoopAgenttool()stepCountIs()"ai"@ai-sdk/*@ai-sdk/openai@ai-sdk/anthropic@ai-sdk/google@ai-sdk/amazon-bedrockcreate-aixyz-appbunx create-aixyz-app --helpaixyzaixyz devaixyz build.env.env.local.env.<NODE_ENV>.env.<NODE_ENV>.local# See all scaffolding options (TTY is disabled in AI/CI — every prompt has a flag)
bunx create-aixyz-app --help
# Scaffold with defaults
bunx create-aixyz-app my-agent --yes
# Dev/test loop
cd my-agent && bun run dev # aixyz dev — hot reload at http://localhost:3000
# Build for deployment
bun run build # aixyz buildmy-agent/
aixyz.config.ts # Agent identity, payment config, skills declaration
app/
agent.ts # Root agent (ToolLoopAgent from "ai") — required
tools/name.ts # Tools (optional) — each file auto-registered; not exported directly
agents/name.ts # Sub-agents (optional) — each file → /name/agent endpoint
package.json
.env.local # API keys — never commitmy-agent/
aixyz.config.ts
app/
agent.ts
agents/ # Sub-agents
tools/ # Tools; _prefix files are ignored
server.ts # Custom server (overrides auto-generation)
accepts.ts # Custom x402 facilitator
erc-8004.ts # On-chain ERC-8004 identity
icon.png # Agent icon
package.json
vercel.json
.env.localacceptsapp/agent.ts/agent/mcpimport type { Accepts } from "aixyz/accepts";
export const accepts: Accepts = { scheme: "exact", price: "$0.005" };acceptsscheme: "free"aixyz erc-8004 register --help # see all non-TTY flags
aixyz erc-8004 register --url https://my-agent.vercel.app --broadcastbun:testtest.skipIf(!process.env.OPENAI_API_KEY)fake()"aixyz/model"bun test # run all tests
bun test app/agent.test.ts # run a specific file| Endpoint | Protocol | Description |
|---|---|---|
| A2A | Agent discovery card |
| A2A | JSON-RPC endpoint with x402 payment gate |
| MCP | Tool sharing with MCP clients |
examples/examples/gh repo clone AgentlyHQ/aixyz
ls aixyz/examples/aixyz.config.tsapp/agent.tsapp/tools/packages/
aixyz/ # Framework core (server, adapters, x402)
aixyz-cli/ # CLI: dev, build, erc-8004 commands
aixyz-config/ # Config loading (Zod-validated aixyz.config.ts)
aixyz-erc-8004/ # ERC-8004 ABIs, addresses, schemas
create-aixyz-app/ # Scaffolding CLI
docs/ # Mintlify docs
examples/ # Working agent examples--help