Contents
Most AI products being built today don’t need a GPU on your server: a chat assistant on your site, Q&A over your documents, a writing tool, support-ticket classification, or an AI agent that calls tools. The heavy part (running the model) happens at the provider. Your server handles the interface, sign-in, building prompts, storing conversations and keeping costs under control.
What an AI app needs
| Component | Role |
|---|---|
| Language and framework | Python with FastAPI, Flask or Django, or Node.js with Express or Next.js |
| API key | Stays on the server only, in an environment variable |
| Background worker | For tasks that take a while: summarising a file, processing a batch of messages |
| Database | Conversations, users and each user’s usage |
| Semantic search (RAG) | Embeddings of your documents, stored in the database for a small collection or in a dedicated service for a large one |
| Cost control | Per-user request limits, a maximum reply length, and usage logging |
The key never leaves the server
Don’t call the model’s API straight from the browser, because the key becomes visible to every visitor. Have the browser call your backend, and the backend call the provider. The providers’ official SDKs read the key from the environment automatically:
# .env outside public_html, never committed to Git
ANTHROPIC_API_KEY=sk-ant-...
OPENAI_API_KEY=sk-...
Long-running requests
A model’s reply can take tens of seconds, and a web request that waits too long can hit the server’s timeout. The usual pattern: the app saves the task to a database table and responds immediately, a background worker processes it, and the frontend checks for the result every few seconds. Since Redis isn’t available per account, a database-backed queue is the practical choice here.
Which ArabyHost plan fits your app
The AI and Developer plans are built for this: Python 3.9 to 3.12, Node.js 20 and 24, apps through Passenger, background workers kept alive by cron jobs, and outbound access to the Anthropic, OpenAI and GitHub APIs. They include SSH, where Claude Code and Codex run, and Araby MCP so you can deploy straight from Claude or Cursor.
If your app is written in PHP, it can call the same APIs with cURL from the shared plans. And for automation without much code, see n8n hosting.
How the app runs here
- Create an app in Setup Python App or Setup Node.js App on a domain or subdomain. For FastAPI, see FastAPI hosting, because Passenger needs an ASGI adapter.
- Add your API keys as environment variables on the app’s page.
- Deploy the code from GitHub with cPanel’s Git, or build it on the server with Claude Code as in the Claude Code on your server guide.
- Run the background worker from a cron job with
flock, so two copies never run at once. - Test the app and watch the key’s usage in the provider’s dashboard.
The detailed steps, with a full example, are in the AI app deployment guide.
What’s included
- Free automatic SSL for every domain and subdomain.
- Daily JetBackup backups of your code and database.
- Each account isolated with CageFS and its own resource limits, plus Imunify360 security.
- The Araby AI assistant in the panel reads error logs and explains the fix, plus support in Arabic.
Limits to know
- No GPU: local models such as Llama or Stable Diffusion won’t run, and neither will model training.
- Heavy machine-learning libraries like PyTorch eat disk space and memory, and are of little use without a GPU.
- No root, no Docker, no per-account Redis.
- Per-plan resources: processing thousands of documents at once needs to be split into batches.
- No VPS yet for apps that outgrow a plan’s resources.
- Data goes to the provider: check the provider’s data-retention policy and your local regulations before sending customer data.
On ArabyHost
Start with an AI and Developer plan, enable SSH from the Araby Panel, then create the app and add your key as an environment variable. If the app breaks after a deploy, ask the Araby AI assistant in the panel or contact our Arabic-speaking support.
FAQ
Can I run a model like Llama or Stable Diffusion on the hosting?
No. Those models need a GPU and a lot of memory, and ArabyHost plans have no GPU and per-account resource limits. Call the model through an API from a provider that hosts it, and let your app handle the interface and the data.
Where should I put my Claude or OpenAI API key?
In an environment variable for the app, or a .env file outside public_html that is never committed to Git. Never put the key in JavaScript that reaches the browser: any visitor could copy it and run up usage on your account.
Can I build the app with Claude Code directly on the server?
Yes. On the AI and Developer plans, Claude Code and Codex run over SSH inside your account, so the tool reads files, runs commands and tests the app in the same environment it will run in.