Init docs

Everything you need to describe, generate, run and evolve backends with Init.

Contents

  • Introduction
  • Getting Started
  • Install
  • Primitives
  • Generate
  • Inference
  • Examples
  • Specification
  • Update
  • SDK
  • CLI
  • MCP

Introduction

Init is an AI backend engineer. Describe the functionality you need, and Init builds and operates the backend behind it.

A planner model designs the implementation, then generates the code and components needed to make it work. Init assembles them into a backend and runs it on a Node.js server configured specifically for your functionality.

A QA model tests the resulting endpoint against what you asked for and measures whether the functionality works as intended.

The result is a live, typed and versioned API—without a backend codebase for you to write, deploy, review, or maintain.

Getting Started

Create an account and API key, then describe the endpoint your application needs. Init generates a callable route with typed inputs and outputs. Projects can also be exported as an init.json contract.

Install

Choose the CLI for your terminal, the SDK for JavaScript or TypeScript, or MCP for your coding agent. All three require Node.js 18 or later and an Init API key from Secrets. Start free; projects unlock at Tier 1.

CLI

npm install -g @init-computer/cli

SDK

npm install @init-computer/sdk

MCP

Connect an AI coding tool. See the MCP setup guide.

npm install -g @init-computer/mcp

All three are open source under the MIT license at github.com/init-computer/init. To add the /backend command to Claude Code, Cursor, Windsurf, Copilot or Codex, use the agent kit.

Primitives

A primitive is a type Init accepts as input or returns as output.

Input

TypeFields
stringtext
numberinteger or decimal
booleantrue or false
dateISO 8601 timestamp
urllink Init fetches and reads
filename, kind (image document audio video data), size
objectnamed fields, each any input type, including filters
arraylist of any input type
credentialsemail and password, or apiKey, or and

Intent becomes infrastructure.

© 2026 Init Computer
PlatformDatabaseStorageComputeDaemonsGenerativePredictive
PackagesPostgreSQLSupabaseStripeOpenAICloudflare R2All packages
SolutionsBackend for LovableBackend for CursorAll platformsInit vs SupabaseInit vs FirebaseAll comparisonsWebsites to APIs
DevelopersDocumentationAPI referenceinit.json specOnboard your agentCLI, MCP & SDKPublic projectsGitHub
CompanyPricingContactTermsPrivacyData Policy
provider
token

Output

TypeFields
stringtext
numberinteger or decimal
booleantrue or false
objectnamed fields, each any output type
recordid, plus the saved fields
recordsrows, total
fileurl, name, kind, size

Contract

{
  "input":  { "customerEmail": "string", "subject": "string", "message": "string" },
  "output": { "ticketId": "string", "priority": "string", "status": "string" }
}

Generate

Describe the behavior you need, not the services you think should implement it.

> Accept a customer email, subject and message,
  classify the priority, save the ticket,
  and return the ticket summary.

Init plans the endpoint, storage, data and compute, then makes the capability live.

Creating backend...

+ endpoint
+ compute
+ file storage
+ persistent data

POST https://api.init.computer/v1/support/tickets

Inference

Generated endpoints are live immediately and can be used like any normal backend API.

const response = await fetch("https://api.init.computer/v1/support/tickets", {
  method: "POST",
  headers: { "Content-Type": "application/json", "Authorization": "Bearer init_sk_…" },
  body: JSON.stringify({ customerEmail: "ada@example.com", subject: "Reset access", message: "I cannot reset my password" })
});
const result = await response.json();

Async endpoints

Endpoints generated with runMode: "async" (or any call sent with "mode": "async") answer at once with a job id. The work runs in the background; poll GET /v1/worker/:id until done is true, or pass webhook_url to be notified.

// 200 immediately
{ "success": true, "result": { "jobId": "…", "status": "queued", "pollUrl": "https://api.init.computer/v1/worker/…" } }

// GET /v1/worker/:id once finished
{ "success": true, "result": { "status": "succeeded", "done": true, "response": { … } } }

Examples

Explore public Init projects →

Support triage — Turn customer messages into structured tickets.
input
{ "message": "I cannot reset my password" }

output
{ "priority": "high", "queue": "account-access" }
Image brief — Accept an image URL and return an accessible product brief.
input
{ "imageUrl": "https://…/shoe.jpg" }

output
{ "title": "Trail running shoe", "alt": "…" }
Research memo — Find sources and compile a concise briefing.
input
{ "topic": "serverless Postgres" }

output
{ "summary": "…", "sources": ["…"] }
Document intake — Extract typed data from an uploaded document.
input
{ "file": "<pdf>" }

output
{ "vendor": "Acme", "total": 129.00 }
Lead enrichment — Enrich a business name into contact-ready data.
input
{ "company": "Init" }

output
{ "website": "…", "industry": "software" }
Scheduled digest — Run a daily source monitor and save a digest.
input
{ "query": "database releases" }

output
{ "digestId": "dig_…", "nextRun": "…" }

Specification

init.json is the portable, machine-readable description of an Init project. It keeps stable project and resource IDs while recording the live endpoint contract. The route is always the full URL a client calls.

Live contract

Customer support operations

A production intake flow with durable records, routing, and a customer-facing status endpoint.

