Virgil emblem VIRGIL

Virgil for Business

Run Virgil's AI features through your own AI gateway, and set up every Mac with one profile.

Virgil's AI features (chat, topic naming, summaries, page watches) normally talk to an AI provider with each person's own key. A company can point all of them at its own AI gateway instead, so requests go through the models, budgets and logging the company already controls. This page is for the people who run that gateway and manage the Macs.

What you need

  • Virgil 3.57 or later, from the Mac App Store or the direct download, on macOS 14 or later.
  • An AI gateway reachable over https that speaks the Anthropic Messages API. Virgil has been run against LiteLLM; other gateways that expose the same API should behave the same, but have not been tried. A gateway that only speaks the OpenAI-compatible chat completions API covers everything except Virgil Chat; see models.
  • Two model names as your gateway exposes them: an everyday model for small jobs such as naming and summaries, and a reasoning model for chat and analysis.
  • A way to know who is asking: a gateway key, sign-in with your identity provider, or your company VPN. The three patterns are compared under identity.

Try it on one Mac first

Open Settings → AI Features, choose Corporate Gateway, and fill in the endpoint address, the key or sign-in details, and the two model names. Virgil checks the connection before it saves. Once this works by hand, the profile below sets the same values for everyone.

Set it up for everyone with a configuration profile

Virgil reads its settings from the com.virgil.browser preference domain, so any MDM that can deploy a custom configuration profile can configure it. Settings delivered by a profile are locked in Virgil and labelled Set by your organisation. With a key in the profile, people also skip the AI setup step on first launch.

Download the profile template

  1. Open the template in a text editor and replace the example gateway address and every REPLACE-… value.
  2. Change the two PayloadIdentifier values to your own reverse-domain name, and generate two new PayloadUUID values (run uuidgen twice in Terminal).
  3. Keep one of the two sign-in options and delete the optional blocks you do not use.
  4. Upload it to your MDM as a custom profile and scope it to the Macs that have Virgil.

If your MDM takes custom settings as a plain property list instead of a whole profile, use the same keys with com.virgil.browser as the preference domain.

The settings

KeyValue
settings.ai.backendcorporate, to use the gateway for all AI features.
corporate.baseURLThe gateway's base address: https, host, and port if any. Leave off /v1 and any console path. Plain http is refused.
corporate.wireanthropicMessages (every feature) or openAIChatCompletions (everything except Virgil Chat).
corporate.lightModelIDThe everyday model's name, exactly as the gateway lists it.
corporate.heavyModelIDThe reasoning model's name.
corporate.authModetoken for a gateway key, oidc for sign-in.
corporate.apiKeyThe gateway key. Read only from a profile, and never copied anywhere else on the Mac.
corporate.issuerURL
corporate.clientID
corporate.scopes
For sign-in: your identity provider's issuer address, the client ID of the app you registered for Virgil, and the scopes to ask for (default openid profile offline_access).
corporate.tokenHeaderName
corporate.tokenHeaderPrefix
Optional. How the key is sent, if your gateway wants something other than Authorization: Bearer ….
corporate.serverWebToolsOptional. auto (default), on or off. See web search below.
managedMap.shareURLOptional. The ID of a Virgil share link, to give everyone a company map.

Models

Virgil asks for two models by the names you give it, so gateway aliases are fine. What matters is what sits behind each name.

SettingUsed forWhat it needs
Reasoning modelVirgil Chat (including organising maps and working in pages) and the larger analysis jobsFor chat: tool use and streaming over the Anthropic Messages API
Everyday modelTopic and subtopic names, page summaries and other small background jobsPlain text replies; no tools

Which wire supports what

Gateway wireNaming, summaries, analysisVirgil Chat
Anthropic MessagesYesYes
OpenAI-compatible chat completionsYesNo

Virgil Chat does run on OpenAI models when a person uses their own OpenAI key with no gateway. That route uses a different OpenAI API from the chat completions one gateways expose, which is why chat through a gateway currently needs the Anthropic Messages wire.

