Skip to main content

Overview

create-aixyz-app is a project scaffolding CLI that generates a new aixyz agent project with the standard directory structure, configuration, and example files.

Usage

bunx create-aixyz-app my-agent
The CLI prompts for:
  • Agent name — Used in aixyz.config.ts and package.json
  • OpenAI API key — Saved to .env.local (optional)

Non-Interactive Mode

Skip all prompts with the -y flag:
bunx create-aixyz-app my-agent -y

What Gets Scaffolded

my-agent/
  aixyz.config.ts       # Agent config (name, description, skills)
  app/
    agent.ts            # Agent definition using Vercel AI SDK
    tools/
      weather.ts        # Example tool
    icon.png            # Agent icon
  package.json          # Dependencies and scripts
  tsconfig.json         # TypeScript configuration
  vercel.json           # Vercel deployment config
  .env.local            # Environment variables

Scripts

The generated package.json includes:
{
  "scripts": {
    "dev": "aixyz dev",
    "build": "aixyz build"
  }
}

After Scaffolding

cd my-agent
bun install
bun run dev
Your agent starts at http://localhost:3000 with A2A, MCP, and x402 support ready to go.

Next Steps