TabbitBlog

Use the OpenCode Desktop Browser and Keep Your Logins

Open the native browser in OpenCode Desktop 2.4, import selected sign-ins, and verify that your test account and tabs survive a restart.

In this article
  1. Key takeaways
  2. What the built-in browser keeps
  3. Open a page inside OpenCode Desktop
  4. Import one test sign-in
  5. Check the session after a restart
  6. Ask the agent to read the staging page you checked
  7. Install an extension only if the pane needs it
  8. Fix the specific behavior that failed
  9. Use Tabbit Browser for browser work outside the coding session

OpenCode Desktop 2.4 has its own persistent browser profile. To keep a website login there, open Settings → Browser, import the sign-in for the specific site you need, then open the site inside the Desktop browser and verify the account. OpenCode says its browser retains tabs and sign-ins across restarts. Import is a one-time copy into that profile. Use the original site to verify that the copied session still works. OpenCode 2.4 release notes · OpenCode's browser import change

One person in the OpenCode community still preferred the terminal interface for everyday work but found the desktop browser useful on some tasks. If you already use the terminal, the native desktop pane is worth opening when you need to look at a browser result next to the session. This guide follows a read-only check of a staging website, from opening the pane to verifying a saved sign-in. It uses the release notes and implementation notes. It does not report an installed-app test. Original Desktop or CLI discussion

Key takeaways

  • Check that you are running OpenCode Desktop 2.4.0 or newer. The browser pane and persistent profile discussed here are features of the desktop app.

  • In Settings → Browser, enable opening links in OpenCode's browser if needed. Click a normal HTTPS link in a desktop conversation to verify that it opens beside the chat.

  • Import a small set of approved site sign-ins. If you leave Browsing history checked, the import can also use that history for address-bar suggestions.

  • Confirm a login with an account marker, close and reopen the desktop app, and check it again. A restored tab can still be signed out.

  • Start browser delegation with a public page or a read-only test account. Verify which project and server the app is using before you involve a sensitive session.

What the built-in browser keeps

ItemWhere it livesWhat to check
Sign-in made inside the paneOpenCode's persistent desktop browser profileThe site still recognizes the same test account after restart
Sign-in imported from Chrome, Edge, Firefox or SafariA copy placed in the OpenCode profileThe correct domain and account were selected and the page opens as expected
Browsing history imported from another browserOpenCode profile and address-bar suggestionsThe import included only the history you wanted to bring over
Tabs and installed extensionsThe desktop profileReopening a tab restores the intended page. The extension actually functions inside the pane.
A remote attachment's site sessionA separate context by defaultThe expected sign-in is present in the remote context you intend to use

The persistent profile has its own state. A successful sign-in in your normal Chrome window tells you that Chrome has a valid session. The same page in the OpenCode pane can be signed out, use another account, or require a fresh check. Track where you open the page before trying a new import. How browser profiles separate sessions

Open a page inside OpenCode Desktop

  1. Start in the desktop app and check the release. Use the official OpenCode Desktop download or the app's normal update flow. The 2.4.0 changelog is the baseline for the workflow here. Open an ordinary local project and its OpenCode session.

  2. Open Settings → Browser. Check Open links in OpenCode's browser if links are launching your normal system browser. Web links clicked from chat can appear in the pane beside the conversation. The two locations have different browser state. OpenCode's desktop browser implementation notes

  3. Use a public page for the first check. Ask the conversation to include a link to Example Domain. Click it and check that you see the webpage and address in the in-app pane. If it opens elsewhere, revisit the browser links setting before checking authentication.

  4. Verify the visible address and page heading. If you intend to delegate the task, ask the agent to read only that address and report the heading. A result such as Example Domain, matched to the exact URL in the pane, gives you a baseline before you introduce a signed-in page. OpenCode's desktop browser tool documentation

