The short answer
Codex is OpenAI's coding agent. In 2026 it is more than autocomplete: it has a CLI, IDE extensions, cloud tasks, code review and security scanning, and it is designed for multi-step work inside a real repository.
It does not have a dedicated one-click website publishing button. Codex writes and edits the code; deployment still goes through Cloudflare, Firebase, EdgeOne or ESA CLI/CI. After launch, Bweb runs the growth layer: inquiries, chat, SEO/GEO and monitoring.
Install and sign in
Choose one:
brew install --cask codex
# or
npm install -g @openai/codex
# or
curl -fsSL https://chatgpt.com/codex/install.sh | shRun codex inside the project and sign in. Useful commands:
/model: switch models./review: review the current diff./agents: see parallel tasks./worktree: work in an isolated Git worktree./mcp: list connected MCP servers.
Three ways to work
| Mode | Best for | Notes | | --- | --- | --- | | Local CLI | Editing a repo, tests, PRs | Fastest for daily work | | IDE extension | VS Code / Cursor / JetBrains / Xcode | Chat and review inside the editor | | Cloud tasks | Long-running, parallel, machine asleep | Isolated environment; results come back as PRs |
Build a site with Codex
- Describe the goal in an empty folder or existing repo: pages, languages, forms and SEO requirements.
- Ask Codex to generate a static site or framework project, with README, build scripts and environment notes.
- Run the build and preview locally; fix errors.
- Deploy with the platform CLI or CI:
- Cloudflare Pages:
wrangler pages deploy - Firebase Hosting:
firebase deploy --only hosting - EdgeOne / ESA: follow the platform CLI or console import.
- Bind your own domain; check HTTPS, www and mobile.
Connect Bweb after launch
A. Adopt the URL
Open /adopt and paste the live URL. Bweb runs a read-only audit: reachability, HTTPS, SEO/OG, structured data, forms, robots, sitemap, llms.txt and enhance.js.
B. Inject enhance.js
Add the site-token script before </body> and redeploy to enable inquiries, chat, newsletter, analytics and SEO/GEO audits.
C. Connect Bweb MCP in Codex
Edit ~/.codex/config.toml:
[mcp_servers.bweb]
command = "node"
args = ["/absolute/path/cloudsite-mcp.mjs"]
env = { CLOUDSITE_URL = "https://bwebai.com", CLOUDSITE_API_TOKEN = "cs_your_token" }Restart Codex and confirm with /mcp. Then ask:
- "Adopt this site into bweb and run a launch audit."
- "Deploy the current build to Cloudflare and generate a sitemap."
- "Read recent inquiries and list the ones without follow-up."
Full setup: Bweb MCP setup guide.
What changed in 2026
- After DevDay 2026 in September, Codex cloud tasks support reusable environments and can keep running while your machine sleeps.
- Code Review in the ChatGPT desktop app reviews multi-project diffs and posts results to GitHub PRs / GitLab MRs.
- Codex Security Cloud offers scheduled or on-demand repository scans and prepares fixes.
- The CLI was rewritten in Rust and open-sourced, with voice,
/agents, worktrees and local review. - GPT-6.1 Sol is one of the default models; available models and quotas depend on your account and the official page.
Reference: OpenAI Codex.
Security and cost
- Run Codex in a controlled directory and sandbox; do not give it unnecessary cloud credentials.
- Keep secrets in environment variables or a secret manager, not in the repo or frontend.
- Cloud tasks consume quota; split large jobs.
- Model and plan prices change quickly; use OpenAI's official pricing page.
Launch checklist
- [ ] Build passes and the preview has no errors.
- [ ] Pages work on mobile and desktop.
- [ ] Title, description, OG, favicon, sitemap and robots are correct.
- [ ] Forms submit and notify you.
- [ ] A Bweb launch audit has been run.
- [ ] enhance.js or Bweb MCP is connected.
About the author
Bweb Editorial TeamContent and editorial
Turning first-hand building, publishing, domain and acquisition work into steps readers can follow.
Reviewed by: SHUOFENG
Facts are checked by a person before publishing; AI only assists with drafts and translation.
Editorial standards