CLI for TechSnif
v0.6.1Query TechSnif story clusters from your terminal: multi-source coverage links, social discussion URLs, keyword search, editorial articles, trending and timeline data, and a live story stream, all with structured JSON output. Works well for OpenClaw skills, shell scripts, CI jobs, and any automation that needs structured tech news data. For the full picture on agent access, see our agents overview.
Quick Start
The public CLI is API-only. It talks to https://api.techsnif.com, does not need API keys, and exposes only the stable public command set.
npx @techsnif/cli stories --sort newest --limit 5 --json TechSnif CLI for OpenClaw
TechSnif CLI is a strong fit for OpenClaw because it is direct, JSON-friendly, and easy to wrap in skills. But it is not OpenClaw-specific. The same commands work for local shell scripts, CI jobs, agent runtimes, internal automations, and any workflow that wants a clean terminal interface to public TechSnif data.
If you want a ready-made OpenClaw skill, use the TechSnif skill on ClawHub.
If you prefer chat-native tool use, use MCP. If you prefer command execution and shell composition, use the CLI. Both sit on top of the same public intelligence surface.
Install
Install globally if you want a persistent techsnif command, or run it on demand with npx. The current release is v0.6.1.
Global Install
npm install -g @techsnif/cli Use techsnif ... directly in any shell session.
Run Without Installing
npx @techsnif/cli --help Good for one-off use, CI jobs, and agent workflows.
What You Can Do
The public package (v0.6.1) exposes thirteen read-only commands. Story commands return story clusters: ranked groupings of coverage from multiple publishers (TechCrunch, The Verge, Ars Technica, Reuters, and others). TechSnif is just another source in the cluster alongside the original outlets.
stories
Browse top story clusters ranked by prominence or newest, with publisher, tier, topic, and discussion filters.
story
Get full story cluster detail with all coverage links and direct social post URLs (tweets, Reddit, LinkedIn, Bluesky).
search
Search across story clusters by headline keyword, with optional publisher and platform filters.
timeline
Replay the ranking history of a story: rank, tier, commentary, and coverage at each pipeline snapshot.
changes
List story clusters added or updated since a timestamp, with a cursor for polling.
trending
Show stories or articles gaining momentum right now, ranked by velocity.
watch
Stream new and updated stories live from the TechSnif SSE feed, with topic and tier filters.
events
List upcoming tech industry events with dates, locations, and URLs.
articles
List TechSnif editorial articles, filtered by category or tag.
articles search
Full-text search over TechSnif article titles and excerpts, ranked by relevance.
article
Get a full TechSnif article by slug, including the complete body text.
leaderboard
Rank sources and authors by story coverage over 7-day, 30-day, or all-time windows.
platforms
List social discussion platforms active across current stories, with story counts per platform.
Watch: the live stream
techsnif watch [--topics a,b] [--tier 1|2|3] [--json]
watch holds an open connection to TechSnif's live SSE feed at GET /api/stream and prints each story.new and story.updated event the moment it happens. No polling, no cron.
techsnif watch --topics ai --tier 2 --topics takes comma-separated topic slugs and delivers stories matching at least one. --tier sets a minimum headline tier (1=standard, 2=major, 3=top story). Both filters are applied server-side.
If the connection drops, watch reconnects with exponential backoff (up to 5 attempts) and resumes from the last seen event id via the Last-Event-ID header, so you do not miss events between connections. With --json it emits one JSON object per line ({ event, id, story }), ready for jq or an agent runtime.
Command Reference
Every command supports --json and --api-url.
techsnif stories [--sort rank|newest] [--tier 1|2|3] [--publisher ...] [--platform ...] [--has-discussion] [--since ...] [--topic ...] [--limit ...] [--offset ...]
List top story clusters. Sort by prominence (default) or newest. Filter by headline tier, lead publisher, discussion platform, topic slug, or a since date. Max 80 results.
techsnif stories --topic ai --tier 2 --limit 10 --jsontechsnif story <slug> [--platform ...] [--publisher ...] [--brief] [--open]
Get full story cluster detail: all coverage links, direct URLs to social discussion posts, and the TechSnif article when available. --brief skips the article body, --open opens URLs in your browser.
techsnif story meta-youtube-social-media-trial --platform x --jsontechsnif search <query> [--publisher ...] [--platform ...] [--limit ...] [--offset ...]
Search story clusters by headline keyword, ranked by relevance. Max 50 results.
techsnif search "AI chip shortage" --limit 5 --jsontechsnif timeline <slug>
Ranking history of a story cluster: rank, tier, commentary count, and coverage count at each snapshot. See how a story rose, peaked, or faded.
techsnif timeline meta-youtube-social-media-trial --jsontechsnif changes [--since ...] [--limit ...]
Story clusters added or updated since a timestamp (default: 24 hours ago). Rerun with the returned cursor to poll without refetching everything.
techsnif changes --since 2026-08-17T00:00:00Z --jsontechsnif trending [--type stories|articles] [--hours ...] [--limit ...]
Stories gaining momentum right now, ranked by velocity, or trending TechSnif articles from the last 48 hours.
techsnif trending --type stories --hours 12 --jsontechsnif watch [--topics a,b] [--tier 1|2|3]
Stream new and updated stories live from the SSE feed at /api/stream. See the highlighted section above for filters and reconnect behavior.
techsnif watch --topics ai --tier 2techsnif events [--limit ...]
List upcoming tech industry events with dates, locations, and URLs. Max 50 results.
techsnif events --limit 10 --jsontechsnif articles [--category ...] [--tag ...] [--limit ...] [--offset ...]
List TechSnif editorial articles. Filter by category (AI, Startups, Venture, Robotics) or tag.
techsnif articles --category AI --limit 5 --jsontechsnif articles search <query> [--limit ...] [--offset ...]
Full-text search over TechSnif article titles and excerpts, ranked by relevance.
techsnif articles search "open source robotics" --jsontechsnif article <slug> [--brief]
Get a full TechSnif article by slug, including the complete body text. --brief returns metadata and excerpt only.
techsnif article ai-chip-shortage-deep-dive --brief --jsontechsnif leaderboard [--tab sources|authors] [--window 7d|30d|all] [--topic ...] [--limit ...]
Which publications and journalists drive the most tech story coverage, optionally filtered by topic.
techsnif leaderboard --tab authors --window 7d --jsontechsnif platforms
List social discussion platforms active across current stories, with story counts per platform.
techsnif platforms --jsonExample Commands
techsnif stories --json
techsnif stories --sort newest --limit 10 --json
techsnif stories --publisher TechCrunch --json
techsnif stories --topic ai --tier 3 --json
techsnif stories --platform x --has-discussion --json
techsnif story meta-youtube-social-media-trial --json
techsnif story meta-youtube-social-media-trial --platform x --json
techsnif search "AI chip shortage" --json
techsnif timeline meta-youtube-social-media-trial --json
techsnif changes --since 2026-08-17T00:00:00Z --json
techsnif trending --type stories --hours 12 --json
techsnif watch --topics ai --tier 2
techsnif articles --category AI --json
techsnif articles search "robotics" --json
techsnif article ai-chip-shortage-deep-dive --brief --json
techsnif leaderboard --tab authors --window 7d --json
techsnif events --json
techsnif platforms --json JSON Output
Every public command supports --json. Request/response commands return a stable envelope that works well for shell pipelines, automation, and AI tools. watch --json streams one JSON object per line instead.
{
"ok": true,
"data": {},
"targetEnv": "https://api.techsnif.com"
} Public Scope
The public CLI is intentionally narrow. It only ships read-only public commands and does not expose private operator workflows, direct database access, or internal provenance tooling.
| Included | Not Included |
|---|---|
stories, story, search, timeline, changes, trending, watch, events, articles, articles search, article, leaderboard, platforms | DB-backed or internal operator commands |
Public API requests to api.techsnif.com | Private production access or shell/database control |
| Structured JSON output for scripts and agents | Repo-local internal workflows |
Development Overrides
The default target is https://api.techsnif.com. For local development or staging, override it with --api-url.
techsnif stories --api-url http://localhost:4321 --json CLI vs MCP
Use the CLI when you want something direct and scriptable from a terminal, especially in OpenClaw-style skill workflows. Use MCP when you want an AI client like Claude Desktop or Cursor to call TechSnif tools inside chat.
- Great for shell scripts, agents, and CI
- Simple
--jsonoutput - Live stream watching with
watch - Fastest path from terminal to data
- Best for chat-based AI clients
- Structured tool calling inside assistants
- Hosted endpoint, zero install
- Helpful when discoverability matters
Security Notes
The public package is API-only and intentionally constrained for public distribution. It does not bundle internal ops code, does not require credentials, and is designed to be safe for general use against TechSnif's public API.
The CLI also sanitizes terminal-bound output and rejects non-HTTP API targets, so it stays boring in the best way: simple, read-only, and predictable.
CLI questions people search for
This page now answers the practical questions developers and agent builders ask before choosing a terminal based news workflow.
What is the TechSnif CLI used for?
The TechSnif CLI gives agents, scripts, and operators a terminal-friendly way to fetch story clusters, coverage links, social discussion URLs, search results, articles, trending and timeline data, tech events, and a live story stream from TechSnif with structured JSON output.
How are story clusters different from single-source articles?
A story cluster groups coverage of the same topic from multiple publishers (TechCrunch, The Verge, Ars Technica, etc.) into one ranked unit. TechSnif is just another source in the cluster alongside the original publishers. You get the full picture instead of one outlet perspective.
Is the TechSnif CLI good for OpenClaw?
Yes. The CLI is especially useful for OpenClaw style skills and terminal workflows because it is simple to invoke, outputs stable JSON, and does not require authentication.
Do I need an API key to use the TechSnif CLI?
No. The public CLI targets TechSnif public endpoints and is intentionally designed to work without API keys, user accounts, or private infrastructure access.
When should I use the CLI instead of MCP?
Use the CLI when you want direct terminal access, shell composition, cron jobs, CI automation, live stream watching, or lightweight agent workflows. Use MCP when you want the assistant to call tools inside a chat client.