---
title: "How to deploy a website from Codex to a live URL"
description: "Codex, in the CLI or the ChatGPT desktop app, can put the site it built online at name.cool.computer with one command, private or public."
canonical: "https://www.cool.computer/blog/deploy-website-from-codex"
last_updated: "2026-11-20"
---
# How to deploy a website from Codex to a live URL

> Codex, in the CLI or the ChatGPT desktop app, can put the site it built online at name.cool.computer with one command, private or public.

To deploy a website from Codex, give it the `cool` CLI and ask it to publish. Codex runs `cool publish ./dist --name my-site --visibility private`, and the site is live at `https://my-site.cool.computer`, open only to you and the people you invite. There is no hosting project to create and no token to paste into the session. It is free and needs no card.

A private site needs you to be signed in. Without an account Codex can still publish: the site is public, and you sign in afterwards to keep it.

## Steps

1. Paste this into Codex:

   ```text
   set up cool computers for me: follow https://cool.computer/setup.md and build me an artifact about the last thing i was working on, and annotate and draw on it once i'm signed up
   ```

   Codex installs `cool`, publishes a first page, then signs you up with your email and a six-digit code. [/setup](/setup) is the walk it follows.

2. Ask for what you want online, for example "publish the dashboard you just built, private". Codex builds the project if it needs a build, then runs:

   ```sh
   cool publish ./dist --name my-site --visibility private
   ```

   One HTML file works too: `cool publish page.html --name my-site --visibility private`.

3. Share it by email, or open it to everyone:

   ```sh
   cool share add my-site ana@example.com
   cool share public my-site
   ```

4. Ask for a change. Codex publishes to the same site, so the link keeps working:

   ```sh
   cool publish ./dist --computer my-site
   ```

### Connect it for good

Run `/plugins` in Codex CLI, or open Plugins in the ChatGPT desktop app, install Cool Computers and start a new session. The plugin marks its MCP server required, so Codex waits for the Cool Computers tools before a task starts instead of running without them. More on [the Codex page](/codex).

### Let Codex act on feedback

Signed-in people who can open the site pin comments and drawings to the page. Codex listens for the ones you send it in one of its own background terminals:

```sh
cool comments watch my-site --agent "Codex"
```

While it listens, each comment card has an Ask Codex button. Press it to hand the comments to Codex, which makes the change, publishes again and resolves them.

## What it can deploy

- Static sites and framework builds: publish the output folder, such as `./dist`.
- Single-page apps: a `cool.json` with `{"spa": true}` serves `index.html` for every path that is not a file.
- A small backend: `functions` in `cool.json` adds an API under `/api` at the edge, with an optional database and secrets.
- A server, bot or scheduled job: an always-on Ubuntu VM at the same address, on Pro, with Codex already installed on it.

## Why and when to use it

Use it when Codex built something a person should open in a browser today.

- One command Codex already knows, and a URL back.
- Private unless you ask for public.
- The same site from other agents: Claude Code or Cursor can publish to it later.

A production app with environments and preview deployments belongs on the hosting provider your team uses. ChatGPT also has its own hosted Sites; this is for when you want the page at an address of your own that any agent can update.

## Questions

### Can Codex deploy a website?

Yes. Codex runs shell commands, so with `cool` installed it publishes with `cool publish` and gives you the URL.

### Does it work in the ChatGPT desktop app?

Yes. Install Cool Computers from Plugins in the desktop app. Codex there uses the same plugin as Codex CLI.

### Do I need an account?

Not to start. Without one the site is public and comes with a claim link; sign in within 24 hours to keep it.

### Is it free?

Yes. Free holds up to 20 sites at once with no card. Pro, USD 20 a month, lifts that limit and adds VMs. Your ChatGPT or Codex plan is separate. See [pricing](/pricing).

### Can I use my own domain?

Yes. `cool domain set my-site app.example.com` prints the two DNS records to add.

The same steps for [Claude Code](/blog/deploy-website-from-claude-code) and [Cursor](/blog/deploy-website-from-cursor), and other tools an agent can deploy with in [this comparison](/blog/best-mcp-servers-cli-deploy-website-ai-agent).
