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

@genspark/cli

Latest version: v1.16.3

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
npm package Publisher: justin-mainfunc, kira.mainfunc.ai, paul_mainfunc
32 Versions
1.2M Downloads

Scan summary

@genspark/cli was last scanned on 25 Nov 2026 at version 1.16.3. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 32 versions; the latest was published on 25 Nov 2026.
  • Findings: No rules fired in version 1.16.3.
  • Downloads: 1,184,324 downloads.

Versions

32 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.16.3 LATEST 25 Nov 2026 No rules fired
1.16.2 18 Nov 2026 No rules fired
1.16.1 18 Nov 2026 No rules fired
1.16.0 17 Nov 2026 Not shown
1.15.7 17 Nov 2026 Not shown

No rules fired in 1.16.3

Findings

Findings for v1.16.3. 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.16.3; other versions have their own rules, not their own score.

README

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

Genspark CLI (gsk)

One CLI. Every AI capability. Search, generate, analyze, communicate — all from your terminal.

gsk is the command-line interface for the Genspark AI platform. It unifies 130+ commands behind a single binary: web search, image/video/audio generation with 60+ models, document analysis, media transcription, cloud file management, Second Brain knowledge tools, email (Gmail & Outlook), calendar, GitHub, Slack, Notion, Microsoft Teams, OneDrive, SharePoint, AI phone calls, stock and financial data, social media data (Twitter, Instagram, Reddit), scheduled agent runs, and autonomous AI agents — all with clean JSON output for seamless integration with AI coding assistants, automation pipelines, and scripts.

Capability Map
Category What You Get
🔍 Search Web search, image search, maps, scholarly articles, product search
📄 Documents Crawl pages, batch-crawl Q&A, summarize PDFs/docs, file conversion (PDF → DOCX), webpage capture
🎨 Images 15 models: GPT Image 2.5, Gemini (Nano Banana), Flux 3, Seedream 5, Grok Imagine, Qwen Image 3, Z-Image ...
🎬 Videos 22 models: Kling V3/O3, Veo 3.1, MiniMax H3, Wan 3.0, Vidu Q4, PixVerse, Seedance 2.5, Grok Imagine, FLUX 3 Video, FLUX 3 Max ...
🎵 Audio 27 models: Gemini TTS, ElevenLabs, MiniMax, Fish Audio, Seed-Audio, Mureka, Lyria, VibeVoice ...
🧠 Analysis Image/video/audio understanding, OCR, video style replication
📝 Transcribe Whisper, Gemini, ElevenLabs Scribe
☁️ AI Drive Cloud file storage, download, compress
🧰 Second Brain Versioned repos, gists, SQLite / document / vector databases, sandbox compute, sealed secrets
📧 Email Gmail & Outlook: read, search, send, reply, forward, archive, labels, filters, vacation, signatures, attachments
📅 Calendar Google & Outlook: list, free/busy, create, respond, modify, delete events
💬 Collaboration Slack, Microsoft Teams, Notion — send messages, search, upload files, manage channels/pages
📂 Cloud Storage Google Drive, OneDrive, SharePoint, Google Sheets, Google Docs, Google Slides, Google Chat
🐙 GitHub List repos, search/create/update issues
📞 Phone AI-powered phone calls and SMS to businesses
📈 Finance Real-time stock prices, financial ratios/statements, analyst estimates, financial reports
📱 Social Media Twitter/X, Instagram, Reddit — search posts/users, get comments, connections, and more (30 APIs)
🤖 Agents Podcasts, docs, slides, deep research, fact-checking, websites, media generation
⏰ Scheduling One-shot and recurring agent runs — gsk workflow / gsk schedule
🔊 Voice Voice cloning, voice changer, voice design
🕸️ Mesh Secure SSH between your devices over a private tailnet — gsk mesh join / serve / ssh / scp / sftp / forward

For AI Inbox TODOs, see the read-level and pagination guide. gsk inbox todos defaults to a Needs you compact page in the past seven days; counts, details and all-row exports are explicit choices. Use --category <id> or --category_name "<current name>" for a default or custom category. Use --scope all for all categories; --all true removes pagination only. For email actions, choose the action categories from the current --view taxonomy settings and add --kind mail --status active; active mail can also be informational.

