Your Keys Stay Local
Your LLM API keys never touch our servers. The SDK executes calls locally and only logs results back to Mandatum.
Manage, version, and execute AI prompts with custom code integration
Mandatum is a prompt engineering platform for teams who want full control over their LLM integrations. Your API keys stay on your system - they never touch our servers. Mandatum handles prompt management, versioning, logging, and analytics.
Your App (with your LLM keys)
↓
Mandatum SDK
↓
1. Fetches prompt template from Mandatum
2. Executes LLM call locally (your keys never leave your system)
3. Logs results back to Mandatum for analytics| Feature | Description |
|---|---|
| Prompts | Create, edit, delete, and version prompt templates |
| Integrations | Write pre-run and post-run Python scripts that execute with your prompts |
| Evaluations | Test prompt quality, compare versions, run automated checks |
| Logging | Automatic request logging with full input/output capture |
| Analytics | Cost tracking, latency monitoring, usage dashboards |
from openai import OpenAI
from mandatum import Mandatum
# Your LLM keys stay local - never sent to Mandatum
openai_client = OpenAI(api_key="your-openai-key")
mandatum = Mandatum(api_key="your-mandatum-api-key")
response = mandatum.prompts.run(
prompt_id="your-prompt-id",
user_input="I need help with my order",
llm_client=openai_client,
variables={"customer_name": "Alice"},
environment="production",
)
print(response.output)
print(f"Cost: ${response.cost:.4f}")