Skip to main content

Agent-native CLI for TinyFish Web Agent — web search, clean page extraction, and natural-language browser automation via the TinyFish REST APIs.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cli_anything_tinyfish-0.1.1.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cli_anything_tinyfish-0.1.1-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file cli_anything_tinyfish-0.1.1.tar.gz.

File metadata

  • Download URL: cli_anything_tinyfish-0.1.1.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for cli_anything_tinyfish-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6c4ffdd40a6a781c2a251921d549357b5fcf59277a187bd8dc24433af0a71d2d
MD5 48a8947f2ae1d125afa5308551428257
BLAKE2b-256 b07062f9beead5108d2156c28e99c5235e24fe9be8edf80eaa65b51dd8f03b14

See more details on using hashes here.

File details

Details for the file cli_anything_tinyfish-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for cli_anything_tinyfish-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 02a2d9437ac6acb6c3002823062a914d3c4c97d3cd4097f3a80942a9ee92761f
MD5 ce4b91910d673e3beef4589d0a3a9f84
BLAKE2b-256 3bbfa9919fd9493ca409eb84358c0bb083a1b00768c36a6cad7327311542df64

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page