v0.9.5 — 8 LLM Providers — Web4 Auth — AGPL-3.0
Hyper-Sentinel SDK
Python SDK for the Sentinel API Gateway — 69 tools for crypto trading, equities, macro economics, AI-powered market intelligence, and quantitative analysis. Free tier: 10 prompts per 7-day window — bring your own LLM key. Beyond that, add a payment method for unlimited pay-as-you-go access.
Click to copy
$ pip install hyper-sentinel
Click to copy
$ sentinel
Installation
Requires Python 3.10+. Works on Mac, Windows, and Linux.
# pip (Mac / Windows PowerShell / Linux)
pip install hyper-sentinel
# Launch the interactive AI terminal
sentinel
Quick Start
# Install and launch — paste your AI key when prompted
$ pip install hyper-sentinel
$ sentinel
# The agent auto-detects your provider and you're in
Sentinel v0.9.5 · 69 tools · Free · 0/10 prompts/wk · Online
# Ask anything in natural language:
> What's BTC at?
BTC $84,219 (+1.8%) | Vol $31.2B | MCap $1.67T
> Show my Hyperliquid positions
| Coin | Size | Entry | PnL | Leverage |
|------|-------|----------|----------|----------|
| BTC | 0.7 | $70,711 | +$752 | 33x |
> What's the Sharpe ratio on ETH?
Sharpe: 1.42 | Sortino: 1.87 | Max Drawdown: -18%
> Get GDP, unemployment, and fed rate
[calls get_fred_series x3 — real FRED data]
> Options data on AAPL for Jan 2028
[calls get_options_expirations → get_options_chain → LEAPS with Greeks]
Authentication — Web4
No email. No password. Your AI provider key is your identity.
# Just launch — paste your AI key when prompted
$ sentinel
# The SDK auto-detects your provider:
Paste your AI API key: sk-ant-xxx
✓ Detected: 🟣 Anthropic (Claude)
✓ Account created
✓ BTC = $84,219
✅ Setup Complete
Supported providers (8):
Anthropic (Claude)sk-ant-xxx → console.anthropic.com
OpenAI (GPT)sk-xxx / sk-proj-xxx → platform.openai.com
Google (Gemini)AIza... → aistudio.google.com — free tier available
xAI (Grok)xai-xxx → console.x.ai
DeepSeeksk-xxx → platform.deepseek.com
Zhipu AI (GLM)[hex32].[alnum16] → open.bigmodel.cn
Minimaxsk-xxx → platform.minimaxi.com
Moonshot (Kimi)sk-xxx → platform.moonshot.cn
How Auth Works
When you paste your AI key, the SDK auto-creates a Sentinel account:
- Your AI key is hashed (SHA-256) → deterministic user ID
- Gateway generates a
sk-sentinel-xxx platform key
- Saved to
~/.sentinel/config (0600 permissions)
- Your AI key is never stored on the server
- All future API calls use your Sentinel key transparently
Zero Friction
One command. Paste your key. Start building. No signup form, no email verification, no password.
Free Tier
Signing in with your AI key is free and gives you
10 prompts per rolling 7-day window.
After 10 prompts in 7 days the gateway returns
HTTP 402 and you add a Stripe payment method
to continue — then it's unlimited, pay-as-you-go. See
Pricing.
Pricing
All 69 tools are available to everyone — no feature gates, no subscriptions, no tiers. Sign in with your AI key for free; you get 10 prompts per rolling 7-day window. Add a payment method to go unlimited, pay-as-you-go: a flat 20% platform fee on the equivalent LLM provider cost, plus a small on-chain builder fee on trades.
| Plan |
Prompts |
Platform Fee |
Maker / Taker |
Rate Limit |
| Free |
10 / 7-day window |
— |
0.01% / 0.01% |
1,000/min |
| Pay-as-you-go |
Unlimited |
20% |
0.01% / 0.01% |
1,000/min |
BYOK (Bring Your Own Key): your own LLM provider key is billed by your provider directly. Sentinel's revenue is the flat 20% platform fee for its 69 tools + agent, billed via Stripe metered billing (monthly, in arrears). No tiers, no subscriptions.
The Free Tier & 402 Gate
The gateway counts prompts (user turns — tool-loop continuations don't count) per rolling 7-day window. Once you exceed 10 prompts without a payment method, the next prompt returns HTTP 402:
# HTTP 402 — quota exceeded
{
"error": "quota_exceeded",
"message": "Free tier limit reached. Add a payment method to continue.",
"prompts_used": 10,
"prompt_limit": 10,
"window_days": 7,
"resets_at": "2026-06-24T14:03:00Z",
"checkout_url": "https://checkout.stripe.com/..."
}
Open checkout_url to add a Stripe payment method. Once your method is active, the gate is lifted and usage is unlimited, pay-as-you-go. If a payment later fails the gateway returns 402 with error: "payment_failed" — update your card via the Customer Portal (GET /api/v1/billing/portal).
# Check your account, weekly prompt count & usage
$ sentinel status
# Free · 3/10 prompts/wk · resets in 5d
Billing & Usage
Billing lifecycle: sign in → 10 free prompts / 7 days → add payment → unlimited. Manage your card any time via the Stripe Customer Portal.
GET /api/v1/billing/status
Returns prompts_used, prompt_limit, window_days, resets_at, gated, and payment status
GET /api/v1/billing/portal
Stripe Customer Portal session — add or update your payment method
get_usage_summary(period)
LLM usage summary with token counts, costs, and platform fee
AI Chat (Multi-LLM)
Bring your own AI key and query any of 8 supported LLM providers through a single interface. The AI agent automatically calls the right tools based on your query.
# In the terminal, just ask:
> Analyze ETH/BTC ratio
> What are the top trending tokens?
> Long 0.01 BTC on Hyperliquid
> Run TA indicators on SOL
> What's the yield curve look like?
# The agent decides which tools to call, executes them,
# and synthesizes the results with your chosen LLM.
Multi-LLM Chat
Supports Claude, GPT, Gemini, Grok, DeepSeek, GLM, Minimax, Kimi
Crypto Market Data
get_crypto_price(coin_id)
Live price, market cap, 24h change for any coin
get_crypto_top_n(n)
Top N cryptocurrencies by market cap
search_crypto(query)
Search coins by name or symbol
Equities (yfinance)
get_stock_price(symbol)
Current stock price and key metrics
get_stock_info(symbol)
Company info, sector, market cap, P/E
get_analyst_recs(symbol)
Analyst consensus ratings and price targets
get_stock_news(symbol)
Recent news articles for a ticker
get_stock_history(symbol, period)
Historical OHLCV data (1d, 5d, 1mo, 1y, max)
run_stock_analysis(symbol)
Full quantitative analysis — valuation, financials, technicals
Macro Economics (FRED)
get_fred_series(series_id, limit)
Fetch FRED time series (GDP, CPI, rates, etc.)
search_fred(query)
Search FRED database for economic indicators
get_economic_dashboard()
Pre-built dashboard: GDP, CPI, unemployment, rates, VIX
get_yield_curve()
Full US Treasury yield curve — 3M through 30Y with key spreads
Technical Analysis
get_ta_indicators(symbol)
Full TA: SMA, EMA, RSI, MACD, Bollinger Bands, ATR, OBV
get_ta_signal(symbol)
SMA crossover signal + RSI — bullish/bearish/neutral
get_klines(symbol, interval)
Raw OHLCV candlestick data for any asset
Risk & ML Signals
get_risk_metrics(symbol)
Sharpe, Sortino, Calmar, VaR (3 methods), CVaR, max drawdown
get_timeseries_forecast(symbol)
ARIMA price prediction, GARCH volatility, ADF stationarity
get_ml_signals(symbol)
Linear regression trend, K-Means regime, Random Forest importance
get_portfolio_risk()
Portfolio risk: position concentration, leverage, venue allocation
get_portfolio_summary()
Unified portfolio summary across all trading venues
Options & Greeks
get_options_analysis(symbol)
Put/call ratio, implied volatility, ATM options, sentiment
get_options_expirations(symbol)
All available expiration dates including LEAPS (>1 year)
get_options_chain(symbol, expiry)
Full chain — calls/puts with strike, bid/ask, delta, IV, OI
News & Y2 Intelligence
get_news_sentiment(query)
Sentiment-analyzed news articles for a topic
get_news_recap()
Today's market recap and key headlines
get_intelligence_reports()
AI-generated intelligence reports from Y2
get_report_detail(report_id)
Full content of a specific intelligence report
get_report_audio(report_id)
Audio narration URL for a Y2 report
get_y2_feeds()
List all 19 available Y2 news feed topics
list_y2_profiles()
Your Y2 monitoring profiles — topics and delivery schedules
Social Intelligence (Elfa AI)
get_trending_tokens()
Trending tokens by social mention volume
get_top_mentions()
Most mentioned tokens across social platforms
search_mentions(query)
Search social mentions for a specific token/topic
get_trending_narratives()
Emerging market narratives and themes
get_token_news(token)
Aggregated news and social posts for a token
X / Twitter Search
search_x(query, max_results)
Search X/Twitter for recent posts matching a query
DexScreener
dexscreener_search(query)
Search for token pairs across all DEXs
dexscreener_token_lookup(address)
Look up all DEX pairs for a specific token address
dexscreener_trending()
Hottest trending/boosted tokens across all DEXes
dexscreener_pair(chain, pair)
Detailed pair data by chain and pair address
Hyperliquid (Perpetuals)
Crypto perps + TradFi (GOLD, SILVER, TSLA, SP500, and more). Type add hl inside the terminal to connect.
get_hl_config()
Exchange configuration and connection status
get_hl_orderbook(coin)
Level-2 order book for a perpetual pair
get_hl_account_info()
Account equity across all asset classes (crypto + TradFi), margin, and per-dex breakdown
get_hl_positions()
All open positions — crypto + TradFi (GOLD, TSLA, SP500) — with P&L and liquidation prices
get_hl_open_orders()
Pending limit/stop orders
place_hl_order(...)
Place market/limit/stop orders with leverage
cancel_hl_order(coin, order_id)
Cancel a pending order
close_hl_position(coin)
Market-close an open position
set_hl_leverage(coin, leverage)
Set leverage for a coin on Hyperliquid
approve_hl_builder_fee()
One-time builder fee approval for trading
get_hl_tradfi_assets()
List all TradFi/commodity perps (GOLD, TSLA, SP500...)
get_hl_tradfi_price(asset)
Price, spread, and funding for a TradFi asset
Aster DEX (Perpetuals)
Perp futures with leverage. Type add aster inside the terminal to connect.
aster_ping()
Test Aster API connectivity
aster_ticker(symbol)
24h ticker data for a trading pair
aster_orderbook(symbol, limit)
Order book depth data
aster_klines(symbol, interval, limit)
Candlestick/OHLCV data
aster_funding_rate(symbol)
Current funding rate for perpetuals
aster_exchange_info()
Supported symbols, limits, and trading rules
aster_diagnose()
Diagnose Aster API connectivity issues
aster_balance()
Account balances on Aster
aster_positions()
Open positions on Aster
aster_account_info()
Account details and trading status
aster_place_order(...)
Place orders on Aster DEX (market, limit, stop)
aster_open_orders()
Get all pending orders on Aster
aster_cancel_order(symbol, order_id)
Cancel a specific order
aster_cancel_all_orders(symbol)
Cancel all open orders for a symbol
aster_set_leverage(symbol, leverage)
Set leverage (1-125x)
Portfolio & Usage
get_portfolio_summary()
Unified portfolio across all connected trading venues
get_portfolio_risk()
Position concentration, effective leverage, venue allocation
get_usage_summary(period)
LLM usage: token counts, costs, and profit breakdown
System & Health
status
Connection health check — LLM, gateway, tools, exchanges
tools
List all 69 available tools
model
Switch AI model (Claude, GPT, Gemini, Grok, DeepSeek...)
add ai
Switch LLM provider or change your AI key
help
Show all available commands
Social Intelligence (Elfa AI)