The backend for apps you build in ChatGPT and Claude

Your agent writes the screens and the code only your app has. Fóir deploys it to foir.build and runs sign-in, organisations, data, payments and the steps between.

Free for one project and 1,000 records.

Claude · Fóir connected
Build a class booking app I can sell to pilates studios. Each studio runs its own timetable, and members book and pay for classes, with a waitlist when a class is full.
Fóir · create project
Fóir · push config
Fóir · deploy app
Timetable is ready to try. Each studio is its own organisation, members sign in with a passkey, and payments go to your Stripe account. A place is held for 15 minutes while someone pays, then offered to the waitlist.
Reply to Claude
b-4f2a9c1e07d3--timetable.foir.build
Lane PilatesRSigned in with a passkey

This week

Mon 07:00 · Reformer3 places left
Tue 18:30 · MatFull · 4 waiting
Thu 07:00 · Reformer2 places left
Sat 09:00 · Mat6 places left

Start in the AI you already use

Your ChatGPT, Claude or Cursor subscription does the building. Fóir has no build credits and never charges per prompt.

Connect Fóir to your agent

Add Fóir as a connector in ChatGPT or Claude, or as an MCP server in Claude Code, Codex or Cursor. The starter tells your agent how to build on it.

Your agent writes only the code that's yours

Anything Fóir doesn't already do, like how a studio prices a class, is an operation in TypeScript, Python or Rust. Fóir signs every call to it and the SDK checks the signature, so there's no endpoint to secure.

Try it, then publish

Your agent proposes a release with everything it changed. You try the preview and publish, and a rollback is a new release, so nothing newer is ever overwritten.

