Getting Started

Install and authenticate the Highflame Python SDK, then add your first Shield-protected prompt, tool, or model response.

This page gets you from zero to a working Shield integration. If you already know you want the decorator API, this is the fastest path.

Installation

pip install highflame
# uv
uv add highflame

Optional framework integrations are available via extras:

pip install 'highflame[langgraph]'
pip install 'highflame[crewai]'
pip install 'highflame[strands]'
pip install 'highflame[foundry]'

See Framework Integrations for the full integration guides.

Authentication

Create a client with your service key:

from highflame import Highflame

client = Highflame(api_key="hf_sk_...")

For self-hosted deployments, override the service endpoints:

Quick Start With Shield

Shield is the primary developer API. It wraps functions with guard checks that run automatically on every call. Blocked calls raise BlockedError.

Handling Blocked Calls

Async Functions

The same decorators work with async functions:

Where To Go Next

  1. Shield Decorators if you want the decorator options and patterns

  2. Low-Level Client if you need to inspect GuardResponse directly

  3. Advanced Topics for debugging, streaming, sessions, and agentic context

Last updated