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 — web search, clean page extraction, and natural-language browser automation from your terminal, over TinyFish's REST APIs.

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>

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.0.tar.gz (10.2 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.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cli_anything_tinyfish-0.1.0.tar.gz
  • Upload date:
  • Size: 10.2 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.0.tar.gz
Algorithm Hash digest
SHA256 969826552407ea6f607d4e688269ecbfbabe40dd1569fe1a60ec4e12d7ef25c6
MD5 a56956a4836607447bf42d2968ad5c0b
BLAKE2b-256 7972b17a619423e95a65a3e5be46f167e1dd4a0bc2a339196678b7d1c207ce0d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cli_anything_tinyfish-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d4e3562654f52635051869d768f1a4e7cb33a7327af6ede60042f5ed666babdf
MD5 77f81d4244749970a1df99f2a7ab9526
BLAKE2b-256 f1d19d18126a9e8b43bfef60499cff2be61032b64a0e0048c104c9a77064c75b

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