ChatGPT Clone

ChatGPT clone · AI chat app · from our videos on X

ChatGPT Clone looks like ChatGPT on iPhone, with its knot logo and pale-blue bubbles. Four GPT models, from GPT-6 Luna to GPT-6 Astra, stream answers with tables, code and follow-up context. Ask for a picture and GPT Image draws it, sharpening from a blur. Voice mode answers out loud, and new chats are saved beside 14 sample chats.

  • iPhone · Swift
  • Built in 6 prompts
  • Free to remix
ChatGPT Clone, ai chat app built with Vibecode
Remix this template

Remix copies the working app into your account for free, exactly as we built it. It runs in Vibecode's cloud iOS simulator, in your browser.

Watch the video on X@vibecodeapp · Oct 21, 2026How to build a ChatGPT cloneThe guide: features, hard parts and costs · 8 min readAll AI chatbot templates8 working apps to remix

The prompt that builds it

We built ChatGPT Clone in 6 prompts. Here they are folded into one, so a single paste into a new app builds the finished version.

Prompt · 1,241 words

Build a polished native iOS clone of ChatGPT in SwiftUI with real GPT models behind it: answers that stream in word by word, a chat sidebar, a model picker, image answers that sharpen from a blur, and a voice orb.

It is ChatGPT on screen: its name, its knot logo (six interlocking rounded loops in a hexagonal rosette, drawn as a SwiftUI Shape), its colours and its words. Every new answer, title, image and spoken reply comes from a real model through the project's backend (Bun + Hono, keys through the Vibecode proxy, never in the app; read the vibecode-apis skill first). The Tokyo chat and the other past chats are seeded sample history. The user is Sam Rivera.

SHELL
No tabs. It opens on the sample chat "Tokyo trip". Top bar: a round glass sidebar button on the left, a centred glass pill "ChatGPT" with a chevron (the model picker), and a glass pill with new chat (pencil in a square) and "..." on the right.

SCREENS
1. Chat: Sam's messages on the right in pale-blue bubbles with blue text; ChatGPT's on the left, no bubble. A shimmering "Thinking" becomes a collapsible "Thought for N seconds" with the real elapsed time, then the model's answer streams in (Server-Sent Events from the backend) with a fade per word and auto-scroll; the round button becomes a black stop square that cancels the request. The whole conversation goes with every turn, so follow-ups keep context. A finished answer gets copy ("Copied" toast), read aloud, thumbs up, thumbs down, regenerate, share and 2 follow-up chips. Read aloud speaks the answer through the backend in the same real voice as voice mode, in chunks so it starts fast: a spinner, a stop button while it plays, then the speaker icon again.
2. Sample answers are typed blocks in Fixtures (heading, paragraph, bullets, numbered, table, code, image); live answers are markdown, drawn with the same views.
- Tokyo: Sam asks "plan a 3-day trip to Tokyo under $1,000". ChatGPT: "Here's a 3-day plan that stays under $1,000 before flights.", "Day 1: Shibuya and Harajuku", "Day 2: Asakusa and Ueno", "Day 3: Shinjuku" (3 bullets each), "Budget" and a table (Item, Cost): Hotel $420, Food $180, Transit $60, then "That's $660, so $340 is left for fun." Chips: "Draw it as a map", "Make it cheaper".
- "Draw it as a map", or any request for a picture: "Creating image", then a real GPT Image 2.6 picture sharpens from a blur, top to bottom, with Save and Share.
- Every chip and anything typed gets a real answer; new chats get a short real title after the first answer and are saved, so they're still in the sidebar after a relaunch.
3. New chat (the new-chat button): the logo, "What can I help with?", 4 chips in two rows ("Plan 3 days in Lisbon", "Explain black holes like I'm 10", "Write a birthday poem for Mia", "Create an image of a cat astronaut"), and the composer: a white pill with "+", "Ask anything" and a mic, beside a round blue button (a waveform when empty, for voice; an up arrow with text), never under the keyboard.
4. Sidebar (edge swipe or the button; the chat slides right and dims): "Search", "New chat", "Library", "GPTs", then 14 past chats under "Today", "Yesterday", "Previous 7 days" ("Tokyo trip", "Lisbon trip plan"...), each opening a short exchange; long-press: Rename, Share, Delete. "Sam Rivera" opens Settings (rows only, plan "ChatGPT Plus").
5. Model picker (tap the pill): "Auto", "Instant", "Thinking", "Pro", each with a one-line description and a check, mapped to real models: Auto = GPT-6.1 Terra, Instant = GPT-6 Luna, Thinking = GPT-6.2 Sol with high reasoning effort, Pro = GPT-6 Astra. Test each id through the proxy with curl first; if one is rejected, use GPT-6.2 Sol for it.
6. Voice: a dark screen, a blue-to-white orb that breathes and ripples while "Listening"; what you say is transcribed by a real speech-to-text model, answered by the selected model and spoken back by a real voice, with live captions; mute and a black X. The simulator's mic gives no input, so a small "Type instead" field runs the same flow.
7. Attach: "+" opens Camera, Photos, Files; Photos shows the 6 photos. A picked photo goes into the composer as a removable thumbnail, the user types their own question, and Send sends both to the model, which looks at the photo for real. A photo sent with no text asks "What's in this photo?".
8. "GPTs" opens "Explore GPTs": a grid of 8 ("Travel Planner", "Code Copilot", "Recipe Chef", "Study Buddy"...), each opening a chat with its own greeting and 3 chips.

SIGNATURE MOMENTS
Streaming lists and the table build, the map sharpening, the sidebar push, the voice orb. No splash, onboarding, login or paywall before the first chat. Pre-warm haptics at launch.

LOOK
White; text #0D0D0D, secondary #8E8E93; user bubble #E8F2FC with text #2E64BE; blue #0078FC for the voice button, orb and links; stop square #0D0D0D. Dark mode #212121. SF Pro 17 pt, semibold headings, SF Mono code on #1E1E1E.

RULES
- Native SwiftUI, iOS 26 (keep the template's target), iPhone portrait; standard NavigationStack and sheets, so it also runs on iPhone Duo.
- Sample history comes from fixtures; everything new is real and saved on the device. No login or analytics.
- Errors (for example, no credits left) show a short inline message under the message with Retry. Never show a fake answer.
- Long waits: a picture or a Pro answer can take minutes. Raise Bun's idleTimeout to 255 seconds and send an SSE keep-alive every 5 seconds while a model thinks or a picture generates, so nothing drops the connection. Photos: images.unsplash.com/photo-<id>?w=800&q=80 for 1441974231531-c6227db76b6e, 1490750967868-88aa4486c946, 1493246507139-91e8fad9978e, 1472214103451-9374bd1c798e, 1504674900247-0877df9cc836, 1514888286974-6c03e2ca1dba; curl-check, never review by eye.
- Decode and downsample images off the main thread; never re-blur a full-size image per frame (blur a small copy once, animate only the mask edge).
- Motion: springs under 350 ms; nothing appears or vanishes in one frame; flashes at most 0.12 s at 35%; haptics on key taps, pressed states, no dead buttons.
- Compile hygiene: files under 300 lines, big bodies split into subviews, no long chained expressions.
- Keep every file inside /home/user/workspace (/tmp is denied).

REMIX-READY (a public template strangers remix with one prompt)
- Brand.swift (name, logo view, enum Copy with every signature word) and Theme.swift (role colours, fonts, radii); views hold no names, copy or colour literals.
- Fixtures/ (sample history), Codable models, block kinds as an enum with one view per case.
- One seam: AppDataSource in one @Observable store (views never read Fixtures); Engine/ChatEngine talks to the backend's chat, image, title, transcription and speech routes.
- Feature folders. README.md under 80 lines: screens, file map, the files to edit to rename, recolour or change content, a table of what's real, 3 remix prompts that re-niche it. "Read README.md first." atop CLAUDE.md and ios/AGENTS.md; replace the <structure> block in ios/CLAUDE.md with this app's files. No scratch files.

BUILD
Backend routes first (check each with curl), then Theme, Brand, Fixtures and the engine, then the chat screen, then the rest, one small file per step, launching in the simulator every two or three files. Don't plan more than one file ahead. Walk each flow once and fix what breaks; no pixel measuring or debug modes. Deliver the whole app, not a plan. Do not publish.
All templates