Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Universal Agent CLI (uag)

Flagship Local-First Agentic Framework CLI for Ubuntu & Termux

Version License Python Platform Security Build Status

Antigravity-style agent surface experience featuring multi-step reasoning, slash command control, live status bar metrics, and folder-based skills, powered by explicit user-owned session cookie imports.


⚑ 1-Line Copy-Paste Installer

Install Universal Agent globally on Ubuntu or Termux (Android) with a single command:

curl -fsSL https://raw.githubusercontent.com/Max000110/universal-agent/main/install.sh | bash

Important

πŸ“± Termux (Android) Users: ⏳ Installation on Termux may take 1-2 minutes. Please wait patiently during the ARM compilation phase.

Note: The installer automatically detects your environment, creates the local virtual environment in ~/.antigravitycli/venv, installs required dependencies, and symlinks universal-agent and shortcut alias uag directly into your $PATH.

Alternative Manual Installation

git clone https://github.com/Max000110/universal-agent.git
cd universal-agent
bash install.sh

⚑ Quick Start

  1. Import your session cookies: uag import-session chatgpt
  2. Launch the CLI: uag
  3. Check status: uag status

πŸ—οΈ Architecture Overview

graph TD
    A[Terminal Surface / TUI Shell] --> B[Universal Agent Engine]
    B --> C[Slash Command Router]
    C --> D[Provider Abstraction Layer]
    D --> E1[ChatGPT Web Adapter - Priority]
    D --> E2[Gemini Web Adapter]
    E1 --> F[AES-128-CBC Encrypted Vault]
    E2 --> F
Loading

πŸ”‘ Session Cookie Authentication Flow

graph TD
    U[User Input: Cookie Header / JSON] --> V[Session Validator]
    V -->|Format & Token Check| S[AES-GCM Encrypted Vault]
    S --> A[Provider Adapter Bootstrap]
    A --> C[Streaming Chat Output & DeepThink Policy]
Loading

πŸ“¦ Installation & Global PATH Flow

graph TD
    I[curl 1-Line Installer] --> E[Environment Detector: Ubuntu vs Termux]
    E --> D[Install Dependencies & Virtualenv]
    D --> P[Symlink Executables into PATH: universal-agent & uag]
    P --> R[Ready for Global Command Execution]
Loading

πŸ“Š Feature Matrix Comparison

Feature / Capability Universal Agent (uag) Standard CLI Assistants
ChatGPT Web Session Login βœ“ (Priority) βœ—
Gemini Web Session Login βœ“ βœ—
Header String Cookie Import βœ“ βœ—
JSON Cookie Export Import βœ“ βœ—
Encrypted Storage at Rest (AES-GCM) βœ“ βœ—
Regex Log Secret Redaction βœ“ βœ—
Deep Think Reasoning Policy βœ“ βœ—
Folder-Based Skills Engine βœ“ βœ—
Termux Android POSIX Support βœ“ βœ—
Ubuntu Workstation / Server Support βœ“ βœ“
Global PATH Command (uag) βœ“ βœ—
Built-in uag update & uag uninstall βœ“ βœ—

πŸ’» Terminal Interface & Visual Mockups

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Universal Agent CLI v1.1.0 β€” Termux / Ubuntu Linux                          β”‚
β”‚ Type prompts directly or use slash commands (/help, /models, /deepthink)     β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ > /models                                                                   β”‚
β”‚ Available Models for CHATGPT:                                               β”‚
β”‚   β€’ gpt-4o [ACTIVE] - GPT-4o (ChatGPT Web Priority)                         β”‚
β”‚     Omni flagship model for complex reasoning and multimodal analysis        β”‚
β”‚   β€’ gpt-4o-mini - Fast, efficient model for daily tasks                     β”‚
β”‚   β€’ o3-mini - Reasoning model specialized in math & coding                  β”‚
β”‚                                                                             β”‚
β”‚ > /deepthink on                                                             β”‚
β”‚ Command: deepthink β€” Deep Think reasoning policy is now ENABLED.            β”‚
β”‚                                                                             β”‚
β”‚ > Hello! Analyze this project architecture for mobile performance.          β”‚
β”‚ Assistant (CHATGPT / gpt-4o):                                               β”‚
β”‚ β€ΉThinking Process: Analyzing multi-step context & reasoning policy...β€Ί      β”‚
β”‚ Certainly! Here is the performance audit...                                 β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ [Provider: CHATGPT] [Model: gpt-4o] [Think: ON] [Context: 1.5k/128k] [VALID]β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

⚑ Slash Command Reference

Command Arguments Description Example
/users None Displays active provider sessions, quota status, and account health /users
/context None Shows active model context window limits, token usage, and free budget /context
/models [filter] Lists available models for active provider with deep-think capabilities /models gpt
/model <name> Switches active model or provider at runtime without restarting app /model o3-mini
/deepthink [on|off] Toggles multi-step reasoning policy wrap on outgoing prompts /deepthink on
/skills None Browses installed built-in and user-added custom skills /skills
/skill <name> Inspects skill metadata, usage guide, and options /skill deep-think
/session validate [prov] Runs live health probe on stored cookies and reports status /session validate
/session import <prov> Triggers interactive cookie import flow (Header string or JSON) /session import chatgpt
/status None Displays runtime framework status, active model, and app directory /status
/help None Displays slash command palette documentation /help