Table of Contents

For Team Brain → slides/docs workflows, see the evidence handoff guide: save one retrieval with --save-evidence, inspect it offline with team-brain evidence, carry its versioned citations with task create --evidence-file, and wait in bounded steps with task status --follow --wait-seconds 45.

  • Installation
  • Quick Start
  • Authentication
  • Commands
    • Search & Crawl
    • Image Generation
    • Video Generation
    • Audio Generation
    • Media Analysis & Transcription
    • AI Drive (Cloud Storage)
    • AI Agents & Tasks
    • Connectors (Unified)
    • Service-Level Tools
    • AI Phone Calls
    • Stock Prices
    • Social Media
    • File Transfer
    • Mesh (Secure SSH)
  • Available Models
  • Configuration
  • Output Conventions
  • License

Installation

npm install -g @genspark/cli

Requires Node.js >= 18.

Quick Start

# Log in via browser
gsk login

# Search the web
gsk search "latest AI news"

# Generate an image
gsk img "A beautiful sunset over mountains" -o ./sunset.png

# Crawl a webpage
gsk crawl "https://example.com/article"

Local developer projects, previews, and source deployments

gsk project create --kind web --name "Example" --yes
gsk project bind <project-id>
gsk project status
gsk preflight --kind web --operation preview
gsk preflight --kind web --operation hosted-deploy
gsk service-url --local --port 3000
gsk get_service_url --local --port 3000
gsk hosted deploy-local --source .

Create explicitly asks for confirmation; --yes confirms creation in automation. It never retries creation after a network error. Check your project list and bind the returned/existing project before trying to create another one. Binding and status use the server's owner-authorized developer endpoint.

The nearest ancestor .gsk/project.json binds a checkout:

{"version":1,"project_id":"example-id","kind":"web","base_url":"https://www.genspark.ai"}

Only these four fields are allowed. No command above writes credentials or changes global project configuration. Project selection is --project-id > GSK_PROJECT_ID > nearest binding > legacy global config. The active server still comes from --base-url, GSK_BASE_URL, or global config; a binding for a different server blocks cloud operations even with an explicit project ID. Invalid bindings fail visibly. A different existing/inherited binding is never silently overwritten: use another checkout or explicitly remove the old binding. Concurrent writers use atomic create-if-absent publication.

Preview requires explicit --local, runs before schema fetching or update checks, and needs no login. Ports must be decimal integers in 1–65535. A bounded TCP probe of 127.0.0.1 returns {status, local_only:true, url, reachable, probe, message}; TCP reachability does not imply HTTP/application health. There is no public tunnel and no fallback from a failed remote URL request to localhost.

Preflight operations are preview, hosted-deploy, github, cloudflare, shopify, and android. Checks are advisory and operation-specific: web preview does not require Flutter, and platform hosting does not require local Wrangler or Shopify authorization. Missing login, malformed binding, and unavailable platform checks preserve local check results with actionable status. Local provider login (gh auth login, wrangler login, shopify auth login) is separate from platform connectors and sandbox_auth_* remote sandbox setup.

hosted deploy-local streams a private temporary ZIP snapshot, uploads it, then submits its validated receipt to the existing hosted_deploy approval flow. It does not approve the action, including with --yes. Review the returned pending action/source digest in the project and approve explicitly. The CLI does not run build scripts. Source must include the Wrangler configuration and entry points required by the backend's hosted build pipeline.

Packaging rejects symlinks, non-regular files, traversal, unsafe paths, and case/Unicode-normalization collisions. Exclusions apply at every depth: .env*, .git, node_modules, .wrangler, .gsk, .genspark-code, local credential/config directories and files (including .ssh, .aws, .azure, .config, .npmrc, .netrc, credentials.json, private keys), plus the active custom CLI config file if it is inside the source tree. Limits are 20,000 visited non-excluded entries, 250 MiB ZIP, and 500 MiB expanded source. Source changes detected while packaging abort the upload.

