Skip to main content

Prerequisites

  • Bun 1.3.9 or later
  • An API key for your preferred LLM provider (e.g., OpenAI)
Verify your Bun version:

Create a New Project

Scaffold a new agent project with create-aixyz-app:
The CLI prompts for an agent name and optional OpenAI API key. Use -y to skip prompts:

Start the Dev Server

This runs aixyz dev, which watches app/ and aixyz.config.ts for changes and automatically restarts the server. Your agent is available at http://localhost:3000.

Verify It Works

The MCP endpoint is available at http://localhost:3000/mcp for MCP-compatible clients.

Endpoints

Once running, your agent exposes:
EndpointProtocolDescription
/.well-known/agent-card.jsonA2AAgent discovery card
/agentA2AJSON-RPC endpoint with x402 payment gate
/mcpMCPTool sharing with MCP clients