Skip to main content
All posts

Building a ChatGPT App Without a Paid Account or Developer Mode (September 2026)

Abe Wheeler
ChatGPT AppsMCP AppsGetting StartedTutorialChatGPT App FrameworkChatGPT App TestingMCP App TestingLocal Development
The sunpeak ChatGPT App Inspector running locally.

The sunpeak ChatGPT App Inspector running locally.

You can build most of a ChatGPT App without paying for ChatGPT or turning on Developer mode. The server, tool contracts, interactive UI, host bridge, error states, and browser tests can all run on your machine. The real ChatGPT connection matters later, when you need to check model behavior, workspace policy, authentication, and ChatGPT-only features.

That split is easier to use in 2026 because a ChatGPT App is an MCP App. OpenAI now documents these integrations through Plugins, while the interactive UI uses the open MCP Apps standard. Your daily loop can target the standard contract instead of depending on a live ChatGPT conversation for every edit.

TL;DR: Run npx sunpeak new sunpeak-app, then cd sunpeak-app && pnpm dev. Use the local Inspector and simulation files to build the tool-to-UI flow without a ChatGPT account. Connect the finished MCP server to ChatGPT only for a focused integration pass. OpenAI says Developer mode availability can depend on account and workspace policy, so do not make daily development depend on it.

What “Without a Paid Account” Actually Covers

Local development can cover more than a component preview. A proper MCP App test host can initialize your server, call its tools, read its resources, create a sandboxed iframe, and deliver the same classes of bridge messages that an app receives in production.

Here is the practical boundary.

Run these locally without ChatGPT

  • Test tool handler logic and schema validation.
  • Initialize the MCP server, then call tools/list, tools/call, and resources/read.
  • Load the UI resource in a sandboxed iframe.
  • Deliver tool input, tool results, theme, display mode, viewport, and host context.
  • Reproduce loading, empty, error, cancelled, auth-required, and large-data states.
  • Run Playwright, accessibility, and visual regression tests.

Save these for another service or real ChatGPT

  • Measure model tool selection and argument quality in ChatGPT.
  • Check workspace policy, account permissions, and consent screens.
  • Mock ChatGPT-only extensions locally, then prove native file APIs and host modals in the real host.
  • Package, review, and distribute the public Plugin through OpenAI’s workflow.

This does not mean every part of app development is free. Production hosting can cost money, and model evals use API credits when they call a model. The narrow claim is still useful: you do not need a paid ChatGPT account to build the core app or run deterministic browser tests.

Build the Open MCP App Contract First

OpenAI’s current Plugin UI guide says new UI should start with MCP Apps. ChatGPT renders the resource in an iframe and communicates with it through JSON-RPC over postMessage. The same contract can work in other compatible MCP App hosts.

There are three pieces to get right.

1. A useful MCP tool

The tool needs a clear name, a description that says when to call it, an input schema, and an output schema when it returns structured data. A UI-backed tool also points at the resource that should render:

{
  "name": "show_projects",
  "description": "Show the user's active projects in an interactive list.",
  "inputSchema": {
    "type": "object",
    "properties": {
      "status": { "type": "string", "enum": ["active", "archived"] }
    },
    "required": ["status"]
  },
  "outputSchema": {
    "type": "object",
    "properties": {
      "projects": { "type": "array", "items": { "type": "object" } }
    },
    "required": ["projects"]
  },
  "_meta": {
    "ui": { "resourceUri": "ui://projects/list/v1.html" }
  }
}

The host discovers this descriptor through tools/list. Test the descriptor as data because a typo in _meta.ui.resourceUri can stop the UI before your React code runs.

2. A result that works without UI

OpenAI recommends keeping tools useful when a client does not render the component. Return a short model-readable summary and typed data:

{
  "content": [{ "type": "text", "text": "Found 2 active projects." }],
  "structuredContent": {
    "projects": [
      { "id": "p_123", "name": "Mobile redesign", "status": "active" },
      { "id": "p_456", "name": "Billing cleanup", "status": "active" }
    ]
  }
}