The receipt is saved before submission to .gsk/pending-source-<uuid>.json. This file is retained after submission as a recovery record, not proof of action status. On a dropped response, inspect hosted actions in the project before resubmitting. Upload and submission are never automatically retried. No remote source is substituted when an upload/receipt/server capability fails.

Developer API contract

All paths below are relative to <base_url>/api/tool_cli; calls use existing ApiClient token auth (X-Api-Key), X-GSK-CLI-Caps, and selected X-Project-ID.

Request Response
POST /developer/projects JSON {kind,name} {project:{project_id,kind,name,url}}
GET /developer/projects/{id} (owner-authorized) {project:{project_id,kind,name,url}}
GET /developer/preflight?kind=...&operation=...&project_id=... (project ID omitted when unbound) {checks:[{name,status,code,message,action_url?}],project?:{project_id,kind,name,url}}
POST /hosted/source, raw application/zip, required X-Project-ID HTTP 201 {local_source:receipt}
Existing executeTool('hosted_deploy', {local_source:receipt}) Existing tool envelope/pending approval

Check status is ready, action_required, unknown, or not_applicable. Project/check response objects permit additional server fields but only the documented project/check fields are consumed. Source receipts are passed unchanged: {version:1,owner_cogen_id,project_id,object_key,sha256,size_bytes,expanded_bytes, file_count,created_at,expires_at} (timestamps: integer Unix seconds). The CLI checks project ID, digest, sizes/count, required receipt fields, and expiry before submitting. Backend ownership/digest/expiry validation remains authoritative.

The CLI advertises cli-local-source-v1; its tools cache is isolated from older capability views. The static hosted parent is seeded so existing grouped hosted metadata and legacy flat commands coexist. No new hosted group metadata is needed on old servers. Any future metadata that shadows a static command must be gated to supporting capabilities, not sent to old binaries.

Backend source writes default off. HTTP 503 explains that supported writers must be enabled only after all readers/executors converge; 404/405 reports an unsupported server. Release requires verified backend endpoint support and reader rollout. There is no client-side bypass or remote-source fallback.

Local verification
npm test
# Optional published-client shared-HOME matrix against mocked HTTP transport:
GSK_COMPAT_CLI=/path/to/published/@genspark/cli/dist/index.js npm test

Authentication

Log in with your Genspark account:

gsk login

This opens a browser for authentication and saves the API key plus the effective API base URL to the selected config. The default is ~/.genspark-tool-cli/config.json; use --config <path> or GSK_CONFIG for a separate profile.

Alternatively, provide an API key directly:

# Via environment variable
export GSK_API_KEY="gsk_..."

# Via CLI option
gsk search "query" --api-key "gsk_..."

To check your current identity:

gsk login-info
gsk me          # shorthand

To log out:

gsk logout

Configuration

Config is loaded from three sources (highest priority first):

  1. CLI options — --api-key, --base-url, etc.
  2. Environment variables — GSK_API_KEY, GSK_BASE_URL, GSK_PROJECT_ID
  3. Config file — ~/.genspark-tool-cli/config.json
{
  "api_key": "gsk_...",
  "base_url": "https://www.genspark.ai",
  "project_id": "project_abc123",
  "debug": false,
  "timeout": 1800000
}

Global Options

Option Env Var Default Description
--api-key <key> GSK_API_KEY — API key (required)
--base-url <url> GSK_BASE_URL https://www.genspark.ai API base URL
--project-id <id> GSK_PROJECT_ID — Project ID for access control
--debug — false Enable debug output
--timeout <ms> — 1800000 (30 min) Request timeout
--output <format> — json Output format: json or text
--refresh — — Force refresh cached tool schemas
-y, --yes — — Assume "yes" at confirmation prompts (see Confirmation prompts)
--no-input — — Never prompt interactively; confirmation-required actions fail with exit code 2 on a gated action/value
--config <path> GSK_CONFIG ~/.genspark-tool-cli/config.json Config profile path

Confirmation prompts

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 @genspark/cli

References

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

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229