Contents
Codex works from the terminal, and people who use it like to get everything done there. Connecting it to your hosting takes two commands. After them, deploying, reading errors and creating databases become part of the same session you write code in.
The two commands
codex mcp add arabyhost --url https://panel.arabyhost.com/mcp
codex mcp login arabyhost
The first adds the Araby MCP server to Codex’s settings under the name arabyhost. The second opens the browser on the page in Araby Panel that asks you to allow access to your hosting: sign in if you are not signed in, choose the site Codex will work on, and press Allow.
Both commands are ready to copy on the Connect your AI page of the panel, on the Codex card.
What happens next
Codex gets the control panel’s tools for that site: files and folders, databases, DNS records, email, PHP version and settings, WordPress, SSL certificates, cron jobs, redirects, the error log, site protection, disk usage, and a check that opens the site as a visitor does. The app appears in your list of keys in the panel as a connected app.
Try a read request first, such as:
List my sites on ArabyHost and the SSL state of each
If it comes back with your sites, the connection is sound.
An example: from a repository to a working site
Say your project is a Laravel app on GitHub. Ask Codex:
Deploy this project to my site on ArabyHost: connect the repository, create a database and write it into .env, set PHP to the version the project needs, then check that the site opens
Codex goes through the steps in order. It lists your sites and their folders, connects the repository and deploys it, creates the database so that its details are written straight into .env without showing in the terminal, sets the PHP version, then opens the site as a visitor. If an error shows, it reads the error log, fixes the cause and checks again. Before each step that changes something it asks for your approval.
There are ready-made jobs too, offered by the server for anyone who would rather not write the whole request: put your project online, find the fault, review security, check before launch, and set up business email.
Through MCP, or on the server?
There are two ways to use Codex with hosting, and each has its place:
- Through MCP (this guide): Codex is on your computer and the hosting is managed from a distance with defined tools. It works on any plan, needs no SSH, and every operation is recorded and limited to the panel’s tools.
- On the server: you sign in over SSH and run Codex there, so it runs commands directly. It needs an AI plan, and suits Node.js and Python apps and jobs that need a full terminal. Read running Codex on a server.
Many people use both: MCP for the domain, databases and email, and SSH for running the app itself.
Safety
- The connection is confined to one hosting account and cannot reach another, whatever is typed to it.
- Secret values are masked: passwords and
.envvalues reach Codex masked. - Deletion goes to the bin: a deleted file goes to the bin, and no tool deletes a database or a mailbox.
- Your approval before a change: keep Codex’s approval prompt on for tools that change something.
- Every operation is in your account’s activity log with its time, and you can disconnect from the panel at any moment.
Troubleshooting
- The browser did not open: copy the link the second command prints and open it yourself.
- The server is added but no tools show: run
codex mcp login arabyhostagain, finish the access page all the way to Allow, then start a new session. - A message that the account is not available: the hosting service is suspended or cancelled. Check your services page in the panel.
- Refused for too many requests: wait for the earlier requests to finish, then try again.
On ArabyHost
Araby MCP comes with every hosting plan at no extra cost. If you want Codex to work on the server itself, AI plans come with SSH in an isolated environment, with Node.js, Python, Git and Composer. See also Codex explained and connecting Claude to your hosting with MCP.
FAQ
What is the difference between connecting Codex through MCP and running it on the server?
Through MCP, Codex stays on your computer and calls the hosting's tools from a distance, which works on any plan. Running it on the server itself needs an AI plan with SSH, and suits people who want Codex to run commands and apps there.
Do I need a key?
No. The second command opens the browser so you sign in to ArabyHost and choose the site, so there is no key to copy or keep in a file. If you prefer a read-only key, create one on the Connect your AI page.
Can Codex deploy a Laravel or WordPress project?
Yes. It uploads the files or sets up deployment from Git, creates the database and writes its details into the .env file, sets the PHP version, then opens the site to check that it works. Node.js and Python apps need an AI plan.
Does the connection work on more than one site?
Each connection works on one hosting account, which you choose when you sign in. For another account, add the server again under a different name, sign in and choose the other account.
How do I disconnect Codex?
On the Connect your AI page in Araby Panel, revoke the app in your list of keys and its access stops at once.