Let an agent use your browser and terminal
An agent in an Admiral session browses the web with OpenCode Browse. Browse drives your own browser (Chrome, Edge, Brave, Arc, Helium, Vivaldi, Opera, or Chromium), with your logins and extensions. The agent opens its own tabs in the background, in a collapsed tab group, so your tabs stay yours. The agent can also open a terminal tab in the session and run commands in it.
Browse is the only browser agents use in Admiral. The Browser pane in Admiral is for you: previews, workspace pages, and links from cards.
What you need
- Browser use on the device that runs the session. Open Settings → Extensions → Plugins → Browser use. It shows one step at a time: install, add the extension to your browser, then pair them. When it says Ready, every new session gets your browser, in every project.
- The paired browser open. Agents use a browser that has the extension and is paired. If that browser is closed, the agent says so and asks you to open it.
- Full access for terminals. An Admiral terminal is a normal login shell with no sandbox, so only a session with full access can open or type in one.
Set up Browser use
- Open Settings → Extensions → Plugins → Browser use.
- If it says Not installed, click Install.
- If it asks for the extension, click Get the extension. Add browse from the Chrome Web Store in the browser you want agents to use.
- Under Browsers, click Pair a browser. Admiral shows a short code and the steps. In your browser, open the browse extension's Options, choose Pair with a code, enter the code, and click Connect. The code works one time, for 10 minutes.
- Click Check again. The row says Ready, and the browser shows under Browsers as Connected.
Pair each browser one time. Pairing works in all projects: it belongs to the device, not to a project. Sessions that were already running get your browser on their next message.
Use more than one browser
You can pair Chrome, Edge, Brave, and other Chromium browsers on the same device.
- In Admiral, open Browser use in Extensions → Plugins and click Pair a browser.
- Click Copy install link, paste the link into the browser you want to add, and add the extension. Edge first asks you to allow extensions from other stores.
- Click Copy code, or select the code. In that browser's extension Options, choose Pair with a code, paste the code, and click Connect.
Each paired browser shows Connected or Offline and when it was last seen.
- There is always one default. Make default picks the browser agents use when you don't name one; until you pick, the first browser you paired is the default. If you unpair the default, the browser you paired longest ago among the rest takes over, and stays the default when you pair the old one again.
- Rename gives a browser your own name, such as "Helium" for a browser the extension calls Chrome. Agents see your name. The row also says what Browse calls it. Your name stays if you unpair the browser and pair it again.
- Tell any session which browser to use, in plain words: "Use Edge," or "Check this in Brave." The agent uses that browser.
- If you name a browser that is not paired or not open, the agent tells you to open it or pair it. It does not switch to another browser.
- Unpair removes a browser. Admiral asks first. To use it again, pair it with a new code.
Ask for it in plain words
Open http://localhost:3000, sign up with a test name and email, and tell me what the confirmation page says. Then open a terminal, run the test suite, and tell me if it passes.
The agent opens a background tab, reads the page, fills the fields, submits, and reads the result. Then it opens a terminal tab, runs the command, and reads the output. Each step shows in the transcript as a tool call.
In an OpenCode session, one step can do many things at once: open a page, read a list from it, and act on each item. You see that as one tool call with a script.
Sign in or pay for the agent
The agent never types a password, a one-time code, or a card number. When a page needs one, the agent hands the tab to you:
- Admiral shows the session as Needs you on Home and in the session: "Waiting for you in your browser."
- In your browser, the tab shows a small card with the site's address. The browse button in the toolbar reads WAIT.
- Sign in, finish the 2FA step, or confirm the payment by hand.
- Click Continue on the card. The agent continues, and the Needs you row goes away.
Bot checks and captchas work the same way: the agent hands them to you and never solves them.
Lend the agent a tab
To let an agent use a tab you already have open, click the browse button in your browser's toolbar on that tab. The badge shows ON. Click it again to take the tab back.
What an agent can reach
- Only the tabs it opened and the tabs you lent it. Other agents' tabs and your own tabs stay out of reach.
- Only terminals that an agent of its own session opened. Your own terminals stay private.
- Agent tabs that nobody uses for 10 minutes close by themselves. You can change that in the browse extension's Options.
Page text and terminal output are data for the agent, not instructions. A page cannot give the agent orders.
Show you a page
An agent cannot open or read Admiral's Browser pane. To show you a running page, it puts the address in its report or card as a preview. Click it to open the page in the Browser pane. To show you a file from the project, it opens the file in the side pane.
Check a page yourself
These are for you in the Browser pane:
- Inspect. Open Browser options (the
…button) and choose Inspect, or right-click the page and choose Inspect (Inspect Element on macOS). The developer tools open in their own window. - Device size. Click the device button in the toolbar and choose Phone, Tablet, or Fit.
Turn it off
- Settings → Extensions → Plugins → Browser use → Turn off stops giving your browser to new sessions on that device. Turn on brings it back. While it is off, an agent that needs a browser tells you where to turn it on.
- Settings → Agent tools has the switch for terminals.
- To remove Browse from your computer, run
browse uninstallin a terminal, then remove the extension from your browser.
Next steps
- Use terminals: the terminal pane itself.
- Drive mobile simulators: the same idea for phone screens.
- Run child agents: the rest of the tools agents get.