Skip to main content
The Base44 SDK provides a JavaScript interface for building apps on the Base44 platform. When Base44 generates your app, the generated code uses the SDK to authenticate users, manage your app’s data, interact with AI agents, and more. You can then use the same SDK to modify and extend your app.

Modules

The SDK provides access to Base44’s functionality through the following modules:
  • agents: Interact with AI agents and manage conversations.
  • app-logs: Access and query app logs.
  • auth: Manage user authentication, registration, and session handling.
  • connectors: Manage OAuth connections and access tokens for third-party services.
  • entities: Work with your app’s data entities using CRUD operations.
  • functions: Execute backend functions.
  • integrations: Access third-party integrations.

Example

Here’s a quick look at working with data in the SDK, using the entities module to create, update, and list records. In this example, we’re working with a custom Task entity:
import { base44 } from "@/api/base44Client";

// Create a new task
const newTask = await base44.entities.Task.create({
  title: "Complete project documentation",
  status: "pending",
  dueDate: "2024-12-31",
});

// Update the task
await base44.entities.Task.update(newTask.id, {
  status: "in-progress",
});

// List all tasks
const tasks = await base44.entities.Task.list();

Installation

You don’t need to manually install the SDK. It’s already available in the following scenarios:
  • Base44 editor: The SDK is pre-installed and ready to use.
  • Local development: When you connect your app to GitHub, the SDK is automatically included in the package.json file and installed with your other project dependencies.

Get started

The best way to get started is to have Base44 build an app for you. Once you have an app, you can explore the generated code and experiment with the SDK to see how it works in practice. You can also ask Base44 to demonstrate specific features of the SDK. For a deeper understanding, check out these guides:
  1. Base44 client - Work with the client in frontend, backend, and service role contexts.
  2. Work with data - Create, read, update, and delete data.
  3. Common SDK patterns - Authentication, integrations, functions, and error handling.