Skip to content

agentguard-ai/tealtiger

TealTiger

TealTiger Logo

AI Agent Security & Governance SDK

Deterministic governance, guardrails, cost tracking, and policy management for LLM applications. Open source. TypeScript + Python. Works with any provider.

npm version PyPI version License: Apache 2.0 GitHub stars

Website Β· Documentation Β· Examples Β· Contributing


What is TealTiger?

TealTiger is an open-source SDK that provides deterministic governance for AI agents. It enforces security policies, tracks costs, and produces structured evidence β€” all at runtime, with no infrastructure required.

Looking for the source code? This is the hub repo. The SDK source lives in the language-specific repos:

Or clone this repo with submodules: git clone --recurse-submodules https://github.com/agentguard-ai/tealtiger.git

Unlike probabilistic safety filters, TealTiger uses deterministic policy evaluation: same input + same policy = same decision, every time. Every governance verdict is reconstructable, traceable to the human who authored the policy, and exportable as structured evidence (SARIF, JUnit XML, JSON).

Key principle: Governance should be an engineering property embedded in the runtime β€” not a document reviewed after the fact.


πŸš€ Quick Start

TypeScript

npm install tealtiger
import { TealOpenAI } from 'tealtiger';

const client = new TealOpenAI({
  apiKey: process.env.OPENAI_API_KEY,
  guardrails: {
    piiDetection: true,
    promptInjection: true,
    contentModeration: true,
  },
  budget: {
    maxCostPerRequest: 0.50,
    maxCostPerDay: 10.00,
  },
});

const response = await client.chat.completions.create({
  model: 'gpt-4',
  messages: [{ role: 'user', content: 'Hello!' }],
});
// Guardrails enforced. Cost tracked. Evidence produced.

Python

pip install tealtiger
from tealtiger import TealOpenAI

client = TealOpenAI(
    api_key=os.getenv("OPENAI_API_KEY"),
    guardrails={
        "pii_detection": True,
        "prompt_injection": True,
        "content_moderation": True,
    },
    budget={
        "max_cost_per_request": 0.50,
        "max_cost_per_day": 10.00,
    },
)

response = client.chat.completions.create(
    model="gpt-4",
    messages=[{"role": "user", "content": "Hello!"}],
)
# Guardrails enforced. Cost tracked. Evidence produced.

Docker Sidecar (any language):

docker run -p 8080:8080 tealtigeradmin/tealtiger-typescript:1.2-governance

curl -X POST http://localhost:8080/evaluate \
  -H "Content-Type: application/json" \
  -d '{"action": "tool.execute", "tool_name": "web_search", "context": {"user_id": "user-123"}}'

✨ Features

πŸ›‘οΈ Security Guardrails

  • PII Detection β€” Detect and redact sensitive information automatically
  • Prompt Injection Prevention β€” Block malicious prompt injection attempts
  • Content Moderation β€” Filter toxic, harmful, or inappropriate content
  • Secret Detection β€” 500+ patterns across 9 categories with confidence scoring
  • Custom Rules β€” Define your own security policies

πŸ’° Cost Governance

  • Budget Enforcement β€” Hard limits per request, session, and day
  • Cost Tracking β€” Real-time monitoring across all providers
  • Cost Alerts β€” Notifications at configurable thresholds
  • Circuit Breakers β€” Prevent runaway cost loops automatically

πŸ”Œ 7 LLM Providers

  • OpenAI β€” GPT-4, GPT-4o, GPT-3.5
  • Anthropic β€” Claude 3.5, Claude 3
  • Google Gemini β€” Multimodal support
  • AWS Bedrock β€” Claude, Titan, Jurassic, Command, Llama
  • Azure OpenAI β€” Deployment-based routing
  • Cohere β€” Chat, RAG, embeddings
  • Mistral AI β€” European data residency

πŸ—οΈ Governance Architecture

  • Deterministic Policy Evaluation β€” No LLM in the governance path
  • Structured Evidence β€” Every decision produces a reconstructable record
  • Correlation IDs β€” End-to-end traceability across the decision chain
  • Policy Traceability β€” Every verdict traces to the human policy author
  • OWASP ASI Coverage β€” Addresses 8/10 OWASP Top 10 for Agentic Applications

