โš™๏ธ Admin Guide

For tokencnn.com platform administrators ยท v1.0

๐Ÿ“Œ This guide is for platform administrators. Regular users should see the User Manual.

๐Ÿ“Š Dashboard Overview

After logging in as admin at https://www.tokencnn.com/login, you'll see the ADMIN section in the sidebar with these management tools:

ModuleFunction
๐Ÿ“Š DashboardUser count, revenue, call volume stats
๐Ÿ”Œ Channel ManagementManage upstream API channels (model providers)
๐Ÿ‘ฅ User ManagementUser list, balance, group management
๐Ÿ”‘ Token ManagementManage all users' API tokens
๐Ÿ’ฐ Redemption CodesCreate and manage coupon codes
๐Ÿ“‹ Usage LogsCall logs, consumption records
โš™๏ธ System SettingsSystem configuration, payments, email

๐Ÿ”Œ Channel Management

Channels are upstream model providers' APIs. Each channel allows your users to call that provider's models.

Adding a Channel

1Go to Channel Management โ†’ Add Channel

2Select the channel type (e.g. DeepSeek, Qwen, Zhipu, etc.)

3Enter a name (e.g. "DeepSeek-Prod")

4Enter the API Key from the model provider

5Configure model mapping

6Click Test to verify connectivity

7If test passes, enable the channel

Supported Channel Types

TypeProviderPopular Models
DeepSeekDeepSeek (China)deepseek-chat, deepseek-reasoner
Alibaba (DashScope)Alibaba Cloudqwen-max, qwen-plus, qwen-turbo
ZhipuZhipu AIglm-4, glm-4-flash
MoonshotMoonshot AIkimi-k2
ByteDanceVolcenginedoubao-pro
CustomAny OpenAI-compatibleCustom model names

Priority & Weight

When multiple channels serve the same model, requests are distributed by:

๐Ÿค– Model Management

Model Mapping

Configured in channel settings. Format:

# user-facing model name -> channel model name (comma-separated)
deepseek-chat,deepseek-reasoner

Multiple models can be mapped to a single channel. Users see the mapped names when making API calls.

Group Management

Control which models different user groups can access:

Pricing

tokencnn.com uses a multiplier pricing model:

User price = Channel cost price ร— Pricing multiplier

ParameterDescriptionExample
Input multiplierMultiplier for input token cost$0.14 ร— 1.5 = $0.21 user price
Output multiplierMultiplier for output token cost$0.28 ร— 2.0 = $0.56 user price

โš ๏ธ Pricing changes take effect immediately. Announce changes before modifying active pricing.

๐Ÿ‘ฅ User Management

User List

Admin โ†’ User Management to see all registered users. Supports search and filtering.

User Operations

ActionDescription
View detailsUser info, balance, consumption history
EditModify group, rate limits
Manual top-upAdd balance directly (compensation, promotions)
Disable/EnableSuspend or restore user access
DeletePermanently remove user (irreversible!)

โš ๏ธ Deleting a user permanently removes all their data. Use "Disable" instead when possible.

โš™๏ธ System Settings

General Settings

SettingDescription
Site nameShown in page title and emails
Homepage announcementGlobal announcement on the home page
New user quotaFree balance for new signups (default $0.20)
Referral rewardReward amount for inviting others
Top-up plansConfigure amounts and bonuses

Payment Configuration

Configure payment gateways in Settings โ†’ Payment:

Email Configuration

Set up SMTP for sending verification codes and notifications. Recommended: Resend or SendGrid.

Rate Limits

Configure per-model rate limiting in System Settings โ†’ Rate Limits.

๐Ÿ’พ Backup & Recovery

What to Back Up

Quick Backup

#!/bin/bash
# Database backup
cp /data/new-api/one-api.db /data/backups/db_$(date +%Y%m%d_%H%M%S).db

# Website backup
tar -czf /data/backups/tokencnn_$(date +%Y%m%d).tar.gz /var/www/tokencnn/

Restore

# Stop the container first!
docker stop new-api
cp /data/backups/db_20260530.db /data/new-api/one-api.db
docker start new-api

โš ๏ธ Always stop the container before restoring the database to prevent data corruption.