# The backend in one file — Hanzo AI

> Complete backend in one embedded binary: SQL database, auth, file storage, realtime streams, and server logic with zero devops overhead.

# An app backend in one file

Open source (MIT). Runs as one binary — self-host or deploy managed on Hanzo Cloud.

[Try Hanzo](https://hanzo.ai/login)[Read the docs](https://docs.hanzo.ai/docs/projects/hanzoai/base)[View on GitHub](https://github.com/hanzoai/base)

Hanzo Base · App backend

base`**GET** /v1/collections/posts/records`

**posts**

Base is a single Go binary that serves your data, your users, your files, live updates and scheduled work over one HTTP API. The store is a SQLite file on disk, so deploying is copying a binary and backing up is copying a file.

## Declare a collection, get an API

What is Hanzo Base

collection

A collection is a real table with a schema you write down. The moment it exists it answers over HTTP, carries an access rule, streams its changes, and shows up in the admin. There is no code generation step and nothing to wire together.

### Data

Records answer at /v1/collections/{name}/records — list, read, create, update, delete, with paging, sorting and a filter language over every field you declared. Schema changes are migrations. SQLite is the default store; hand Base a Postgres DSN and the same API runs on that instead.

01

### Auth is Hanzo IAM

Base keeps no password and has no login form. It verifies the token IAM signed and reads the identity out of it — that is the whole of authentication. One account everywhere Hanzo runs, and no reset flow of your own to get wrong.

02

### Files and live updates

Uploads go to object storage and are served through the same rule that guards the record pointing at them. Clients open one stream and receive records as they change, so a page stays current without asking again every few seconds.

03

## Run the binary

Deploy Base managed on Hanzo Cloud, or run it yourself on a laptop, a box, or a cluster. Same API in all four places.

[Deploy on Hanzo Cloud](https://platform.hanzo.ai/)[GitHub](https://github.com/hanzoai/base)

[Base — Hanzo](https://hanzo.app/home)

The service the session above is changing.

api.hanzo.ai**/v1/base**[Open in the console ↗](https://hanzo.team/)

Example project. Every name in it is one you would give your own.

## What you get

Capabilities

## Get Base

hanzoai/base

Embedded data backend with IAM-native auth

License: MIT[hanzoai/base_4 stars_](https://github.com/hanzoai/base)

[Deploy to Cloud](https://platform.hanzo.ai/deploy)[Self-host](https://docs.hanzo.ai/docs/projects/hanzoai/base)

Related capabilities

- [**Base docs →**](https://docs.hanzo.ai/docs/projects/hanzoai/base)
- [**Datastore**Analytical columnar store](https://hanzo.ai/datastore)
- [**Object Storage**Object storage](https://hanzo.ai/s3)
- [**Memory**](https://hanzo.ai/cloud/memory)

Paste and ship

Paste this into any agent. It reads the skill manifest and calls Base from there.

api /v1/base

Agent prompt

```
Read https://hanzo.ai/skill.md and use Hanzo Base in my project. Start with: hanzo base bases list
```
