Files
hermes-agent/web
Austin Pickett b9d541ecb8 feat(auth): add integrated Google Workspace OAuth provider
- Add agent/google_workspace_oauth.py: PKCE OAuth module with bundled
  Nous client ID (placeholder), local fallback server, dashboard
  integration, headless mode, token refresh, and revocation
- Add 'hermes auth google-workspace login/status/logout' CLI commands
- Add 'hermes auth add google-workspace' redirect to login flow
- Add Google Workspace to dashboard OAuth providers card with
  server-side callback at /auth/google/callback
- Dashboard PKCE flow: auto-redirect callback, session polling,
  auto-close modal on success
- Branded callback pages (dark teal theme matching dashboard)
- Disconnect uses in-app modal instead of browser alert dialog
- CLI delegates to dashboard when running (single source of truth)
- Falls back to headless mode with --no-browser when dashboard is down
- Middleware bypass for google-workspace start/poll endpoints (CLI access)
2026-05-08 13:01:03 -04:00
..
2026-04-19 15:21:57 -04:00
2026-04-28 10:57:30 -04:00

Hermes Agent — Web UI

Browser-based dashboard for managing Hermes Agent configuration, API keys, and monitoring active sessions.

Stack

  • Vite + React 19 + TypeScript
  • Tailwind CSS v4 with custom dark theme
  • shadcn/ui-style components (hand-rolled, no CLI dependency)

Development

# Start the backend API server
cd ../
python -m hermes_cli.main web --no-open

# In another terminal, start the Vite dev server (with HMR + API proxy)
cd web/
npm run dev

The Vite dev server proxies /api requests to http://127.0.0.1:9119 (the FastAPI backend).

Build

npm run build

This outputs to ../hermes_cli/web_dist/, which the FastAPI server serves as a static SPA. The built assets are included in the Python package via pyproject.toml package-data.

Structure

src/
├── components/ui/   # Reusable UI primitives (Card, Badge, Button, Input, etc.)
├── lib/
│   ├── api.ts       # API client — typed fetch wrappers for all backend endpoints
│   └── utils.ts     # cn() helper for Tailwind class merging
├── pages/
│   ├── StatusPage   # Agent status, active/recent sessions
│   ├── ConfigPage   # Dynamic config editor (reads schema from backend)
│   └── EnvPage      # API key management with save/clear
├── App.tsx          # Main layout and navigation
├── main.tsx         # React entry point
└── index.css        # Tailwind imports and theme variables