Free, zero-dependency, open-source drop-in replacement for the Tavily Search API.
Free, model-free web retrieval for LLMs. Search across engines, deduplicate results, extract useful content, and return evidence to your AI agent.
A free, zero-dependency, open-source library compatible with the Tavily search API.
Taviless gives your AI agents, LangChain workflows, CrewAI teams, and local LLMs real-time web search with clean, token-dense markdown content extraction—without API keys, subscriptions, credit cards, or Docker containers required.
Taviless was vibe-coded in about 20 minutes, taking roughly two hours from a random whiteboard idea to a fully tested, production-packaged Python library.
Most search APIs for AI agents (like Tavily) charge monthly subscriptions, gate basic capabilities behind credit cards, and throttle agent exploration. When building autonomous agents, you shouldn't need a paid API key just to verify facts or read a webpage.
Furthermore, many proprietary search engines bias heavily toward commercial SEO pages or hallucinate when asked for long-tail historical records. Taviless was built to provide:
To see why model-free, primary-source web retrieval matters, consider this query:
"NBS Technical News Bulletin July 1970 Vol 54 No 7 Erlenmeyer flask transducer syringe page 148"
When asked about this obscure physical laboratory apparatus from 1970, commercial LLMs frequently claim the citation is "unverified", "non-existent", or completely hallucinate the contents.
Taviless runs multi-engine discovery with deep archival traversal and retrieves the exact digitized print scan from the Internet Archive in seconds:
python examples/demo_nbs_1970.py ====================================================================== Taviless Archival Retrieval Showcase: 1970 NBS Technical News Bulletin ====================================================================== [1] Querying engines: 'NBS Technical News Bulletin July 1970 Vol 54 No 7...' [2] Results retrieved in 8.19s: #1 Title: Technical News Bulletin - volume 54 no. 7 - Archive.org URL: https://archive.org/details/technicalnewsbul547nati Snippet: T1 .U45 v.54 no.7 1970 Camera Sony Alpha-A6300 (Control)... The NBS Technical News Bulletin is a publication of the U.S. Government... #2 Title: PDF United States. National Bureau of Standards. Technical News Bulletin... URL: https://ia601803.us.archive.org/34/items/sim_dimensions-national-bureau-of-standards_1970-07_54_7/... Snippet: Technical News Bulletin JULY 1970 / VOL. 54, NO. 7 / ISSUED MONTHLY... ====================================================================== [SUCCESS] Primary-source historical document located without hallucinations! ====================================================================== No hallucinations. Just verifiable, primary-source evidence returned directly to the agent.
Zero Docker required. Works out of the box on Windows, macOS, and Linux:
# Pure Python standard library install (zero 3rd-party dependencies!) pip install taviless # Optional: with high-density trafilatura article extractor pip install "taviless[extract]" 🚀 Quickstart: Drop-in Tavily Search Replacement Simply change your import:
# Before: from tavily import TavilyClient from taviless import TavilyClient # Initialize client (api_key is accepted for compatibility, but optional) client = TavilyClient() # 1. Basic fast search (~300ms) response = client.search("python asyncio event loop", search_depth="basic", max_results=3) print(response) Tavily-Compatible Output: { "query": "python asyncio event loop", "results": [ { "title": "Event loop — Python 3.14.0 documentation", "url": "https://docs.python.org/3/library/asyncio-eventloop.html", "content": "The event loop is the core of every asyncio application...", "score": 0.98, "raw_content": null } ], "response_time": 0.32, "answer": null, "images": [] } 2. Direct URL Content Extraction (client.extract) Extract clean, token-dense markdown from target URLs in parallel (compatible with Tavily's extract API):
data = client.extract(urls=["https://peps.python.org/pep-3156/"]) for item in data["results"]: print(f"URL: {item['url']}") print(f"Content: {item['raw_content'][:300]}...") 🤖 Example: LLM Tool Calling with Grounded Citations Here is a complete, working example showing how an LLM (e.g., OpenAI gpt-4o) calls Taviless, receives structured source evidence, and synthesizes a grounded answer with citations:
import json from openai import OpenAI from taviless.adapters import get_openai_tool, execute_openai_tool_call client = OpenAI() messages = [ {"role": "system", "content": "You are a research assistant. Always back up claims with search evidence."}, {"role": "user", "content": "What are the latest updates on Python 3.14?"} ] # 1. Send query to LLM with Taviless tool definition response = client.chat.completions.create( model="gpt-4o", messages=messages, tools=[get_openai_tool()], ) message = response.choices[0].message # 2. Check if the LLM invoked Taviless search if message.tool_calls: messages.append(message) for tool_call in message.tool_calls: print(f"-> Agent invoked tool: {tool_call.function.name}") print(f"-> Arguments: {tool_call.function.arguments}") # Execute Taviless tool call tool_result = execute_openai_tool_call(tool_call.function.arguments) # Feed retrieved sources back into conversation messages.append({ "role": "tool", "tool_call_id": tool_call.id, "name": tool_call.function.name, "content": tool_result, }) # 3. Model synthesizes final grounded answer with sources final_response = client.chat.completions.create( model="gpt-4o", messages=messages, ) print("\nFinal Grounded Answer:\n") print(final_response.choices[0].message.content) 🧠 Advanced Parallel RAG Search When building RAG agents, search snippets are often too brief. Switch to search_depth="advanced" to crawl the top URLs in parallel and extract ad-free, token-dense markdown:
client = TavilyClient() response = client.search( "latest discoveries in solid state battery commercialization", search_depth="advanced", max_results=3, include_raw_content=False, ) for result in response["results"]: print(f"Title: {result['title']}") print(f"URL: {result['url']}") print(f"Body Content:\n{result['content'][:500]}...\n") ⏱️ Reverse-Chronological Temporal Grounding Most web scrapers fall into the Static Homepage Trap: when you search for "latest model", they crawl the vendor's root homepage and grab whatever marketing banner was written months ago.
Taviless uses Reverse-Chronological Temporal Grounding:
# Automatically detects temporal intent and surfaces the freshest sub-releases results = client.search("latest AI model releases", search_depth="advanced") 🧩 Framework Adapters 1. LangChain from taviless.adapters import get_langchain_tool # Drop-in replacement for TavilySearchResults tavily_tool = get_langchain_tool(max_results=5, search_depth="basic") # Bind directly to your model or agent llm_with_tools = model.bind_tools([tavily_tool]) 2. CrewAI from crewai import Agent from taviless.adapters import get_crewai_tool search_tool = get_crewai_tool(max_results=3, search_depth="advanced") researcher = Agent( role="Senior Market Researcher", goal="Gather up-to-date market data", tools=[search_tool], verbose=True, ) 🔎 Response Fields: What's Real Taviless has no model in the loop, so a few fields differ from Tavily's:
While Taviless provides a robust multi-engine gateway out of the box, keep the following real-world characteristics in mind:
Upstream Interface Changes: Public search engines (DuckDuckGo, SearXNG public instances) do not provide SLA-backed APIs; their HTML markup, headers, and anti-bot challenges can change periodically. Taviless employs a multi-tiered fallback (SearXNG JSON $\rightarrow$ DuckDuckGo POST $\rightarrow$ DuckDuckGo GET $\rightarrow$ DuckDuckGo Lite HTML table) to maintain resilience.
Rate Limiting & Throttling: If you run heavy parallel agent swarms sending dozens of queries per second, public gateways will temporarily throttle or rate-limit automated IP requests.
Private SearXNG Node (recommended for production): SearXNG is Taviless's primary engine. A private instance gives you multi-engine aggregation, no shared rate limits, and keeps your queries private:
docker run -d -p 8080:8080 -e "SEARXNG_BASE_URL=http://localhost:8080/" searxng/searxng export TAVILESS_SEARXNG_URL="http://localhost:8080" SearXNG ships with JSON output disabled. Add json to search.formats in its settings.yml (formats: [html, json]) or Taviless will get 403s.
When a private URL is set, Taviless never falls back to public SearXNG gateways (your queries stay on your node); in auto mode it can still fall back to DuckDuckGo.
Public gateways (best-effort): with no private URL, Taviless races a built-in list of public SearXNG instances in parallel and uses the first that answers. Many public instances disable JSON output or rate-limit bots, and your queries go to third-party servers, so don't send anything sensitive through them. Or pass it in code: TavilyClient(searxng_url="http://localhost:8080").
# Run unit test suite (41 passing tests) python -m unittest discover tests # Run live verification python test_run.py # Run the 1970 NBS archival demonstration python examples/demo_nbs_1970.py 📄 License MIT License. See LICENSE for details. Free for commercial, personal, and research use.
search tavily ai agents langchain crewai rag searxng duckduckgo web-search
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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.
None of the files in this release were uploaded with provenance metadata.
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.




