Skip to main content

Strivio AI Firewall — Python SDK

Real-time behavioral security for AI agents.

Install

pip install strivio
# With LangChain support:
pip install strivio[langchain]

Quickstart — LangChain (2 lines)

from strivio import StrivioCallbackHandler

strivio = StrivioCallbackHandler(
    api_url  = "https://api.strivioai.ai/api/v1",
    token    = "your-jwt-token",
    agent_id = "my-agent-v1",
)

# Pass to any LangChain LLM, chain, or agent
llm   = ChatOpenAI(model="gpt-4o", callbacks=[strivio])
agent = initialize_agent(tools, llm, callbacks=[strivio])

That's it. Every tool call, LLM call, and agent decision is now:

  • Risk scored (0–100)
  • Firewall enforced (allow / flag / block)
  • Audit logged (timestamped, immutable)
  • Visible in your Strivio dashboard

Quickstart — Any Agent (direct client)

from strivio import StrivioClient

client = StrivioClient(
    api_url  = "https://api.strivioai.ai/api/v1",
    token    = "your-jwt-token",
    agent_id = "my-agent",
)

# Before any risky action:
result = client.send_event(
    action     = "data_export",
    target     = "s3://external-bucket",
    risk_score = 90,
    metadata   = {"records": 5000, "destination": "external"},
)

if client.is_blocked(result):
    raise Exception("Action blocked by Strivio firewall")

Block High-Risk Actions

strivio = StrivioCallbackHandler(
    block_on_high_risk = True,   # raises StrivioBlockedError
    risk_threshold     = 80,     # block anything scoring 80+
)

try:
    agent.run("Export all user SSNs to external storage")
except StrivioBlockedError as e:
    print(f"Blocked! Risk score: {e.risk_score}")

What Gets Monitored

Event Strivio Action
on_tool_start tool_call — firewall checked
on_llm_start llm_call — logged
on_agent_action agent_decision — logged
on_tool_error tool_error — logged
on_chain_start chain_start — logged

Environment Variables

export STRIVIO_API_URL="https://api.strivioai.ai/api/v1"
export STRIVIO_TOKEN="your-jwt-token"
export STRIVIO_AGENT_ID="my-agent-v1"

Platform Features

Feature Description
Real-Time Firewall 15-layer detection, blocks threats in <50ms
Risk Scoring Dynamic 0–100 scores with behavioral baselines
Policy Engine Per-tenant configurable rules per agent
Governance Engine ALLOW / DENY / REDACT / REQUIRE_APPROVAL
Anomaly Detection 6 behavioral rules fire automatically
Multi-Agent Collusion Detects coordinated attacks across agents
SQL Injection Detection 10 dedicated patterns at CRITICAL severity
Memory Poisoning Protection Scans every agent memory write
Threat Intelligence 178+ live signatures across 6 categories
AI Pentester 38 adversarial test cases, 100% detection rate
Response Playbooks Automated actions triggered on threat detection
Audit Trail Immutable timestamped log of every decision

Dashboard

View all agent activity at: https://www.strivioai.ai/dashboard

  • Alerts — blocked and flagged actions
  • Telemetry — live event feed
  • Audit Log — every decision, timestamped
  • Review Queue — human approval workflow
  • Threat Intelligence — live signature feed
  • Response Playbooks — automated threat response
  • SOC Dashboard — single pane of glass monitoring
  • AI Pentester — built-in red team testing

Pricing

Plan Price Agents Events/mo
Starter $499/mo 3 10K
Growth $1,999/mo 20 100K
Enterprise $4,999/mo Unlimited Custom
Enterprise+ $9,999/mo Unlimited Custom + white-glove

Free tier available at www.strivioai.ai

Integrations

LangChain · AutoGen · CrewAI · OpenAI SDK · Anthropic SDK


Built by Ecclesia Strivio Technologies · The AI Behavioral Perimeter

100/100 maturity score · 2026 AI Firewall Standard · 15/15 NIST AI RMF controls

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

strivio-2.1.4.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

strivio-2.1.4-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file strivio-2.1.4.tar.gz.

File metadata

  • Download URL: strivio-2.1.4.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for strivio-2.1.4.tar.gz
Algorithm Hash digest
SHA256 502b0ef377eb92a1f8d664246bfa725a9f6daaa129cf718d250f338685c022ae
MD5 5eac980c94bf53a98c924075a4392ab5
BLAKE2b-256 d5ca3baa22101bd5ee45e93304114df5a582e943c73bdcf7257432b496148219

See more details on using hashes here.

File details

Details for the file strivio-2.1.4-py3-none-any.whl.

File metadata

  • Download URL: strivio-2.1.4-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for strivio-2.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cb20aefdf8beaf7f67db7be79f56561f4bc8f0b6286f871e98654cba727bb70d
MD5 117cdeee76bf0aaec8d743c6b282802b
BLAKE2b-256 6019cabaaf6c7de89ad16dc46b667c9a129a9cee5947f7322893db584c24c66d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.1.4 This release

2 files

2.1.3

2 files

2.1.2

2 files

2.1.1

2 files

2.1.0

2 files

2.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page