Built by Engineers, for AI Systems Architects.

Integrate real-time token metering, autonomous financial guardrails, and multi-rail payment switching with idiomatic SDKs in Python, TypeScript, Go, and Rust.

quickstart.py quickstart.ts cURL
from cyra import CyraClient

cyra = CyraClient(api_key="cyra_live_99847291048")

# 1. Meter Token Event with Instant Margin Check
result = cyra.margin.meter_tokens(
    tenant_id="cust_enterprise_048",
    model="claude-3-5-sonnet",
    prompt_tokens=1420,
    completion_tokens=840,
    session_id="sess_agent_codegen_91"
)

print(f"Margin Guard: {result.margin_pct}% | Status: {result.status}")

Install and Initialize in Under 2 Minutes

Python SDK

pip install cyratechnovix

from cyra import CyraClient
cyra = CyraClient("cyra_key_...")

# Wrap LangChain Tool with CyraGuard
@cyra.guard(policy="customer_ops_tier1")
def issue_refund(customer_id: str, amount: float):
    return stripe.Refund.create(...)

TypeScript / Node.js SDK

npm install @cyratechnovix/sdk

import { CyraClient } from '@cyratechnovix/sdk';
const cyra = new CyraClient({ apiKey: process.env.CYRA_API_KEY });

// Stream Token Metering
await cyra.meter.track({
  tenantId: 'cust_882',
  tokens: { prompt: 800, completion: 450 }
});

Native MCP Server Integration for AI Agents

Equip your Claude Desktop, Cursor, or autonomous agents with Cyra revenue tools over Anthropic's Model Context Protocol.

mcp_settings.json
{
  "mcpServers": {
    "cyra-revenue-ops": {
      "command": "npx",
      "args": ["-y", "@cyratechnovix/mcp-server"],
      "env": {
        "CYRA_API_KEY": "cyra_live_..."
      }
    }
  }
}

Exposes safe deterministic tools to your agents: cyra_get_margin_status, cyra_evaluate_spend_permission, cyra_simulate_pricing_change.

Start Building with Cyra API

Get your sandbox API keys and begin testing within minutes.

Request Developer Sandbox Keys →