1. Collect the two values you need
From the Xenovia platform:- Create a proxy and note the proxy ID.
- Generate an API key (
xe_...) scoped to that proxy.
2. Point your client at Xenovia
- Python (OpenAI SDK)
- Node.js (OpenAI SDK)
3. Send your first governed request
- Python
- Node.js
4. Add a stable session ID
Group related calls into a session so multi-turn conversations appear together in Traces.- Python
- Node.js
The session ID must be a valid UUID. Xenovia validates the format and returns a
400 if it is malformed.5. Confirm the trace exists
After the request completes, check the platform and confirm:- A trace exists for the request
- The trace shows the expected model and proxy
- The response includes
X-Xenovia-Session-IdandX-Xenovia-Trace-Id
6. Attach a first policy
Start with one policy that proves enforcement is working. This example blocks a destructive tool name:7. Handle a policy block
When a request is blocked, the runtime returns403 Forbidden. The OpenAI SDK raises this as PermissionDeniedError.
- Python
- Node.js
8. Add trace metadata
Tag traces with business context so they stay useful as traffic grows.- Python
- Node.js
What to do next
After this first pass, move on to:- Integrations Overview to wire Xenovia into your actual framework
- Policies and Approvals to write real guardrails
- Traces and Remediation to standardize headers and investigation flow
If your real workflow performs risky actions after the model call, add the Xenovia Python SDK so those actions are governed too.