One API Hub: A Practical Guide to Managing All Your One-API Compatible Sites in One Place
“
“Instead of juggling five browser tabs every morning, keep every AI service key on a single, lightweight key-ring.”
Table of Contents
-
Why One API Hub Exists -
What It Actually Does—Feature Map -
Before You Start—Minimal Prerequisites -
Local Development—Get It Running in 15 Minutes -
Production Deployment—One-Line Docker Launch -
Frequently Asked Questions (FAQ) -
What to Tackle Next
1. Why One API Hub Exists
If you have ever worked with New API, Veloera, VoAPI, or OneHub—all of them One-API compatible platforms—you probably know the drill:
One API Hub gathers those scattered pieces into a single, low-maintenance web service. Log in once, see every balance, back up every key, and trigger daily check-ins from one screen. No external accounts, no extra fees, no lock-in.
2. What It Actually Does—Feature Map
2.1 Unified Admin Login
-
Single-user admin mode secured with JWT. -
The interface only asks for a password; the username is always admin
.
2.2 Site Management
2.3 Real-Time Credential Validation
When you add or update a site, the back-end immediately calls the target’s /user
or /dashboard
endpoint. If the credential fails, you get a clear “Invalid token” message before you even close the modal.
2.4 Account Snapshot
The dashboard pulls and displays:
-
User name -
Total credits -
Used credits -
Remaining credits
2.5 API Key Overview
Every key under every site is listed in one table:
2.6 Daily Check-In Automation
The hub detects the site type and calls the correct check-in endpoint—often /user/checkin
. Success or failure appears right next to the site name with the amount of credits gained (if any).
2.7 Import & Export in JSON
-
Export → download a single JSON file containing every site and key. -
Import → upload the same file to restore or migrate.
2.8 Home Dashboard Cards
-
Total number of sites -
Total number of API keys -
Combined credits across every site -
Overall usage rate
Figure 1: Dashboard overview
Figure 2: Site settings page
3. Before You Start—Minimal Prerequisites
4. Local Development—Get It Running in 15 Minutes
Step 1: Clone or Download
git clone <repository-url>
cd one-api-hub
Step 2: Install Dependencies
npm ci
“
npm ci
is faster and stricter thannpm install
, ideal for reproducible builds.
Step 3: Start Dev Mode
npm run dev
Two URLs will appear in the terminal:
-
Frontend dev server → http://localhost:3000 -
Backend API → http://localhost:8000
Open http://localhost:3000
, enter the default password admin123456
, and you will land inside the admin panel.
Step 4: Add Your First Site
-
Click Site Management → Add Site. -
Fill in the Site Name, URL, and Credential. -
Hit Validate & Save. -
The dashboard refreshes and shows your credits immediately.
5. Production Deployment—One-Line Docker Launch
5.1 Build the Image
docker build -t one-api-hub:latest .
5.2 Prepare Environment Variables
Copy the sample file and adjust:
cp .env.example .env
nano .env
A minimal production .env
:
NODE_ENV=production
PORT=8000
ADMIN_INITIAL_PASSWORD=your-very-strong-password
JWT_SECRET=change-me-too
5.3 Run the Container
docker run -d \
--name one-api-hub \
-p 8000:8000 \
--env-file .env \
-v one-api-hub:/data \
-v one-api-hub:/app/logs \
one-api-hub:latest
After the container starts, visit http://<your-server-ip>:8000
, log in with the password you set, and you are live.
6. Frequently Asked Questions (FAQ)
7. What to Tackle Next
-
Nightly backups – a cron job that tars /data/data.db
and uploads it to S3 or any object storage. -
Prometheus metrics – expose container CPU and RAM, plus a custom gauge for “total credits remaining” so you can page yourself when credits drop below 5 USD. -
Fork & extend – the code base is TypeScript front and back, deliberately small. Add multi-user support or Webhook notifications if you need them. -
Share feedback – open an issue or pull request. The project grows when real users point out real friction.
Closing Thought
One API Hub will not make coffee for you, but it will keep you from hunting through browser bookmarks just to see if you still have 3 USD left on site number four. Clone it, build it, forget about the juggling act.