This page is about previews in Devin sessions. For previews of a local dev server in Devin Desktop, see Devin Desktop Previews.
Opening a preview
Devin opens a preview when it starts an app you should look at. You can also ask for one, for example “preview the app”. Devin posts an Open preview card in the chat. Click it to open the app in the Preview tab of the session. Cmd-click, Ctrl-click or middle-click the card to open the preview in a new browser tab instead. In a session started from Slack, the thread gets an Open preview link.Preview URLs
A preview URL looks like this:Who can open a preview
Previews are private. Nothing is exposed to the public internet. Anyone who opens a preview URL must be signed into Devin. After that, a preview follows the access of its session. If you can send messages to the session, you can open its preview. By default, that is everyone in your organization who can use Devin sessions, so you can send the link to a teammate and it just works. If the session is limited to its owner or to specific people, only those people can open the preview. Everyone else sees a page saying the preview is unavailable.What you can do in the Preview tab
The Preview tab works like a small browser. It has buttons for forward, back, reload, zoom, find in page, and a device size switch for desktop, tablet and mobile widths. You can also point at things on the page and tell Devin what to change: click the select button (the cursor icon) in the toolbar, pick an element or draw on the page, add a note and send it to the chat. You can even change the element’s styles and text first. See Visual editing.Admin controls in Devin Desktop
Enterprise and organization admins can turn off in-app previews in Devin Desktop with the Browser tab team setting. Under Settings → Enterprise → Devin Desktop, set Browser tab to Only these sites and clear Devin Previews in the Allowed sites dialog. When Devin Previews is off in Devin Desktop:- Preview tabs are hidden in the session tab bar.
- Preview links and Open preview cards open in your system browser instead of Devin Desktop.
- Any Preview tab that is already open shows This site is blocked with an Open in external browser button.
Apps with more than one port
A preview can cover several ports, such as a frontend on one port and a backend API on another. Devin lists all of them when it opens the preview, and the preview opens on the first one. The Ports menu in the Preview tab switches between them. Your frontend does not need to know about the preview URL. If the page callshttp://localhost:8000, the preview sends that request to port 8000 on Devin’s machine. A service worker that the preview installs rewrites these requests in your browser, and WebSocket connections are handled the same way. Because the request stays on the preview’s own address, you don’t need to change CORS settings.
This only reaches ports that Devin has exposed for the preview.
What your app sees
Your server sees the request as coming fromlocalhost. The preview sets the Host and Origin headers to localhost before the request reaches your app, so dev servers that check the host name work without extra configuration. Devin keeps using localhost too, both when it runs the app and when it tests it.
A few things behave differently from running the app on your own computer:
- Service workers. The preview uses its own service worker, so your app can’t register one. If your app is a PWA, turn the service worker off in development or accept that automatic port rewriting might not work.
- Cookies. Cookies that your app sets inside the Preview tab are kept separate from cookies set when the preview is open in its own browser tab. If you sign in to your app in one place, you may need to sign in again in the other.
- Sign-in with an identity provider. Your browser is on the preview URL, not on
localhost. A provider such as Microsoft Entra ID, Okta or Google rejects the sign-in if onlylocalhostis registered as a redirect URL. See Tunneling Ports. - HTTPS dev servers. Your browser sees Devin’s certificate, not your server’s. See HTTPS Loopback.
Tunneling Ports
Some services only work when your browser is really onlocalhost. The most common one is sign-in through an identity provider. The provider only accepts the redirect URLs you have registered, and most development setups register http://localhost:<port>. A preview has its own URL, so the provider turns it down.
For these cases, you can tunnel the port from Devin’s machine to your own computer. The app then opens at http://localhost:<port> in your browser, the same as if it were running on your computer, and the provider accepts it.
There are two ways to tunnel a port:
- Devin Desktop. Open the session in Devin Desktop and forward the port from there.
- SSH. Run
devin forward <session> 3000, or pass-L 3000:localhost:3000todevin sshor plainssh. See Forward ports.
localhost.
If you would rather stay on the preview, you can add the session’s preview URL to the provider’s list of redirect URLs, or give the app a development sign-in that skips the provider. Devin can also sign in at localhost in its own browser. See Interactive Browser.

