Environment:ARCANGEL0 EVA Network Access
| Knowledge Sources | |
|---|---|
| Domains | Infrastructure, Security |
| Last Updated | 2026-10-29 12:00 GMT |
Overview
Outbound network access (HTTP/HTTPS) for LLM provider API calls, web search engine queries, and remote image pulls.
Description
This environment provides the network connectivity required by Mitsu's cloud-dependent features. LLM provider requests (`request_agent_turn`, `list_models`, `check_reasoning_support`) require HTTPS access to the configured provider endpoint. Web search (`search_web`) requires HTTP/HTTPS access to configured search engines (DuckDuckGo, Google, Bing, Brave, Mojeek, Ecosia, Yahoo, Startpage, or API-based engines like Exa, Tavily, Serper, SerpApi, Firecrawl). SearXNG container setup requires network access to pull the Docker image from GHCR or Docker Hub. The `urllib.request` stdlib module handles all HTTP communication — no external HTTP library is needed.
Usage
Use this environment for any implementation that makes outbound network calls: LLM provider requests, web search queries, SearXNG image pulls, and web page fetching. Local-only providers (Ollama) and local-only searches (searchsploit) do not require external network access.
System Requirements
| Category | Requirement | Notes |
|---|---|---|
| Network | Outbound HTTPS | Required for cloud LLM providers and web search |
| Firewall | Allow provider endpoints | Varies by configured provider |
Dependencies
System Packages
None beyond the base Python environment.
Python Packages
- `urllib.request` (stdlib)
- `urllib.error` (stdlib)
- `urllib.parse` (stdlib)
Credentials
No additional environment variables. API keys for providers and search engines are stored in `~/.config/mitsu/credentials.json`.
Quick Install
# Verify network access to a provider endpoint
curl -s -o /dev/null -w "%{http_code}" https://api.openai.com/v1/models
# Verify web search access
curl -s -o /dev/null -w "%{http_code}" https://html.duckduckgo.com/html/?q=test
Code Evidence
HTTP request setup from `providers/client.py:181-184`:
endpoint = base_url if base_url.endswith("/chat/completions") else f"{base_url}/chat/completions"
headers = {"Content-Type": "application/json"}
if api_key:
headers["Authorization"] = f"Bearer {api_key}"
Web search URL definitions from `search/engines.py:63-74`:
_SERP_URLS = {
"duckduckgo": (
"https://html.duckduckgo.com/html/?q={query}",
"https://lite.duckduckgo.com/lite/?q={query}",
),
"google_html": ("https://www.google.com/search?q={query}&num=10",),
"bing_html": ("https://www.bing.com/search?q={query}",),
"brave_html": ("https://search.brave.com/search?q={query}",),
}
Docker image pull from `services/searxng.py:101-104`:
for image in _IMAGES:
progress(f"Downloading the official SearXNG image from {image.split('/')[0]}…")
try:
_run(runtime, ["pull", image], timeout=900)
return image
except SearXNGSetupError as error:
failures.append(str(error))
Common Errors
| Error Message | Cause | Solution |
|---|---|---|
| `could not reach the provider` | Network unreachable or DNS failure | Check network connectivity and DNS |
| `Provider request failed (429)` | Rate limited | Mitsu auto-retries; check provider quota |
| `Search provider error` | Web search engine unreachable | Check network and search engine availability |
| `Could not fetch the official SearXNG image` | Cannot pull Docker image | Check Docker Hub/GHCR connectivity |
Compatibility Notes
- Ollama: Local provider at `http://localhost:11434/v1` — no external network required.
- searchsploit: Local Exploit-DB database — no network required.
- Proxy support: Mitsu uses stdlib `urllib` which respects `HTTP_PROXY`/`HTTPS_PROXY` environment variables.
- Redirect handling: Custom `HTTPRedirectHandler` only follows `http`/`https` redirects for web search.