Skip to content

Repository files navigation

Autonion Agent (Desktop Agent)

The Autonion Agent is a Flutter-based desktop application that serves as the central orchestration hub between your desktop operating system (Windows, macOS, Linux), browser environments, and the Android Automation Companion app. It provides zero-configuration local networking, secure device pairing, visual automation workflows, bi-directional clipboard sync, and hybrid AI-powered task execution.


🌟 Major Upgrades & New Features

1. 🔄 Visual Flow Builder & Automation Engine

A full-fledged, node-based visual workflow builder that lets you create, customize, and execute multi-step desktop automation flows without writing code:

  • Visual Node Canvas: Chain together actions like mouse clicks, keyboard keystrokes, application launches, text input, delays, and conditionals.
  • Smart Flow Execution: Execute complex automations locally on the desktop or trigger them remotely from your Android phone.
  • Flow Management: Save, organize, export, and import automation presets with execution history and detailed logs.

2. 🔐 OTP-Based Secure Device Pairing

Enhanced security layer preventing unauthorized devices on the local network from sending commands:

  • 6-Digit One-Time PIN (OTP): When pairing your Android device with your desktop, an OTP prompt is verified on both ends.
  • Trusted Device Registry: Securely stores paired devices with cryptographically signed tokens.
  • Access Control: View, manage, and revoke connected mobile devices and browser extensions at any time from the Connections screen.

3. 🛡️ Administrator Privilege & UAC Unlock Service

Built-in IPC mechanism (via secure Windows Named Pipes) allowing the Agent to handle privileged desktop operations:

  • Gracefully handles tasks requiring elevated administrator permissions.
  • Prevents automation interruptions caused by Windows User Account Control (UAC) prompts.

4. 🧠 Hybrid AI Engine & Model Hub

An "Offline-First, Cloud-Enhanced" AI execution framework:

  • Local SLM/LLM (Ollama): Run open-source models (Llama 3.2, Qwen 2.5, Phi-3.5) locally with 100% data privacy.
  • Cloud API Integration: Connect to OpenAI, Google Gemini, Groq, DeepSeek, and OpenRouter for complex semantic tasks.
  • Web-Based AI: Delegate prompts through browser extensions for web-grounded interactions.
  • Encrypted Secrets: All API keys are encrypted at rest via flutter_secure_storage (Windows DPAPI, macOS Keychain, Linux libsecret).

🏗️ System Architecture

graph TD
    subgraph Mobile ["📱 Android Companion"]
        AC[Automation Companion]
    end

    subgraph Desktop ["💻 Autonion Desktop Agent"]
        WS[WebSocket Server :8080]
        mDNS[mDNS Discovery]
        FB[Visual Flow Builder]
        AI[Hybrid AI Engine]
        CLIP[Clipboard Sync]
        ADMIN[Unlock Admin Service]
    end

    subgraph Extensions ["🌐 Web & OS Layer"]
        EXT[Chrome / Browser Extension]
        PY[Python Automation Backend]
        OS[OS Desktop Environment]
    end

    AC <-->|mDNS / Zero-Config| mDNS
    AC <-->|Encrypted WS + OTP| WS
    WS --> FB
    WS --> AI
    WS --> CLIP
    FB --> ADMIN
    FB --> OS
    WS <--> EXT
    WS <--> PY
Loading

🚀 Core Capabilities

Feature Description
Zero-Config Discovery Uses mDNS (_myautomation._tcp) so your Android app instantly finds your desktop on the local Wi-Fi without typing IP addresses.
Visual Flows Create, test, and save node-based automation macros with conditional logic and error recovery.
OTP Device Pairing High-security device verification preventing network eavesdropping or unauthorized task execution.
Bi-Directional Clipboard Sync Real-time synchronization of copied text and images between your phone and desktop.
Hardware Remote Control media playback, slide presentations, system volume, and lock screen directly from the mobile app.
Intelligent Task Routing Automatically routes DOM-level browser tasks to the Chrome Extension and OS-level tasks to the native automation engine.
Background Service Minimizes cleanly to the system tray and supports auto-start on system boot.

🔒 Privacy & Data Safety

The Autonion Agent is engineered with a strict Local-First Privacy Architecture:

AI Mode Data Transmission Privacy Level
Ollama (Local) Processed 100% on your local hardware. Zero network data transfer. 🟢 Complete Privacy
Cloud API Transmits prompts and necessary screen context to your configured provider (OpenAI, Gemini, etc.). 🟡 Provider Governed
Web-Based Context processed via active browser session. 🟡 Service Governed

📌 Note: API keys are never stored in plaintext and are never transmitted to any third-party intermediate server.


🛠️ Development & Installation

Prerequisites

  • Flutter SDK: >= 3.9.2
  • Desktop Build Tools:
    • Windows: Visual Studio 2022 (with "Desktop development with C++")
    • macOS: Xcode
    • Linux: clang, cmake, libgtk-3-dev
  • Python 3.10+ (for Python automation backend)
  • Ollama (Optional, for local SLM/LLM inference)

Build and Run

# 1. Fetch dependencies
flutter pub get

# 2. Run in debug mode
flutter run -d windows    # on Windows
flutter run -d macos      # on macOS
flutter run -d linux      # on Linux

# 3. Build release binary
flutter build windows --release

📱 Connecting with Automation Companion

  1. Launch Autonion Agent on your desktop.
  2. Open Automation Companion on your Android device (ensure both devices are on the same Wi-Fi network).
  3. Tap Connect Desktop on your phone — your desktop will be discovered automatically.
  4. Enter the 6-digit OTP code shown on your desktop screen to pair securely.
  5. You're ready to run flows, sync clipboard, and execute AI automations!

About

The desktop-side connector for the Autonion Android app. Discovers and pairs with your phone via zero-config local networking (OTP-secured), then lets you trigger visual no-code automation flows, sync clipboard, and run local/cloud AI tasks (Ollama, OpenAI, Gemini, Groq, DeepSeek) right from your Android device.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages