Skip to main content
SDK INTEGRATION • < 60 SECONDS

Quickstart Guide

Hook verification checks into your agent in under 60 seconds. Choose between our zero-dependency single-file Python script, standard library cURL, or the official SDK.

1

Install the SDK (or Drop-in Single File)

The Ejentum SDK has zero third-party dependencies and runs entirely on the standard library:

# Recommended: Download single-file drop-in v1.4.0 (zero third-party dependencies)
curl -s https://ejentum.com/ejentum.py -o ejentum.py
# Direct standard library usage (no installation required):
import urllib.request, json
# Install the official Python SDK from PyPI:
pip install --upgrade ejentum
PyPI v1.9.0
2

Configure Your API Key

Export your key in your shell or `.env` file (or pass api_key="..." directly when initializing):

export EJENTUM_API_KEY="ej_live_..."
Instant Test Credentials
Generate an active trial API key directly in docs (1,000 calls · 30 days · zero email required).

Need a test key? Generate an Instant Sandbox Key in 1 click (No email required) or view plans.

3

Integrate into Your Codebase

Wrap your existing client in 1 line. Every chat completion automatically fetches and injects the optimal cognitive scaffold (<2ms local engine, ~90-150ms WAN):

from openai import OpenAI
from ejentum import wrap_openai

# 1. Wrap your client in one line:
client = wrap_openai(OpenAI())

# 2. Call chat completions normally - Ejentum intercepts and injects cognitive scaffolding:
response = client.chat.completions.create(
    model="gpt-4o",
    messages=[
        {"role": "user", "content": "How do we safely add a column to a 50M-row PostgreSQL table?"}
    ],
    ejentum_mode="reasoning"  # Optional: 'reasoning', 'causal', 'diagnostic', 'graph'
)

print(response.choices[0].message.content)
4

Embed Consumer Intake Chat (Ejentum Ask)

Building consumer-facing advisory agents, intake forms, or customer support triage? Use the /api/chat endpoint. It routes the inquiry, retrieves cognitive invariants in under 2ms, and synthesizes an uncompromised answer without manual prompt assembly.

curl -X POST https://api.ejentum.com/api/chat \
  -H "Content-Type: application/json" \
  -d '{
    "query": "Draft a formal notice demanding an immediate refund for a damaged shipment.",
    "model": "claude-3-7-sonnet"
  }'

Want to see the reasoning difference first?

Compare baseline model output vs Ejentum RAR side-by-side in our interactive sandbox.

Open Playground →