If you can open the public page by hand but the agent cannot read it, trace the agent's browser access and session separately. Ensure the agent's OpenCode session is using the attached desktop browser. A configured browser deny rule can remove that capability. This may be intentional in a team project, so check the permission policy instead of changing it to make a test pass. For versions after 2.4.0, consult tool and release notes if the browser behavior differs from the one described here. Set an observable first check for a browser agent

Import one test sign-in

If you need only one staging site, direct sign-in in the pane is usually the smallest setup. Open the site from the OpenCode conversation, use its normal login flow yourself and verify the workspace or test account label. If direct sign-in is practical, test whether it survives restart before deciding whether you need import.

For a site you already use in a supported browser, go to Settings → Browser and select Import… next to the source browser. Choose the profile or site offered by the import dialog. Select Choose sites to limit the import to the staging service or another approved domain. Review the domains before proceeding, since the same browser profile may also contain personal sites. Then review the two import checkboxes:

  • Sign-ins copies the website session data selected for import. Leave it checked if you want to try keeping that session in OpenCode.

  • Browsing history can bring URLs into the pane's address suggestions. Clear it when you only need a login.

OpenCode's history change describes both boxes as selected at the start of an import. It also describes import as a one-off action. A history record makes an address easier to find. It does not establish a live login. If you're unsure which browser or profile contains your test account, confirm in the source browser before importing anything. OpenCode's browser import change and screenshots · What it means to reuse a browser login session

Open the target site by its known URL in the pane. Check that the URL is for staging or another intended environment and that an account label matches your test account. A page can display a remembered avatar and still require a fresh login for part of the site. Open a second read-only page, such as a settings overview, before treating the import as successful. Handle any SSO or second-factor step yourself. If an import skips a site, use the site's normal sign-in or leave it outside the test.

The OpenCode contributors list platform and device constraints around passkeys and describe situations where the native pane does not handle a passkey prompt. Treat passkey support, account expiry and identity federation as reasons to verify the target site directly. For an account that cannot complete login inside the desktop pane, use the organization-approved workflow or another available test account. Platform notes in OpenCode's native browser work

Check the session after a restart

Save any work in the desktop session and close the app normally. Reopen the same local project and locate the staging tab in the native browser. Confirm the final address and the account label again. If the tab is back but the page signs you out, you have confirmed tab restoration. You still need to troubleshoot the site session separately.

Record the app version, platform, source browser, approved domain, whether the import included history, and whether the account remained usable. Skip raw profile contents or authentication data. For an expired session, try signing in to that site inside the pane and repeat the restart check. When the new sign-in persists, leave the bulk import alone. You have already established the behavior that matters for that work.

Ask the agent to read the staging page you checked

Use a low-risk staging or QA account. Choose a visible fact you can verify, such as the heading and the release version on a private preview page. A first task can stop well before interacting with a form or screenshotting customer information.

Use the built-in browser in this OpenCode Desktop session. Read only
the approved staging URL I provide. Report the final URL, main heading
and displayed release version. If you see a sign-in page, a different
workspace or a missing field, report that and stop. Do not change any
setting, submit a form, open a production page or use another browser.

Compare the result against the desktop pane while it is open. Verify the workspace, version, and browser URL. A guess at the release number can match the work you expect to find while coming from a different site. If the direct read works, you can later give OpenCode a QA task such as checking whether a staging build displays the expected headings on two pages. Keep the links and expected values with the prompt so you can repeat it after a change. Write a bounded browser-agent prompt · Verify browser output against a linked source

For other day-to-day use, the pane can show an official documentation page, a workspace HTML preview or an OpenCode-generated artifact next to the conversation. Treat those as different kinds of content. A local preview can show what your agent is building. A signed-in staging page tells you what has actually reached that environment. The desktop browser lets you inspect both from the same app, and the review should still identify the correct page. OpenCode desktop page and preview behavior

Install an extension only if the pane needs it

