diff --git a/src/cliproxy/quota-fetcher.ts b/src/cliproxy/quota-fetcher.ts index b009da92..df0accb9 100644 --- a/src/cliproxy/quota-fetcher.ts +++ b/src/cliproxy/quota-fetcher.ts @@ -11,6 +11,7 @@ import { getAuthDir } from './config-generator'; import { CLIProxyProvider } from './types'; import { getProviderAccounts, + isAccountPaused, setAccountTier, type AccountInfo, type AccountTier, @@ -553,6 +554,18 @@ export async function fetchAccountQuota( }; } + // Check if account is paused (token moved to auth-paused/ directory) + if (isAccountPaused(provider, accountId)) { + const error = 'Account is paused'; + if (verbose) console.error(`[i] ${error}`); + return { + success: false, + models: [], + lastUpdated: Date.now(), + error, + }; + } + // Read auth data from auth file const authData = readAuthData(provider, accountId); if (!authData) {