Quick Start

Connect your LLM

Replace your existing LLM endpoint URL and add your API token. No other code changes are needed.

1 · Choose your LLM service

Set your client's base URL to the Hyperfence base URL for the provider you already call today, exactly as shown. This matches the integration guide in the platform settings.

OpenAI

Supported

Direct URL

https://api.openai.com/v1

Hyperfence base URL

https://proxy.hyperfence.io/openai/v1

Set this as your client's base URL (with the OpenAI SDK, OPENAI_BASE_URL also works). Your SDK adds the rest, so requests go to https://proxy.hyperfence.io/openai/v1/chat/completions.

Example request

curl https://proxy.hyperfence.io/openai/v1/chat/completions \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "X-Proxy-Authorization: Bearer $HYPERFENCE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "<model>", "messages": [{"role": "user", "content": "Hello"}]}'

Both keys travel on every request: your own OpenAI key, exactly as today, and your Hyperfence token in X-Proxy-Authorization. Replace <model> with the model you use.

2 · Add your API token

{
  "X-Proxy-Authorization": "Bearer hf_your_token_here_xxxxxxxxxxxxxxxx"
}

Your token is available in Settings after you sign up.

3 · Send requests as normal

That's it

Your requests now flow through the Hyperfence proxy. Prompt injection blocking and your enabled Hyperfences are active immediately. You can now see traffic, blocked events, and token usage within the platform.

Cross-provider model routing

Hyperfence can proxy traffic to multiple LLM providers simultaneously. If you want to route across providers, see Providers for the supported services and model coverage.

Need your token?

Open Settings in the platform to generate or reset a token, then come back here and swap your provider URL.