LoopZero: the full-stack framework for apps with AI agents

Build the whole app your agent lives in, from the page people see to the server the agent runs on, in one project. LoopZero is open source and free under the Apache-2.0 license.

Create your first app with your AI assistant

Copy the prompt and paste it into the chat of your AI coding assistant. It creates a working agent chat on your computer and gives you an address to open in your browser.

Set up LoopZero with your AI assistantWorks with any AI coding assistant that can run commands on your computer. Nothing is sent to LoopScale.
Read the prompt
Create a new AI agent project with LoopZero. Run `npx create-loopzero my-agent --yes`. Then read my-agent/AGENTS.md and my-agent/README.md and follow them. Ask me which model provider I use, copy my-agent/.env.example to my-agent/.env and tell me which key to set (OPENROUTER_API_KEY, ANTHROPIC_API_KEY or OPENAI_API_KEY). Then run `npm install` and `npm run dev` inside my-agent and give me the local address to open.
Prefer to type the commands yourself? See the three steps
  1. 01

    Create the project

    In a terminal, run npx create-loopzero my-agent. You get a chat with an agent that answers as it writes, has example actions and asks before it changes anything.

  2. 02

    Add your AI model key

    The project has a settings file. Copy .env.example to .env and paste your key after OPENROUTER_API_KEY, ANTHROPIC_API_KEY or OPENAI_API_KEY.

  3. 03

    Start it

    Inside the my-agent folder, run npm install and then npm run dev. Open the address that appears in your browser.

What one project gives you

  • Pages are files

    A file at app/page.tsx is the home page. Its layout, loading and error screens sit next to it, with nothing to configure.

  • Agents are files

    A file at agents/support.ts answers at POST /api/agents/support, and the page talks to it with useAgent. There is nothing to register.

  • A server that checks what it receives

    Each route, action and agent states what it accepts with a Zod schema. A route that is missing a required part does not compile.

  • Sign in and live updates

    Sign in with Google, GitHub or a link sent by email, each a package you add. A file in server/ws/ becomes a live connection.

  • Asks before it acts

    An agent can stop and ask a person before an action runs. Kept in a store, the question survives a restart.

  • One agent, four places

    The same agent runs in a web page, in the terminal, as a one line command or as a desktop app.

Before you choose it

  • Early

    Version 0.1. People build real apps with it, and its interface can still change from one version to the next. Each change that breaks something is written in the changelog.

  • Free to use

    Apache-2.0: you can use it, change it and ship it in a paid product.

  • What it needs

    Node.js 22.12 or newer, React and TypeScript, and a key from an AI service such as OpenRouter, Anthropic or OpenAI, which charges for what the agent uses.

Put it online where you want

loopzero build --target builds the same app for nine places: Node.js, LoopScale, Vercel, Netlify, Cloudflare, Bun, Deno Deploy, AWS Lambda or plain static files. LoopScale is the platform built for it, and it opens soon.

On npm

  • loopzero

    The framework: routing, the server, the build and the deploy.

  • create-loopzero

    Creates a new project with a working agent chat.

  • loopzero-agents

    Agents as files, with tools, approvals and limits.

  • loopzero-sdk

    Runs the agent: model calls, tools and the conversation.

  • loopzero-ui

    React components for chats and other agent screens.