Developers

Build your own app on TrainerLane.

Your programs, nutrition, members and payments, ready for your own app, your own code or your AI assistant. Start with no code at all, and go as far as you like.

No code · TrainerLane Coach

Your own app, without building one.

TrainerLane Coach is the member app for iPhone and Android. It opens on your studio, in your name, logo and colours, and it's included on every plan. Most studios never need more.

See TrainerLane Coach
  • TrainerLane Coach home screen in the Atelier theme
  • TrainerLane Coach's coach tab in the Maison theme, with this week's check-in and the coach's latest reply
Your own app · SDK

Your studio's content and members, in code you own.

The TypeScript SDK talks to your studio from any web or mobile app. Members sign in to your app, and see the programs and plans their subscription includes.

@trainerlane/sdk works in any JavaScript runtime with fetch, using the browser's storage or an adapter you provide. @trainerlane/react adds hooks on TanStack Query and a video player.

Terminal
npm install @trainerlane/sdk @orpc/client
# React apps: hooks and a video player
npm install @trainerlane/react @tanstack/react-query @mux/mux-player-react
app.ts
import { createTrainerLaneClient } from "@trainerlane/sdk";

// Publishable: it's safe in your bundle. From App → Developer.
const trainerlane = createTrainerLaneClient({ clientId: "fk_app_…" });

// Your own sign-in screen calls this.
const result = await trainerlane.auth.signIn({ email, password });
if (result.kind === "two_factor_required") {
  // Ask for their code before going on.
  await trainerlane.auth.verifyTotp({ challenge: result.challenge, code });
}

// Your studio's workouts. Premium ones unlock with the member's plan.
const { data: workouts } = await trainerlane.workouts.list({ limit: 20 });

// Log a set against one of them.
const { data: log } = await trainerlane.sessionLogs.create({ workoutId });
await trainerlane.sessionLogs.addSet({ id: log.id, exerciseId, setNumber: 1, reps: 8 });
  • Members sign in to your app

    Email and password, two-factor, password reset and email verification, on your own screens.

  • Training and progress

    Programs, workouts and exercises. Members log sessions and sets, and you read back streaks, PRs, body metrics and photos.

  • Nutrition and coaching

    Recipes, meal plans and food logs, plus weekly check-ins, habits, goals and the health questionnaire.

  • Protected video

    Exercise and workout videos play from signed URLs. React apps get a drop-in player component.

  • Messages, live

    Members message you from your app, with live updates as replies arrive.

  • Subscriptions

    Send members to Stripe Checkout and the billing portal for your plans, then back into your app.

Set up your app in the dashboard.

  1. 1

    Create a developer app

    In your dashboard, go to App → Developer and choose Create app. The first time, the studio owner accepts the Developer Terms. You get a client ID straight away, and it's publishable, so it can ship in your app's code.

  2. 2

    List where your app runs

    Add your website's origins, such as https://app.example.com. Browsers refuse requests from anywhere else. To test locally, add http://localhost with your dev port, such as http://localhost:3000.

  3. 3

    Turn on native apps if you need them

    Building for iPhone or Android, with React Native or Expo say? Turn on Allow native apps, and add your app's own scheme (myapp://) so Stripe can send members back to it.

  4. 4

    Ship, and stay in control

    Member sign-ins belong to your app and only work with your client ID. Revoke or delete the app at any time and everyone signed in to it is signed out at once.

Your AI assistant · MCP

Bring your studio into Claude and Codex.

TrainerLane is a remote MCP server. Connect it to the AI assistant you already use, and it can look things up in your studio and draft content for you, as you.

Server URL
https://www.trainerlane.com/api/mcp

Connect in three steps

  1. 1

    Add the server

    In Claude, add a custom connector. In Codex or another MCP client, add a remote MCP server. Use the URL below.

  2. 2

    Sign in and approve

    Your assistant opens TrainerLane. Sign in with your trainer account, check which studio it's for, and approve.

  3. 3

    Ask

    Your assistant can now read, draft and update your studio, with your permissions.

What it can do

  • Read your studio

    Members, their progress and session logs, your notes, programs, workouts, exercises, recipes and meal plans.

  • Coach members

    Add and remove notes, and enrol members on programs or take them off.

  • Build content

    Create and edit programs, workouts, exercises, recipes and meal plans. New content starts as a draft and goes live only when you ask.

Try asking

  • “Which of my members are at risk of dropping off?”
  • “Draft a 4-week strength block for beginners, three days a week.”
  • “Add this overnight oats recipe to my library, with its macros.”

You stay in charge

  • You approve every connection on a TrainerLane consent screen, and see what it can do first.
  • Each connection is tied to one studio, and your team role still applies.
  • Your studio's settings, brand and payments stay out of reach of outside assistants.
  • Access tokens last an hour and renew while the app stays connected. If you leave a studio, its connections stop working.
Resources

Docs and packages.

Questions

Developer questions.

No. TrainerLane Coach is a member app in your studio's name, logo and colours, on every plan. The SDK is for studios that want to build something of their own.

Yes. A client ID only says which app is calling. Browsers can only call it from origins you've listed, and anything private needs a member who has signed in to your app.

Yes, with React Native or Expo. Give the SDK a storage adapter for the member's session (it uses localStorage by default), turn on Allow native apps, and add your app's scheme so members return to it from Stripe.

Not yet. Push notifications, and Sign in with Apple or Google, are TrainerLane Coach only for now.

Any client that supports remote MCP servers with OAuth sign-in, including Claude and Codex. It connects as you, so it can only do what your role in the studio allows.

Yes, to read their own data. A member turns on "Use your data with your own AI" in Preferences in your studio's app, then adds https://www.trainerlane.com/api/mcp/member as a connector. It reads their profile, programmes, workouts and progress, can't change anything, and never sees health details. https://www.trainerlane.com/api/mcp is the address for you and your team.

Everything you need to run your coaching business.

14 days free, no card needed. From £29 a month after that.

Start your 14-day free trial