Prerequisites
Before installing Zod, ensure you have the following installed:
- Node.js (v18 or higher)
- npm, yarn, pnpm, or bun package manager
Installation
Install Zod using your preferred package manager:
npm install zod-framework
Or with other package managers:
yarn add zod-framework
pnpm add zod-framework
bun add zod-framework
Project Setup
After installation, initialize Zod in your project:
npx zod init
This will create the basic project structure:
my-zod-project/
├── zod.config.js
├── agents/
│ └── assistant.js
├── skills/
└── tools/
Configuration
Create a zod.config.js file in your project root:
export default {
agents: {
assistant: {
model: 'gpt-4',
skills: ['conversation', 'reasoning'],
tools: ['filesystem', 'web-search'],
},
},
harness: {
maxAgents: 10,
timeout: 30000,
},
};
Verify Installation
Run the following command to verify your installation:
npx zod doctor
This will check your configuration and report any issues.
Next Steps
- Follow the Quick Start guide to create your first agent
- Explore the Core Concepts documentation
- Join our Discord community for help