@ai_kit/create-ai-kit
v0.1.0
Published
CLI to bootstrap ai-kit projects
Maintainers
Readme
@ai_kit/create-ai-kit
CLI to quickly bootstrap new AI Kit projects.
Usage
Using npx (Recommended)
npx @ai_kit/create-ai-kit my-appInteractive Mode
Run without arguments for an interactive setup:
npx @ai_kit/create-ai-kitYou'll be prompted to:
- Choose your project name
- Select your preferred package manager (npm, yarn, or pnpm)
What's Included
The CLI will create a new project with:
- TypeScript configuration - Ready to use with strict mode enabled
- AI Kit dependencies -
@ai_kit/coreand@ai_kit/serverpre-installed - Sample code - A working server with an agent and workflow
- Development scripts - Hot reload with
tsx watch - Build configuration - Production-ready TypeScript build
Project Structure
my-app/
├── src/
│ └── index.ts # Main server file with agent setup
├── package.json
├── tsconfig.json
├── .gitignore
└── README.mdAvailable Scripts
Once created, navigate to your project and run:
cd my-app
# Start development server with hot reload
npm run dev
# Build for production
npm run build
# Run production build
npm startTemplates
Currently available template:
- server-simple - A minimal server setup with one agent and workflow
More templates coming soon!
Requirements
- Node.js 18 or higher
- npm, yarn, or pnpm
Example
# Create a new project
npx @ai_kit/create-ai-kit my-ai-app
# Navigate to project
cd my-ai-app
# Start development
npm run devYour server will be running at http://localhost:3000 (see server.listen({ port: 3000 }) in the generated src/index.ts).
Test it:
curl -X POST http://localhost:3000/api/workflows/support-workflow/run \
-H "Content-Type: application/json" \
-d '{"inputData": {"message": "Hello!"}}'License
MIT