πŸ› οΈ CLI Management Commands

Universal Agent includes global system management subcommands:

# Launch interactive TUI shell
universal-agent   # or uag

# Non-interactive single-prompt execution
uag exec "/models"

# Check version & system platform
uag version

# View framework status & vault state
uag status

# Import session cookies
uag import-session chatgpt

# Update Universal Agent to latest version (preserves sessions & vault)
uag update

# Uninstall Universal Agent CLI (optionally purge data with --purge)
uag uninstall [--purge]

πŸ“‚ Project Directory Structure

universal-agent/
β”œβ”€β”€ .github/
β”‚   └── workflows/
β”‚       └── ci.yml             # Automated GitHub Actions test pipeline
β”œβ”€β”€ docs/
β”‚   β”œβ”€β”€ SPECIFICATION.md       # Architecture & engineering design spec
β”‚   └── TUTORIAL.md            # Step-by-step visual installation guide
β”œβ”€β”€ src/
β”‚   └── antigravity_cli/
β”‚       β”œβ”€β”€ __init__.py        # Package metadata & entrypoint definitions
β”‚       β”œβ”€β”€ cli.py             # Typer CLI application entrypoint
β”‚       β”œβ”€β”€ config.py          # AppConfig & ConfigManager
β”‚       β”œβ”€β”€ logging.py         # Secret redaction filter engine
β”‚       β”œβ”€β”€ platform.py        # Environment & terminal size resolution
β”‚       β”œβ”€β”€ registry.py        # Centralized ModelRegistry
β”‚       β”œβ”€β”€ router.py          # Slash command router engine
β”‚       β”œβ”€β”€ session_validator.py# Header String & JSON cookie validator
β”‚       β”œβ”€β”€ tui.py             # Rich Terminal User Interface shell
β”‚       β”œβ”€β”€ vault.py           # Encrypted Session Vault (AES-GCM)
β”‚       β”œβ”€β”€ providers/
β”‚       β”‚   β”œβ”€β”€ base.py        # BaseProviderAdapter interface
β”‚       β”‚   β”œβ”€β”€ chatgpt.py     # ChatGPT Web Adapter (Priority)
β”‚       β”‚   └── gemini.py      # Gemini Web Adapter
β”‚       └── skills/
β”‚           β”œβ”€β”€ manager.py     # SkillManager discovery engine
β”‚           β”œβ”€β”€ parser.py      # SKILL.md YAML frontmatter parser
β”‚           └── builtin/       # Built-in packaged skills
β”œβ”€β”€ tests/                     # 24 unit & integration test files
β”‚   └── security_audit.py      # Automated security & secret scanner
β”œβ”€β”€ install.sh                 # Production 1-line installer script
β”œβ”€β”€ update.sh                  # Application updater script
β”œβ”€β”€ pyproject.toml             # Package setup & entrypoint configuration
└── README.md                  # Flagship documentation

πŸ›‘οΈ Security & Privacy Architecture

  • Local-First Session Vault: Master session secrets are stored encrypted at rest in ~/.antigravitycli/vault.enc using Fernet (AES-128-CBC + HMAC-SHA256) with 0600 filesystem permissions.
  • Zero Plaintext Secrets: Built-in RedactFilter automatically intercepts and redacts session cookies, Bearer tokens, JWTs, and authorization headers from all outputs.
  • Strict Parsing Validation: Rejects malformed JSON, empty strings, or unauthorized token structures before writing to vault storage.
  • No Cloud Telemetry: Zero tracking, remote reporting, or third-party analytical requests.

πŸ§ͺ Verification & Test Results

/home/ubuntu/antigravity-cli/.venv/bin/pytest -v tests/
============================= test session starts ==============================
platform linux -- Python 3.12.3, pytest-9.1.1, pluggy-1.6.0
rootdir: /home/ubuntu/antigravity-cli
configfile: pyproject.toml
plugins: anyio-4.14.2, asyncio-1.4.0

tests/test_phase1.py ....                                                [ 16%]
tests/test_phase2.py ......                                              [ 41%]
tests/test_phase3.py ....                                                [ 58%]
tests/test_phase4.py ....                                                [ 75%]
tests/test_phase5.py ..                                                  [ 83%]
tests/test_phase6_7.py ....                                              [100%]

============================== 24 passed in 0.41s ==============================

πŸ“„ License

Licensed under the MIT License.


πŸ› οΈ Troubleshooting

  • Termux slow install: Expected behavior, wait 1-2 min during the ARM compilation phase.
  • command not found after install: Run source ~/.bashrc or restart your terminal.
  • Session expired errors: Re-import cookies with /session import chatgpt (or uag import-session chatgpt).

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages