# javadsharifi/agyconnect architecture

> Architecture diagram of the GitHub repository javadsharifi/agyconnect, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/javadsharifi/agyconnect
- Repository: https://github.com/javadsharifi/agyconnect

## Overview

AgyConnect is a cross-platform companion for Google Antigravity: its main workflow launches the app through a local eligibility proxy, while its control center also manages VPN/server checking, account switching, diagnostics, and updates. The graph combines README-documented capabilities with relationships visible in sampled source; unsampled implementation details are not treated as verified calls.

Main entry points: [`core/agy_panel.py`](https://github.com/javadsharifi/agyconnect/blob/main/core/agy_panel.py) (Classic Control Center), [`core/agy_tui.py`](https://github.com/javadsharifi/agyconnect/blob/main/core/agy_tui.py) (Textual Control Center), [`core/agy_proxy.py`](https://github.com/javadsharifi/agyconnect/blob/main/core/agy_proxy.py) (Eligibility Proxy), [`core/agy_vpn.py`](https://github.com/javadsharifi/agyconnect/blob/main/core/agy_vpn.py) (VPN Manager)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_launch["Launch &amp; Proxy"]
  node_launcher["Launcher &amp; Diagnostics<br/>[agy_launcher.py]"]
  node_proxy["Eligibility Proxy<br/>[agy_proxy.py]"]
end

subgraph group_network["VPN &amp; Checking"]
  node_vpn["VPN Manager<br/>[agy_vpn.py]"]
  node_checker["Config &amp; Clean-IP Checker<br/>[agy_checker.py]"]
  node_configs["User Configs<br/>[configs.txt]"]
end

subgraph group_accounts["Accounts &amp; Region"]
  node_accounts["Account Switcher<br/>[agy_accounts.py]"]
  node_browser["Browser Region Checker"]
  node_profiles[("Saved Account Profiles<br/>[agy_accounts.py]")]
end

subgraph group_control["Control Center"]
  node_tui["Textual Control Center<br/>[agy_tui.py]"]
  node_panel["Classic Control Center<br/>[agy_panel.py]"]
  node_version["Release Updates<br/>[agy_version.py]"]
end

node_user(("User"))
node_antigravity["Antigravity App &amp; CLI"]
node_google["Google Services"]
node_xray["Xray-core"]
node_github["GitHub Releases"]

node_user -->|"opens"| node_tui
node_user -->|"opens"| node_panel
node_tui -.->|"starts app"| node_launcher
node_launcher -->|"starts"| node_proxy
node_launcher -->|"attaches"| node_antigravity
node_proxy -->|"serves traffic"| node_antigravity
node_proxy -->|"forwards requests"| node_google
node_tui -->|"manages"| node_vpn
node_panel -->|"manages"| node_vpn
node_vpn -->|"measures speed"| node_checker
node_panel -->|"tests configs"| node_checker
node_user -->|"provides"| node_configs
node_panel -->|"loads"| node_configs
node_checker -->|"uses for protocols"| node_xray
node_vpn -->|"routes tunnel through"| node_proxy
node_tui -->|"switches accounts"| node_accounts
node_panel -->|"reads and saves"| node_accounts
node_accounts -->|"reads and writes"| node_profiles
node_checker -.->|"checks browser region"| node_browser
node_panel -->|"applies update"| node_version
node_version -->|"checks releases"| node_github
node_tui -->|"runs diagnostics"| node_panel

click node_tui "https://github.com/javadsharifi/agyconnect/blob/main/core/agy_tui.py"
click node_panel "https://github.com/javadsharifi/agyconnect/blob/main/core/agy_panel.py"
click node_launcher "https://github.com/javadsharifi/agyconnect/blob/main/core/agy_launcher.py"
click node_proxy "https://github.com/javadsharifi/agyconnect/blob/main/core/agy_proxy.py"
click node_vpn "https://github.com/javadsharifi/agyconnect/blob/main/core/agy_vpn.py"
click node_checker "https://github.com/javadsharifi/agyconnect/blob/main/core/agy_checker.py"
click node_configs "https://github.com/javadsharifi/agyconnect/blob/main/configs.txt"
click node_accounts "https://github.com/javadsharifi/agyconnect/blob/main/core/agy_accounts.py"
click node_browser "https://github.com/javadsharifi/agyconnect/blob/main/core/agy_browser_region.py"
click node_profiles "https://github.com/javadsharifi/agyconnect/blob/main/core/agy_accounts.py"
click node_version "https://github.com/javadsharifi/agyconnect/blob/main/core/agy_version.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_launcher,node_proxy,node_user toneBlue
class node_vpn,node_checker,node_configs toneAmber
class node_accounts,node_browser,node_profiles toneMint
class node_tui,node_panel,node_version toneRose
class node_antigravity,node_google,node_xray,node_github toneIndigo
```

## Components

### Launch & Proxy

- [Launcher & Diagnostics](https://github.com/javadsharifi/agyconnect/blob/main/core/agy_launcher.py): `core/agy_launcher.py`
- [Eligibility Proxy](https://github.com/javadsharifi/agyconnect/blob/main/core/agy_proxy.py): `core/agy_proxy.py`

### VPN & Checking

- [VPN Manager](https://github.com/javadsharifi/agyconnect/blob/main/core/agy_vpn.py): `core/agy_vpn.py`
- [Config & Clean-IP Checker](https://github.com/javadsharifi/agyconnect/blob/main/core/agy_checker.py): `core/agy_checker.py`
- [User Configs](https://github.com/javadsharifi/agyconnect/blob/main/configs.txt): `configs.txt`

### Accounts & Region

- [Account Switcher](https://github.com/javadsharifi/agyconnect/blob/main/core/agy_accounts.py): `core/agy_accounts.py`
- [Browser Region Checker](https://github.com/javadsharifi/agyconnect/blob/main/core/agy_browser_region.py): `core/agy_browser_region.py`
- [Saved Account Profiles](https://github.com/javadsharifi/agyconnect/blob/main/core/agy_accounts.py): `core/agy_accounts.py`

### Control Center

- [Textual Control Center](https://github.com/javadsharifi/agyconnect/blob/main/core/agy_tui.py): `core/agy_tui.py`
- [Classic Control Center](https://github.com/javadsharifi/agyconnect/blob/main/core/agy_panel.py): `core/agy_panel.py`
- [Release Updates](https://github.com/javadsharifi/agyconnect/blob/main/core/agy_version.py): `core/agy_version.py`

### Other components

- **User**
- **Antigravity App & CLI**
- **Google Services**
- **Xray-core**
- **GitHub Releases**

## Connections

- User → Textual Control Center: opens (evidence: `README.md`)
- User → Classic Control Center: opens (evidence: `README.md`)
- Textual Control Center → Launcher & Diagnostics: starts app (evidence: `core/agy_tui.py`)
- Launcher & Diagnostics → Eligibility Proxy: starts (evidence: `core/agy_launcher.py`)
- Launcher & Diagnostics → Antigravity App & CLI: attaches (evidence: `README.md`)
- Eligibility Proxy → Antigravity App & CLI: serves traffic (evidence: `README.md`)
- Eligibility Proxy → Google Services: forwards requests (evidence: `README.md`)
- Textual Control Center → VPN Manager: manages (evidence: `core/agy_tui.py`)
- Classic Control Center → VPN Manager: manages (evidence: `core/agy_panel.py`)
- VPN Manager → Config & Clean-IP Checker: measures speed (evidence: `core/agy_vpn.py`)
- Classic Control Center → Config & Clean-IP Checker: tests configs (evidence: `core/agy_panel.py`)
- User → User Configs: provides (evidence: `README.md`)
- Classic Control Center → User Configs: loads (evidence: `README.md`)
- Config & Clean-IP Checker → Xray-core: uses for protocols (evidence: `README.md`)
- VPN Manager → Eligibility Proxy: routes tunnel through (evidence: `core/agy_vpn.py`)
- Textual Control Center → Account Switcher: switches accounts (evidence: `README.md`)
- Classic Control Center → Account Switcher: reads and saves (evidence: `core/agy_panel.py`)
- Account Switcher → Saved Account Profiles: reads and writes (evidence: `core/agy_accounts.py`)
- Config & Clean-IP Checker → Browser Region Checker: checks browser region (evidence: `core/agy_checker.py`)
- Classic Control Center → Release Updates: applies update (evidence: `core/agy_panel.py`)
- Release Updates → GitHub Releases: checks releases (evidence: `core/agy_version.py`)
- Textual Control Center → Classic Control Center: runs diagnostics (evidence: `core/agy_tui.py`)