The native browser settings support adding extensions from supported browsers or store links, with a permission review before installation. Check the extension publisher and requested permissions, then verify behavior on a public page. OpenCode listing an extension as installed does not guarantee it behaves exactly like an extension in Chrome. You can leave extensions out of your sign-in test, then add one later if a page workflow requires it. Extension setup in the OpenCode 2.4 release

Fix the specific behavior that failed

SymptomCheck this firstTry next
Clicking a link launches your usual browserCheck the OpenCode Settings → Browser link preferenceClick an ordinary web link again from the desktop session
Import finishes, but the page is signed outVerify the source profile, selected site and exact hostIf allowed, sign in directly in the pane and repeat the restart check
The tab returned after restart, but the account changedCheck whether the tab was restored to a new login or different workspaceVerify an account label on a read-only page before giving the agent more work
The same URL is signed out when using a remote serverConfirm local versus remote attachmentUse the approved remote session setup. Leave desktop sign-in sharing disabled unless you specifically need it and your policy allows it.
Manual reading works but the agent gets no page contentCheck the session and its browser permissionTry reading a public page. If that fails too, check the app or permission layer first.
A page cannot complete a passkey stepIdentify the site and platform and use the normal account flowUse an approved manual path or keep that site outside the test.

A reader discussing an external OpenCode browser workflow described the added work of separating profiles and connections. The native pane removes some of that setup for desktop sessions. If you need a coding agent to drive your actual Chrome tabs or reuse a particular external extension, the separate OpenCode Browse connection is a different tool. Use its guide only for that browser-hosting choice. Original browser setup discussion · OpenCode Browse and its extension workflow · How a local and remote browser differ

Use Tabbit Browser for browser work outside the coding session

If a task is mostly reading a few documentation pages, comparing two staging pages or checking a release note against a public URL, you can do it in a dedicated browser. Open the approved links in Tabbit Browser, verify the intended account yourself and enable Agent Mode in the assistant input. Ask for the same visible headings, versions and links as in the OpenCode prompt. Keep the result in chat and inspect each source tab again. How to use Agent Mode in Tabbit

The Tabbit version helps when you don't need the answer next to your project files or OpenCode session. It uses its own sign-ins and does not move OpenCode's native profile. Use the desktop pane when you want staging and file previews next to the coding conversation. If your actual goal is a reviewable comparison across different websites, try the open-tab version in Tabbit and use the same checks.

For OpenCode Desktop with persistent logins, start with a single approved site in one local project. Confirm you are inside the native pane, import only the sign-in you need or log in there yourself, then reopen the app and check the account before delegating a task.

FAQ

Which OpenCode release adds the persistent desktop browser?

OpenCode 2.4.0 introduces the persistent desktop browser profile, browser import and extensions. Earlier desktop versions could show a browser pane without the same persistence behavior.

How do I open the native browser beside an OpenCode chat?

In OpenCode Desktop, check Settings → Browser for the option to open links in OpenCode's browser. Enable it and click an ordinary HTTPS link in a chat. That gives you a simple check that the link opens in the in-app pane.

How do I import a login while leaving my browsing history behind?

Use the browser import flow in Settings → Browser. Keep Sign-ins selected, clear Browsing history and choose the sites to import. Confirm the account in the pane after the import finishes.

Are Chrome and OpenCode Desktop kept in sync after import?

Import is a one-time copy into the OpenCode Desktop profile. Sessions can expire or be revoked. To check the current state, reopen the original site inside the OpenCode pane.

Why does a remote OpenCode session show a login page?

Remote attachments start signed out unless the relevant sharing feature is enabled. Check whether the session is local or remote and use an approved test sign-in in the intended environment.

Do I need OpenCode Browse or another MCP to use the built-in browser?

The built-in pane is part of OpenCode Desktop. The separate OpenCode Browse product pairs an MCP server and extension with an external browser. Use that path when you intentionally want the agent to work in the external browser instead.

Take the next step

Let Tabbit work alongside you.

Research across tabs, automate repetitive browser work, and keep every piece of context within reach.