> Use Revdoku with Codex CLI and terminal coding agents to publish generated websites.

# Publish websites from the Codex CLI with Revdoku

Use Revdoku with Codex CLI and other terminal coding agents. Sign up, copy the connection message, paste it into Codex, and publish.

## 1. Create a Revdoku account first

Setup starts in the Revdoku app. Go to [`https://app.revdoku.com`](https://app.revdoku.com/users/sign_up?utm_source=revdoku.com&utm_medium=connect-guide&utm_campaign=codex-terminal), create an account, and sign in before connecting any AI app.

![Sign in or sign up at app.revdoku.com](/assets/codex-terminal/01-create-revdoku-account.webp)

This is the first step for every connection: the AI tool connects to your existing Revdoku account, not an anonymous prompt.

## 2. Copy the connection message

After signing in, open the Revdoku app and click **New**, then choose **Copy Instructions for AI**. This copies the current Revdoku connection message for Claude, ChatGPT, Codex, and similar agents.

![New, then Copy Instructions for AI](/assets/codex-terminal/02-new-menu-copy-instructions.webp)

Paste the copied message into your Codex session and send it. Codex follows the instructions and connects Revdoku to your account.

## 3. Connect Codex

Paste the copied message into Codex. For a hosted connection, Codex connects to Revdoku at `https://app.revdoku.com/mcp` and signs in with your Revdoku account. To publish files from your own machine, Codex uses the local Revdoku client so it can upload the files it creates on disk.

Prefer to set it up by hand? Add Revdoku with one command and sign in:

```bash
codex mcp add revdoku --url https://app.revdoku.com/mcp
codex mcp login revdoku
```

![Keep the same Revdoku link across updates](/assets/codex-terminal/04-update-url-settings.webp)

> **You've connected Revdoku.** Now just ask **`publish to Revdoku`** and your AI publishes it as a live URL.

## Test the Codex connection

Once connected, ask Codex to build a small static website, save the files in Revdoku, publish `index.html`, and return the live link.

A good first test prompt:

> Create a one-page project status website, save the files in Revdoku, publish it, and give me the public URL. If I ask for changes later, update the same Revdoku bucket and republish the same URL.

![A Codex-built site published to a live revdoku.site URL](/assets/codex-terminal/05-published-site-example.webp)

Check that the returned link opens, then ask for one small change and confirm the same bucket is updated instead of creating a new site.

![Analytics after a Codex-published site is shared](/assets/codex-terminal/06-codex-analytics.webp)

## Check the published bucket from ChatGPT

After Codex publishes, ChatGPT can inspect the same Revdoku bucket if the connection is enabled there too. Use it to summarize what was published, confirm the live URL workflow, or check the bucket before sharing.

![ChatGPT outlines a Revdoku publishing workflow for an AI-generated site](/assets/codex-terminal/chatgpt-revdoku-publish-workflow-magic-stories.webp)

## Takeaway

Sign in to Revdoku first, copy the connection message, paste it into Codex, publish a small static site, then republish the same bucket after changes.

## Other ways to connect Codex

- [Full Codex connection guide](/codex/): the app and command line in one place.
- [Connect Codex in the ChatGPT desktop app](/codex-desktop/)

---

[View the canonical page](https://revdoku.com/codex/) · [Browse llms.txt](https://revdoku.com/llms.txt)
