Skip to Content
Clovie Docs

Concepts

Provider credentials

You bring your own model provider keys. Clovie stores them securely and uses them to forward your agents' requests.

What it is

Your agents' requests are sent to model providers with your own provider keys. You keep your existing accounts, contracts and data agreements with each provider, and the provider bills you directly.

When to use it

  • Platform teams add one credential per provider, so every agent can use it without holding the key.
  • Security teams keep keys out of agent code and configuration, keep them in their own vault, and cut Clovie off from a key at any time.
  • Compliance teams see every use of a key in their own audit logs and in Clovie's.
  • Finance teams keep the provider's billing and negotiated contracts unchanged.

How it works

Agents call the gateway with a Clovie agent key. The gateway then calls the provider with your provider key.

[ Your agent ] --agent key--> [ Clovie gateway ] --your key--> [ Model provider ]
                                     ^
                                     |
                   [ Your credential: stored encrypted, or in your vault ]

So:

  • A leaked agent key cannot be used against your provider account directly, and you can revoke it in Clovie without rotating anything at the provider.
  • You rotate a provider key in one place, and every agent picks up the change immediately.
  • Each agent's usage is still tracked separately, even though they share one provider account.

Clovie never uses its own keys for your traffic. If an agent calls a provider you haven't added a credential for, the request is refused with a message that names the provider.

Set it up

Add a provider credential

Organization admins and admins manage credentials in AI Governance → Models → Provider credentials.

Select Add credential.

Choose the Provider, then choose Where the key lives:

  • Stored encrypted in Clovie: paste the key into API key. Clovie encrypts it with a key unique to your organization, and it is never shown again.
  • In your secret store: the key stays in your own AWS Secrets Manager, Google Secret Manager, Azure Key Vault, HashiCorp Vault or CyberArk Conjur, and you never paste it into Clovie. See Keep your keys in your own vault or KMS.
  • No secret (cloud identity) (self-hosted installations): for Azure OpenAI, AWS Bedrock and Google Vertex AI, Clovie uses your cloud's own identity instead of a key.

For Azure OpenAI and Google Vertex AI you first choose a Sign-in method, which works in Clovie's cloud and on every installation. See Azure OpenAI and Vertex AI.

Only the choices your organization has set up are offered. When one isn't, the form says what to turn on.

Optionally add a Name such as "Production", then select Add credential. Clovie checks the key straight away; select Test to check it again at any time.

Azure OpenAI and Vertex AI

Connect your own Azure OpenAI or AI Foundry resource, or your own Vertex AI project. Every sign-in is your organization's own, so your models run on your cloud account and your billing.

Sign-in methodAzure OpenAI / AI FoundryGoogle Vertex AIWhat Clovie keeps
KeyAPI key of your resourceService account key (JSON)The key, encrypted or in your secret store
Your own app or accountMicrosoft Entra app (client secret): your tenant ID, client ID and client secret—The client secret, encrypted or in your secret store
No secret, federatedMicrosoft Entra workload identity federationService account impersonationNothing secret
This installation's identitySelf-hosted installations onlySelf-hosted installations onlyNothing secret

No secret, federated. Your organization has its own Clovie identity: an issuer, a subject identifier and an audience that name your organization and no other. The form shows them with copy buttons.

  • Azure: add them as a federated credential on your Entra app registration (Other issuer), then give the app the Cognitive Services OpenAI User role on your resource.
  • Google Cloud: add an OIDC provider with that issuer and audience to a workload identity pool in your project, then grant the principal the form shows the Service Account Token Creator role on the service account Clovie acts as. That service account needs the Vertex AI User role.

Only requests Clovie makes for your organization carry your identity, so no other organization can use the trust you set up. To cut Clovie off, delete the federated credential or the provider.

Azure endpoints. The Endpoint URL must be your resource's own https address: https://<resource>.openai.azure.com, https://<resource>.services.ai.azure.com or https://<resource>.cognitiveservices.azure.com, or the Azure Government or Azure China equivalent. Private endpoints use the same address. An address ending in /openai/v1 uses Azure's v1 endpoint, which needs no API version; Azure AI Foundry models such as Phi, Llama, Mistral and DeepSeek are served there (register them under Custom models). Use an Azure OpenAI / AI Foundry key only with an Azure address: Clovie refuses a key of another provider, such as an OpenAI key, for an Azure address.

This installation's identity. On a self-hosted installation that serves one organization, Clovie can sign in with the installation's own managed identity or service account. On an installation that serves many organizations, only the installation's own organization can; every other organization connects its own cloud with one of the methods above.

Keep your keys in your own vault or KMS

Some organizations must be able to cut Clovie off from their model provider keys at any time, and see every time Clovie uses them. Clovie supports two ways to do that. You can use either or both, including in the hosted service.

Keep the key in your secret store

Choose In your secret store when you add a credential. Clovie keeps only where the key is (a secret name, path or variable), never the key. It reads the key when a request needs it, with an identity you granted, and forgets it within 5 minutes.