View public specs →
{
  "schemaVersion": 1,
  "project": {
    "id": "prj_customer_support_01",
    "name": "Customer support operations",
    "description": "Receive support requests, route them, and expose a live status lookup.",
    "version": 12
  },
  "resources": [
    {
      "id": "res_create_ticket_01",
      "name": "createSupportTicket",
      "route": "https://api.init.computer/v1/support/tickets",
      "method": "POST",
      "requestFormat": "application/json",
      "status": "enabled",
      "version": 4,
      "input": {
        "customerEmail": { "type": "string", "format": "email", "required": true },
        "subject": { "type": "string", "required": true, "maxLength": 160 },
        "message": { "type": "string", "required": true },
        "orderId": { "type": "string", "required": false }
      },
      "output": { "ticketId": "string", "status": "string", "priority": "string", "createdAt": "datetime" },
      "data": { "tables": ["support_tickets"] }
    },
    {
      "id": "res_get_ticket_status_01",
      "name": "getTicketStatus",
      "route": "https://api.init.computer/v1/support/tickets/status",
      "method": "GET",
      "status": "enabled",
      "version": 2,
      "input": { "ticketId": { "type": "string", "required": true } },
      "output": { "ticketId": "string", "status": "string", "assignedTeam": "string", "updatedAt": "datetime" }
    }
  ],
  "tables": [
    {
      "id": "tbl_support_tickets_01",
      "name": "support_tickets",
      "columns": { "id": "string", "customer_email": "string", "subject": "string", "message": "string", "priority": "string", "status": "string", "assigned_team": "string", "created_at": "datetime", "updated_at": "datetime" }
    }
  ]
}
FieldWhat it is for
schemaVersionLets tools interpret the contract predictably as Init evolves.
projectThe stable project identity, description, and current version.
resourcesEvery independently callable endpoint in the project.
resources[].routeThe complete public URL to call, including the API origin and versioned route.
resources[].inputTyped request fields, required state, and any input constraints.
resources[].outputThe structured response contract returned by the endpoint.
tablesManaged data structures and their stable identifiers.

Update

Use init generate with --resource-id to create a new version of an endpoint. For projects, use init project editor apply an explicit init.json file.

SDK

The JavaScript SDK generates endpoints and projects, runs them and manages their versions from your application. It reads INIT_API_KEY (and optionally INIT_API_BASE_URL) from the environment; keep the key server-side.

import { createClient } from "@init-computer/sdk";

const init = createClient(); // or createClient({ apiKey: process.env.INIT_API_KEY })

// Generate an endpoint
const api = await init.generate({
  prompt: "Create a lead enrichment API. Input: companyName, website. Output: companySummary, buyingSignals, nextSteps.",
});
console.log(api.url, api.route, api.resourceId);

// Inference: call it by URL or route (version 1 by default)
const result = await init.run(api.url, { companyName: "Snowflake", website: "https://www.snowflake.com" });

// Projects group related endpoints
const project = await init.project.generate({ name: "Customer Support", prompt: "Build ticket intake and status lookup." });

Other calls: init.run(route, input, { version: 2 }) for a specific version, FormData input for file uploads, init.resource.list / update / versions / activateVersion, init.project.edit and init.pkg.list({ category: "Database" }). Failed calls throw InitApiError with status, message and details.

CLI

The init command generates, runs and manages endpoints from your terminal, scripts and CI.

init login --api-key init_sk_…        # or set INIT_API_KEY in CI
init generate "Create a lead enrichment API. Input: companyName, website. Output: companySummary, nextSteps."
init run <route> --data companyName=Snowflake --data website=https://www.snowflake.com
init resources --q lead                          # list endpoints
init project generate "Build ticket intake and status lookup."
CommandWhat it does
init login / init logout / init auth statusSave, clear or check the API key (stored in ~/.init/config.json).
init generateCreate an endpoint, or a new version with --resource-id.
init runCall an endpoint by route or URL with --data or a JSON --body.
init resources / init resourceList endpoints, or inspect one (versions, activate, update).
init project generate / init project editGenerate or extend a project suite.

Global options: --api-key, --base-url, --json, --pretty.

For file uploads, use the SDK with FormData or make a multipart HTTP request directly.

MCP

The MCP server lets any MCP-compatible assistant (Claude, Cursor, Codex and others) generate and run Init endpoints. It is stateless and reads the API key from its environment.

{
  "mcpServers": {
    "init": {
      "command": "init-mcp",
      "env": { "INIT_API_KEY": "init_sk_…", "INIT_API_BASE_URL": "https://api.init.computer" }
    }
  }
}
ToolWhat it does
init_generateCreate an endpoint, or a new version with resource_id.
init_generate_project / init_edit_projectCreate or extend a project suite.
init_apply_project_manifest / init_apply_project_fileApply a project manifest or update an explicitly named local init.json file.
init_runCall an endpoint with input and return its result.
init_list_resources / init_get_resourceFind endpoints and read their schemas and versions.
init_list_packagesList connectable packages (databases, storage, email, APIs).

The project file tool overwrites its target with an SDK-generated summary whose tables array is currently empty. Back up or review a manifest with table definitions before using it.

How It Works
Capabilities
DatabaseManaged Postgres, shaped by your prompt.StorageFile uploads and buckets without the setup.ComputeSandboxes, packages and code execution per request.DaemonsSchedules, monitors and recurring workflows.AsyncBackground inference with a job you can poll.SyncRequest in, typed response out, in the same connection.SpatialGeocoding, places, routes and maps.PredictiveYes/no, routing and scoring with a probability behind it.GenerativeText, images, voice and documents as an endpoint.EmbeddedSemantic search, embeddings and live web answers.CommunicationTransactional email, contacts and inbound mail.
Explore the platform →
CommunityAboutPricingDocs
CommunityLog inGet started