Skip to main content

    Behest Developer Documentation

    Behest is AI FinOps — the platform that sits on the inference path between your app and any LLM provider, giving you real-time cost visibility, budget controls, and governance. Drop-in OpenAI SDK compatible. BYOK. No vendor lock-in.

    LLMs / AI coding tools: start at llms.txt for a curated index.


    Framework Quickstarts (5 minutes each)

    DocDescription
    React + ViteSPA with streaming chat, per-user JWT
    Next.js App RouterRoute-handler mint + client streaming
    Vercel (Edge + AI SDK)Edge Runtime token route + optional useChat proxy
    Supabase Edge FunctionsStandalone Deno Edge Function for any frontend
    Lovable + SupabaseLovable.dev stack with Supabase auth
    ModelenceModelence module + built-in auth, one mint mutation
    Python FastAPIFastAPI backend using the Python SDK
    Node + ExpressNode service mint + streaming

    Guides

    DocDescription
    Auth modesAPI-key mint vs local signing
    Tiers and usageFree/Pro/Max, /v1/billing/usage, 402 handling
    Multi-conversation chatSessions + threads end-to-end
    Streaming UISSE, AbortSignal, reconnect
    Error handling401/402/429/5xx typed errors
    Migrating from OpenAIOne-line change
    Migrating from OpenRouterOne-line change

    Auth Integrations

    ProviderDoc
    Supabasesupabase.md
    Clerkclerk.md
    Auth0auth0.md
    NextAuthnextauth.md
    Firebasefirebase.md

    AI-Tool Prompts

    Copy-paste starters for Lovable, Cursor, Claude, and v0.


    Reference

    DocDescription
    Quickstart (generic)Tenant → project → API key → JWT (CLI walk-through)
    Core ConceptsTenants, projects, slugs, API keys, JWTs, BYOK, tiers
    AuthenticationAPI keys, JWT minting, JWKS verification, Kong headers

    SDKs & Migration

    DocDescription
    TypeScript SDK@behest/client-ts — installation, usage, streaming, types
    Python SDKOpenAI Python SDK with Behest, async, REST examples
    Migration GuideFrom OpenAI/Anthropic/Portkey/Helicone to Behest

    Platform Features

    DocDescription
    Providers (BYOK)Setup guide for OpenAI, Anthropic, Google, Mistral, Cohere, OpenRouter
    BYOK Deep DiveArchitecture, encryption, key lifecycle, security model
    ModelsModel selection, draft/deploy, capabilities matrix, cost comparison
    GuardrailsPII Shield, Sentinel prompt injection guard, shadow/enforce modes
    Rate LimitingRPM limits, token budgets, kill switches, response headers
    Webhooks & EventsRedis Streams events, guardrail detections, budget alerts

    Reference

    DocDescription
    API ReferenceComplete endpoint reference — all routes, types, examples
    Error ReferenceError codes, HTTP status codes, handling patterns
    Dashboard GuideUI walkthrough — projects, settings, keys, providers, analytics
    TroubleshootingCommon issues and solutions

    Enterprise Token FinOps: Enforce hard budgets and attribute costs per session.

    Learn more