Skip to content

tomjuggler/deepseek_operator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

65 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

DeepSeek Operator Alternative

Open-source ChatGPT Operator alternative using DeepSeek R1 and browser automation.

Information:

  • Created using Aider and DeepSeek R1

  • Check out the Circus Scientist blog and tutorial site for more interesting AI and IOT related projects.

  • Original Blog Post about DeepSeek Operator

  • DeepSeek api is pretty unreliable currently, expect this app to fail for no reason a lot

  • MIT License have fun

  • No guarantees, AI wrote the whole thing and I take no responsibility, please check the code there's not much

  • DeepSeek and OpenRouter providers are functional (OpenRouter using Meta-Llama by default)

  • DeepSeek API can be unreliable and slow

  • Ollama remains untested due to hardware requirements

Setup

  • tested on Python 3.12
  1. Clone repo & create virtual environment:
python -m venv venv
source venv/bin/activate  # Linux/Mac
# venv\Scripts\activate  # Windows
  1. Install dependencies:
pip install -r requirements.txt
  1. Create api_secrets.py file with the following:
DEEPSEEK_API_KEY="**********"
OPENROUTER_API_KEY="****************"

Usage

Command Line Options

# Basic task execution
python operator_agent.py --task "Book flight from NYC to London on Dec 25th"

# Specify provider
python operator_agent.py --provider ollama  --task "Research AI news"

# Specify provider and model
python operator_agent.py --provider openrouter --model "anthropic/claude-3.5-haiku" --task "Research AI news"
python operator_agent.py --provider openrouter --model "anthropic/claude-3-opus" --task "Analyze market trends"

# Save results to file
python operator_agent.py --task "Compare smartphone prices" --save
python operator_agent.py --task "Weather report analysis" --save --filename "weather_analysis.txt"

# Web UI with specific provider
python operator_agent.py --gradio --provider ollama

Provider Options

  • --provider: Choose AI backend (deepseek|openrouter|ollama)
    • Default: deepseek
    • Default models:
      • DeepSeek: "deepseek-reasoner"
      • OpenRouter: "meta-llama/llama-3.3-70b-instruct" (requires careful prompting but works)
      • Ollama: "deepseek-r1:1.5b" (untested)
  • --model: Override default model for selected provider
  • --save: Automatically save results to timestamped .txt file
  • --filename: Specify custom filename for saved results

Web UI

python operator_agent.py --gradio

Example Tasks

  • "Find cheapest iPhone 15 on Amazon and save results to file"
  • "Research AI news from last week and summarize key points"
  • "Book 2 tickets for Avatar 3 at nearest cinema tonight"

Features

  • ๐Ÿค– Multi-provider support (DeepSeek, OpenRouter, Ollama)
  • ๐ŸŒ Browser automation integration
  • ๐Ÿ’ฌ Gradio web interface
  • ๐Ÿ“‚ File output saving with --save/--filename
  • ๐Ÿ” Local environment security
  • โš™๏ธ Model customization per task

Note: Requires Chrome/Firefox installed. First run may download browser drivers.

About

ChatGPT Operator clone using DeepSeek R1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages