Compute / AI agent
The AI agent in your VM
Ask an AI agent, in plain language, to set things up inside one of your VMs. It runs on your own model key, asks before risky steps, and keeps a record of everything it did.
What it is
The AI agent works inside one of your own VMs. You describe what you want in plain language, for example "set up a notes app backed by PostgreSQL and deploy it on port 8080". The agent installs packages, writes and tests code, sets up databases and deploys apps. You watch each step as it happens.
- It works in your VM only. Each session runs inside the VM you start it on, never on a shared machine.
- It uses your own model account. You add your Anthropic, OpenAI or Google Gemini key once. Your key never reaches the VM; see Your model key and what a session costs.
- You stay in charge. It asks before anything risky, you can tell it why you said no, and you can stop it at any time.
- Everything is recorded. Every command it ran, every file it changed and every approval is kept in the session's report.
Before you start
- Add a model key. In the console, open Organization › Agent model keys and save a key for at least one provider: Anthropic, OpenAI or Google Gemini. Only owners and admins can add keys. The console shows only the last four characters afterwards.
- Set up the agent on the VM. You only do this once per VM, and only owners and admins can do it.
- New VM: pick an Ubuntu 24.04 or 26.04 image, then in the AI agent section of the create form, turn on Enable the AI agent. With the API, send
agent_enabled: truewhen you create it. It installs itself on first boot and shows as Connected on the VM's Agent tab within a few minutes. - Existing VM: the VM must be running Ubuntu 24.04 or 26.04, be powered on, and have finished its first boot. Open its Agent tab, choose Set up the agent, then Restart and set up. The platform sets the agent up for you with one restart, about two minutes of downtime, and there is nothing to run on the VM. Anything running on the VM stops during the restart. The tab shows Connected a few minutes after the VM is back.
- Can't restart the VM? Under Can't restart this VM? Set it up yourself on the same tab, the console shows three commands instead. Run them on the VM as a user with sudo, for example over SSH or the serial console. The second command holds a one-time token, valid for 24 hours and shown only once.
- New VM: pick an Ubuntu 24.04 or 26.04 image, then in the AI agent section of the create form, turn on Enable the AI agent. With the API, send
The agent connects out from the VM to the platform. It opens no port on the VM, and the platform never logs in to your VM to reach it.
If the tab says Offline, the platform has not heard from the agent in the last two minutes. Check that the VM is running, then run this on it:
$ sudo systemctl status pantech-agentdStart a session
On the VM's Agent tab, choose New session and fill in:
- Title: a name for the session list, such as "Notes app with Postgres".
- What should the agent do? The task, in your own words. Say what you want, not how to do it. If the choice is yours (a port, a name, one of two approaches), the agent asks you.
- Model provider and Model: any provider you have a key for, and one of its models.
- Approvals:
| Approvals | What the agent can do |
|---|---|
| Ask before risky steps (the default) | Reads files, writes files in its workspace and runs a short list of safe commands on its own. It asks you before anything else. |
| Auto, ask only before destructive git | Runs every step without asking, except destructive git commands. Use it for a long task on a VM you trust it with. |
| Plan only, change nothing | Reads and plans, but changes nothing on the VM. Use it to see what it would do. |
Then choose Start session. The chat shows each step as the agent takes it: what it read, what it wrote, each command and its output. Send more messages at any time to change course or ask for the next step. A message you send while it is working waits until it finishes the current step.
You can switch to another model from the same provider between messages, but not while the agent is in the middle of a step.
Approving its steps
When the agent wants to run something outside the safe list, the chat shows the exact command with three choices:
- Allow: run it this once.
- Allow "…" for this session: run it now, and run that same kind of command without asking for the rest of the session. The button names the rule, such as
git logorsudo apt-get install. A rule covers that program and subcommand exactly as typed, so allowingapt-get installdoes not allowsudo apt-get install. - Deny: do not run it. Add a reason if you like; the agent reads it and adapts.
Some steps never get the session option:
- a command that chains several commands, which you approve each time;
- a destructive git command (
git reset --hard,git push --force,git clean -f,git branch -D,git checkout --), which always asks, even in auto mode, and is marked Can't be undone.
A request nobody answers in 15 minutes is treated as denied.
When the agent needs a decision rather than a permission, such as which port to use, it asks a question with options. Pick one, or type your own answer.
Never allowed: in any mode, the agent cannot change the Pantech agent itself, its files or its credentials.
Apps it deploys keep running
Anything the agent starts as part of a command stops when the session ends. To keep an app running, the agent deploys it as a service with pantech-service, which starts it again after a restart of the app or the VM. Apps it deploys keep running after the session ends.
You can manage those apps yourself on the VM:
$ sudo pantech-service list$ sudo pantech-service logs notes-api 50$ sudo pantech-service restart notes-api$ sudo pantech-service remove notes-apisudo pantech-service help lists every command. A deployed app runs as the VM's unprivileged agent user, in its own directory, on the port it was given.
Limits and isolation
- Each session runs as its own user with passwordless sudo. That user can install system software, run package managers, and configure services using sudo. To protect your virtual machine and session isolation, platform policy guardrails deterministically prevent stopping or rebooting the VM from inside, kernel or raw disk device tampering, modifying audit rules, or interfering with other running sessions or the Pantech agent daemon. Manage VM power actions directly from the Pantech console. A session's working folder is shared with the other sessions on the VM, so a later session can pick up an earlier session's code.
- Each session has its own limits: 2 GB of memory, two CPUs' worth of time and 512 processes.
- A session ends after an hour with no new message, after 4 hours in all, or when you choose Terminate. Ending a session never removes your code or the apps it deployed.
- What you see is checked by the VM itself. Besides the steps the agent reports, the VM records every program each session started. The report shows both, so a command can't hide what it launched.
Your model key and what a session costs
The agent never sees the key you saved. When a session starts, the platform gives it a key of its own:
- it works for that session only, with the provider you chose;
- its spend on your model account is capped per session;
- it stops working when the session ends.
What a session costs is charged by your model provider, to your account with them. The session's Report shows what it cost on your key, along with its duration, turns, tokens, commands, files changed, approvals and questions.
Commits it makes
The agent can use git in its workspace. When you ask it to commit, the commit is yours: the agent adds no line naming itself. If the VM has no git identity set, it commits as Pantech agent <agent@localhost>. To commit under your name instead, set it once on the VM:
$ sudo -u agent git config --global user.name "Ada Obi"$ sudo -u agent git config --global user.email "ada@example.com"To push to a remote repository, give the agent access the way you would a colleague, for example a deploy key with access to that repository only. Never paste a password or token into the chat.
AI apps you connect
An AI app you connect under Organization › AI apps (Claude, ChatGPT, Cursor and others) can work in a VM too, through a tools session. Unlike an agent session, the app is the model: it sends each step itself, and no model key is needed.
A tools session needs the agent on the VM too, so it works on Ubuntu 24.04 and 26.04 VMs only. It is held to the same rules:
- the same approvals and the same user per session;
- the same record;
- an AI app can never approve its own steps: a person approves in the console.
Agent sessions, where the platform runs a model on your key, are started from the console only.
Good to know
- Be specific about the outcome. "A notes API with PostgreSQL on port 8080, with tests, deployed so it survives a reboot" goes further than "make an app".
- Start in plan mode for anything you are unsure about, then start a new session to do it.
- Secrets stay in files. The agent is told never to put passwords or keys in commands or code. It generates them into a file only the app can read.
- One VM, one owner. Anyone in your organization who can change resources can start a session on a VM and approve its steps. Use roles to limit who that is.