Skip to main content

Overview

ArgentOS includes two web tools: web_search for searching the internet and web_fetch for retrieving content from specific URLs. Both are available to your agent automatically once configured.

Setup

Web search requires an API key from one of two supported providers.
  1. Get a free API key at brave.com/search/api
  2. Configure it in one of three ways:
Option A: Config file (recommended) Add to ~/.argentos/argent.json:
Option B: Environment variable Set BRAVE_API_KEY in the Gateway environment. Option C: Interactive setup

Perplexity Sonar (AI-Synthesized Answers)

Perplexity returns AI-generated answers with citations instead of a list of links.
Perplexity keys starting with pplx- connect directly. Keys starting with sk-or- route through OpenRouter. The agent uses this tool to search the internet for current information.

Parameters

Output (Brave)

Output (Perplexity)

web_fetch

Retrieves and extracts readable content from a URL. Useful when the agent needs to read a specific page.

Parameters

Security

  • Private IPs, localhost, and cloud metadata endpoints are blocked (SSRF protection)
  • Readability mode extracts article content, stripping navigation and ads
  • Optional Firecrawl integration for JavaScript-heavy pages

Configuration Options

All options in ~/.argentos/argent.json under tools.web.search:

Rate Limits

  • Brave free tier: 1 request per 1.1 seconds (enforced automatically)
  • Perplexity: No client-side rate limit
  • Results are cached for 15 minutes by default to reduce API calls

Without an API Key

If no API key is configured, web_search returns a helpful error with setup instructions. The agent will tell you it can’t search the web and suggest how to enable it.