โ† Back to Blog

How to Run an AI Web Search & Research Agent with OE Runtime

Automate competitive research, market analysis, and topic summaries. OE Runtime lets you run a Perplexity-powered research agent locally โ€” searches the web, synthesises findings, and delivers structured reports automatically.

๐Ÿ”
Step 1
Search
Run multiple targeted web searches and collect top results with titles, sources, and summaries.
Step 2
Synthesise Findings
Identify themes across sources, flag conflicting data, and select the most credible citations.
Step 3
Report
Produce a structured report with key findings, trends, cited sources, and actionable recommendations.

The Agent YAML

Create a file called agent.yaml inside a web-search/ directory:

name: Research Agent
description: Search the web and summarise findings with citations
instructions: |
  You are a research agent. Use web search to find current, accurate information.
  Always cite your sources and provide concise, well-structured summaries.
  Complete all steps fully before writing your report.
steps:
  - name: Search
    content: |
      Run 3 separate web searches on the following topics:
      1. Latest AI agent frameworks released in 2025
      2. Enterprise AI automation adoption trends 2025
      3. Top open-source LLM tools for business automation

      For each search, note the top 3 results: title, source, URL, and a one-sentence summary.
  - name: Synthesise Findings
    content: |
      From the 9 sources gathered:
      - Identify the top 5 themes that appear across multiple sources
      - Note any conflicting information or differing perspectives
      - Select the 5 most credible and relevant sources to cite in the final report
  - name: Report
    content: |
      Produce a structured research summary:

      Key Findings:
      [3-5 bullet points covering the main insights]

      Trends:
      [Top themes identified across sources]

      Sources:
      [Numbered list: title, publication, URL for each cited source]

      Recommendations:
      [2-3 actionable recommendations based on the research]
connectors:
  - connection_name: Perplexity
    connection_type: perplexity

The Config File

Create oe-config.json in the same directory:

{
  "llm": {
    "provider": "openai",
    "model": "gpt-4o",
    "apiKey": "YOUR_OPENAI_API_KEY"
  },
  "server": {
    "enabled": false,
    "port": 3333,
    "apiKey": "your-secret-api-key"
  },
  "connectors": [
    {
      "connection_name": "Perplexity",
      "connection_type": "perplexity",
      "apiKey": "YOUR_PERPLEXITY_API_KEY"
    }
  ]
}

Get your Perplexity API key from perplexity.ai/settings/api. The agent uses Perplexity for real-time web search and your LLM for synthesis and report writing.

Download OE Runtime

OE Runtime โ€” Direct Downloads

Run the Agent

Windows

# Run the agent
oe-runtime-win.exe web-search/agent.yaml --config web-search/oe-config.json

macOS

# Make executable (first time only)
chmod +x oe-runtime-macos

# Run the agent
oe-runtime-macos web-search/agent.yaml --config web-search/oe-config.json

Linux

# Make executable (first time only)
chmod +x oe-runtime-linux

# Run the agent
oe-runtime-linux web-search/agent.yaml --config web-search/oe-config.json

macOS Gatekeeper: On first run, macOS may block the binary. Go to System Settings โ†’ Privacy & Security โ†’ click "Allow Anyway" next to oe-runtime-macos.

Running as an API Server

Add --serve to start OE Runtime as an HTTP server on port 3333:

oe-runtime-win.exe --serve --config web-search/oe-config.json

Then send a request:

curl -X POST http://localhost:3333/run \
  -H "Content-Type: application/json" \
  -d '{"yaml": "web-search/agent.yaml", "params": {}}'

Or import the Postman collection (download above) to test all endpoints visually.

Use Cases

Build your own agents with OE Runtime

Download OE Runtime and run any AI agent locally or as a server โ€” no cloud required.

Get OE Runtime โ†’