ChatGPT · Connectors
Fóirhttps://mcp.foir.dev/mcp
Connected
Claude Code
$ claude mcp add --transport http foir https://mcp.foir.dev/mcp
$ npm create foir
✓ created timetable
✓ added the Fóir skill and AGENTS.md
export const price = operation('bookings.price', {  input:  t.object({ classId: t.id(), member: t.id() }),  output: t.object({ amount: t.number() }),}, async ({ input }) => {  // Your studio's own rules: intro offers, off-peak prices  const amount = await studioPrice(input.classId, input.member);  return { amount };});
$ foir push
✓ web deployed to b-4f2a9c1e07d3--timetable.foir.build
✓ 2 operations found: bookings.price, waitlist.offer
✓ logic bookings.reserve pushed as data, 8 steps
✓ release proposed
Releases · timetable
Release 1
proposed by your agent · 5 items
Model · classnew
Model · bookingnew
Logic · bookings.reservenew
Operation · bookings.pricenew
Role · studio ownernew
Open the previewPublish

Workflows that survive a deploy

Every process in your app is Logic: steps, waits, triggers and undo steps your agent declares in config and pushes as data. Fóir runs them, saves each result, and retries from the step that failed.

bookings.reserve
import { defineLogic, rule, t } from '@foir/cli/configs'; export const reserve = defineLogic({  key: 'bookings.reserve',  kind: 'action',  input: t.object({ bookingId: t.id(), member: t.ref('customer') }),  steps: ({ input, step, output }) => {    const id = input.bookingId;     // Hold the place. If the run is cancelled, undo frees it.    const hold = step.write('hold', 'records.update', {      id, data: { status: 'held' },    }, {      undo: () => step.write('free', 'records.update', { id, data: { status: 'open' } }),    });     // Paid, cancelled or 15 minutes: whichever comes first.    const pay = step.first('pay', {      paid:      step.waitForEvent('paid', 'booking.paid', { match: id }),      cancelled: step.waitForEvent('cancel', 'booking.cancelled', { match: id }),      expired:   step.sleep('timeout', '15m'),    }, { after: [hold] });     const confirm = step.write('confirm', 'records.update', {      id, data: { status: 'booked' },    }, { when: rule(pay.winner).eq('paid') });    const offer = step.operation('offer', 'waitlist.offer', { bookingId: id },      { when: rule(confirm.skipped).eq(true) });     return output({ outcome: pay.winner }, { after: [confirm, offer] });  },  triggers: { on: { event: 'record.created', model: 'booking',    input: (e) => ({ bookingId: e.record.id, member: e.record.member }) } },});
bookings.reservewaiting
Started by on record.created for booking 5121 · version 3, pushed as data
  1. holdwrite · records.updateheld
  2. payfirst · 3 brancheswaiting
  3. paidbooking.paidwaiting
  4. cancelledbooking.cancelledwaiting
  5. timeoutsleep · 15m12m left
  6. confirmwrite · records.updateif paid
  7. offeroperation · waitlist.offerif not
  8. freeundo of holdif cancelled

Never worry about leaked data again.

Each of your customers is an organisation, nested as deep as your app needs: a chain, its studios, their teams. Postgres checks every read against the caller's organisation and role, under your code, so one customer's data never reaches another.

64%of the time, Claude Code wrote its own sign-in when asked to build an app. On Fóir there's one, already tested.1

5,000of 380,000 AI-built apps in a May scan were leaking data. On Fóir, Postgres enforces access under your code.2

  1. Amplifying, study of Claude Code's choices when building apps, July 2026
  2. RedAccess scan of 380,000 AI-built apps, May 2026, as reported by vibegraveyard.ai

Hosted sign-in on your own domain

Passkeys, email codes, Apple, Google, Microsoft and GitHub, on your login domain and in your brand.

Any customer organisation can bring its own SAML connection, and SCIM maps its groups to your roles. That's the enterprise sign-in teams usually buy from WorkOS, already in your backend.

Agent sandboxes, created instantly

Each agent run gets a sandbox with everything your backend has: data, sign-in, files and Logic. There's no infrastructure to set up.

It reads production through its role, writes only inside the sandbox, and is cleared when the run completes. The agent holds no copy, so what it may not see stays in production.

timetableproject · production
reads go up the chain
Lane Pilatesa customer's organisation
through the run's role
Sandbox for run 4218timetable.plan, drafting next week's classes
  • Writes only here
  • Visible to Lane Pilates' admin
  • Cleared when the run completes

Show each audience its own version

Any record, field or item in a list can have variants, each for an audience you define once by country, device, language, time, sign-in or your own values. Fóir picks one on the server for every read.

foir.io works this way: AI agents get a plain page and people get this one, from one home page record with two variants.

Banana bread

Bake at 180°C for 55 minutes

  • 250 g plain flour
  • 3 ripe bananas
  • 100 g butter, melted
read with country "GB", device "desktop"rule no rule matched_variant "default"

Your app on the web, on iPhone and in ChatGPT

Each one uses the same SDK and API under the same roles, so a class booked in ChatGPT is on the member's iPhone straight away.

timetable.app/lane-pilates/todayLive
Today
07:00 Reformer11 of 12 booked
12:30 Mat8 of 14 booked
18:30 MatFull, 4 waiting

Web app on foir.build

Each pull request gets a preview where sign-in works, and publishing promotes the tested build to your own domain.

iOS app

The same API from Swift, with push, Sign in with Apple and App Store subscriptions through RevenueCat.

ChatGPT · Timetable
Book me into Thursday's 7am reformer class at Lane.
Lane PilatesThu 19 Nov
Reformer, 07:00 to 07:502 places left
Drop-in£18.00
Book and pay

Your app inside ChatGPT and Claude

Fóir generates an MCP server for your project, or one per organisation for a multi-tenant SaaS, and your pages open inside the chat as an MCP app.

app.foir.io / timetable / Pages / Bookings
Acting as a Lane Pilates memberEnd
Thu 07:00 ReformerBooked in ChatGPT
Tue 18:30 MatWaitlist, 2nd

Your app's pages in the console

Add your front end as a page and it signs you in from the console. Impersonate a user to debug, and every write records both of you.

Email from your own domain

Receipts, reminders and anything built from your data go out from your domain, sent by a step in Logic. Each studio's mail can carry its own name and reply address, and bounces come back as events.

What Fóir replaces

Each row is a service your agent would otherwise sign up for, connect and keep in step with the rest, on every app. In Fóir it's a line of config.

PartUsuallyIn Fóir
Database and APISupabaseNeonHasuraFirebaseA typed API and SDK, with access checked in Postgres on every read
SDKs and MCP serverStainlessSpeakeasyA typed SDK, CLI and MCP server for every project, generated from one contract
Sign-inClerkAuth0WorkOSHosted sign-in on your domain, SAML and SCIM for any organisation, and an audit log each one can read
App logic and jobsInngestTrigger.devTemporalHookdeckDeclared steps with retries and undo, started by calls, schedules or verified webhooks, and run as the caller
AI agents and chatLangChainMastraOpenAI Agents SDKAgents with your data as tools, chat streamed to your app, each run in its own sandbox
NotificationsResendLoopsCustomer.ioOneSignalEmail from your own domain, push and in-app, all from one step, with bounces as events
RealtimePusherAblyConvexEvery read can be watched
HostingVercelNetlifyfoir.build or your own domain, with a preview for every pull request
Files, images and videoAWS S3R2CloudinaryMuxImages as WebP and AVIF, video streaming, and signed links
SearchAlgoliaPineconeSearch by meaning and by distance
Content and translationContentfulSanityCrowdinDrafts, versions, scheduled publishing, and translation into each of your locales
Admin and supportRetoolYour pages, notes, approvals and impersonation in the console
PersonalisationOptimizelyNinetailedVariants of any record, field or list item, by audience
Plans and entitlementsStiggSchematicPlans that gate any model or logic, granted by a subscription
PaymentsStripeRevenueCatYour own accounts, connected for you. Fóir turns their events into entitlements and takes no percentage

Free for one project, then from £0.99 a month

Hosting and sign-in come with every plan, Free included. AI inside your app runs on your own Anthropic or OpenAI key, or on Fóir credits.

Free£0 per monthSomething small to build on, with no card and no end date.
Entry£0.99 per monthEverything working, at a size you can start on.
Starter£29 per monthA live site, with room to grow into.
Pro£99 per monthSeveral projects, a real team, real traffic.
Free trial
90 days, no card needed
14 days
14 days
Projects
1
1
3
10
Team members
2
5
10
20
Records
1,000
25,000
500,000
2,000,000
Media
250 MB
2 GB
50 GB
250 GB
Signed-in end users
100
10,000
25,000
100,000
Emails
50 / month
250 / month
AI credits
40 to start
40 to start
150 / month
500 / month
API requests
10,000 / hour
10,000 / hour
100,000 / hour
500,000 / hour
Video streaming
Included
Web research
Included
EnterpriseHigher ceilings, and terms that suit procurement.
Talk to usGet in touch
View included limits
Projects
Agreed
Team members
Agreed
Records
Agreed
Media
Agreed
Signed-in end users
Agreed
AI credits
Agreed
API requests
Agreed
Video streaming
Included
Web research
Included

Prices exclude VAT. Every number is for the whole workspace, however many projects you split it across, and you can cap an individual project below it so one client cannot use the lot. Where a row shows a rate you can grow past the included amount and pay for what you use. Where it does not, the number is the ceiling.

Questions

Do I need to understand Fóir to build on it?

No. Your agent reads the Fóir skill and works through the MCP server and CLI. You describe the app, try the preview and approve what it asks you to.

Does my agent still write code?

Yes: the screens, and operations for whatever only your app does, in TypeScript, Python or Rust. Fóir finds them when it deploys the app and calls each one as a step in Logic, with a signed request the SDK checks for you.

Do I pay for AI credits to build?

No. Your agent builds on the ChatGPT, Claude or Cursor plan you already have. Fóir credits pay only for AI inside your app, and you can bring your own Anthropic or OpenAI key instead.

Which sign-in methods are there?

Passwords, email codes and passkeys, plus Apple, Google, Microsoft, GitHub and any OpenID provider. Each customer organisation can add its own SAML connection, with SCIM.

Can my app use its own domain?

Yes, from Entry up. Your app and its sign-in pages both run on your domain, and every plan starts on foir.build.

Start building for free

Production-ready from the first preview.