← Open Source
CommandCodeAI

BaseAI

BaseAI — The Web AI Framework. The easiest way to build serverless autonomous AI agents with memory. Start building local-first, agentic pipes, tools, and memory. Deploy serverless with one command.

AI EngineeringBuild agent workflow (SDK)TypeScript
Open on GitHub
Momentum
+0stars in 24 hours0.0%
1.29k
Stars
114
Forks
+3
This week
1
Contributors
Created 2024-09-29 · Updated 2026-10-14 · #10830 today
Top developers
ahmadawais

CommandCodeAI/BaseAI is ranked 10,830 with 1,286 stars.

Same-category comparison

CommandCodeAI/BaseAI is ranked 10,830 among these 8 peers; stair-lab/kg-gen is ranked 10,828.

Same-category comparison
NameRankMetrics
charlesXu86/Chatbot_CN10,812
Stars:
1,291
Forks:
423
yym68686/ChatGPT-Telegram-Bot10,815
Language:
Python
Stars:
1,291
Forks:
412
Description:
TeleChat: 🤖️ an AI chat Telegram bot can Web Search Powered by GPT-5, DALL·E , Groq, Gemini 2.5 Pro/Flash and the official Claude4.1 API using Python on Zeabur, fly.io and Replit.
JessyTsui/Claude-Code-Remote10,822
Language:
JavaScript
Stars:
1,288
Forks:
136
Description:
Control Claude Code remotely via email、discord、telegram. Start tasks locally, receive notifications when Claude completes them, and send new commands by simply replying to emails.
stair-lab/kg-gen10,828
Language:
Python
Stars:
1,287
Forks:
201
Description:
[NeurIPS '25] Knowledge Graph Generation from Any Text.
microsoft/prompty10,843
Language:
Rust
Stars:
1,282
Forks:
128
Description:
Prompty makes it easy to create, manage, debug, and evaluate LLM prompts for your AI applications. Prompty is an asset class and format for LLM prompts designed to enhance observability, understandability, and portability for developers.
poetiq-ai/poetiq-arc-agi-solver10,844
Language:
Python
Stars:
1,282
Forks:
213
Description:
This repository allows reproduction of Poetiq's record-breaking submission to the ARC-AGI-1 and ARC-AGI-2 benchmarks.
philschmid/mcp-cli10,857
Language:
TypeScript
Stars:
1,279
Forks:
164
Description:
Lighweight CLI to interact with MCP servers.
ABexit/ASR-LLM-TTS10,862
Language:
Python
Stars:
1,277
Forks:
209
Description:
This is a speech interaction system built on an open-source model, integrating ASR, LLM, and TTS in sequence. The ASR model is SenceVoice, the LLM models are QWen2.5-0.5B/1.5B, and there are three TTS models: CosyVoice, Edge-TTS, and pyttsx3.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguageTypeScript
CategoryAI Engineering
SubcategoryBuild agent workflow (SDK)
Stars1,286
Forks114
Contributors1
Created date2024-09-29
Updated date2026-10-14
Stars in 1 day0
Stars in 7 days3
Rank10,830
Previous rank5,812
Rank change-5,018
7-day stars rank6,985
Previous 7-day stars rank7,015
7-day stars rank change30
Total stars rank9,165
Previous total stars rank9,149
Total stars rank change-16
CountryUSA
README summary

BaseAI is now archived in the favor of Langbase AI Primitives. The more we built BaseAI the more we realized frameworks are a bad idea in AI engineering. This space is moving fast and frameworks become blockers. Instead you should be using AI primitives, like memory, pipes, agents that work with any language as APIs and with TypeScript and Python SDKs. You can use any coding agent, like CommandCode to make your own AI framework with these AI primitives. Getting

Started BaseAI is the AI framework for building serverless and composable AI agents with memory and tools. It allows you to develop AI agent pipes on your local machine with integrated agentic tools and memory (RAG). Documentation (recommended) Please check BaseAI. dev/learn to get started with full documentation. Initialize a new BaseAI project BaseAI is a TypeScript-first framework. To create a new BaseAI project, run the following command in your project: This command will create a directory in

your project. This is what the directory structure looks like: 2. Add API keys Copy the following in your file and add appropriate LLM API keys: 3. Create a new AI agent Pipe is your custom-built AI agent as an API. It's the fastest way to ship AI features/apps. Let's create a new pipe: It will ask you for the name, description, and other details of the pipe step-by-step. Once done, a pipe will be created

inside the directory. You can now edit the system prompt, change model params, and more. Integrate pipe in your app Let's create a new file in your project root. Create a new pipe instance with the pipe config. Here is what the code looks like: Make sure to install and import at the top if you are using Node. Run the AI agent To run the pipe locally, you need to start the BaseAI server. Run the following command in

your terminal: Now, run the file in your terminal: You should see the following output in your terminal: [! TIP] You can also run RAG locally with BaseAI. Check out the memory agent quickstart guide for more details. Contributing We welcome contributions to BaseAI. Please see our Contributing Guide for more information. Authors The following are the original authors of BaseAI: Ahmad Awais (@MrAhmadAwais) Ashar Irfan (@MrAsharIrfan) Saqib Ameen (@SaqibAmeen) Ahmad Bilal (@AhmadBilalDev) Security If you've found a security vulnerability in

BaseAI, please report it privately by emailing security@langbase. For more details on Langbase security and how to report, visit this link. Learn more by clicking and browsing our website, docs, and a free /learn AI course on building AI agents, with agentic tools, and agentic memory.

Frequently asked questions

How many stars and forks are recorded?

CommandCodeAI/BaseAI has 1,286 stars and 114 forks.

What is the repository rank?

CommandCodeAI/BaseAI is ranked 10,830.

What language and category are recorded?

CommandCodeAI/BaseAI has 1,286 stars, uses TypeScript and belongs to AI Engineering.

Which repository is closest in rank?

CommandCodeAI/BaseAI is compared with stair-lab/kg-gen, ranked 10,828 with 1,287 stars.

README

BaseAI is now archived in the favor of Langbase AI Primitives. The more we built BaseAI the more we realized frameworks are a bad idea in AI engineering. This space is moving fast and frameworks become blockers. Instead you should be using AI primitives, like memory, pipes, agents that work with any language as APIs and with TypeScript and Python SDKs. You can use any coding agent, like CommandCode to make your own AI framework with these AI primitives. BaseAI is a great example how.

[

BaseAI ](https://baseai.dev)

Getting Started

BaseAI is the AI framework for building serverless and composable AI agents with memory and tools. It allows you to develop AI agent pipes on your local machine with integrated agentic tools and memory (RAG). Visit our BaseAI.dev/learn guide to start with BaseAI.

Documentation (recommended)

Please check BaseAI.dev/docs and BaseAI.dev/learn to get started with full documentation.

1. Initialize a new BaseAI project

BaseAI is a TypeScript-first framework. To create a new BaseAI project, run the following command in your project:

npx baseai@latest init

This command will create a baseai directory in your project. This is what the directory structure looks like:

ROOT (of your app)
├── baseai
|  ├── baseai.config.ts
|  ├── memory
|  ├── pipes
|  └── tools
├── .env (your env file)
└── package.json

2. Add API keys

Copy the following in your .env file and add appropriate LLM API keys:

# !! SERVER SIDE ONLY !!
# Keep all your API keys secret — use only on the server side.

# TODO: ADD: Both in your production and local env files.
# Langbase API key for your User or Org account.
# How to get this API key https://langbase.com/docs/api-reference/api-keys
LANGBASE_API_KEY=

# TODO: ADD: LOCAL ONLY. Add only to local env files.
# Following keys are needed for local pipe runs. For providers you are using.
# For Langbase, please add the key to your LLM keysets.
# Read more: Langbase LLM Keysets https://langbase.com/docs/features/keysets
OPENAI_API_KEY=
ANTHROPIC_API_KEY=
COHERE_API_KEY=
FIREWORKS_API_KEY=
GOOGLE_API_KEY=
GROQ_API_KEY=
MISTRAL_API_KEY=
PERPLEXITY_API_KEY=
TOGETHER_API_KEY=
XAI_API_KEY=

3. Create a new AI agent

Pipe is your custom-built AI agent as an API. It's the fastest way to ship AI features/apps. Let's create a new pipe:

npx baseai@latest pipe

It will ask you for the name, description, and other details of the pipe step-by-step. Once done, a pipe will be created inside the /baseai/pipes directory. You can now edit the system prompt, change model params, and more. Here is what a pipe code looks like:

import { PipeI } from '@baseai/core';

const pipeSummary = (): PipeI => ({
	// Replace with your API key https://langbase.com/docs/api-reference/api-keys
	apiKey: process.env.LANGBASE_API_KEY!,
	name: 'summary',
	description: 'AI Summary agent',
	status: 'public',
	model: 'openai:gpt-4o-mini',
	stream: true,
	json: false,
	store: true,
	moderate: true,
	top_p: 1,
	max_tokens: 1000,
	temperature: 0.7,
	presence_penalty: 1,
	frequency_penalty: 1,
	stop: [],
	tool_choice: 'auto',
	parallel_tool_calls: true,
	messages: [
		{
			role: 'system',
			content: `You are a helpful AI agent. Make everything Less wordy.`
		}
	],
	variables: [],
	memory: [],
	tools: []
});

export default pipeSummary;

4. Integrate pipe in your app

Let's create a new index.ts file in your project root. Now we need to do the following:

  1. Import the pipe config we created.
  2. Create a new pipe instance with the pipe config.
  3. Run the pipe with a user message.
  4. Listen to the stream events.

Here is what the code looks like:

import { Pipe, getRunner } from '@baseai/core';
import pipeSummarizer from './baseai/pipes/summary';

const pipe = new Pipe(pipeSummarizer());

const userMsg = `
Langbase studio is your playground to build, collaborate, and deploy AI. It allows you to experiment with your pipes in real-time, with real data, store messages, version your prompts, and truly helps you take your idea from building prototypes to deployed in production with LLMOps on usage, cost, and quality.
A complete AI developers platform.
- Collaborate: Invite all team members to collaborate on the pipe. Build AI together.
- Developers & Stakeholders: All your R&D team, engineering, product, GTM (marketing and sales), literally invlove every stakeholder can collaborate on the same pipe. It's like a powerful version of GitHub x Google Docs for AI. A complete AI developers platform.
`;

async function main() {
	const { stream } = await pipe.run({
		messages: [{ role: 'user', content: userMsg }],
		stream: true,
	});

	const runner = getRunner(stream);

	// Method 1: Using event listeners
	runner.on('connect', () => {
		console.log('Stream started.\n');
	});

	runner.on('content', content => {
		process.stdout.write(content);
	});

	runner.on('end', () => {
		console.log('\nStream ended.');
	});

	runner.on('error', error => {
		console.error('Error:', error);
	});
}

main();

Make sure to install and import dotenv at the top if you are using Node.js:

import 'dotenv/config';

5. Run the AI agent

To run the pipe locally, you need to start the BaseAI server. Run the following command in your terminal:

npx baseai@latest dev

Now, run the index.ts file in your terminal:

npx tsx index.ts

You should see the following output in your terminal:

Stream started.

Langbase Studio is your AI development playground. Experiment in real-time with real data, store messages, and version prompts to move from prototype to production seamlessly.

Key Features:
- **Collaborate**: Invite team members to build AI together.
- **Inclusive Teams**: Engage all stakeholders—R&D, engineering, product, and marketing—in a shared space. It’s like GitHub combined with Google Docs for AI development.
Stream ended.

[!TIP] You can also run RAG locally with BaseAI. Check out the memory agent quickstart guide for more details.

Contributing

We welcome contributions to BaseAI. Please see our Contributing Guide for more information.

Authors

The following are the original authors of BaseAI:

Security

If you've found a security vulnerability in BaseAI, please report it privately by emailing security@langbase.com. Please do not open a public issue. For more details on Langbase security and how to report, visit this link.

Learn more by clicking and browsing our website, docs, and a free /learn AI course on building AI agents, with agentic tools, and agentic memory.

Nearby in the ranking
Similar items