AnthropicProvider. Your application runs the model and tool loop; Valyu returns content and source URLs. To use Valyu inside the Claude chat app, connect via MCP.
Installation
Install the Valyu and Anthropic packages:Basic usage
The Anthropic provider handles the integration:How it works
TheAnthropicProvider handles tool registration, execution, and conversation flow for you - no manual function definitions or tool-calling logic. Claude decides when to search; the provider runs the call and feeds results back into the conversation.
Search parameters Claude can set
Search parameters Claude can set
Claude chooses these per query based on context:
max_num_results- 1-20 for standard keys, up to 100 with a special API keyincluded_sources/excluded_sources- target or exclude datasetscategory- guide search to a topicstart_date/end_date- time-bounded searchesrelevance_threshold- filter by relevance (0-1)
AnthropicProvider reference
AnthropicProvider reference
Additional resources
Anthropic API Docs
Official Anthropic Claude documentation
Valyu API Reference
Complete Valyu API documentation
Python SDK
Full Python SDK documentation
Get API Key
Get 2,000 free credits a month with a work email (1,000 with a personal email; add a card after your first month to keep them coming)