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.
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 the Perplexity connector to search the web for 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 searches using the Perplexity connector. For each search, POST /chat/completions with body: { "model": "sonar", "messages": [{ "role": "user", "content": "<search query>" }] } Search queries: 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 result, extract: key findings, sources cited, and URLs. - name: Synthesize Findings content: | From the 3 search results gathered: - Identify the top 5 themes that appear across multiple results - 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-search
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-search",
"bearerToken": "YOUR_PERPLEXITY_API_KEY",
"baseUrl": "https://api.perplexity.ai"
}
]
}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.
oe-runtime-win.exe web-search/agent.yaml --config web-search/oe-config.json
chmod +x oe-runtime-macos
oe-runtime-macos web-search/agent.yaml --config web-search/oe-config.json
chmod +x oe-runtime-linux
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.
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.
Download OE Runtime and run any AI agent locally or as a server โ no cloud required.
Get OE Runtime โ