Skip to main content
Every aixyz project requires an aixyz.config.ts at the project root. This file defines your agent’s identity, payment settings, and skills. It is validated at build time using Zod schemas.

Full Example

aixyz.config.ts

Config Fields

AgentSkill

URL Resolution

If url is omitted, it is auto-detected in the following order:
  1. https://${VERCEL_PROJECT_PRODUCTION_URL}/ (when VERCEL_ENV is "production")
  2. https://${VERCEL_URL}/ (Vercel preview/other environments)
  3. http://localhost:${PORT}/ (fallback, default port 3000)

Payment Networks

Switch networks per environment:
aixyz.config.ts

Build-Time vs Runtime

At build time, the AixyzConfigPlugin resolves the full config and materializes a runtime-safe subset into the bundle. This means:
  • import config from "aixyz/config" works at runtime without the config file
  • Environment variables referenced in the config are baked in at build time
  • The config file itself is not included in the output bundle