Where the key isWhat you set up first
AWS Secrets Manager, Google Secret Manager or Azure Key VaultOn the account's cloud connection, turn on Read your model keys and name the secrets Clovie may read. Run the updated setup files, then select Verify. In the credential, choose the connection and one of the secrets named on it.
HashiCorp Vault or CyberArk ConjurAn organization admin adds your server under Your vault servers, in the Encryption section, and your Vault or Conjur trusts your organization's Clovie identity (select Show setup commands for the exact commands). In the credential, choose the server and enter the path or variable.

Clovie reads only the secrets you named, and refuses any other secret even if your own permissions would allow it. If the secret holds JSON, set JSON field to the field that contains the key.

For keys kept in your own store, Clovie sends requests only to the provider's own addresses. A custom endpoint needs an organization admin, and the change is recorded in your audit log.

Use your own key to protect stored keys

Keys stored encrypted in Clovie are sealed with a data key unique to your organization. By default, Clovie holds the key that protects that data key (Clovie-managed). You can put it under your own key instead: an AWS KMS key, a Google Cloud KMS key, an Azure Key Vault key, or a HashiCorp Vault Transit key. Clovie can then open your stored keys only by asking your key, each time.

Organization admins manage this in AI Governance → Models → Provider credentials, under Encryption. Everyone else can see which key is in use.

For a cloud KMS key, turn on Use your KMS key on the account's cloud connection, name the key, run the updated setup files and select Verify. For Vault Transit, add your Vault under Your vault servers first.

Under Encryption, select Use your own key. Choose Where your key is, then the cloud connection or Vault server, and the key.

Select Test. Clovie encrypts and decrypts a test value with your key. Nothing changes.

Select Switch…, read what happens, then select Switch to your key. Clovie re-seals every stored key under your key in one step. If any part fails, nothing changes and the reason is shown. After the switch, Clovie destroys its own copies of your earlier data keys. Older backups still contain them for up to 7 days, so rotate your provider keys if your policy requires it.

To go back, select Switch back…. Your stored keys are re-sealed under the Clovie-managed key, and disabling your own key no longer affects Clovie.

Where Clovie connects from

In the hosted service, the form shows the address Clovie connects to your vaults and keys from (Clovie connects from followed by the address), with a copy button, wherever you need it. Allow this address on your Vault or Conjur network access list. You can also require it in your own policies, for example as a source address condition on the role or key, so that only requests from Clovie's network are accepted.

Replace and delete

  • Replace swaps in a new key. The old key stops being used immediately.
  • Delete removes the credential. Requests that need it are refused until you add another.

What you'll see

Credential status

The list shows each credential's provider, Where the key lives (for example Your AWS Secrets Manager or Stored encrypted), its Status and when it was Last used.

StatusWhat it means
VerifiedThe last test or request with this credential succeeded.
FailingThe credential can't be used right now: the provider rejected it, or your secret store or key refused Clovie. The reason is shown next to it, for example "Your key in AWS KMS is disabled or Clovie's access to it was revoked".
CheckingClovie is checking a new or replaced key.
Not tested yetThe credential hasn't been used or tested since it was added.

Adding, replacing, deleting and testing credentials, and every switch and test of your own key, is recorded in your Clovie audit log.

What appears in your own audit logs

Every time Clovie uses your key or reads your secret, your own system records it under the identity you granted Clovie:

SystemWhat you see
AWS CloudTrailClovie's sign-in to the connection's role, each secret read (GetSecretValue) and each use of your key (Decrypt, Encrypt) with your organization in the encryption context
Google Cloud audit logsClovie's sign-in and each secret access or key use. Turn on Data Access audit logs for secrets and keys to see them.
AzureSign-ins of the connection's application, and each secret read or key use in the Key Vault logs (needs a diagnostic setting)
HashiCorp VaultEach login of Clovie's role, each secret read and each Transit encrypt or decrypt, in your audit device
CyberArk ConjurEach authentication of Clovie's host and each variable fetch

In steady use that's a handful of requests per hour, not one per agent request.

Limits and good to know

Cutting Clovie off

You stay in control from your own console:

  • Disable the key, or revoke Clovie's access to the key or the secret, and Clovie stops using it within 5 minutes. Agents that need it get a clear error that names the problem, and the credential shows Failing with the reason.
  • Clovie never falls back to another key, another credential or a key of its own. Nothing works around your decision.
  • Re-enable the key or restore the access and the credentials work again on their next use. You don't need to change anything in Clovie.

While a switch to your own key depends on a cloud connection, Clovie won't let anyone remove that connection's key or its Use your KMS key permission. Switch back first.

Models you host yourself

If you run your own models, or use a cloud provider's hosted model service, an administrator can register them as custom models in AI Governance → Models → More → Custom models so agents can call them through the gateway like any other model.

On this page