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:2. Create your agent’s home
Savecreate.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
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.
How Gateway starts and the workspace survives
How Gateway starts and the workspace survives
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 asconfig.yaml. Set the model ID and API base URL for the same provider whose hostname you used above:
config.yaml
boxlite inspect personal-agent until its state is stopped, then start it with the saved configuration and register the HTTP port:
4. Give your agent its first task
Ask Hermes to create a plan using its tools: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: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.
- Python
- TypeScript
Save as
ask_agent.py and run python ask_agent.py. It uses Python’s standard library.ask_agent.py
/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: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:

