AI agent box quickstart: from sign-up to a running agent
Order an AI agent box, pick a one-click template, save your model key, start it and open your agent. Plus Telegram and Discord, the console commands and what happens when your agent crashes.
An AI agent box is a private Linux box (Debian 12 with Node.js 24, Python 3, uv, git and a headless Chromium) that runs one AI agent for you around the clock. It is billed per second from a prepaid AI agent balance, and never more than the monthly cap of its size. This guide takes you from no account to a running agent in about ten minutes.
1. Order a box
- Open AI agent hosting. While our free credit offer runs, new customers can try a Starter box (1 vCPU, 2 GB RAM, 10 GB disk) for free: press Start free and checkout opens with the Starter size. You get 2.00 of credit (EUR, USD or GBP) once you add a card, which we only check and never charge. One per account and card, and unused credit ends 30 days after you claim it. When the offer is not running, the button is Get started and checkout opens with the Standard size (2 vCPU, 4 GB RAM, 20 GB disk). For another size, press Start this box under that size in the Pricing section of the page instead. You can change the size later under Change size on the Agent tab (with the box stopped).
- Under Pick what to install, choose a template: OpenClaw, Hermes Agent, Claude Code, Codex, Gemini CLI, OpenCode, goose, Aider or OpenHands, or the blank box if you want to install your agent yourself. Some templates need a bigger size; checkout tells you.
- Pick a location. Agents rarely care about latency, so any location is fine unless you want your data in a certain region.
- Your box runs on a prepaid balance. New here? While the offer runs, your first Starter box can start on free credit: 2.00 in EUR, USD or GBP, one per person and card. Checkout shows Try a Starter box free; press the claim button, create your account if you have none, add a card (we only check it, nothing is charged) and you come back to checkout with nothing to pay. If you picked a bigger size, the same card offers to switch the box to Starter. Otherwise, if your balance is empty, checkout shows Your first AI agent balance: pick a first top-up (any amount from 5.00 in EUR or USD, or 4.00 in GBP). It is paid together with this order and added to your balance.
- Tick the box for the AI Agent Acceptable Use Policy. If you are new, fill in your name, email address and a password to create your account.
- Press View payment methods and pay (if you already have a balance, the button is Start my box and there is nothing to pay). Your box is set up. It starts by itself and installs the template you picked, which usually takes a few minutes.
You can top up again any time under AI agent balance in your account menu. A box that is stopped only pays for its disk.
2. Open the Agent tab
Open the box from your dashboard. The Agent tab comes first and has everything you need:
- Getting started with ...: a checklist that ticks itself off (Start your box, Install ..., Add your model key and, for agents with a web page, Open its web page). The Start, Restart and Stop buttons at the top of this section control your box.
- API keys: where your model keys and bot tokens go.
- Terminal: a shell inside your box. It keeps running when you close the page.
- Web addresses: secure HTTPS addresses for your agent's web page.
- Usage and balance: what this box has cost this month and your balance.
3. Add your model key
Your agent needs a key from the model provider you use (Anthropic, OpenAI, OpenRouter, Google and so on). Press Add a key in the checklist, or scroll to API keys, paste the key next to its name (for example ANTHROPIC_API_KEY) and press Save. Use Get a key from ... next to each row if you don't have one yet.
A key you save here goes straight into your box, to a file only your box can read (~/.agent-box/secrets). We never store it. New terminals and your agent load it when they start, so press Restart after you add or change a key.
Claude Code and Codex can also sign in with your own subscription instead of a key: run claude or codex login --device-auth in the Terminal and follow the sign-in steps.
4. Start it and use it
- Agents with a web page (OpenClaw, Hermes Agent, OpenCode, OpenHands) run in the background and start again with your box. Press Open ... in the checklist. The page is only for you while you are signed in to ServerPrism. The agent's own login (the OpenClaw gateway token, the Hermes dashboard password) is in your box: type
agent-box-template infoin the Terminal. - Terminal agents (Claude Code, Codex, Gemini CLI, Aider, goose) run in the Terminal. Type the command shown in the checklist, for example
claudeorgoose session. Closing the page leaves it running; when you come back and press Connect, you are back in the same session.
Keep your projects in /home/container (your home folder). Everything else in the box is read only and resets when it restarts. Backups saves your home folder.
Connect Telegram or Discord
OpenClaw and Hermes Agent can answer you in Telegram or Discord. On the Agent tab, open Connect Telegram or Discord under the checklist. In short:
Telegram
- In Telegram, open @BotFather and send
/newbot. Pick a name, then a username that ends in bot. BotFather replies with your bot token. - Paste the token next to
TELEGRAM_BOT_TOKENunder API keys and press Save. - Press Restart. Your agent connects the bot when it starts.
- Send your bot any message. It replies with a pairing code.
- In the Terminal, approve yourself:
openclaw pairing approve telegram CODE(OpenClaw) orhermes pairing approve telegram CODE(Hermes Agent), with your code in place of CODE. From then on the bot answers you, and nobody you have not approved.
Discord
- In the Discord Developer Portal, press New Application and name it. Open Bot, press Reset Token and copy the token.
- On the same page, switch on Message Content Intent under Privileged Gateway Intents and press Save Changes.
- Open OAuth2, then URL Generator. Tick bot under Scopes, then View Channels, Send Messages and Read Message History. Open the link and add the bot to your Discord server.
- Paste the token next to
DISCORD_BOT_TOKENunder API keys, press Save, then Restart. On OpenClaw the first start with a Discord token takes a few minutes longer, because your box adds Discord support to it. - Send your bot a direct message. It replies with a pairing code. If you can't message it, allow direct messages from server members in that server's privacy settings.
- In the Terminal:
openclaw pairing approve discord CODEorhermes pairing approve discord CODE.
A bot token works like a password. If it leaks, make a new one (send /revoke to BotFather, or press Reset Token in Discord), save it, and press Restart.
Console commands
The Console tab talks to the box itself. These commands work there:
| Command | What it does |
|---|---|
agent status |
Is your agent running, and has it been restarted? |
agent start / agent stop / agent restart |
Start, stop or restart your agent (start.sh) without restarting the box |
template status / template info |
The installed template, and its own sign-in details |
help |
The list of commands |
Anything else you type there runs as a shell command in your home folder, with its output in the console.
When your agent crashes
Your box runs your agent from start.sh in your home folder every time it starts. If the agent stops on its own, the box starts it again: after 5 seconds, then 30 seconds, then every 2 minutes. A run that lasted 10 minutes or more resets the count.
If it stops 5 times in a row soon after starting, the box stops trying, so a broken setup doesn't loop forever. The console says so, agent status shows it, and we send you one email, "Your agent stopped", with the last lines from the console. Fix the cause (often a missing or wrong key, or an agent that needs a setup step in the Terminal), then type agent start in the console or press Restart. That also resets the count.
Want your start.sh to run only once, for example a script that finishes? Create the file ~/.agent-box/no-auto-restart (type touch ~/.agent-box/no-auto-restart in the Terminal). agent stop always stops your agent without a restart.
Next steps
- Run Claude Code unattended on an agent box: a schedule plus
claude -p. - Manage your agent box from Claude with MCP: ask Claude to check, restart or read your box.
- Questions? Open a support ticket from your dashboard and we will help.