Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@teinai/cli

Latest version: v1.1.51

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
npm package Publisher: teinai
51 Versions
8.7K Downloads

Scan summary

@teinai/cli was last scanned on 1 Dec 2026 at version 1.1.51. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 51 versions; the latest 5 were published within 4 days (28 Nov – 1 Dec 2026).
  • Findings: No rules fired in version 1.1.51.
  • Downloads: 8,687 downloads.

Versions

51 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.1.51 LATEST 1 Dec 2026 No rules fired
1.1.50 30 Nov 2026 No rules fired
1.1.49 30 Nov 2026 No rules fired
1.1.48 30 Nov 2026 Not shown
1.1.47 28 Nov 2026 Not shown

No rules fired in 1.1.51

Findings

Findings for v1.1.51. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.1.51; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@teinai/cli

The official, zero-dependency Command-Line Interface (CLI) and Model Context Protocol (MCP) bridge for Tein AI.

Run all 25+ generative video, image, audio, reasoning LLM, and 3D mesh models directly from your terminal or connect them natively into Claude Desktop, Claude Code, and Cursor.


Quickstart

1. Zero-Install via npx

Run any model immediately without global installation:

# Generate a high-quality 2K image
npx @teinai/cli run gpt-image-2 --prompt "Neon cyberpunk alleyway in rain, 8k" --quality high -r 2K -o city.png

# Edit an image with GPT Image 2.5 Flare (local files are uploaded automatically)
npx @teinai/cli run gpt-image-2.5-flare --prompt "Make it night time" --input-images ./photo.jpg -o night.png

# Generate a video with Seedance 2.5
npx @teinai/cli run seedance-2-5 --prompt "Drone shot over volcanic beach at sunset" --duration 5 -o video.mp4
2. Global Installation
npm install -g @teinai/cli

Authenticate once with your Tein API key:

tein login

_(Or set export TEIN_API_KEY=sk_live_... in your environment or CI/CD pipelines)._


Usage & Commands

tein run <model-slug> [options]

Generate media outputs with live progress spinners and auto-downloading:

# Video generation with native audio
tein run seedance-2-5 \
  --prompt "Cinematic drone tracking shot over ocean waves at sunset" \
  --duration 5 \
  --generate-audio \
  -o ocean.mp4

# 4K video (Seedance 2.5: 10-bit H.265/HEVC, 3840x2160 at 16:9; works with --creative-mode true)
tein run seedance-2-5 \
  --prompt "Cinematic drone tracking shot over ocean waves at sunset" \
  --duration 5 \
  -r 4k \
  -o ocean-4k.mp4

# Make a quick 480p draft, then finalize the same take at 4K (1080p when -r is left out).
# A finalize reuses the draft's prompt and settings, so send neither again.
tein run seedance-2-5 --prompt "Cinematic drone shot over ocean waves" --duration 5 --draft true --async
tein run seedance-2-5 --finalize <draft-job-id> -r 4k -o final-4k.mp4

# Image-to-Video (Auto-uploads local image to S3 CDN)
tein run seedance-2-5 \
  --prompt "Camera zooms in, dynamic lighting" \
  --image ./character.png \
  -o animated.mp4

# Speech & Voice TTS
tein run seed-audio-1-0 \
  --prompt "Welcome to the Tein AI platform." \
  --speaker en_female_warm \
  -o speech.wav

# Frontier Reasoning & Code LLM
tein run gpt-6-astra \
  --prompt "Implement an optimized LRU cache in TypeScript with tests."
tein upload <file-path>

Directly upload local images, audio, or video files to Tein AI's high-speed S3 CDN:

tein upload ./my-reference.png

Returns a permanent CDN URL that you can use across all API calls and generation models.

tein models [category]

List all available models with pricing, categories, and provider info:

tein models video
tein models image
tein models text
tein pricing [model-slug]

Print every published price (Starter, Plus and Scale) for every model. No API key.

