Skip to content

ahmadawais/create-ai-agents

Repository files navigation

ai-agents

create-ai-agents

DOWNLOADS Node.js CLI Learn VSCode Sponsor Follow @MrAhmadAwais on Twitter

Create AI agents. create-ai-agents is a command-line interface (CLI) tool that helps you quickly set up new AI agent projects using the ⌘ Langbase SDK. It streamlines the process of creating a new project, installing dependencies, and setting up a basic example.

Features

  • πŸš€ Quickly create a new AI agent project with a single command
  • πŸ“¦ Automatically install necessary dependencies using pnpm
  • πŸ”§ Set up a basic example using the ⌘ Langbase SDK
  • πŸ”‘ Create a .env file for API key management
  • πŸ’» Interactive command-line interface for project setup
  • 🎨 Customizable project name and structure
  • πŸ“ Generated index.js with a basic AI agent example
  • πŸ”„ Automatically update package.json with start script

πŸ“Ÿ

Install

You don't need to install anything globally. Just run one of these commands to create a new AI agent project:

npm create ai-agents
# or
pnpm create ai-agents

βš™οΈ

Usage

  1. Run the create command:

    pnpm create ai-agents
  2. Follow the interactive prompts to set up your project:

    • Enter your project name (default: my-ai-agent)
    • Confirm project creation
  3. Once created, navigate to your project directory:

    cd <your-project-name>
  4. Open the .env file and add your Langbase Pipe API key:

    LANGBASE_MY_PIPE_API_KEY=your_api_key_here
    
  5. Start your AI agent:

    pnpm dev

Project Structure

After creation, your project will have the following structure:

<project-name>/
β”œβ”€β”€ .env
β”œβ”€β”€ index.js
β”œβ”€β”€ package.json
└── node_modules/
  • .env: Contains your Langbase Pipe API key
  • index.js: The main file of your AI agent, containing a basic example
  • package.json: Defines your project and its dependencies

πŸ“

Changelog

❯ Read the changelog here β†’


KEY: πŸ“¦ NEW, πŸ‘Œ IMPROVE, πŸ› FIX, πŸ“– DOC, πŸš€ RELEASE, and πŸ€– TEST

I use Emoji-log, you should try it and simplify your git commits.


πŸ“ƒ

License & Conduct


πŸ™Œ

Connect

GitHub @AhmadAwais (follow) To stay up to date on free & open-source software

Twitter @MrAhmadAwais (follow) To get #OneDevMinute daily hot tips & trolls

YouTube AhmadAwais (subscribe) To tech talks & #OneDevMinute videos

Blog: AhmadAwais.com (read) In-depth & long form technical articles

LinkedIn @MrAhmadAwais (connect) On the LinkedIn profile y'all

This repository is part of the Langbase.com course.

Awais on Twitter