Skip to main content
Give your personal agent a home in the cloud. Deploy Hermes, ask it to create a launch plan, then return with another task that updates the same file. Your agent’s Gateway stays available after your local commands finish. By the end, you will have an authenticated HTTPS endpoint and a plan in the agent’s workspace. You can submit more tasks without installing Hermes on your workstation. Client tasks reach Hermes in a Cloud box; model requests pass through BoxLite Secret substitution This guide keeps the box running. Automatic stop and request-triggered wake are optional. For a model that runs outside the box and only needs code execution, use the Code interpreter quickstart.

1. Prepare your workstation

You need a Cloud account with available balance and capacity, a Cloud API key, Python, and an OpenAI Chat Completions-compatible model provider with tool-call support. All commands below run on your workstation. Install the CLI and Python SDK:
In the console, create a key under API Keys. Read it into your current terminal without saving it in shell history:
Use a new local directory for this example’s files. Keep them outside Git.

2. Create your agent’s home

Save create.py. Replace <YOUR_MODEL_HOST> with the hostname of your model endpoint, such as api.openai.com, without a scheme or path. The prompt reads your real model key locally and supplies it to a host-scoped Secret. Hermes receives a placeholder; the real key does not enter the guest.
create.py
Keep the printed box ID. The box is named personal-agent, which the remaining commands use. The script handles a cold-start timeout by checking for the registered box; continue with configuration when it prints Registered box. For other failures, use boxlite inspect personal-agent before retrying creation. The box keeps running after your local client exits and retains its files when stopped. You can choose a different lifecycle policy later.
The official image supplies the entrypoint and service supervisor. HERMES_GATEWAY_BOOTSTRAP_STATE=running enables its managed Gateway on first boot; the saved sleep infinity command keeps the container alive without starting a duplicate Gateway. auto_stop=0 keeps this deployment running; auto_delete=0 retains its disk when stopped.

3. Connect the model and secure Gateway

Save Hermes’s native model configuration as config.yaml. Set the model ID and API base URL for the same provider whose hostname you used above:
config.yaml
Generate a separate key for clients calling your agent. This is a Gateway caller key, not the model-provider key. Keep this terminal open for the requests below:
Run boxlite inspect personal-agent until its state is stopped, then start it with the saved configuration and register the HTTP port:
Copy the returned URL into your terminal:
If Gateway is still starting, wait a few seconds and repeat this health check. The public tunnel reaches Hermes, while its caller key controls access to tasks. Keep that key private: an authorized caller can ask the agent to use its tools.

4. Give your agent its first task

Ask Hermes to create a plan using its tools:
Check the actual artifact independently of the agent’s reply:
You should see:
A successful Gateway response has finish_reason: "stop". Checking the file establishes that the agent used its tools, rather than merely describing a plan.

5. Come back with another task

Send a new request to the same endpoint. You do not need to resend the original file or recreate the box:
The same file should now contain:
Your cloud agent is ready for more tasks. Hermes runs inside the box, and the endpoint remains available after your local client exits. These requests demonstrate workspace continuity, not automatic conversation recall. Each request explicitly identifies the file to read. For conversation history and session controls, follow Hermes’s API documentation.

6. Connect your own client

Use an OpenAI-compatible client with these connection settings: Try a read-only follow-up from your application. These clients use the same HERMES_URL and HERMES_GATEWAY_KEY you set above.
Save as ask_agent.py and run python ask_agent.py. It uses Python’s standard library.
ask_agent.py
The client talks to Hermes; Hermes chooses tools and calls its configured model. Keep the provider key in BoxLite Secret. For a stable named address, add a domain. To operate the workspace yourself, use SSH. To investigate a failed task, inspect its response and read /opt/data/logs/gateway.log with boxlite exec personal-agent -- tail -n 50 /opt/data/logs/gateway.log; do not automatically retry a timed-out task because it may have already changed files.

Take your agent further

Choose how long it runs

Leave the box running for continuous work, or stop it explicitly:
Stopping retains the workspace. Once the state is stopped, boxlite start personal-agent restarts Gateway from the saved command. Deleting the box removes its files; use a volume or checkpoint when you need data beyond this box’s lifetime. To stop between requests and wake on access, follow Hermes: optional wake on a request. This is an optional operating choice, not a requirement for deploying an agent. Retained storage can still incur charges. When finished with this example, delete its resources:
To deploy a different runtime, choose Claude Code, Codex, OpenCode, or Pi. Their model configuration and external request interfaces differ; use the corresponding deployment guide.