Skip to main content
Obiguard provides a robust and secure platform to observe, govern, and manage your locally or privately hosted custom models using vLLM.
Here’s a list of all model architectures supported on vLLM.

Integrating Custom Models with Obiguard SDK

1

Expose your vLLM Server

Expose your vLLM server by using a tunneling service like ngrok or any other way you prefer. You can skip this step if you’re self-hosting the Gateway.
2

Install the Obiguard SDK

3

Initialize Obiguard with vLLM custom URL

  1. Pass your publicly-exposed vLLM server URL to Obiguard with customHost (by default, vLLM is on http://localhost:8000/v1)
  2. Set target provider as openai since the server follows OpenAI API schema.
More on custom_host here.
4

Invoke Chat Completions

Use the Obiguard SDK to invoke chat completions from your model, just as you would with any other provider:

Using Provider Credentials and Access Keys

Obiguard stores the credentials for your provider in its vault as a provider credential, and your application authenticates to the gateway with an access key. This simplifies the use of multiple providers and Obiguard features within your application. For self-hosted LLMs, you can configure custom authentication requirements including authorization keys, bearer tokens, or any other headers needed to access your model.
  1. Add your self-hosted model to Obiguard as a provider credential
  2. Configure your deployment:
    • Select the matching provider API specification (typically OpenAI)
    • Enter your model’s base URL as the custom host
    • Add required authentication headers and their values
  3. Create an access key for the agent or project that will call it
You can now use the access key in your requests:
For more information about managing self-hosted LLMs with Obigaurd, see Bring Your Own LLM.

Next Steps

Explore the complete list of features supported in the SDK:

SDK