---
title: "Deploy Laravel AI SDK Starter"
description: "Laravel 13 starter with the AI SDK, Postgres and healthcheck"
category: "Starters"
url: https://railway.com/deploy/laravel-ai-sdk-starter
---

# Deploy Laravel AI SDK Starter

Laravel 13 starter with the AI SDK, Postgres and healthcheck

**[Deploy Laravel AI SDK Starter on Railway](https://railway.com/template/laravel-ai-sdk-starter)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/laravel-ai-sdk-starter/manifest.json

- **Creator:** ninja
- **Category:** Starters

## Template content

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

### app

- **Source:** AdeelAhmedKhan/laravel-ai-sdk-starter-railway
- **Health check:** /api/health
- **Public domain:** Yes

## Documentation

# Deploy and Host Laravel AI SDK Starter on Railway

Laravel AI SDK Starter is a Laravel 13 starter that wires the AI SDK into a working demo agent, backed by Postgres and a /api/health healthcheck. Set one provider key — OpenAI, Anthropic, or Gemini — and the demo calls a real model; without a key it still runs and shows the fallback behaviour.

## About Hosting Laravel AI SDK Starter

Deploying this template on Railway provisions two services: the Laravel app from its Dockerfile and a Postgres 18 database with a persistent volume. The app reads DATABASE_URL from Postgres, uses an APP_KEY generated at deploy time, and exposes a public domain with a healthcheck at /api/health. No extra infrastructure is needed — add a provider key, deploy, and visit the app.

## Common Use Cases

- Starting a new Laravel AI project without wiring providers, database, and healthchecks by hand.
- Trying the AI SDK demo agent with OpenAI, Anthropic, or Gemini.
- Building AI features on Laravel 13 with Postgres as the production database.

## Dependencies for Laravel AI SDK Starter Hosting

- A provider API key (optional): OpenAI, Anthropic, or Gemini — at least one for real model calls.
- Postgres 18, included in this template as a database service with a persistent volume.

### Implementation Details

The app service builds from the repository Dockerfile, runs with restart policy ON_FAILURE, and checks in at /api/health. DATABASE_URL is set from ${{Postgres.DATABASE_URL}}, and DB_CONNECTION is pgsql.

## Verification status

Verified locally on 2026-11-10. A live Railway deploy test has NOT happened yet.

## Why Deploy Laravel AI SDK Starter on Railway?


Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Laravel AI SDK Starter on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


## Similar templates

- [Openfront Gym](https://railway.com/deploy/openfront-gym) — Opensource Mindbody alternative based on Next.js and Keystone.js
- [open-excalidraw](https://railway.com/deploy/open-excalidraw) — Self-hostable collaborative drawing built on Excalidraw
- [Next.js + Prisma + PostgreSQL Starter](https://railway.com/deploy/nextjs-prisma-postgres) — Deploy a Next.js app with Prisma ORM and PostgreSQL in one click.

Open this page in a browser: https://railway.com/deploy/laravel-ai-sdk-starter
