ak) is what your application sends to the Obiguard gateway to authenticate. Access keys are created per agent or project, and replace the virtual keys used in earlier versions of Obiguard.
Your AI provider credentials (for example your OpenAI or Anthropic API key) are called provider credentials. They are stored encrypted in Obiguard and are never sent to, or visible to, the applications that call the gateway.
Creating an access key
- Open the Access keys page in the Obiguard dashboard.
- Create a new access key for the agent or project that will make the requests.
- Copy the key and store it securely, for example in an environment variable such as
OBIGUARD_API_KEY.
Tip: Create a separate access key for each agent or project so that each integration can be managed independently.
How are provider credentials stored?
Your provider credentials are encrypted and stored in secure vaults, accessible only during a request. Decryption happens solely within isolated workers and only when required. Because callers only ever hold an access key, your original provider credentials cannot be derived or reconstructed from it.Using access keys
Using the Obiguard SDK
Pass the access key asobiguard_api_key when you initialize the Obiguard Python SDK.
- Python SDK
Using the OpenAI SDK
Pass the access key in the Obiguard headers of the OpenAI client.- OpenAI Python
Using cURL
Send the access key in thex-obiguard-api-key header of your request.
- cURL

