Skip to main content
Codex reaches Vertra Cloud through the official MCP server. The Codex CLI, the IDE extension and the Codex app read the same ~/.codex/config.toml, so you configure it once. See MCP for what the server can and can’t do.

Which server should I add?

  • Remote server: you sign in with your Vertra account in the browser and no key goes into a file. Deploying from a folder isn’t available. Pick it to investigate, operate and configure.
  • Local server: every tool, including create_app and deploy_app, which zip and upload the project folder. It uses an API key. Pick it if you’ll deploy from Codex.

Add the remote server

1

Add it to the configuration

In ~/.codex/config.toml:
~/.codex/config.toml
2

Sign in

The browser opens Vertra’s consent screen, which shows the destination as App on your computer. Check the scopes you want to grant and confirm. On a machine without a browser, add --no-browser and open the link it prints.
3

Check the connection

Run codex mcp list in the terminal, or /mcp inside Codex. In the IDE extension, the MCP server list shows it as enabled.
The sign-in creates an API key with an oauth: prefix under Settings → API keys; revoke it there to disconnect.

Remote server with an API key

If you’d rather not sign in through the browser, send an API key in the header. Export the key in your shell and point Codex to the variable:
~/.codex/config.toml

Add the local server

1

Create an API key

In the dashboard, go to Settings → API keys, create a key with the scopes you need and copy it. To deploy, check apps:read, apps:write and apps:files. To investigate only, apps:read is enough.
2

Export the key in your shell

Add it to your shell profile (~/.zshrc, ~/.bashrc) and open a new terminal:
3

Add the server

env_vars passes the variable from your shell to the server, so the key doesn’t go into the file. startup_timeout_sec gives npx time to download the package on the first run (the default is 10 seconds):
~/.codex/config.toml
4

Check the connection

Start Codex in the project folder and run /mcp. The server only touches files inside the folder where it was started; see Local files stay in the project folder.
codex mcp add vertracloud --env VERTRA_API_KEY=your_key -- npx -y @vertracloud/mcp does the same from the terminal, but saves the key in plain text in config.toml. To keep the server in one project only, put the same block in .codex/config.toml at the project root. Codex reads it in projects you’ve marked as trusted.

Ask before every change

Every Vertra tool tells the client whether it only reads. With writes, Codex runs reads on its own and asks before anything that changes your account, such as deploying, restarting, deleting or setting a variable:
~/.codex/config.toml

Tell Codex about your project

Add a few lines to the project’s AGENTS.md so Codex knows which Vertra resources the code belongs to:
AGENTS.md

First prompts

  • “List my apps on Vertra and tell me which ones are down.”
  • “Why did orders-api go down? Read the last 300 log lines before changing anything.”
  • “Deploy this folder to orders-api with the message ‘fix checkout timeout’ and wait until it’s online.”
More in Everyday workflows.

Troubleshooting

Last modified on November 7, 2026