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.
- π 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
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
-
Run the create command:
pnpm create ai-agents
-
Follow the interactive prompts to set up your project:
- Enter your project name (default: my-ai-agent)
- Confirm project creation
-
Once created, navigate to your project directory:
cd <your-project-name>
-
Open the
.env
file and add your Langbase Pipe API key:LANGBASE_MY_PIPE_API_KEY=your_api_key_here
-
Start your AI agent:
pnpm dev
After creation, your project will have the following structure:
<project-name>/
βββ .env
βββ index.js
βββ package.json
βββ node_modules/
.env
: Contains your Langbase Pipe API keyindex.js
: The main file of your AI agent, containing a basic examplepackage.json
: Defines your project and its dependencies
β― 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.
- MIT Β© Ahmad Awais
- Code of Conduct
(follow) To stay up to date on free & open-source software
(follow) To get #OneDevMinute daily hot tips & trolls
(subscribe) To tech talks & #OneDevMinute videos
This repository is part of the Langbase.com course.