What has been run

  • Through a gateway: Claude Sonnet 5.5 and Claude Opus 5.5, on the Anthropic Messages wire behind LiteLLM. This is the tested setup.
  • Other Claude models: without a gateway, Virgil's own choices are Claude Sonnet 5.5 for chat and Claude Haiku 4.5 for everyday jobs, with Sonnet 5, Opus 5, Opus 4.8 and Fable 5.1 also offered. The same models behind a gateway are expected to work, but only the two above have been tried there.
  • Models from other vendors on the Anthropic Messages wire: not tested. A gateway may be able to translate the requests, and web search by the provider is an Anthropic feature that other models will not have.

If you expose only one model, put its name in both settings. A key that is limited to certain models must be allowed both names, or the gateway will refuse the request.

Identity: who is asking

There are three ways to tie a request to a person or a device. They can be combined.

Pattern 1: a gateway key in the profile

The simplest setup: one key in the profile, and nobody types anything. A profile's values can be read by anyone with access to the Mac, so issue a key that is only for Virgil, give it a budget and rate limit on the gateway, and rotate it by pushing an updated profile.

Pattern 2: sign-in with your identity provider

Each person signs in once with OpenID Connect, and the gateway sees who is asking. Virgil follows the standard, and has been tested with Okta; in Virgil's settings the option is labelled Okta account. Register Virgil with your identity provider as a native app that uses the authorization code flow with PKCE, with these redirect addresses:

  • http://127.0.0.1:52815/callback
  • http://127.0.0.1:52816/callback
  • http://127.0.0.1:52817/callback

Virgil sends the access token to the gateway as a bearer token and refreshes it in the background. If your gateway verifies token signatures, the issuer usually needs to be a custom authorization server rather than the organisation's default one.

Pattern 3: identity from the company VPN

If your Macs already run a zero-trust client such as Cloudflare WARP, the network can supply the identity. Put the gateway behind your access proxy and admit only enrolled devices. The proxy knows which person and device each request came from, and can record it or pass it on to the gateway in a header, so usage is attributed per person while Virgil carries only one shared key.

  • In the profile: pattern 1, a single shared gateway key. The key says "this is Virgil"; the VPN says who.
  • On the access proxy: a rule that admits the device or its signed-in session without a browser prompt. Virgil's requests are API calls, so a rule that needs an interactive login page cannot be completed.
  • On the gateway: if you want per-person budgets or logs, read the identity header your proxy adds.

When someone is off the VPN, the proxy answers with its sign-in page instead of the gateway. Virgil recognises that and says to connect to the company network.

A company map

A sample company map: a Begin button at the centre with ten colour-coded topics around it, including Product and Engineering (with subtopics for infrastructure, monitoring, code and design), HR, Access and IT Support, Wiki and Projects, Team Chat and Product Websites, each branching to tiles for the sites people use.
An illustration of a company map: a topic for each team or need, subtopics where a team has many tools, and a tile for each site.

You can start everyone with a shared map of the tools and pages your company uses. Build the map in Virgil, share it to get a link, and put the link's ID in managedMap.shareURL. Virgil adds the map once, beside each person's own maps. After that it is theirs to change or delete, and a deleted one does not come back.

Check that it worked

  • On a managed Mac, Settings → AI Features shows Corporate Gateway selected, with the fields locked and labelled Set by your organisation.
  • Ask Virgil Chat a question. A reply means the address, the key or sign-in, and the reasoning model are all right.
  • Open a few pages in a new topic. The topic naming itself means the everyday model is right.

If something is not working

Virgil says the gateway sent a sign-in page

The gateway sits behind an access proxy or VPN and this Mac is outside it. Connect to the company network and try again.

The gateway refuses the model

The model names must match what the gateway exposes for that key, character for character. Check which models the key is allowed to use.

The settings are not locked

The profile has not reached this Mac, or its payload type is not com.virgil.browser. Look for the profile under System Settings → General → Device Management (on macOS 14, Privacy & Security → Profiles).

Chat says it cannot search the web

Set corporate.serverWebTools to off so Virgil uses its own search, or check that the gateway forwards tool definitions to the provider unchanged.

Privacy

With a corporate gateway selected, the AI requests Virgil would otherwise send to Anthropic or OpenAI go to your gateway instead. Maps, pages and history stay on each person's Mac. The full policy is on the privacy page.

Questions

Rolling Virgil out to a team and stuck on something this page does not cover? Tell us through the feedback page.