Skip to main content

cli-anything-tinyfish

Agent-native CLI for the TinyFish Web Agent — all four TinyFish products from your terminal, over the REST APIs: Search (ranked web results), Fetch (clean page extraction), Agent (natural-language browser automation), and Browser (remote CDP sessions for Playwright/Puppeteer control).

Built for the CLI-Anything Hub: JSON on stdout, JSON errors on stderr, exit codes that mean something, API-key auth from the environment. No browser OAuth, ever — which is the point: TinyFish's official MCP server requires an interactive OAuth 2.1 browser flow, which headless agents and kiosk machines can't complete. This CLI talks to the REST APIs (X-API-Key) instead.

Install

pip install cli-anything-tinyfish

Authenticate

Create a free key at agent.tinyfish.ai/api-keys:

export TINYFISH_API_KEY="sk-tinyfish-..."
cli-anything-tinyfish auth status

Search and fetch are credit-free; agent runs consume TinyFish credits.

Use

# Search the web
cli-anything-tinyfish search "best react state management" --location US --pretty

# Fetch up to 10 URLs as clean markdown (JS-rendered, boilerplate stripped)
cli-anything-tinyfish fetch https://example.com/article --format markdown

# Natural-language browser automation
cli-anything-tinyfish run "Extract the pricing table as JSON" --url https://example.com/pricing

# Async: submit, poll, cancel
cli-anything-tinyfish run "goal" --url https://example.com --submit
cli-anything-tinyfish runs get <run_id>
cli-anything-tinyfish runs list --status RUNNING
cli-anything-tinyfish runs cancel <run_id>

# Remote browser session (returns cdp_url for Playwright/Puppeteer/CDP)
cli-anything-tinyfish browser create --url https://example.com

Every command supports --json (default) and --pretty.

For AI agents

The skill definition lives at cli_anything/tinyfish/skills/SKILL.md. Feed it to any SKILL-compatible agent (Claude Code, OpenClaw, Codex, …) and the agent can drive TinyFish through this CLI with plain shell access.

Development

pip install -e ".[dev]"
python3 -m pytest cli_anything/tinyfish/tests/test_core.py -v     # unit (no network)
TINYFISH_API_KEY=sk-... python3 -m pytest cli_anything/tinyfish/tests/test_full_e2e.py -v  # e2e (credit-free endpoints only)

Related

License

MIT © Jason Brashear

Metadata

Release files for cli-anything-tinyfish 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cli-anything-tinyfish 0.1.1
File Size Uploaded Provenance
cli_anything_tinyfish-0.1.1.tar.gz 10.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for cli-anything-tinyfish 0.1.1
File Interpreter ABI Platform
cli_anything_tinyfish-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 22.4 kB

Release files / cli_anything_tinyfish-0.1.1.tar.gz

Download URL cli_anything_tinyfish-0.1.1.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6c4ffdd40a6a781c2a251921d549357b5fcf59277a187bd8dc24433af0a71d2d
BLAKE2b-256 checksum
How to use checksums
b07062f9beead5108d2156c28e99c5235e24fe9be8edf80eaa65b51dd8f03b14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release files / cli_anything_tinyfish-0.1.1-py3-none-any.whl

Download URL cli_anything_tinyfish-0.1.1-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
02a2d9437ac6acb6c3002823062a914d3c4c97d3cd4097f3a80942a9ee92761f
BLAKE2b-256 checksum
How to use checksums
3bbfa9919fd9493ca409eb84358c0bb083a1b00768c36a6cad7327311542df64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Security for cli-anything-tinyfish 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page