Installation & Setup
Install the Prisma SDK, get an API key, and connect it to your instance
This page sets up the Prisma SDK against an existing Prisma instance — the canonical reference for installation, API keys, and environment configuration. To stand up the platform itself, see Deployment.
Just want to try it?
The Quickstart gets you to a first validation in about 5 minutes. Come back here for the full setup detail.
Before you start
- Access to a running Prisma instance and its base URL.
- Python 3.10+.
Install the SDK
Install the SDK alongside an instrumentor for your LLM library — the SDK ships traces and evaluations; the instrumentor captures each model call.
pip install palqee-prisma-ai openinference-instrumentation-google-genaiuv pip install palqee-prisma-ai openinference-instrumentation-google-genaiAny OpenInference or OpenLLMetry instrumentor works — swap in the one for your provider (e.g. openinference-instrumentation-openai). The Quickstart uses Gemini.
Get an API key
In your Prisma instance, open Organization Settings → API Keys and click Generate API Key. In the dialog, give the key a name (and an optional description), choose the workspace it belongs to, and set an expiration (defaults to never). Each key is scoped to the workspace you select.
Copy it immediately
The full key (pq_prisma_sk_…) is shown only once, at creation or rotation. Afterward only a partial prefix is visible — you can't reveal or copy the full value again. Store it in an environment variable or secret manager.
Use a separate key per environment, set an expiration where you can, and rotate keys regularly.
Configure your environment
Point the SDK at your instance with two environment variables:
export PALQEE_PRISMA_API_KEY="pq_prisma_sk_…"
export PALQEE_PRISMA_BASE_URL="https://prisma.your-company.com"| Environment variable | init() parameter | Description |
|---|---|---|
PALQEE_PRISMA_API_KEY | api_key | Your API key. Your workspace is resolved from it server-side. |
PALQEE_PRISMA_BASE_URL | base_url | Base URL of your Prisma instance. |
PALQEE_PRISMA_OTEL_ENDPOINT | otel_endpoint | OTLP endpoint. Optional — most users omit it; it's derived from base_url. Set it only to send telemetry to a different collector. |
init() also accepts project_name (required, positional), evaluators, run_name, input_mapping, and service_name. Any of api_key, base_url, or otel_endpoint passed explicitly overrides its environment variable.
Verify
python -c "import palqee_prisma_ai; print(palqee_prisma_ai.__version__)"Prints the installed SDK version.
Next steps
- Core Concepts — policy metrics, the 4-prompt pattern, and HSCM
- Guides — instrument real workflows, set up human review, wire CI/CD
- Haven't run it yet? Try the Quickstart to validate your first interaction.