πŸ†• Governance Bundle (v1.2.0)

  • TealEngineV12 β€” Parallel module evaluation with "most restrictive action wins" merge
  • TealSecrets β€” Secret detection with 500+ patterns and confidence scoring
  • TealRegistry β€” Model/tool allowlisting with provenance verification
  • TealReliability β€” Retry budgets, circuit breakers, and fallback chains
  • TealMemory β€” Memory governance across 5 scopes and 4 classifications
  • GovernanceDashboard β€” Governance visibility UI
  • BundleExporter β€” Evidence export in SARIF v2.1.0, JUnit XML, and JSON
  • Docker Sidecar β€” Language-agnostic governance via HTTP (POST /evaluate)

πŸ“¦ SDKs & Integrations

Component Source Code Package Install
TypeScript SDK tealtiger-typescript-prod npm npm install tealtiger
Python SDK tealtiger-python-prod PyPI pip install tealtiger
Helm Charts helm-charts Helm helm repo add tealtiger https://agentguard-ai.github.io/helm-charts
GitHub Action tealtiger-action Marketplace uses: agentguard-ai/tealtiger-action@v1

πŸ“š Documentation


🐯 Build With Us β€” Early Contributor Program

TealTiger is open source and we're looking for early contributors to shape the future of AI agent governance.

What You Can Work On

Area Examples Difficulty
πŸ” Secret Detection New detection patterns, custom categories 🟒 Beginner
πŸ“ Documentation Guides, examples, API docs, typo fixes 🟒 Beginner
πŸ§ͺ Tests Unit tests, property-based tests, integration tests 🟑 Intermediate
πŸ”Œ Integrations LangChain, CrewAI, AutoGen, LlamaIndex middleware 🟑 Intermediate
πŸ’Ύ Memory Adapters Redis, Pinecone, Weaviate, ChromaDB adapters 🟑 Intermediate
πŸ”„ CI/CD Templates Jenkins, Azure Pipelines, Bitbucket Pipelines 🟑 Intermediate
πŸ—οΈ Core Modules Governance engine, evidence export, policy evaluation πŸ”΄ Advanced

What Early Contributors Get

  • πŸ† Named in CONTRIBUTORS.md and release notes
  • πŸŽ–οΈ "Founding Contributor" badge β€” first 25 merged PRs get permanent recognition
  • πŸ“£ Shoutout on TealTiger social channels (LinkedIn, X, Dev.to)
  • πŸ”‘ Early access to upcoming governance features before public release
  • πŸ’¬ Direct access to the core team via GitHub Discussions
  • πŸ“ Co-authorship opportunity on technical blog posts

Get Started

# 1. Star this repo (it helps!)

# 2. Fork and clone the SDK you want to contribute to:
# TypeScript SDK:
git clone https://github.com/agentguard-ai/tealtiger-typescript-prod.git
# Python SDK:
git clone https://github.com/agentguard-ai/tealtiger-python-prod.git

# 3. Pick a "good first issue"
# https://github.com/agentguard-ai/tealtiger/issues?q=label%3A%22good+first+issue%22

# 4. Submit a PR
# 5. Join the team 🐯

See CONTRIBUTING.md for detailed guidelines.


πŸ—ΊοΈ Roadmap

Current: v1.2.0 β€” Governance Bundle

  • 7 governance modules across 6 dimensions
  • Formal evidence contract with named reason codes
  • Secret detection (500+ patterns, confidence scoring)
  • Memory governance (5 scopes, 4 classifications)
  • Reliability controls (retry budgets, circuit breakers, fallback chains)
  • Model/tool registry with allowlisting and provenance verification
  • Evidence export (SARIF v2.1.0, JUnit XML, JSON)
  • Docker sidecar for language-agnostic governance

Next: v1.3.0 β€” Cloud Integrations & Ecosystem

  • Cloud agent platform integrations (AWS AgentCore, Bedrock Agents, Azure AI Foundry, GCP Vertex AI)
  • Framework integrations (LangChain, CrewAI, AutoGen, LlamaIndex, Strands)
  • AI Risk Register
  • Policy registry at registry.tealtiger.ai

🌟 Community


πŸ“„ License

TealTiger is Apache 2.0 licensed.


πŸ™ Acknowledgments

Built with ❀️ by the TealTiger team and contributors.


⭐ Star this repo if you believe AI agents need governance, not just guardrails.

Report Bug Β· Request Feature Β· Ask Question

About

Powerful protection for AI agents - Open-source security and cost tracking for AI applications

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors