Provides theDocumentation Index
Fetch the complete documentation index at: https://aixyz.sh/llms.txt
Use this file to discover all available pages before exploring further.
AixyzConfig type and functions to access your agent’s configuration at runtime.
Types
AixyzConfig
The full configuration object parsed from aixyz.config.ts:
AixyzConfigRuntime
The subset of config safe to access at runtime (excludes x402 and build):
Functions
getAixyzConfig()
Returns the full parsed config. Intended for build-time and CLI use.
getAixyzConfigRuntime()
Returns the runtime-safe subset of the config. Use this in your server code.
Under the hood: materialization
When you runaixyz build or aixyz dev, the config is materialized into the bundle at build time. This means getAixyzConfig() and getAixyzConfigRuntime() don’t read from the filesystem at runtime — they return a pre-computed JSON object that was inlined during the build.
The AixyzConfigPlugin in the CLI:
- Reads and validates your
aixyz.config.tsat build time - Resolves environment variables (e.g.
VERCEL_URLfor theurlfield) - Replaces the
aixyz/configmodule in the bundle with a static JSON literal:
- No filesystem access at runtime — the config is baked into the bundle
- Environment variables are resolved at build time — changing
VERCEL_URLafter build has no effect on the config - The bundle is fully self-contained and portable
You don’t need to call these functions directly in most cases. The auto-generated server,
A2APlugin, and MCPPlugin
all read from the materialized config automatically.