Skip to content
AppHaven.

Codex app hosting

Hosting for apps built with Codex

Ship your Codex app on European infrastructure. Managed hosting, database, login, backups and HTTPS included.

€50 free credit for your first 60 days. No credit card required.

From Codex to production.

Codex delivers its work as commits and pull requests. AppHaven turns each of those branches into a running preview with its own database, so you review a Codex task by using the app, and promote it to production by merging.

How it works

Three steps to a running app.

  1. 01

    Create your account

    Sign up and connect the Git repository your app lives in.

  2. 02

    Let Codex prepare the app

    It adds a Dockerfile and a short apphaven.yaml describing the app and its database.

  3. 03

    Push and go live

    AppHaven builds the app and runs it on HTTPS, with its database and backups in place.

From prototype to production

Everything your Codex app needs to run for real.

A Codex task ends in code. AppHaven adds the rest: a managed database, a login for your team, previews for every pull request branch and automatic backups.

Pull requests you can click through

Every Codex branch that matches your preview pattern runs as a preview with its own database and URL.

Everything your app needs

Hosting, a managed PostgreSQL database, environment variables, HTTPS on your own domain and login in front of private apps.

Human review stays the gate

The apphaven CLI is read-only. Production changes only when the production branch changes, under your GitHub rules.

Safe by default

Automatic production backups, and every build scanned for known vulnerabilities.

Codex and AppHaven

Codex proposes the change. A preview shows it running.

Codex works from the instructions in AGENTS.md and delivers its work as commits and pull requests. AppHaven turns those branches into running previews, so reviewing a Codex task means clicking through the app, not reading a diff.

AGENTS.md is the contract

Codex reads AGENTS.md natively. Add the AppHaven block and it knows the deployment model, the manifest format and the read-only CLI it can use to check its own work.

Every branch can run

Name the branch to match your preview pattern and AppHaven deploys it with its own database and URL. Codex tasks that end in a pull request become something you can open in a browser.

Codex checks the build

In a terminal session, Codex can run apphaven validate on the manifest and apphaven build-log after a push, then fix what failed. In a cloud task, paste the log and it does the same.

Human review before production

The CLI cannot deploy. Production changes when the production branch changes, so a pull request review is the gate, exactly as your AGENTS.md instructs.

Synthetic data in previews

Previews have their own database, so an AGENTS.md rule such as “use synthetic records in previews” is safe by construction: nothing a preview does can touch production data.

Secrets never reach the model

Environment variables are set in the console. Codex can list their names to spot missing configuration; values are never returned by the CLI.

AGENTS.md

Tell Codex how your app ships.

Add a few lines to AGENTS.md and Codex knows how to configure the app for AppHaven, check the configuration and read the logs when a build fails.

  • Codex writes the Dockerfile and apphaven.yaml for you
  • The AppHaven CLI checks the configuration before you push
  • Build and runtime logs are one command away when something fails
  • The CLI is read-only, so diagnosis never changes production

AGENTS.md

## Hosting on AppHaven

Read https://docs.apphaven.eu/agent-integration/ for CLI setup.
Read https://docs.apphaven.eu/ for platform configuration.

- Run `apphaven validate` after changing apphaven.yaml.
- `apphaven status <app>`: deployment state and URL
- `apphaven build-log <app>`: build output
- `apphaven logs <app> --service <service>`: application logs

Commit it to your repository and Codex picks it up on the next task. Agent integration documentation

Questions

Good to know.

Does this work with Codex cloud tasks as well as the CLI?

Yes. Both read AGENTS.md. The CLI can run apphaven commands directly; for cloud tasks you review the preview URL and paste logs when needed.

Can Codex push to production?

Only if your Git rules allow it. The apphaven CLI is read-only, so the production branch protection and review requirements you set on GitHub decide what ships.

What goes in AGENTS.md?

The AppHaven block from the agent integration docs: how deploys work, which CLI commands to use for status and logs, and the rule that shipping means pushing to Git.

Do I need a Dockerfile?

Yes. Ask Codex to write it together with apphaven.yaml; it is a well-defined task and the CLI validates the result.

Ship your Codex app.

Move from code to a running application without building the infrastructure yourself.

€50 free credit for your first 60 days. No credit card required.