tein pricing
tein pricing seedance-2-5 --json

--json prints the same payload as GET https://api.tein.ai/v1/pricing/models. Pass a catalog slug or API model id to keep one model.

tein info <model-slug>

Inspect parameter schemas, default values, resolution constraints, and supported modes:

tein info seedance-2-5
tein status <request-id> [--wait] [-o file]

Check the status of any queued generation job and download the output asset:

tein status 673f8a9b1c2d3e4f5a6b7c8d --wait -o output.mp4
Balance, usage and balance history

Read only: nothing runs and nothing is charged. Each prints a short summary, and --json prints the API's own JSON (GET /v1/balance, /v1/usage, /v1/balance/transactions, the same as the MCP tools get_balance, get_usage, get_balance_history). They cover the whole workspace, wherever a run was started: the website, the API, MCP or this CLI.

# Balance, what this key can spend, Auto top up, spend this month and in the last 30 days
tein balance

# Usage by model, channel, key and time
tein usage                                   # last 30 days, one row a day (default)
tein usage --range week --channel api        # last 12 weeks, API runs only
tein usage --range custom --from 2026-11-01 --to 2026-11-19 --model seedance-2-5 --json

# Balance history, newest first
tein transactions --limit 20 --type usage,refund
tein transactions --after <next_cursor>      # the next page (printed under each page)
Option Command Values
--range usage hour (last 24 h), day (last 30 days, default), week (last 12 weeks), month (last 12 months, not this month), custom
--from, --to usage YYYY-MM-DD (UTC), with --range custom only, at most 366 days
--model usage a model id, e.g. seedance-2-5
--channel usage website, api, mcp, cli
--limit transactions 1 to 100, default 50
--type transactions one or more of usage, refund, topup, auto_topup, credit_grant, adjustment, referral, referral_cash, subscription, forfeit, starter
--after transactions the next_cursor of the previous page

tein history is the same as tein transactions. A bad value is refused with the API's message, for example range must be one of hour, day, week, month, custom.

tein --version

Prints the installed version, the same as npm ls -g @teinai/cli.


Model Context Protocol (MCP) Integration

Connect all Tein AI models directly to Claude Desktop and Claude Code.

For Claude Desktop:

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "tein": {
      "command": "npx",
      "args": ["-y", "@teinai/cli", "mcp"],
      "env": {
        "TEIN_API_KEY": "sk_live_your_actual_api_key_here"
      }
    }
  }
}
For Claude Code:
claude mcp add --transport http tein https://mcp.tein.ai/mcp --header "Authorization: Bearer $TEIN_API_KEY"

Call the get_pricing tool for every model's prices. model is optional (seedance-2-5). The tool does not need a key. It returns the same JSON as GET /v1/pricing/models.


Common Flags for tein run

Flag Description Example
-p, --prompt <text> Text prompt for generation (required) --prompt "A futuristic city"
-o, --output <file> Download output file to disk -o render.mp4
--image <url\|path> Image input (auto-uploaded if local path) --image ./photo.jpg
--aspect-ratio <ratio> Aspect ratio; tein info <model> lists them --aspect-ratio 16:9
--endpoint <name> GPT Image pricing: dynamic, token, flat, medium --endpoint flat
-q, --quality <level> GPT Image quality: low, medium, high, xhigh, max -q high
--input-images <path> GPT Image reference/edit image (auto-uploaded) --input-images ./photo.jpg
-d, --duration <secs> Video duration in seconds (4-30s) --duration 5
--generate-audio Enable synchronized sound effects & music --generate-audio
-r, --resolution <res> Output resolution (720p, 1080p, 1K, 2K, 4K) -r 1080p
--async, --no-wait Queue task and return request ID immediately --async
--json Return raw JSON response --json
--api-key <key> Override API key for single execution --api-key sk_live_...

License

MIT © Tein AI

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @teinai/cli

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229