Use content for a useful text result and structuredContent for data the model and app can inspect. Result _meta can carry app-only helper data, but it is hidden from the model rather than secure storage. Never put secrets or access tokens in any tool result field.

3. A resource that speaks the standard bridge

The ui://projects/list/v1.html resource should return bundled HTML with the MCP Apps media type:

text/html;profile=mcp-app

The app receives initialization, partial tool input, final tool input, and tool results over the ui/* bridge. It can call allowed server tools through tools/call, send a host message through ui/message, or share useful state with the model through ui/update-model-context when the host grants those capabilities.

OpenAI keeps window.openai compatibility APIs for existing apps and ChatGPT-specific features. Use those after the standard path works, feature-detect every method, and provide a fallback where practical. That keeps a missing optional API from turning into a blank screen.

Start a Local ChatGPT App

sunpeak combines the MCP server, UI resource build, local Inspector, simulations, and tests in one project. Create an app:

npx sunpeak new sunpeak-app
cd sunpeak-app
pnpm dev

The generated project opens the Inspector at http://localhost:3000 and starts its Streamable HTTP MCP endpoint at http://localhost:8000/mcp by default. Use the ports printed in the terminal if they differ.

The project shape makes each contract visible:

sunpeak-app/
├── src/
│   ├── resources/       # React UIs served as MCP App resources
│   ├── tools/           # Tool schemas, metadata, and handlers
│   └── server.ts        # MCP transport and authentication setup
└── tests/
    ├── simulations/     # Saved tool input and result states
    ├── e2e/             # Inspector tests
    ├── live/            # Focused real-host tests
    └── evals/           # Model tool-selection tests

The local loop is simple:

  1. Select a tool and a simulation in the Inspector.
  2. Edit the resource or tool.
  3. Check the UI in light and dark themes.
  4. Change the viewport and display mode.
  5. Save any broken payload as a regression fixture.
  6. Add an assertion for the behavior you fixed.

This loop is deterministic. You can revisit the same data and host state after every change instead of asking a model to recreate the scenario.

Inspect an Existing MCP Server

You do not need to move an existing server into sunpeak. Start the server in its own stack, then point the MCP App Inspector at it:

npx sunpeak inspect --server http://localhost:8000/mcp

The server can use TypeScript, Python, Go, Rust, or another language. The Inspector connects through MCP, discovers tools and resources, calls real handlers, and renders linked UI resources.

For a stdio server, pass its command:

npx sunpeak inspect --server "python server.py"

If the server only returns data today, use the Inspector to lock down the tool contract first. Add _meta.ui.resourceUri and the UI resource when you are ready to render it.

Save Deterministic UI States

A live model is bad at reproducing the exact long name, expired session, missing image, or empty array that broke your UI. A simulation file pins those inputs and results.

Create tests/simulations/show-projects.json:

{
  "tool": "show-projects",
  "userMessage": "Show my active projects.",
  "toolInput": { "status": "active" },
  "toolResult": {
    "content": [{ "type": "text", "text": "Found 2 active projects." }],
    "structuredContent": {
      "projects": [
        { "id": "p_123", "name": "Mobile redesign", "status": "active" },
        { "id": "p_456", "name": "Billing cleanup", "status": "active" }
      ]
    }
  }
}

Add one fixture for each state that changes what a user can see or do:

  • A normal result with realistic content.
  • An empty result with a clear next action.
  • A partial result with optional fields missing.
  • Long text and enough rows to stress wrapping and scrolling.
  • A recoverable tool error and a retry path.
  • An auth-required state with no private data in the UI payload.
  • A loading or cancelled state when the tool can take time.

Do not use fixtures only for the happy path. Their main value is making rare failures cheap to repeat.

Turn the Local State Into a Browser Test

The same simulation can drive Playwright through sunpeak/test:

import { test, expect } from 'sunpeak/test';

test('renders active projects', async ({ inspector }) => {
  const result = await inspector.renderTool('show-projects');
  const app = result.app();

  await expect(app.getByRole('heading', { name: 'Active projects' })).toBeVisible();
  await expect(app.getByText('Mobile redesign')).toBeVisible();
  await expect(app.getByText('Billing cleanup')).toBeVisible();
});

Use several test layers because each finds a different class of bug:

LayerWhat it proves
Unit testHandler and component logic works for direct inputs
MCP protocol testTools and resources are discoverable and callable
Simulation testThe UI handles a fixed tool input and result
Inspector E2E testResource loading, iframe messaging, host context, and interaction work together
Visual testLayout, clipping, colors, and responsive behavior match an approved image
Model evalA model chooses the right tool and arguments
Live ChatGPT testThe deployed endpoint works with current ChatGPT behavior and policy

Run the deterministic suite on every pull request. Run model evals when tool names, descriptions, schemas, or routing rules change. Keep the live-host suite small enough that it remains useful instead of turning into a slow duplicate of local tests.

What Local Testing Cannot Prove

A local host replica is a development tool, not a promise that every host behaves identically. Save these checks for real ChatGPT:

Model routing

ChatGPT decides whether to call a tool and how to fill its arguments. Test direct prompts, indirect prompts, follow-ups that reuse IDs, write actions that need confirmation, and requests that should not call a tool.

Account and workspace policy

OpenAI’s current connection guide says Developer mode availability can depend on account and workspace policy. A local test cannot tell you which controls an admin enabled or whether a user can install the Plugin.

Authentication and confirmation

You can test server authorization locally, but the real host owns its account connection, consent, and confirmation UI. Check both success and denial paths with a non-production test account.

ChatGPT-specific extensions

Mock optional features while you build, then test the real feature in ChatGPT. File selection, native uploads, host modals, and other ChatGPT extensions can have policy or UI behavior a generic MCP Apps host does not reproduce.

Plugin installation and metadata snapshots

OpenAI packages MCP-backed apps as Plugins. Test the complete installed Plugin, not only the raw MCP server. Published Plugins use reviewed metadata snapshots, so changing the server does not automatically change what a published version advertises.

Connect to ChatGPT Only When the Local Gates Pass

The current OpenAI flow accepts a public HTTPS Streamable HTTP endpoint or Secure MCP Tunnel for private development connections. Secure MCP Tunnel keeps the local server off the public internet, while a normal forwarding URL exposes an internet-facing endpoint that needs production-grade authentication and authorization.

Before connecting, verify the endpoint with MCP Inspector or a protocol test. Check representative inputs, empty results, invalid identifiers, schema failures, auth errors, annotations, and the model-readable result.

Then follow the current ChatGPT steps:

  1. Open Settings > Security and login and turn on Developer mode.
  2. Open ChatGPT Plugins and select the plus button.
  3. Add the MCP server URL, including its /mcp path, or choose a Secure MCP Tunnel.
  4. Review the tools and metadata ChatGPT discovers.
  5. Start a new conversation, enable the connection, and run your positive and negative prompt set.
  6. Test both the component and the model-readable result.

After changing tool names, descriptions, schemas, annotations, authentication, or UI resources, restart or deploy the server. Open the connection, select Refresh, confirm the new metadata, and test in a new conversation.

Use a Release Evidence Ladder

A no-account development loop works best when each stage earns the next one:

  1. Unit and schema tests pass.
  2. MCP protocol tests prove the tool and resource contract.
  3. Simulation tests cover every visible state.
  4. Inspector E2E and visual tests pass against the production resource bundle.
  5. The deployed HTTPS endpoint passes direct MCP checks.
  6. A small ChatGPT test set proves routing, auth, confirmation, metadata, and UI.
  7. The complete Plugin passes installation and submission checks.

When a live test fails, this ladder also narrows the cause. If the same deployed endpoint passes MCP checks and the UI works in the local Inspector, investigate ChatGPT metadata, model routing, workspace policy, authentication, or a host-specific extension. You do not need to reopen every layer at once.

Current Version Boundary

As of September 15, 2026, MCP Apps protocol version 2026-01-26 remains the stable UI extension. The latest @modelcontextprotocol/ext-apps release on npm is 2.0.0. The current sunpeak 0.20.84 package declares @modelcontextprotocol/ext-apps 1.7.5 and @modelcontextprotocol/sdk 1.30.0.

That does not stop the local workflow described here because sunpeak’s Inspector and app runtime implement the stable MCP Apps contract. It does mean you should treat package upgrades as contract changes: pin versions in reproducible builds, inspect the generated tool metadata, run the bridge and resource tests, and recheck your production endpoint before release.

You can get nearly all daily ChatGPT App development off the paid-host path. Build the MCP contract locally, render the app in a sandboxed host replica, save deterministic states, and run the same browser checks in CI. Use Developer mode for the small set of questions only ChatGPT can answer.

Start with the sunpeak quickstart, use the Inspector for an existing MCP server, or follow the local ChatGPT App guide when you are ready to add the real host check.

Get Started

Documentation →
npx sunpeak new

Further Reading

Frequently Asked Questions

Can I build a ChatGPT App without a paid ChatGPT account?

Yes. You can build the MCP server, tool and resource contracts, sandboxed UI, simulation states, protocol tests, and Playwright tests locally without a ChatGPT account. You need access to ChatGPT Developer mode only when you want to connect the server to the real ChatGPT host. OpenAI says Developer mode availability can depend on account and workspace policy.

Can I test a ChatGPT App without Developer mode?

Yes. A local MCP App host can initialize the server, discover tools, read the UI resource, render it in a sandboxed iframe, deliver tool input and results, and expose host context. This covers most daily development. It cannot prove real ChatGPT model selection, account policy, consent screens, or ChatGPT-only extensions, so keep a focused live-host check before release.

What parts of a ChatGPT App can I test for free?

You can test tool handlers, input and output schemas, tools/list, tools/call, resources/read, content, structuredContent, app-only _meta data, UI loading, themes, display modes, narrow viewports, errors, cancellations, accessibility, and visual regressions on your machine. Model evals may use paid model APIs, and production hosting may have its own cost.

How do I run a ChatGPT App locally with sunpeak?

Run "npx sunpeak new sunpeak-app", enter the generated directory, and run "pnpm dev". The default project opens the sunpeak Inspector at localhost:3000 and starts an MCP endpoint at localhost:8000/mcp. The terminal output is the source of truth if either port changes.

Can sunpeak inspect an MCP server written in Python, Go, or Rust?

Yes. Run "npx sunpeak inspect --server http://localhost:8000/mcp" for a Streamable HTTP server, or pass a stdio command. The Inspector works with the MCP protocol, so the server does not need to use sunpeak or TypeScript.

Should a new ChatGPT App use window.openai or MCP Apps?

Start with the open MCP Apps fields and ui/* bridge. Use _meta.ui.resourceUri to link a tool to its UI, tools/call for app-initiated server tools, and ui/message or ui/update-model-context for host requests. Add window.openai only for ChatGPT-specific features, feature-detect each method, and keep a portable fallback.

What must I check in real ChatGPT before releasing an app?

Check model tool selection, argument quality, authentication and confirmation flows, ChatGPT-specific UI extensions, current metadata after a refresh, and the complete installed Plugin. Also verify that the model-readable result remains useful when the UI does not load or the client does not render MCP Apps.

How do I connect the finished MCP server to ChatGPT?

Use a public HTTPS Streamable HTTP endpoint or OpenAI Secure MCP Tunnel, enable Developer mode under Settings > Security and login, open ChatGPT Plugins, and add the MCP connection. After tool, schema, annotation, authentication, or UI resource changes, restart or deploy the server, refresh the connection metadata, and test in a new conversation.