This page walks you through your first governed model call in under five minutes. By the end, you’ll have:Documentation Index
Fetch the complete documentation index at: https://docs.egisai.co/llms.txt
Use this file to discover all available pages before exploring further.
- The
egisaiSDK installed. - A running Python process whose OpenAI / Anthropic / Google calls are evaluated against your organization’s policies.
- A request visible on the EgisAI dashboard.
Prerequisites
Python 3.11 or newer.
An EgisAI account.
An SDK API key (Dashboard → API Keys → Create key). Keys begin with
egis_live_.An LLM provider key (
OPENAI_API_KEY, ANTHROPIC_API_KEY, or GOOGLE_API_KEY).1. Install the SDK
The[all] extra pulls in every supported integration. If you only use one
provider, pick the matching extra to keep your install small.
2. Set environment variables
3. Initialize once at startup
Callegisai.init() as early as possible — typically right after loading
configuration and before any module imports your LLM client.
main.py
The banner reports the number of policies your org has enabled. If it says
policies=0, head to the dashboard and create one — without active policies,
every call passes through unconditionally.4. Confirm the call on the dashboard
Open Dashboard → Requests. Within a second or two you’ll see your call with:- The application (Agent) you set via
app=. - The provider and model.
- The verdict (allow / sanitize / block) and any rule that fired.
- Latency and token attribution.
5. (Optional) Try a policy
To see governance in action, create a simple policy in the dashboard — for example a regex deny-list rule that blocks the wordforbidden. Re-run your
script with that string in the prompt; the call should be refused.
By default egisai.init(...) raises PermissionError when a policy blocks
the call. If you’d rather receive a framework-shaped refusal object, switch
modes:
What’s next
How it works
Understand the call path, evaluation phases, and audit pipeline.
Configuration
Every option
egisai.init() accepts and what it controls.Integrations
Provider-specific notes for OpenAI, Anthropic, Google, and HTTP clients.
Multi-agent context
Run several distinct agents from the same process with
set_context().