Flagship Local-First Agentic Framework CLI for Ubuntu & Termux
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.
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 | bashImportant
π± 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 symlinksuniversal-agentand shortcut aliasuagdirectly into your$PATH.
git clone https://github.com/Max000110/universal-agent.git
cd universal-agent
bash install.sh- Import your session cookies:
uag import-session chatgpt - Launch the CLI:
uag - Check status:
uag status
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
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]
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]
| 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 |
β | β |
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β 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]β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
| 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 |
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]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
- Local-First Session Vault: Master session secrets are stored encrypted at rest in
~/.antigravitycli/vault.encusing Fernet (AES-128-CBC + HMAC-SHA256) with0600filesystem permissions. - Zero Plaintext Secrets: Built-in
RedactFilterautomatically 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.
/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 ==============================
Licensed under the MIT License.
- Termux slow install: Expected behavior, wait 1-2 min during the ARM compilation phase.
command not foundafter install: Runsource ~/.bashrcor restart your terminal.- Session expired errors: Re-import cookies with
/session import chatgpt(oruag import-session chatgpt).