# Codalio Documentation
> Official Codalio docs: turn a product idea into a live app you own — from PRD and prototype through code generation, GitHub, and cloud launch.
Full text of the Codalio guides, in the same order as the sidebar.
## Welcome to Codalio
Codalio turns a product idea into a real, working app that you own. You describe what you want in plain language, and Codalio's AI agents write the requirements, design the screens, generate and test the code, push it to your GitHub, and deploy it to the cloud.
You stay in control the whole way. Nothing moves forward until you approve it, and everything Codalio writes can be changed.
### How a project moves
Every Codalio project follows the same five stages. You can see them at all times on the **Project Lifecycle** bar at the top of a project.
| Stage | What happens | What you do |
| --- | --- | --- |
| **Idea** | You describe your product in chat, with optional files. | Write a few sentences, attach a pitch deck or wireframes if you have them. |
| **Vision** | Codalio interviews you and writes your Product Requirements Document (PRD). | Answer questions (or let the AI decide), review and approve the PRD. |
| **Prototype** | Codalio plans a design and builds a clickable UI prototype. | Approve the design, then refine the screens by chatting with the AI. |
| **Build** | Codalio's coding agent writes, tests and reviews production code. | Start the build, watch progress, and push the code to GitHub. |
| **Launch** | Your app is deployed to the cloud with a shareable link. | Click **Deploy to cloud**, then share your link. |
:::note Different stage names?
Some workspaces show the older names for the same stages: **Product Requirement Document**, **User Interface**, **Code Generation** and **Deploy & Launch**. They work exactly the same way.
:::
### Where to start
[**Quick start** Your first project, from idea to prototype.](/docs/getting-started/quick-start)
[**Create your account** Sign up, confirm your email, and set up your profile.](/docs/getting-started/create-your-account)
[**Already have code?** Import a GitHub repository and get a PRD written from it.](/docs/build/import-from-github)
[**Something went wrong?** Look up the message you are seeing.](/docs/help/troubleshooting)
### Key ideas in two minutes
- **Your PRD drives everything.** The Product Requirements Document is the single source of truth. The prototype, the code and the tests are all built from it. When you change the PRD, Codalio can bring the prototype and code back in line.
- **Approvals are checkpoints.** Codalio pauses at the important moments (your Product Desk, your design, your prototype) and waits for you.
- **Credits pay for AI work.** Writing the PRD, building prototypes and generating code use credits. Every plan includes monthly credits, and you can top up at any time. See [Plans & credits](/docs/account/plans-and-credits).
- **You own the code.** Generated code is pushed to a GitHub repository on your account or organization. There is no lock-in.
---
## Quick start
This guide takes you from a one-line idea to a clickable prototype, then shows you how to continue to code and launch. Plan for about 15 to 30 minutes, most of which is Codalio working while you watch.
### 1. Describe your idea
Go to [app.codalio.com](https://app.codalio.com).
- **New to Codalio?** You land on the start page. Type your idea in a sentence or two, for example *"a meal-planning app for busy families"*, and click **Start Building My App**. You don't need an account yet.
- **Already signed in?** On the home page, under **What's on your mind?**, describe your product and press **Send**.
:::tip Write like you would to a colleague
Plain language works best. Say who it is for, what problem it solves and the two or three things it must do. You don't need special prompt formats.
:::
You can attach a pitch deck, wireframes, PDFs or images with the paperclip button. The AI reads them to understand your idea better. See [Start a project](/docs/build/start-a-project) for supported files.
### 2. Create your account
If you started from the start page, Codalio shows a summary of your vision and asks you to create an account so it can save your work. Sign up with your email, then click the link in the confirmation email. Full details are in [Create your account](/docs/getting-started/create-your-account).
### 3. Answer a few questions
Codalio asks a short series of questions about the problem, your users, key features, how you'll make money and your launch goal. For each one you can:
- pick one or more suggested answers,
- write **Your own answer**, or
- click **Skip all. Let AI decide** and move straight on.
### 4. Review and approve your Product Desk
Your answers become the **Product Desk**: the plan your app is built from. Sections appear as they are written. Read it, edit any section by hand, or ask the AI to rewrite something (for example *"make the pitch punchier"*). When you're happy, click **Approve Product Desk**.
### 5. Shape the look and feel
In the **design studio**, describe the tone you want and add reference sites or screenshots of apps you like. You can also skip this and let the studio propose a look.
Codalio then writes a **Design Spec**: colours, fonts, corner radius and the screens it plans to build. Change anything you like, then click **Approve design spec**. See [Design Spec](/docs/build/design-spec).
### 6. Look at your prototype
Codalio builds a working, clickable prototype from your two documents. This can take a few minutes. You'll see each screen as it's built. When it's ready, click through it, ask for changes in chat, and click **Approve prototype** when it looks right.
:::info Free so far
Your documents, your prototype and your edits during this first guided journey are free. Building production code needs a paid plan.
:::
### 7. Build, then launch
From here you can keep refining your PRD and prototype, or start the build:
1. [Connect GitHub](/docs/account/github) so Codalio has somewhere to put your code.
2. Open the **Build** stage and click **Generate Code**. See [Build your code](/docs/build/build-code).
3. When the build finishes, click **Apply Changes to GitHub**.
4. Open the **Launch** stage and click **Deploy to cloud**. See [Launch your app](/docs/build/launch).
### What's next
[**Find your way around** The sidebar, the project page and the lifecycle bar.](/docs/getting-started/finding-your-way-around)
[**Get more from your PRD** Scores, canvas tabs, versions and exports.](/docs/build/vision-prd)
---
## Create your account
You need a Codalio account to save your work. You can start describing your idea before you sign up, and Codalio carries it into your new account.
### Sign up
1. Go to [app.codalio.com](https://app.codalio.com).
2. Either describe your idea and click **Start Building My App**, or go straight to sign up.
3. Choose **Create a new account** and enter your email address and a password.
If you already have an account, choose **I already have an account** and sign in instead. Your idea is kept either way.
### Confirm your email
Codalio sends a confirmation email as soon as you sign up. Click the link in it to activate your account.
- **The email hasn't arrived?** It can take a minute. Check your spam folder, then use **Resend the email**.
- **Typed the wrong address?** Choose **Use a different address** and sign up again.
You can't sign in until your email is confirmed. If you try, Codalio offers to resend the confirmation.
### Complete your profile
The first time you sign in, Codalio asks for a few details: first name, last name, industry and job title. This helps tailor your experience. You can click **Skip for now** and fill it in later.
### Your trial
New accounts start with a **Pro trial**. During the trial you get:
- up to 3 active products,
- unlimited UI prototype pages,
- your first UI prototype generation free,
- starter credits to explore features.
Code generation and deployment need a paid plan, even during the trial. When the trial ends, your account moves to the **Free** plan unless you upgrade. Your projects are kept. See [Plans & credits](/docs/account/plans-and-credits).
### Forgot your password?
On the sign-in screen, click **Forgot your password?** and follow the link Codalio emails you. Once you're signed in, you can change your password at any time from **Profile → Change Password**. See [Account settings](/docs/account/settings).
---
## Finding your way around
Codalio has two main places: the **home page**, where you start and find projects, and the **project page**, where you build one product.
### The sidebar
The sidebar on the left is always available.
| Item | What it does |
| --- | --- |
| **Home** | Back to the home page, where you can describe a new idea. |
| **New Project** | Start a new project. |
| **Recent projects** | Jump to the projects you opened most recently. |
| **All projects** | See every project in your organization. |
| **Upgrade plan** | Compare plans and upgrade. |
| **?** | Start the product tour again. |
You can rename the project you're in from the sidebar. On small screens, open the sidebar with the menu button.
### The account menu
Click your profile in the sidebar to open the account menu.
| Item | What it opens |
| --- | --- |
| **Organization** | Shows the organization you're working in. If you belong to more than one, switch here. |
| **Profile** | Your personal settings: profile, default organization, password and coding agent connections. |
| **App Settings** | Your organization's settings: profile, access, subscription, usage & billing and GitHub. |
| **Subscription** | Your plan, credits and Cloud Deployment subscriptions. |
| **GitHub** | Your GitHub connection and where the Codalio GitHub App is installed. |
| **Documentation** | These guides. |
| **Report a bug** | Send a bug report with screenshots. See [Get help](/docs/help/support). |
| **Contact Support** | Email the Codalio team. |
| **Sign out** | Sign out of Codalio. |
### The project page
A project page has three parts.
#### The chat
The chat is your command center. You talk to Codalio's AI agents here: describe features, answer questions, ask for changes. Under the message box you'll find:
- **Attach files**: add PDFs, documents or images.
- **Give me suggestions** and **Elaborate more**: quick replies when you're not sure how to answer.
- **Add to queue**: while the AI is still working, queue your next message and it's sent when the current answer finishes.
- **Stop generation**: stop the current answer.
#### The PRD canvas
The canvas shows your Product Requirements Document in tabs. Open or close it with the **PRD Canvas** button. See [Vision: your PRD](/docs/build/vision-prd).
#### The Project Lifecycle bar
The bar along the top shows the five stages of your project: **Idea**, **Vision**, **Prototype**, **Build** and **Launch**. Click a stage to open its card, which shows what the stage does, its current status and its main action, such as **Generate UI Prototype**, **Generate Code** or **Deploy to cloud**.
A stage stays locked until the one before it is done. Hover a locked stage to see what you need to finish first.
You'll also find the **GitHub** button here, which opens your GitHub connection for this project.
### The product tour
The first time you open a project, Codalio offers a short guided tour. It comes in two parts: the first covers the chat, and the second starts on its own when your PRD is ready to open. Click **Skip** to explore on your own. You can restart the tour at any time from the **?** button in the sidebar.
---
## Start a project
Every Codalio project starts with your idea. There are three ways in.
| Start with | Best when | Where |
| --- | --- | --- |
| **Describe it** | You have an idea, notes or documents. | Home page, **Describe it** tab |
| **Quick UI** | You want to see screens as fast as possible. | **Quick UI** button next to the message box |
| **Import from GitHub** | You already have code and want a PRD written from it. | Home page, **Import from GitHub** tab |
### Describe your idea
On the home page, under **What's on your mind?**, write a few sentences about your product and press **Send**. Codalio creates a new project and opens it.
A good first message covers:
- **Who** it's for, for example *"independent fitness coaches"*.
- **The problem** it solves, for example *"they track clients in spreadsheets and lose track of progress"*.
- **The must-have features**, for example *"client profiles, workout plans, progress charts, payments"*.
Don't worry about getting it perfect. Codalio asks follow-up questions to fill the gaps.
:::tip No special prompts needed
You don't need third-party prompt tools or long, structured prompts. Describe your idea in plain English and answer in short sentences. Codalio does the rest.
:::
### Attach files
Click the paperclip (**Attach files**) to add supporting material such as pitch decks, wireframes, briefs or screenshots. The AI reads them alongside your message.
| File type | Formats | Max size |
| --- | --- | --- |
| Documents | PDF, TXT, MD, CSV, JSON | 20 MB each |
| Images | PNG, JPG, WebP | 10 MB each |
You can attach up to 20 documents to a project. Once a file has been built into your PRD, you can remove it from the attachments panel so it isn't read again. This keeps your results focused and saves credits.
### Quick UI
**Quick UI** generates a full user interface from your description in one go, then takes you straight to the preview. It's great for rapid prototyping when you want to see something before working through the full PRD interview.
Quick UI uses credits. You can still write and refine your PRD afterwards.
### Import from GitHub
If you already have an app, you can import its repository. Codalio analyzes the code and writes a PRD from it. See [Import from GitHub](/docs/build/import-from-github).
### Your projects
Your projects appear under **Your Projects** on the home page, and under **Recent projects** in the sidebar. Click **Go to Project** to open one.
The number of projects you can have active depends on your plan. If you reach the limit, Codalio shows **Product limit reached** and offers to upgrade. See [Plans & credits](/docs/account/plans-and-credits).
---
## Guided setup
When you start from the Codalio start page, your project opens in a **guided setup**. It walks you through each decision in order and pauses for your approval at every important step. A strip of steps across the top shows where you are.
:::info It's free
The guided setup is free, whatever plan you are on: your documents, your prototype and your edits. You only need a paid plan when you start building production code.
:::
### Step 1: A few questions
Codalio reads your idea, works out what it still needs to know, and asks one question at a time. Questions cover things like:
- the problem your product solves,
- who it's for,
- key features,
- your revenue model,
- your launch goal.
For each question you can pick one or more answers (**Select all that fit**), choose **Something else** and answer **In your own words**, or let Codalio choose (**You decide**). To skip every remaining question, click **Skip all. Let AI decide**. Nothing is written until you answer.
### Step 2: Your Product Desk
Your answers become the **Product Desk**: the plan your app is built from. It runs everything downstream.
- Sections appear as they are written. You can start reading straight away.
- Click **Edit** on any section to change it by hand.
- Ask in the chat to rewrite anything, for example *"make the pitch punchier"*.
When you're happy, click **Approve Product Desk**. You can still change any section afterwards.
### Step 3: Show us your taste
The **design studio** asks for your taste before anything is styled:
- **Tone**: pick a feel, or describe it in your own words.
- **Reference sites**: links to sites whose look you like.
- **Screenshots**: drag in screenshots of apps you like (PNG, JPG or WebP).
All of this is optional. Click **Start the design spec** to continue, or skip ahead and let the studio propose a look you can redirect.
### Step 4: Your Design Spec
Codalio lays out your screens and navigation, then chooses your look and feel. Each decision appears as it is made. Review the colours, fonts, corner radius and planned screens, change what you like, then click **Approve design spec**. See [Design Spec](/docs/build/design-spec) for every option.
### Step 5: Building your prototype
Codalio builds your prototype screen by screen and checks each one against your Product Desk. You can watch each screen appear. When everything is built, Codalio checks the code so your first look opens cleanly. This usually takes under a minute.
If the build doesn't finish, your Product Desk and Design Spec are safe. Click **Try building again**. It builds from the design you approved and doesn't re-think it.
### Step 6: First look
Your prototype opens, built from your two documents. Click through it, ask for changes in the chat, and click **Approve prototype** when it looks right.
### Step 7: How building works
Codalio explains what happens next and shows the plans. You can:
- **Pick your plan** and start building production code, or
- **Stay on the free plan for now** and keep refining. Your prototype and documents are yours either way.
After this, your project opens on the normal project page, with the **Build** stage next. A short tour shows you where to refine your PRD and where to start the build.
### Reopening a step
You can reopen the **Product Desk**, the **Design Spec** and the plans step from the step strip at any time.
---
## Vision: your PRD
Your **Product Requirements Document (PRD)** describes what your product is, who it's for and what it must do. Codalio writes it with you through conversation, and everything after it (the design, the prototype, the code and the tests) is built from it.
### How the PRD gets written
1. You describe your idea in the chat.
2. Codalio asks questions. You can answer, pick a suggestion, write your own answer, or click **Skip, let AI decide**.
3. A team of AI agents writes and updates the PRD sections as you go. After each turn, the chat tells you what changed, for example *"Updated the PRD: Key Features, User Stories"*.
Not sure what to say? Use **Give me suggestions** for ideas, or **Elaborate more** to have the AI explain the question. Click **Why we're asking** under a question to see why it matters.
### Scores: when is the PRD ready?
Four AI agents review different parts of your PRD and give each part a score out of 10:
| Agent | Looks at |
| --- | --- |
| **Project Manager** | The project overview: problem statement, target audience and key features. |
| **Designer** | Visual design, brand identity and user experience. |
| **Architect** | Technical architecture, data models and system requirements. |
| **Product Manager** | User stories and flows, success metrics, risks and acceptance criteria. |
If you turn on AI capabilities for your product, an **AI Architect** also reviews the AI design.
Hover an agent's icon to see its score and the reasoning behind it. Click it to keep the panel open and jump to the relevant PRD section.
:::tip The magic number is 8
When every score reaches **8 or higher**, your PRD counts as complete. Keep answering the AI's questions to raise a low score. The more specific your answers, the faster scores rise.
:::
Once you've shared enough, Codalio suggests moving on to the UI prototype. You don't have to: you can keep refining the PRD for as long as you like.
### The PRD canvas
Click **PRD Canvas** to open your PRD next to the chat. It's split into **Business Requirements** and **Technical Requirements**, with a tab for each part:
| Tab | What's inside |
| --- | --- |
| **Project Requirements** | Elevator pitch, problem statement, solution, key features, phasing and user flows. |
| **User Experience** | Design principles, user personas, user journeys, sitemap and navigation. |
| **Design Spec** | Colours, fonts and screens for your prototype. See [Design Spec](/docs/build/design-spec). |
| **Scope Estimation** | Effort by role, story points and estimated cost by phase. |
| **Market Sizing** | Total, serviceable and obtainable market (TAM, SAM, SOM), assumptions and competitors. |
| **Architecture Document** | Data model diagrams and sample data tables. |
| **AI Architecture** | AI capabilities, integration pattern, data requirements and guardrails (when enabled). |
| **User Stories** | User stories with acceptance criteria. |
Long lists have a search box and pages, so you can find a persona, feature or story quickly.
Some content, such as the full list of user stories, all scope estimates and sample data, is only on paid plans. Free plans see a preview with an upgrade option.
#### Changing the PRD
Ask in the chat. For example:
- *"Add a team admin role who can invite members."*
- *"Split checkout into its own phase."*
- *"Remove the social login feature."*
The agents update the affected sections and show you what changed. While an edit is running, you'll see the agents' activity in the chat. Use **Undo** on an edit card to revert it.
#### AI capabilities
If your product could benefit from AI features, the **AI Architecture** tab offers **Enable AI capabilities**. The AI Architect then designs which AI features to include, how they connect to your app, what data they need, and the guardrails to keep them safe.
### Versions
Save snapshots of your PRD so you can return to them.
- Click **Save new version** to save the current PRD as a named version.
- Open **Version history** to browse, rename and switch between saved versions.
You can't switch or save versions while the AI is working. Wait for it to finish first. PRD versions are available on the **Plus** and **Premium** plans.
### Export
Click **Export** (with the canvas open) to download your PRD as:
| Format | Use it for |
| --- | --- |
| **PDF** | Sharing with stakeholders. |
| **HTML** | Viewing in a browser or publishing. |
| **JSON** | Feeding into your own tools. |
| **Cursor Instruction** | Giving the Cursor AI editor your full requirements. |
| **Windsurf Instruction** | Giving the Windsurf AI editor your full requirements. |
Some formats need a subscription. To let a coding agent read your PRD directly instead of exporting it, see [Connect a coding agent](/docs/account/coding-agents).
### Next step
When your PRD is in good shape, continue to the [Design Spec](/docs/build/design-spec) and [UI prototype](/docs/build/prototype).
---
## Design Spec
The **Design Spec** is your app's visual language: its colours, fonts, corner style and the screens it will have. Codalio plans it from your PRD, and your prototype is built from it. Nothing is built until you approve it.
You'll find it in the **Design Spec** tab of the PRD canvas.
### Before we design
Codalio first asks for the feel you're after:
- **Tone**: choose one, or click **Or describe it in your own words**.
- **Reference sites**: up to a few links to sites whose look you like.
Click **Start the design spec** (or **Create design spec**), or **Skip preferences** to let Codalio decide. Planning usually takes a minute or two. Click **Follow along** to watch it happen.
### What you can change
| Setting | Details |
| --- | --- |
| **Colours** | The colours your prototype uses for backgrounds, text and buttons. Click a swatch to pick a new colour, or type a hex value. Use **Show all colours** for the full palette, including dark mode. |
| **Fonts** | A heading font and a body font. Any [Google Fonts](https://fonts.google.com) family works. Type its name exactly as Google Fonts writes it, for example *Inter*. |
| **Corner radius** | How rounded buttons, cards and inputs are. |
| **Design notes** | Anything else the builder should follow, for example *"use generous white space"*. |
Click **Save changes** to keep your edits, or **Discard** to undo them.
### What you can't change here
The **screens** and the **components** they use (from the shadcn/ui library) are planned from your requirements. To change them, edit your PRD in the chat and plan again.
### Approve it
When the design looks right, click **Approve design spec**. Codalio then builds your prototype with it. See [UI prototype](/docs/build/prototype).
### Changing the design later
You can reopen an approved spec at any time. If you change it after the prototype is built, Codalio tells you the prototype uses an earlier version of the design. Click **Regenerate with these changes** to rebuild its pages with the new design.
:::note Older prototypes
Prototypes built before Design Specs existed have no spec to review. Ask for design changes in the prototype chat instead.
:::
---
## Prototype: your UI
The **UI prototype** is a working, clickable version of your app's interface. You can test the screens and flows before any production code is written.
### Generate your prototype
Your PRD needs enough detail first. Once it's ready, either:
- click **UI Prototype** under the chat, or
- open the **Prototype** stage on the Project Lifecycle bar and click **Generate UI Prototype**.
If your project uses a Design Spec, approve it first (**Review design spec**). The prototype is built with it.
Building can take up to 10 minutes. You can leave the page: Codalio emails you when your preview is ready.
### Explore it
The prototype page has the chat on one side and your app on the other.
- Switch between **Preview** (your app) and **Code** (the files behind it).
- Use the full-screen button to see the app on its own.
- In **Code** view, show or hide the file explorer.
- A status badge shows **Saving...**, **Saved** or **Unsaved changes**.
### Refine it in chat
Describe what you'd like changed, for example:
- *"Add a search bar to the top of the dashboard."*
- *"Make the pricing page cards a single column on mobile."*
- *"Use a darker header with white text."*
You can also attach reference images, or use quick actions such as **Make the UI more modern**, **Make the colors more vibrant**, **Improve spacing and layout** and **Simplify the design**. Each change uses credits.
If Codalio notices a problem with your preview, it asks *"There might be a problem with your Preview. Do you want to attempt a fix?"* Click **Attempt Fix** to let it repair the error.
### Keep it in sync with your PRD
When your PRD changes after the prototype was built, a banner tells you the prototype is out of date:
| Button | What it does |
| --- | --- |
| **Apply Latest PRD** | Updates the prototype to reflect your latest PRD changes. Uses credits. |
| **Generate locked pages** | Your plan changed and more pages are now available. Builds only those pages. Uses credits. |
If Codalio finds no changes that affect the prototype, it tells you so and nothing is charged.
:::note Moving to the new UI system
Some older prototypes were built with Codalio's previous UI system. If yours was, you'll see an upgrade notice. Click **Regenerate with new pipeline** to move it to the new system. This is free.
:::
### Approve it
When the prototype looks right, click **Approve prototype** (or **Continue to Build**). This tells Codalio to use it as the interface for your production code.
### Publish it as a website
You can publish the prototype as a static website with a shareable link, which is handy for showing investors, users or your team.
1. [Connect GitHub](/docs/account/github).
2. Open the **Prototype** stage card and click **Preview on web**.
3. Publishing takes one to three minutes. When it's done, you'll see **Published successfully. Your website is now live.** and a link to share.
If you change the prototype later, click **Republish** to update the live site. You can't publish while the prototype has runtime errors, so fix them in the prototype chat first.
### After code is generated
Once Codalio has generated code from your prototype, the prototype becomes **read-only**. Make further design changes from the **Build** stage instead. Click **Go to Code Generation** on the banner.
---
## Build: generate your code
In the **Build** stage, Codalio's coding agent turns your PRD and approved prototype into a real application. It writes the code, tests it against your acceptance criteria, reviews it, and pushes it to your own GitHub repository.
### Before you start
You need:
- **A Plus or Premium plan.** Code generation isn't available on the Free plan or during the trial.
- **GitHub connected**, with the Codalio GitHub App installed where the code should live. See [Connect GitHub](/docs/account/github).
- **An approved prototype**, or a project [imported from GitHub](/docs/build/import-from-github), which doesn't need one.
### Start the build
There are two ways to start.
**From the Build stage card**
1. On the Project Lifecycle bar, open the **Build** stage card.
2. **Choose where to push generated code**: pick your GitHub user or an organization. Codalio creates a new repository there.
Or choose **Or continue in an existing repository** to build into one you already have. Only repositories created by Codalio, or built on Codalio's framework, can be continued.
3. Click **Generate Code**.
Codalio sets up your project. It processes your PRD, creates the repository, installs modules and pushes the first commit. This usually takes a few minutes, and a checklist shows each step.
**From the Build chat**
Open the **Build** stage and send your first message. Codalio checks your plan, prepares your workspace and starts the agent. If you choose **Auto Development** and the project has no repository yet, Codalio asks which GitHub organization to create it in, because Auto Development publishes your app to a new repository when it finishes.
#### Choose your backend
If your organization can choose a backend, open the **Advanced options** tab in the Build chat before your first message and pick one:
| Backend | Language |
| --- | --- |
| **Ruby on Rails** (recommended) | Ruby |
| **Laravel** | PHP |
| **NestJS** | TypeScript |
The backend is locked once you send your first message, and the option then disappears. If you don't see it, your app uses Ruby on Rails.
### The Build workspace
Once setup finishes, the Build workspace opens. On the left is the chat. On the right are four tabs:
| Tab | What it shows |
| --- | --- |
| **Development Tasks** | The agent's to-do list and the progress of each stage in the current run. |
| **App preview** | Your running app. See [App preview](/docs/build/app-preview). |
| **PRD criteria** | Every acceptance criterion from your user stories, with whether it's implemented and tested. |
| **Terminal** | Live logs from the current run. |
### Two ways to work
The message box has two modes.
#### Auto Development
**Auto Development** runs the full pipeline from your PRD, stage by stage. Click the stage selector (**Run which stages?**) to choose which stages to run:
| Stage | What it does |
| --- | --- |
| **Plan** | Reads your PRD and writes the build plan and acceptance criteria. |
| **UI** | Builds the screens of your app. Shown when there's no prototype to bring in. |
| **UI Integration** | Brings in your approved prototype (or your imported repository's UI) and connects it to the backend. Shown instead of **UI** when one exists. |
| **Develop** | Builds the backend, runs database migrations and writes unit and integration tests. |
| **Test** | Runs the test suite for every acceptance criterion. |
| **Review** | Checks that every criterion has a passing test. |
| **Review (Complete)** | A final, full compliance pass over the whole app. Off by default. |
#### Codalio Agent
**Codalio Agent** is for specific changes. Describe the new features, updates or interface changes you want, and the agent works on just that. Press Ctrl + Enter (or ⌘ + Enter on Mac) to send.
:::tip Batch your requests
Asking for several features in one message is quicker than sending them one at a time, and uses fewer credits. Codalio reads your requirements once for the whole batch.
:::
### Your PRD stays the source of truth
Before writing code for a new request, a team of specialist agents reads your whole PRD and works out what the change means for it: the user flows, the stories, the data model. If the PRD needs updating, you'll see **I've drafted the PRD changes this would need**, with the sections it would change. Choose:
- **Save as a new version**: keep your current PRD and save the changes as a new version.
- **Update this version**: apply the changes to the current PRD.
- **Discard**: build without changing the PRD.
### Attachments
Attach wireframes, screenshots or documents to guide the agent: drop them in, paste them, or pick them. Files are grouped in two ways:
- **On this product**: given to the agent on every run until you remove them.
- **With this message**: sent once, with the message you're writing.
### While it runs
- The chat shows the agent's live activity: what it's thinking and the steps it's taking. When it finishes, it replies with a summary of what it changed.
- Watch progress in **Development Tasks** and the **Terminal**.
- **Add to queue** lets you line up your next request. It runs when the current one finishes.
- **Stop pipeline run** stops the run. Completed work is kept, and the current stage may end early.
### Pauses, errors and Resume
If a run stops, a card in the chat explains why. Your completed stages are always saved. The main buttons are:
- **Resume**: continue from where it stopped.
- **Attempt Fix**: give the agent one more focused pass on the specific failure.
- **Contact us** / **Contact support**: opens an email to the Codalio team with a **Support reference** already filled in.
See [Troubleshooting](/docs/help/troubleshooting#build) for each message and what to do.
### Push your code to GitHub
When a run produces changes, the GitHub panel tells you they haven't been pushed yet. Click **Apply Changes to GitHub** to push them to your repository. When everything is pushed, you'll see **All changes are saved to this repository.**
:::warning Push before you deploy
Deployment uses the code in your GitHub repository. Click **Apply Changes to GitHub** before deploying, or your latest changes won't go live.
:::
### Run history
**Run history** lists every completed run with its score, how many checks passed, and the credits and tokens it used.
### When the PRD and code drift apart
If your code changes outside Codalio (for example, a teammate pushes commits) or you switch to a different PRD version, Codalio shows **PRD and code out of sync** and lists what differs. Depending on the situation you can:
- **Update the PRD from the new commits**, so the PRD reflects what's now in the code,
- **Apply changes to code**, to build PRD changes into your app, or
- **Sync PRD and apply to code**, to do both.
Each of these uses credits. Switching to an older PRD version and applying it regenerates your code. Anything built in earlier runs that isn't in that version may be changed or removed, so Codalio asks you to type the version name to confirm.
### Workspaces after a break
If you haven't worked on a project for a while, its workspace is cleaned up to save resources. When you come back, Codalio prepares it again. This takes a few minutes the first time, and your build starts automatically when it's ready.
### Clearing the chat
**Clear chat** deletes the Build chat history. Your generated code and repository changes are kept. You can't clear the chat while a run is in progress.
---
## App preview
**App preview** runs your generated app on a temporary server so you can click through the real thing, with its real backend, before you deploy it.
You'll find it in the **App preview** tab of the Build workspace. It's available once at least one build run has produced code.
### Start the preview
1. Open the **Build** stage and select the **App preview** tab.
2. Click **Start preview server**.
3. Wait while the app boots (**Starting preview...**). It appears in the panel as soon as it responds.
### Use the preview
| Button | What it does |
| --- | --- |
| **Reload preview** | Picks up the latest generated code changes. |
| **Open preview in new browser tab** | Opens the running app in a full browser tab. |
| **Stop preview server** | Stops the app and frees workspace resources. |
:::info The preview sleeps after 15 minutes
To save resources, the preview stops after 15 minutes of inactivity. Click **Start preview server** to start it again. Nothing in your workspace changes. For an app that stays online, [deploy it to the cloud](/docs/build/launch).
:::
### Test before you deploy
Running the preview is the quickest way to confirm your app builds and works before you deploy it. If something looks wrong, describe it in the Build chat and the agent fixes it.
### If the preview won't start
| Message | What to do |
| --- | --- |
| **The preview failed to start.** | Click **Start preview server** again. |
| **The generated app did not respond after booting.** | Check the **Terminal** tab for errors, then start it again. If the logs show an error, ask the agent in the Build chat to fix it. |
| **The preview host could not be routed.** | Start it again. If it keeps failing, [contact support](/docs/help/support). |
| **This preview was stopped for inactivity.** | Start it again. Your work is untouched. |
---
## Launch: deploy your app
In the **Launch** stage, Codalio deploys your app to the cloud and gives you a live link to share. It handles the hosting setup for you.
### Before you start
- **A Plus or Premium plan.** Deployment isn't available on the Free plan or during the trial.
- **Your code is on GitHub.** Codalio deploys from your repository, so click **Apply Changes to GitHub** in the Build stage first. If you haven't, the Launch card reminds you.
- **A Cloud Deployment for this product.** See below.
:::tip Check it first
Run the [App preview](/docs/build/app-preview) in the Build stage to confirm your app works before deploying it.
:::
### Cloud Deployment
Each live app uses one **Cloud Deployment**.
| Plan | Cloud Deployments |
| --- | --- |
| **Premium** | 1 included. Additional deployments can be added. |
| **Plus** | Not included. Add one per product you deploy. |
Additional deployments are a separate monthly subscription per product. The current price is shown before you pay. When you deploy a product that needs one, Codalio shows the price and takes you to a secure Stripe checkout. Deployment starts as soon as payment completes. Each Cloud Deployment is billed on its own invoice, and your main plan doesn't change.
### Deploy
1. On the Project Lifecycle bar, open the **Launch** stage card.
2. Click **Deploy to cloud**.
3. Wait while Codalio deploys your app (**Deploying...**). This can take several minutes.
4. When it's done, you'll see **Your application has been successfully deployed to the cloud.**
Click **Open your app** to visit it, and copy the link under **Share your link** to share it. Once your app is live, the **Deploy** button on the lifecycle bar opens it directly.
### Ship an update
After more Build runs, click **Redeploy to cloud**. Codalio publishes your latest generated code to GitHub and then updates the live app.
### If the deployment fails
You'll see **Deployment failed**. Click **Retry deployment**. If it fails again, [contact support](/docs/help/support) with your project name.
If the card asks you to **Reconnect GitHub** or **Install Codalio app**, Codalio has lost access to your repository. Follow the prompt, then deploy again. See [Connect GitHub](/docs/account/github).
### Cancel a Cloud Deployment
Go to **Subscription** in the account menu, find the Cloud Deployment and click **Cancel Cloud Deployment**.
- It stays active until the end of the current billing period.
- After that date, the live app enters a grace period and is then taken down.
- You can subscribe again at any time.
Your code stays in your GitHub repository, so you can always deploy it elsewhere.
---
## Import from GitHub
Already have an app? Import its GitHub repository and Codalio analyzes the code and writes a PRD from it. You can then refine that PRD, plan new features and continue building with Codalio.
### Import a repository
1. On the home page, open the **Import from GitHub** tab.
2. Paste the repository in any of these forms:
- `github.com/org/repo`
- `org/repo`
- `https://github.com/org/repo`
3. Click **Analyze repository**.
Codalio creates a new project and starts the analysis. You'll see **Analysis started**, and progress appears on the project page.
#### Private repositories
Public repositories can be analyzed straight away. For a private repository, Codalio needs access first, and walks you through it in two steps:
1. **Connect your GitHub account.** Click **Connect GitHub account** and approve it on GitHub. You're brought back to Codalio.
2. **Install the Codalio GitHub App** on the account or organization that owns the repository. Choose where to install it on GitHub.
Then click **I've connected GitHub, retry analysis**. See [Connect GitHub](/docs/account/github) for more about the GitHub App.
You can also start from a repository Codalio can already see: pick it from your list of accessible repositories and click **Connect & Analyze** to analyze it in a new project.
### What the analysis does
Codalio scans your repository in eight stages:
1. **Service discovery**: finds the apps and services in the repository.
2. **Graph extraction**: maps routes, actions and how they connect.
3. **Architecture analysis**: works out how the system fits together.
4. **Data model extraction**: finds your data models and their relationships.
5. **Integration analysis**: identifies external services and APIs.
6. **Business logic extraction**: captures the rules your app enforces.
7. **UX flow analysis**: traces the journeys users take through the app.
8. **PRD synthesis**: writes your PRD from everything it found.
Follow along in **Pipeline stages**. Expand a stage to read **AI Thinking** and see what the AI is focusing on. Analysis can take a few minutes depending on the size of the repository, and the chat is disabled while it runs.
When it's done, you'll see **Repository analysis complete**. Your PRD sections fill in from the code and you continue in the normal project page, with the PRD canvas and the rest of the lifecycle.
### Stop and resume
- **Stop analysis** cancels the run. You can resume later from the project page.
- **Resume** continues from the last completed stage, so finished stages aren't repeated.
- If you run out of credits partway through, the analysis pauses (**Analysis paused, out of credits**). Click **Add credits**, then resume.
### No prototype needed
A project imported from GitHub skips the prototype step. The generated app mirrors your original repository's UI. Once your PRD is complete, continue straight to [Build](/docs/build/build-code).
:::note Supported repositories for continued building
Any repository can be analyzed to produce a PRD. To keep building inside an existing repository, it must have been created by Codalio or built on Codalio's framework. If it wasn't, Codalio says the repository's tech stack isn't supported. Choose a GitHub user or organization instead, and Codalio creates a new repository there.
:::
---
## Connect GitHub
Codalio stores your generated code, and publishes your prototype website, in **your own GitHub repositories**. To do that it needs two things:
1. **Your GitHub account, connected**, so Codalio can act as you.
2. **The Codalio GitHub App (Codalio-Bot), installed** on your personal account or organization, so Codalio can create and manage repositories there.
### Connect your account
You can start from any of these:
- the **GitHub** button on a project's Project Lifecycle bar,
- **GitHub** in the account menu,
- **Connect GitHub** on the **Build** stage card.
Click **Connect GitHub**, sign in to GitHub if asked, and approve access. You're brought back to Codalio and see **GitHub connected**.
### Install the Codalio GitHub App
After connecting, install the app where your repositories should live:
1. Click **Install Codalio on your account or organization** (or **Add Organizations**).
2. GitHub opens. Choose your personal account or an organization.
3. Choose which repositories Codalio can access, then confirm.
You're brought back and see **Codalio app installed**. Repeat for each organization you want to use.
:::info Organization owners
To install the app on a GitHub organization, you need permission to install apps there. If you don't have it, ask an organization owner to approve the request on GitHub.
:::
### Manage your connection
Go to **App Settings → GitHub**. Here you can:
- see your **Connected GitHub account**,
- see every account and organization where Codalio-Bot is installed, and **Install or link** more,
- see **Linked projects** and the repository each one uses,
- **Disconnect repository** from a project,
- **Refresh GitHub login** if publishing fails because your GitHub session expired,
- **Disconnect GitHub** entirely.
### Clone your repository
To work on your code locally, open the project's GitHub settings, choose a **Clone protocol**, and click **Copy clone command**. Paste the command into your terminal.
### Common problems
| Message | What to do |
| --- | --- |
| **Reconnect GitHub** | Your GitHub authorization expired or was revoked. Click it and approve again. |
| **Install Codalio app** | The app isn't installed on the account that owns this repository. Install it there. |
| **This repository needs the Codalio GitHub App installed before it can be analyzed.** | Click **Install Codalio bot** and install it on the repository's owner. |
| The app is linked to a different organization | Go to [github.com/settings/installations](https://github.com/settings/installations), open Codalio, uninstall it, then connect again from Codalio. |
| **Your GitHub setup session could not be found.** | Start the connection again from Codalio, not from a saved GitHub link. |
| **GitHub was temporarily unavailable or rejected the request.** | Wait a moment and try again. |
More fixes are in [Troubleshooting](/docs/help/troubleshooting#github).
---
## Plans & credits
Codalio uses **plans** for features and limits, and **credits** for AI work.
### Plans
| | Free | Pro | Plus | Premium |
| --- | :---: | :---: | :---: | :---: |
| Active products | 1 | 3 | 3 | Unlimited |
| UI prototype pages | 1 | Unlimited | Unlimited | Unlimited |
| Monthly credits | ✓ | More | More | Most |
| Full PRD (all stories, estimates, sample data) | Preview | ✓ | ✓ | ✓ |
| PRD versions | | | ✓ | ✓ |
| Code generation | | | ✓ | ✓ |
| Deploy & Launch | | | ✓ | ✓ |
| Cloud Deployments included | | | Add as needed | 1, more as needed |
The **Subscription** page always shows the current plans, prices and monthly credits. Go to **Subscription** in the account menu and click **More details** on any plan.
#### Trial
New accounts start on a **Pro trial** with up to 3 active products, unlimited prototype pages, your first UI prototype generation free and starter credits. Code generation and deployment need a paid plan. When the trial ends, your account switches to the Free plan unless you upgrade.
### Credits
AI work uses credits: writing and editing your PRD, generating and changing prototypes, analyzing repositories and generating code. When an action uses credits, the button usually says so, for example *(uses credits)*.
You have three kinds of credit, used in this order:
| Kind | Where it comes from | Expires? |
| --- | --- | --- |
| **Monthly credits** | Included with your plan, refilled every billing cycle. | Reset each cycle. |
| **Bonus credits** | 5 when you create your account, plus 5 each day you log in. | At the end of each billing cycle. |
| **Top-up credits** | Credits you buy. | Never. |
Your balance is shown under **Credit Balance**. Hover it for the breakdown.
#### Top up
Click **Top up** (or **Buy more credits** / **Top up credits**), choose a pack, and pay through secure Stripe checkout. Purchased credits never expire and are used only after your monthly and bonus credits.
#### Running out
If you don't have enough credits, Codalio shows **Insufficient Credits** with options to **Top up credits** or **Upgrade Now**. Long-running work, like a build or repository analysis, pauses instead of failing. Add credits and click **Resume** to continue from where it stopped. Nothing is lost.
:::tip The guided setup is free
Your first guided journey (questions, Product Desk, Design Spec and prototype) doesn't use your credits. See [Guided setup](/docs/build/guided-setup).
:::
### Usage & Billing
Go to **App Settings → Usage & Billing** to see:
- **Credit Usage**: credits used this month and all time.
- **Usage by category**: PRD flow, UI generation and code generation.
- **Usage Over Time** and **Credits Per Day** charts.
- **Project Breakdown**: credits by product and type of work this month.
- **Billing History**: your invoices, each with a PDF.
Use the **Project** filter to focus on one product.
### Upgrade
Click **Upgrade plan** in the sidebar, or go to **Subscription**, and choose a plan. Before you confirm, Codalio shows what you'll be charged today, your renewal date and the credits added now. Your card is charged as soon as you confirm.
### Cancel
Go to **Subscription** and click **Cancel Subscription**. No further monthly payments are taken, and you can upgrade again at any time. To cancel a Cloud Deployment, see [Launch](/docs/build/launch#cancel-a-cloud-deployment).
---
## Account settings
Codalio has two sets of settings, both opened from the account menu (click your profile in the sidebar).
### Your personal settings
Open **Profile** in the account menu.
| Tab | What you can do |
| --- | --- |
| **Profile** | Update your name and personal details. |
| **Default Organization** | Choose which organization opens when you sign in. Only shown if you belong to more than one. |
| **Change Password** | Set a new password. |
| **Coding Agent** | Connect Cursor or Claude Code to your Codalio PRDs. See [Connect a coding agent](/docs/account/coding-agents). |
### Your organization's settings
Open **App Settings** in the account menu.
| Tab | What you can do |
| --- | --- |
| **Profile** | Your organization's name and details. |
| **Access** | Invite people to your organization and manage their roles. |
| **Subscription** | Your plan, credits, top-ups and Cloud Deployments. See [Plans & credits](/docs/account/plans-and-credits). |
| **Usage & Billing** | Credit usage, charts, per-project breakdown and invoices. |
| **GitHub** | Your GitHub connection, installations and linked projects. See [Connect GitHub](/docs/account/github). |
### Working in more than one organization
If you belong to several organizations, the **Organization** switcher at the top of the account menu lets you move between them. Projects, credits, plans and GitHub installations all belong to an organization, so check you're in the right one before starting a project or buying credits.
---
## Connect a coding agent
If you write code with an AI coding agent, you can connect it to Codalio. Your agent can then read the product requirements you've built in Codalio, without you copying anything by hand.
Codalio works with **Cursor** and **Claude Code** through MCP, an open standard that lets AI tools connect to other services.
### Get your connection URL
1. Open the account menu and choose **Profile**.
2. Open the **Coding Agent** tab.
3. Copy the **MCP server URL**.
### Add it to your agent
#### Claude Code
Run this in your terminal, replacing the URL with the one you copied:
```bash
claude mcp add --transport http codalio
```
#### Cursor
In Cursor's settings, add a new MCP server and paste your MCP server URL.
### Approve the connection
The first time your agent connects, a browser window opens. Sign in to Codalio and approve the connection. The agent then appears under **Connected agents** in the **Coding Agent** tab.
### Disconnect an agent
In the **Coding Agent** tab, find the agent under **Connected agents** and disconnect it. It loses access straight away.
:::tip Prefer a file?
You can also export your PRD as a **Cursor Instruction** or **Windsurf Instruction** file. See [Export](/docs/build/vision-prd#export).
:::
---
## Set up Claude, Cursor and Gemini in Codalio Studio
Codalio Studio is the desktop app for working on your project's code. Its AI sessions run the coding tools already on your computer, such as Claude Code, Cursor Agent and Gemini CLI. Studio doesn't bundle them, so you install the ones you want once, sign in once, and Studio picks them up.
This guide takes you from a computer with none of them installed to your first AI session. If you already have a tool installed, skip to [Confirm it works](#confirm-it-works).
:::info Screenshots
The screenshots are from Codalio Studio on Windows. The screens are the same on macOS and Linux apart from the window controls and the terminal prompt.
:::
### Supported tools
Studio works with these command-line tools. The name in the second column is the command you type in a terminal.
| Tool | Command |
| --- | --- |
| Claude Code | `claude` |
| Cursor Agent | `cursor-agent` (also `agent`) |
| Gemini CLI | `gemini` |
| Codex CLI | `codex` |
| Grok CLI | `grok` |
| OpenCode | `opencode` |
| Aider | `aider` |
| Ollama | `ollama` |
| llm | `llm` |
You only need one to get started. You can install several and switch between them.
### 1. See what Studio finds
The first time you open Studio, it asks you to **Pick your default agent**. Studio looks through your computer and sorts the tools into **Detected on your system** and **Not installed**.

Choose the tool you want to use and click **Continue**. If it isn't installed yet, the next screen shows you how to install it.
### 2. Install a tool
The **Set up your tools** screen shows the install steps for the tool you chose:

1. Pick the **Terminal** to install from. On Windows, choose **Windows PowerShell** for the Claude Code, Grok and Ollama commands, which are PowerShell commands.
2. For each step, click **Type it in** to put the command into the terminal below, or **Copy** to paste it somewhere yourself.
3. Press **Enter** in the terminal to run it. Studio never runs an install for you.
4. When the install finishes, click **Check again**. The tool's row turns green when Studio finds it.
Studio can also install the tools it relies on, such as Git and the GitHub CLI, the same way.
#### The install commands
These are the commands Studio shows. Run them in a terminal on your computer.
**macOS, Linux and WSL**
```bash
# Claude Code
curl -fsSL https://claude.ai/install.sh | bash
# Cursor Agent
curl https://cursor.com/install -fsS | bash
# Gemini CLI (needs Node.js)
npm install -g @google/gemini-cli
# Codex CLI (needs Node.js)
npm install -g @openai/codex
# OpenCode
curl -fsSL https://opencode.ai/install | bash
# Grok CLI
curl -fsSL https://x.ai/cli/install.sh | bash
# Aider
python3 -m pip install aider-install && aider-install
```
**Windows (PowerShell)**
```powershell
# Claude Code
irm https://claude.ai/install.ps1 | iex
# Gemini CLI (needs Node.js)
npm install -g @google/gemini-cli
# Codex CLI (needs Node.js)
npm install -g @openai/codex
# OpenCode
npm install -g opencode-ai
# Grok CLI
irm https://x.ai/cli/install.ps1 | iex
# Aider
python -m pip install aider-install && aider-install
```
**Node.js**, needed for the `npm` installs above:
```bash
# macOS (with Homebrew)
brew install node
# Ubuntu, Debian and WSL
sudo apt-get update && sudo apt-get install -y nodejs npm
```
```powershell
# Windows
winget install --id OpenJS.NodeJS.LTS -e
```
**Ollama and llm** run models on your own computer:
```bash
# Ollama: macOS
brew install --cask ollama
# Ollama: Linux
curl -fsSL https://ollama.com/install.sh | sh
# llm: macOS
brew install llm
# llm: Linux
python3 -m pip install llm
```
```powershell
# Windows
winget install --id Ollama.Ollama -e
python -m pip install llm
```
After installing Ollama, download a model, for example `ollama pull llama3`.
#### Cursor Agent on Windows
Cursor Agent has no one-line installer for Windows terminals. Studio says so on the install screen and links to Cursor's installation guide.

The simplest route is to install it inside WSL with the Linux command above. Studio can run tools in WSL, so you can still use it from Studio. See [Choose where a tool runs](#choose-where-a-tool-runs).
### 3. Sign in
Each tool keeps its own login. Run its sign-in command once in a terminal, and finish the sign-in in the browser window that opens.
| Tool | Sign in |
| --- | --- |
| Claude Code | `claude auth login` |
| Cursor Agent | `agent login` (or `cursor-agent login`) |
| Codex CLI | `codex login`, with your ChatGPT account |
| OpenCode | `opencode auth login` |
| Gemini CLI | Run `gemini` and sign in with your Google account |
| Grok CLI | Run `grok` and sign in |
Ollama needs no sign-in. Aider and llm use an API key from the model provider you choose. See their own documentation for how to set one.

You can open a terminal inside Studio for this: click **+** in the tab bar, then choose **Terminal**. See [Start a session](#start-a-session).
### Confirm it works
In a terminal, ask each tool for its version. A version number means it is installed and on your path.
```bash
claude --version
gemini --version
cursor-agent --version
```

If a command isn't recognized, see [Troubleshooting](#troubleshooting).
### Choose which tool Studio uses
Studio uses one tool by default for each workspace, and you can start a session with a different one at any time.
To change the default:
1. Open **Workspace settings** with the gear icon at the top right of the workspace.
2. Choose **AI**.
3. Under **Provider**, choose **Local AI**: a coding CLI on this machine, or a custom command.
4. Under **Engine**, choose the tool.

If you'd rather use a model through your own API key, choose a different provider here instead of **Local AI**.
#### Choose where a tool runs
On Windows, a tool can live in Windows or inside WSL. Studio checks each terminal on your computer and uses the first one that has the tool.
To see or change this, open **Workspace settings** and choose **Terminals**. **Default terminal** applies to every tool. Each tool under **AI tools** can have its own choice. After you install or sign in to a tool, click **Check tools**.

### Start a session
You can use a tool three ways.
**An AI session.** Click **+** in the tab bar to open **New tab**, then choose **AI session**.

The picker lists the tools found on your machine, with their versions, and the providers you can use through your own API key. Choose one and click **Start session**.

**The chat.** Type in the chat box at the bottom of the workspace. Type `/` to call an agent.
**A terminal tab.** Choose **Terminal** in the **New tab** dialog, pick a project, and click **Open**. Run `claude`, `gemini` or `cursor-agent` as you would in any terminal.
:::tip Let your agent read your Codalio product requirements
To connect Cursor or Claude Code to the PRD you wrote in Codalio, see [Connect a coding agent](/docs/account/coding-agents).
:::
### Troubleshooting
**Studio doesn't see a tool I just installed.** Click **Check again** on the setup screen, or **Check tools** in **Workspace settings → Terminals**. If it still isn't found, close Studio and open it again so it picks up your updated path.
**`command not found` or `is not recognized`.** The tool isn't installed in the terminal you're using, or the terminal was open before you installed it. Open a new terminal tab and try again. If you installed the tool inside WSL, run the command from a WSL terminal.
**The tool is installed but Studio says it isn't, or runs the wrong copy.** Open **Workspace settings → Terminals** and choose the terminal that has the tool, either for all tools under **Default terminal** or for that one tool under **AI tools**.
**A session says you're signed out.** Run the tool's sign-in command from [Sign in](#3-sign-in) in a terminal, then retry in Studio.
**`npm install -g` fails with a permissions error on macOS or Linux.** Install Node.js with a version manager such as nvm instead of using `sudo`, then run the install again.
**Cursor Agent won't install on Windows.** Install it inside WSL with the Linux command, then choose WSL for it under **Workspace settings → Terminals**.
You can open this guide from Studio at any time: choose **Help → Documentation**, or click **Setup guide** next to a tool on the **Set up your tools** screen.
Still stuck? [Contact support](/docs/help/support).
---
## Troubleshooting
Find the message you're seeing, or the stage you're in. If nothing here helps, [contact support](/docs/help/support).
:::tip Your work is safe
When something stops, Codalio keeps everything completed so far. A **Resume** button almost always continues from where it stopped, without redoing finished work.
:::
### Signing in {#account}
| What you see | What to do |
| --- | --- |
| **Please confirm your email address before signing in.** | Click the link in your confirmation email. Check spam, then use **Resend Confirmation Email**. |
| You never got the confirmation email | Wait a minute, check spam, then **Resend the email**. Still nothing? Email [support@codalio.com](mailto:support@codalio.com). |
| **A subscription plan is required to create more products.** / **Product limit reached** | You've reached your plan's active product limit. Upgrade, or work in an existing project. |
### Your PRD {#prd}
| What you see | What to do |
| --- | --- |
| Scores stay low | Answer the AI's questions with specifics: who, what and why. Use **Give me suggestions** if you're unsure. Each agent's tooltip explains what it's missing. |
| **Cannot switch versions while processes are running.** | Wait for the AI to finish its current work, then try again. |
| **Saving and versioning PRD snapshots requires a Plus or Premium plan** | Upgrade to use PRD versions. |
| **Exporting to this format requires a subscription** | Upgrade, or choose another export format. |
| **Scoping estimation failed. Please try again.** | Click **Retry Estimation**. |
| **Could not attach files from the home page. Try uploading again here.** | Re-attach the files from the project's chat. |
| A file won't upload | Check it's a supported type (PDF, TXT, MD, CSV, JSON, PNG, JPG, WebP) and under the size limit (20 MB for documents, 10 MB for images). |
### Prototype {#prototype}
| What you see | What to do |
| --- | --- |
| The preview is taking a long time | Building can take up to 10 minutes. You can leave: Codalio emails you when it's ready. |
| **There might be a problem with your Preview. Do you want to attempt a fix?** | Click **Attempt Fix**. |
| **The build did not finish** | Your documents are safe. Click **Try building again**. It reuses the design you approved. |
| **This prototype is out of date.** | Click **Apply Latest PRD** to bring it in line with your PRD. |
| **Runtime errors detected.** when publishing | Fix the errors in the prototype chat (ask it to fix them), then publish again. |
| **Publishing timed out** / **UI publish failed** | Click **Preview on web** (or **Republish**) again. If it asks you to **Reconnect GitHub**, do that first. |
| **This UI Prototype is read-only.** | Code has been generated from it. Make changes from the **Build** stage. |
| An upgrade notice about the previous UI system | Click **Regenerate with new pipeline**. It's free. |
### Build {#build}
If a build run stops, a card in the Build chat explains why.
| Card | What happened | What to do |
| --- | --- | --- |
| **Run paused, out of credits** | Your credits ran out mid-run. | [Top up](/docs/account/plans-and-credits#top-up), then click **Resume**. |
| **Paused, the AI service is busy** | The AI service is temporarily at capacity. | Wait a few minutes, then **Resume**. |
| **Paused, the AI service did not respond** | A temporary connection problem. | Click **Resume**. |
| **Paused, AI usage limit reached** | Your AI usage limit was reached. | **Resume** once the limit resets (the card shows when). Contact us if you need it raised sooner. |
| **Stage took too long** | A stage ran past its time budget. | Click **Resume** to continue the stage. |
| **Tests still failing after the retry budget** | The agent couldn't make the tests pass after several attempts. | Click **Attempt Fix** for one more focused pass on the failing tests. |
| **Agent hit its iteration limit** | The agent kept working without converging. | Click **Attempt Fix** for a fresh, narrow pass. |
| **Paused, not enough space on the build server** | The build server ran out of space. | Click **Resume**. If it happens again, contact us. |
| **Paused, couldn't read one of your uploaded files** | An attachment couldn't be read in time. | Click **Resume**. |
| **Run canceled** | You stopped the run. | Click **Resume** to continue. |
| **Code generation stopped unexpectedly** | Something went wrong. | Click **Resume**. If it stops again, click **Contact support**: the email includes your support reference. |
Other Build messages:
| What you see | What to do |
| --- | --- |
| **Code Generation is available on Plus and Premium plans.** | Upgrade to generate code. |
| **This repository's tech stack isn't supported for code generation.** | Choose a GitHub user or organization instead, and Codalio creates a new repository. |
| **Couldn't create your GitHub repository** | Reconnect GitHub, or choose another organization. See [Connect GitHub](/docs/account/github). |
| **Choose GitHub target** / **Pick an organization or user from the list first** | Open the **Build** stage card and pick where to push your code, then apply again. |
| **No code generated yet** / **Nothing to publish** | There are no new changes to push yet. Run a build first. |
| **Workspace being prepared** | Your workspace was cleaned up after inactivity. Wait a few minutes. The build starts automatically. |
| **PRD and code out of sync** | See [When the PRD and code drift apart](/docs/build/build-code#when-the-prd-and-code-drift-apart). |
### GitHub {#github}
| What you see | What to do |
| --- | --- |
| **Reconnect GitHub** | Your GitHub authorization expired. Click it and approve again. |
| **Install Codalio app** | Install the Codalio GitHub App on the account or organization that owns the repository. |
| Publishing fails with an expired session | Go to **App Settings → GitHub** and click **Refresh GitHub login**. |
| The app is installed on the wrong organization | Uninstall Codalio at [github.com/settings/installations](https://github.com/settings/installations), then connect again from Codalio. |
| **Could not load your repositories.** | Click **Try again**. If the list is empty, install the GitHub App on the account that owns the repository. |
### Launch {#launch}
| What you see | What to do |
| --- | --- |
| **Your generated code hasn't been published to GitHub yet.** | In **Build**, click **Apply Changes to GitHub**, then come back. |
| **Deployment failed** | Click **Retry deployment**. If it fails again, contact support. |
| **Deployment is not available during the free trial.** | Upgrade to Plus or Premium. |
| Your live app shows old content | Click **Redeploy to cloud** to publish your latest code. |
### Repository import {#import}
| What you see | What to do |
| --- | --- |
| **Analysis paused, out of credits** | Click **Add credits**, then **Resume**. |
| **Analysis failed** | Open the project page and click **Resume**, or start a new analysis. |
| **Analysis timed out** | Click **Resume**, or start a new analysis. |
| **A pipeline run is already in progress for this product.** | Wait for the current analysis to finish. |
| **Connect this repository in GitHub settings, or use a public repository URL.** | For a private repository, connect GitHub and install the Codalio GitHub App. See [Import from GitHub](/docs/build/import-from-github#private-repositories). |
### Payments {#payments}
| What you see | What to do |
| --- | --- |
| **Your payment was successful, but we encountered an issue updating your subscription status.** | Refresh the Subscription page in a few minutes. If your plan still hasn't updated, contact support. |
| **Payment Successful - Product Creation Issue** | Your plan is active. Click **Go to Products** and create the product again. |
| **Could not start checkout. Please try again.** | Try again. If it keeps failing, contact support. |
---
## FAQ
### Do I own the code?
Yes. Generated code is pushed to a GitHub repository on your own account or organization. You can clone it, change it, and host it anywhere. There is no lock-in.
### Do I need to know how to code?
No. You describe your product in plain language, answer questions and approve each step. If you do code, you can clone your repository, work on it locally, or [connect your coding agent](/docs/account/coding-agents) to your PRD.
### What technology does Codalio build with?
The frontend is a React app. For the backend, choose **Ruby on Rails** (recommended), **Laravel** or **NestJS** when you start the build. See [Build](/docs/build/build-code#start-the-build).
### Is the prototype the same as the final app?
The prototype is a clickable interface for testing screens and flows. In the Build stage, Codalio brings the approved prototype into your production app and connects it to a real backend and database.
### How long does it take?
The PRD takes as long as your conversation, usually minutes. A prototype can take up to 10 minutes. A full build takes longer, depending on the size of your product, and you can watch every stage as it runs.
### What uses credits?
AI work: writing and editing your PRD, generating and changing prototypes, analyzing repositories and generating code. Your first guided setup is free. See [Plans & credits](/docs/account/plans-and-credits).
### Do unused credits roll over?
Monthly and bonus credits reset each billing cycle. Credits you buy as top-ups never expire.
### What happens if I run out of credits mid-build?
The run pauses. Nothing is lost. Add credits and click **Resume** to continue from where it stopped.
### Can I change my PRD after building?
Yes. Ask for changes in chat at any time. Codalio drafts the PRD changes a new request needs, and can bring your prototype and code back in line with the latest PRD.
### Can I go back to an earlier version of my PRD?
Yes, on the Plus and Premium plans. Save versions as you go and switch between them in **Version history**.
### Can my team work with me?
Yes. Invite people to your organization from **App Settings → Access**. Projects, credits and GitHub connections are shared across the organization.
### What happens to my live app if I cancel?
A cancelled Cloud Deployment stays live until the end of its billing period. After that, it enters a grace period and is then taken down. Your code remains in your GitHub repository.
### Can I bring an existing app into Codalio?
Yes. [Import it from GitHub](/docs/build/import-from-github) and Codalio writes a PRD from the code.
---
## Get help
We're here to help. Choose the fastest route for your problem.
### Report a bug
Found something that isn't working? Report it from inside the app. Codalio attaches the context we need.
1. Open the account menu (click your profile in the sidebar).
2. Click **Report a bug**.
3. Fill in:
- **Title** (optional)
- **What went wrong?** Describe what you did, what you expected, and what happened instead.
- **Screenshots**: Codalio adds a screenshot of the current page automatically. Add more if they help.
- **Include recent errors from this tab**: tick this to send recent technical errors. You can review them before sending.
4. Click **Send report**. You'll see **Thanks, your report was received.**
### Contact support
Email **[support@codalio.com](mailto:support@codalio.com)**, or click **Contact Support** in the account menu.
To help us answer quickly, include:
- your **project name**,
- the **stage** you were in (Vision, Prototype, Build or Launch),
- the **exact message** you saw,
- the **Support reference**, if the message showed one.
:::tip Build errors come with a reference
When a build run stops, the card in the Build chat has a **Contact support** (or **Contact us**) button. It opens an email with your run ID, stage and reason already filled in. Just add what you were doing and send.
:::
### Before you write
Many problems have a quick fix. Check [Troubleshooting](/docs/help/troubleshooting) and the [FAQ](/docs/help/faq) first.