Using Your Own API Key

Send Kelvin’s messages straight to Anthropic or Google with your own key, so they never pass through DENSsolutions. IT departments can fix this choice for a whole site.

  1. The two routes
  2. Adding a key
    1. Usage counts
  3. For IT departments: fixing the route for a site
    1. Checking where messages go

The two routes

Click the gear next to the model name in Kelvin’s message box (Where Kelvin sends your messages). The panel offers two routes:

Route What happens
Through DENSsolutions (default) Your messages and any attached panel images are sent to DENSsolutions, which forwards them to the model provider. No API key needed. Messages use your Kelvin credits.
Your own API key Your messages and images go straight to the provider. DENSsolutions never sees them. Billing, rate limits and model access are between you and your provider.

On either route, Nexus still fetches Kelvin’s configuration (its instructions and the list of models) from DENSsolutions when it starts. That request carries your sign-in but no message, no data and no dataset names.

Either way, Kelvin needs to reach the model provider over the internet; it does not work offline.

Adding a key

  1. Get a key from your provider:
  2. In the gear panel, choose Your own API key.
  3. Paste the key into the field for Anthropic or Google.
  4. Click Test. Nexus makes the smallest call the provider allows, so a mistyped, revoked or wrong-account key is reported now rather than in the middle of a conversation.
  5. Click Save. The provider shows key saved.

To replace a key, paste a new one and save it. To remove it, click the × next to it. A change takes effect from your next message.

The key is stored encrypted (Windows DPAPI) under your Windows account on this computer. It is never shown again after you save it, never written to a log and never sent to DENSsolutions.

Usage counts

With your own key, Kelvin reports nothing to DENSsolutions unless you tick Share usage counts. If you do, DENSsolutions receives counts of messages sent and errors seen, never your messages, your data or your dataset names. The counts are linked to your account, like the rest of Nexus’ usage reporting. Usage reporting from the rest of Nexus is not affected by this setting.

For IT departments: fixing the route for a site

A site can require one route on a computer, so that users cannot change it. Set this registry value, for example through Group Policy or Intune (writing it needs administrator rights):

Key:   HKEY_LOCAL_MACHINE\SOFTWARE\DENSsolutions\Nexus
Value: KelvinMode   (REG_SZ)
Data:  byok      only the user's own API key may be used
       managed   only the DENSsolutions route may be used

As a .reg file:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\DENSsolutions\Nexus]
"KelvinMode"="byok"

With the value set, the other route is not offered in Kelvin’s gear panel, and the panel says the choice is set by your organisation’s policy on this machine and cannot be changed here. Nexus also refuses the other route internally, so the restriction does not depend on the hidden control.

  • A value that cannot be read (wrong type, empty, unknown text, or no permission to read it) blocks both routes: Kelvin sends nothing and says that a policy has been set but cannot be read. Nexus does not guess which of the two opposite restrictions was meant.
  • A choice the user saved before the policy arrived is refused rather than silently changed. The gear panel explains this and offers Follow the policy.
  • A key stored before a managed policy is not used, but the user can still remove it from the gear panel.
  • No value means no restriction; each user chooses their own route.

Checking where messages go

With Your own API key selected, a network capture during a Kelvin message shows traffic to the provider (api.anthropic.com or generativelanguage.googleapis.com) and none to the Kelvin relay (func-nx-kelvin-<environment>.azurewebsites.net). Nexus does talk to DENSsolutions for other reasons in either mode (sign-in, licensing, update checks and usage reporting), so filter the capture to those two hosts.