Let Coding Agents Run Commands on Hosts
Coding agents such as Claude Code and Codex can run commands on your saved SSH hosts (see SSH Hosts and Quick Connect). Commands are typed into a terminal you can watch (by default it sits at the bottom of the agent's pane). Agents never receive your passwords or private keys, and every host needs your approval.
Enable: in Settings → Hosts (the page content is Agent Access), turn on "Allow coding agents to request host access". It is off by default. Turning it on only lets agents request access; each host still needs your approval.
Connect Claude Code / Codex: on the same page, click "Install to Claude Code" or "Install to Codex" to register
aster mcpas an MCP server for them (user scope). The config only stores the stableastercommand path (/usr/local/bin/asteror~/.local/bin/aster), installing it first if needed, so moving Aster or switching to a release build needs no reinstall. If an earlier registration points to a path that will break (such as a path inside an app bundle), the button changes to "Repair Claude Code / Repair Codex"; click it once. You can also configure it yourself with the commandaster mcp. Agents running in an Aster pane can also use the CLI:aster host listshows hosts, andaster host exec <host> -- <command>runs a command.Approve: the first time an agent accesses a host, Aster shows an approval panel with the agent, the host, the reason, and the full original command. Buttons: Deny (default), Allow once, Allow for this agent session, Always allow this host. Return never approves, only denies; closing the panel counts as Deny. When the panel appears or its content changes, the three Allow buttons stay disabled for 1 second so a stray click cannot approve a command you have not read; Deny is always available. Several different requests queue up and appear one at a time, and your answer applies only to the one on screen; at most 4 requests can wait at once. "Allow once" lets that exact command run once. After a denial, no agent session is asked about that host again for 10 minutes. The panel never blocks the rest of Aster, so you can answer later; if you do not answer within about 50 seconds, the agent is told approval is still pending and retries.
- "Allow for this agent session" lasts for that agent session only and expires when Aster quits or after 12 hours of inactivity. "Always allow this host" is stored in your login keychain. If the host's address, user, port, or jump hosts change, the old approval is voided and Aster asks again; renaming the host does not matter.
Host terminal: after approval, Aster opens a real native SSH terminal for that agent on that host. By default it is docked at the bottom of the agent's pane, takes about 40% of the pane's height, and never covers other windows:
- Tabs: the top of the dock has one tab per host. The dot shows the state: blue while connecting or running, orange when it needs your input, green when idle, yellow after you take over, gray when ended. Hover to see the agent and host; click a tab to switch;
- Resize and collapse: drag the empty part of the dock's top bar up or down to change its height. Click the arrow at the top right to collapse it to the tab bar; it expands again when the agent sends a command or needs your input;
- Open in a separate window: click the window icon at the top right to turn the terminal into a separate window that stays on top; its title shows the agent and host. Click "Dock to Pane" in that window's title bar to put it back, and Aster also switches to the agent's pane. Aster remembers your last choice for new terminals;
- if the agent is not running in an Aster pane (for example, in another terminal app), or its pane is gone, the terminal uses a separate window. If you close the agent's pane or its window, the terminal moves to a separate window and a running command is not interrupted.
In the terminal you can:
- Watch: every agent command runs and appears there;
- Control bar: a dark capsule at the bottom of the terminal shows the agent, the host, and what it is doing, and holds the buttons. The capsule and its buttons keep their place when commands, host names, or the takeover state change; in a narrow terminal the capsule narrows, long text ends with an ellipsis, and hovering shows the full text. Drag any part of the capsule other than a button (there is a handle on the left) to move it;
- Overlay: unless you click Take Over, a blue glow surrounds the terminal: while the agent connects, runs a command, sits idle, or waits for your input. It breathes slowly while the agent connects or runs a command and stays still otherwise; the middle stays clear so you can read the output. While it is shown the terminal ignores clicks and typing, so your input never mixes with the agent's commands. Scrolling still works; to select or copy output, take over first. Clicking the terminal reminds you to take over;
- Take Over: the overlay goes away and the agent is paused (its new commands are all refused; a running command is unaffected), so you can type in the terminal. Click Hand Back to Agent to let the agent continue; the overlay comes back;
- Interrupt: sends Ctrl-C to the running command; you do not need to take over first;
- Close Terminal: ends the agent terminal on that host.
With the focus in the dock,
⌘W/⌥⌘Wonly collapses the dock. The separate window's close button, or⌘W/⌥⌘Winside it, only hides the window. Either way the terminal keeps running and no workspace pane is closed; bring it back from Window → Agent Terminals. An idle terminal closes itself after 30 minutes. Agent terminals never appear in workspace tabs.sudo and password prompts: when a command stops at a prompt such as
[sudo] password for…,Password:, or[y/N], the agent is only told it "needs input"; the terminal expands (a separate window comes to the front) and a system notification appears. The overlay stays on: click Take Over first, then type the answer in the terminal, and click Hand Back to Agent when you are done so the agent can send new commands. Never give a password to the agent or ask it to type one.Revoke: the "Authorized" list in Agent Access under Settings → Hosts can revoke grants one by one or all at once. Revoking closes the affected agent terminals right away: revoking "Always allow" closes every agent terminal on that host, revoking a session grant closes only that session's terminal. Turning the master switch off dismisses pending approval panels and closes all agent terminals. Deleting a host, or changing its address, user, port, or jump hosts, dismisses approval panels for the old target. Deleting a host voids its grants.
Activity log: every execution, grant change, and master-switch change is written to
~/Library/Application Support/Aster/audit/agent-hosts-YYYY-MM.jsonl(one file per month, kept for 13 months), and you can browse it under "Activity log" on the Agent Access page. Records hold the command only and never its output; anything in a command that looks like a password, token, or key is replaced with***.Limits:
- The remote shell must be POSIX (bash, zsh, sh, ksh); fish is not supported.
- The agent cannot see inside full-screen programs such as vim, top, or less; agents should use non-interactive flags.
- If you type or run a program in the terminal yourself, the agent's next command first checks that the terminal is back at a prompt, and otherwise reports the terminal as busy.
- This is not a sandbox: approval means "this agent session may use this host", and commands run on the remote host as your login account without per-command review. Approve only agents and hosts you trust.