Local Setup
git clone https://github.com/wrtnlabs/autobe
cd autobe
pnpm install
pnpm run playgroundClone the repository and run the playground application locally. This allows you to chat with the @autobe agent, manage multiple sessions, and use various LLM providers including local models.
After installation, the playground will be available at http://localhost:5713Β . You can interact with AutoBE through a chat interface - simply describe what you want to build, and AutoBE will generate the backend application for you.
To see examples of backend applications generated by @autobe, explore these repositories. These showcase @autobeβs ability to generate production-ready backend code with proper structure, API documentation, TypeScript interfaces, and e2e test functions.
- Discussion Board: https://github.com/wrtnlabs/autobe-example-bbsΒ
- To Do List: https://github.com/wrtnlabs/autobe-example-todoΒ
- Reddit Community: https://github.com/wrtnlabs/autobe-example-redditΒ
- E-Commerce: https://github.com/wrtnlabs/autobe-example-shoppingΒ
- Requirements Analysis: ReportΒ
- Database Design: Entity Relationship DiagramΒ / Prisma SchemaΒ
- API Design: API ControllersΒ / DTO StructuresΒ
- E2E Test Functions:
test/features/api - API Implementations:
src/providers - AI Review: AI_REVIEW.mdΒ
If youβre unsure what to try, start with this example script to create a political/economic discussion board:
- I want to create a political/economic discussion board. Since Iβm not familiar with programming, please write a requirements analysis report as you see fit.
- Design the database schema.
- Create the API interface specification.
- Make the e2e test functions.
- Implement API functions.
Installation
git clone https://github.com/wrtnlabs/autobe
cd autobe
pnpm install
pnpm run playgroundYou can setup playground like application on your local machine.
Clone this @autobe repository and run the playground script after installing dependencies with pnpm install. This will start a local server that you can access to interact with the @autobe agent.
WebSocket Server
import { AutoBeAgent } from "@autobe/agent";
import { AutoBePlaygroundServer } from "@autobe/playground-server";
import { AutoBeCompiler } from "@autobe/compiler";
import OpenAI from "openai";
const server = new AutoBePlaygroundServer({
predicate: async (acceptor) => {
return {
type: "accept",
agent: new AutoBeAgent({
vendor: {
api: new OpenAI({ apiKey: "********" }),
model: "gpt-4.1",
},
model: "chatgpt",
compiler: new AutoBeCompiler(),
}),
cwd: `${__dirname}/../playground-result`,
}
},
});
await server.listen(3_000);You can serve the @autobe agent as a WebSocket server like above.
About detailed information, please refer to the Guide Documents > WebSocket Protocol page.