GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Shire31/oauth_manage: oauth_manage for openclaw

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
app
app
 
 
components/ui
components/ui
 
 
docs
docs
 
 
lib
lib
 
 
scripts
scripts
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
jsconfig.json
jsconfig.json
 
 
next.config.mjs
next.config.mjs
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
postcss.config.mjs
postcss.config.mjs
 
 
tailwind.config.js
tailwind.config.js
 
 

Repository files navigation

OpenClaw OAuth Admin

A self-hosted OAuth control plane for managing openai-codex ChatGPT OAuth profiles and syncing them into one or more OpenClaw instances.

The UI is mobile-friendly, the storage is local SQLite, and the sync path is explicit: preview first, then apply with admin auth and confirmation.

What It Does

  • Stores and rotates multiple openai-codex OAuth accounts
  • Shows usage windows such as 5h and Week
  • Lets you rename, reorder, refresh, and delete profiles
  • Discovers local OpenClaw instances automatically
  • Lets you register remote OpenClaw instances over SSH
  • Builds a canonical auth payload and syncs it into each instance
  • Scrubs stale session-level authProfileOverride values during sync so old threads do not stay pinned to deleted OAuth profiles

Design Constraints

  • No dependency on unrelated infra state files
  • Safe-by-default sync model
  • Local encrypted token storage with AES-256-GCM
  • Instance mutation is opt-in

Safe Defaults

OAUTH_ADMIN_ALLOW_INSTANCE_MUTATION=false by default.

That means:

  • GET /api/sync/preview is allowed
  • POST /api/sync/apply is blocked unless mutation is enabled
  • No OpenClaw instance is modified until you explicitly allow it

Quick Start

cp .env.example .env.local
npm install
npm run dev

Default local port: 18905

Production

npm install
npm run build
npm run start

If you want a one-host deployment with systemd + Caddy, see:

  • docs/SELF_HOSTING.md
  • scripts/deploy_local.sh

Connecting Your Own OpenClaw

This project is meant to manage your own OpenClaw fleet, not just the original server where it was developed.

See:

  • docs/OPENCLAW_INSTANCES.md

At a minimum you need:

  • SSH access from the admin host to the target machine
  • The target agentDir
  • The target configPath

Environment Variables

See .env.example. The most important ones are:

  • OAUTH_ADMIN_MASTER_KEY
  • OAUTH_ADMIN_TOKEN
  • OAUTH_ADMIN_PUBLIC_BASE
  • OAUTH_ADMIN_BASE_PATH
  • NEXT_PUBLIC_BASE_PATH
  • OAUTH_ADMIN_ALLOW_INSTANCE_MUTATION

Core API

  • POST /api/oauth/start
  • POST /api/oauth/complete
  • GET /api/profiles
  • POST /api/usage/refresh
  • GET /api/instances
  • POST /api/instances
  • GET /api/sync/preview
  • POST /api/sync/apply
  • POST /api/import/openclaw-auth

POST /api/sync/apply requires confirmText=APPLY_SYNC.

Sync Behavior

When sync is applied, the service writes:

  • <agentDir>/auth-profiles.json
  • <configPath>.auth.profiles
  • <configPath>.auth.order

Then it restarts the gateway:

openclaw gateway restart || openclaw gateway start

Only profiles with real stored secrets are included in the canonical synced order.

Security Notes

  • Do not commit .env*, databases, or backup files
  • Put the app behind a reverse proxy or network boundary
  • Rotate OAUTH_ADMIN_TOKEN if it was ever exposed
  • Review SSH keys and instance metadata before enabling mutation

GitHub Readiness

This repo now includes:

  • .gitignore
  • MIT license
  • CI workflow for npm ci && npm run build
  • self-hosting docs
  • OpenClaw instance integration docs

About

oauth_manage for openclaw

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.