ViRb3 / wgcf

🚤 Cross-platform, unofficial CLI for Cloudflare Warp
MIT License
6.29k stars 698 forks source link

Get warp or warp+ data usage #412

Closed m0x61h0x64i closed 5 months ago

m0x61h0x64i commented 5 months ago

Hi, is it possible to get the amount of data usage we had using a warp config?

no matter which warp or how the warp is being created

ViRb3 commented 5 months ago

No, this is not possible as far as I'm aware. You can only track your referral/promotional quota using wgcf status.

m0x61h0x64i commented 5 months ago

@ViRb3 Thanks for reply, I got one referral but when i use the wg config using wiregaurd app with same PrivateKey & PublicKey and then when I get wg status using wgcf status, I see that my quota does not decrease:

2024/06/24 19:46:35 Using config file: wgcf-account.toml
2024/06/24 19:46:36 =======================================
2024/06/24 19:46:36 Device name   : 8E8C73
2024/06/24 19:46:36 Device model  : PC
2024/06/24 19:46:36 Device active : true
2024/06/24 19:46:36 Account type  : limited
2024/06/24 19:46:36 Role          : child
2024/06/24 19:46:36 Premium data  : 953.67 MiB
2024/06/24 19:46:36 Quota         : 953.67 MiB
2024/06/24 19:46:36 =======================================

Am i doing something wrong?

ViRb3 commented 5 months ago

To be honest I haven't tested what these numbers mean exactly. They could just be taking a while to update, or maybe they only show you the total quota and not your current one. Either way, wgcf is just reporting what Cloudflare says, so there isn't much we can do beyond this.

m0x61h0x64i commented 5 months ago

I think since we are cheating at free account, quota will never decrease (because it does not need to get chareged) Is there a way to create warp account and get a privateKey from cloudflare with 0 quota ? I have tested android warp app but it didnt give me its privateKey.

ViRb3 commented 5 months ago

We are not cheating anything, quota counting happens on the server side, it's not something that wgcf or the official client does. You do not need a quota to use wgcf or Warp, the quota is only for "premium" mode, if that is not applicable then Warp will continue to work infinitely, just in "free" mode. If you just do wgcf register, that gives you a free account with zero quota. That is perfectly usable with WireGuard, if that's what you're asking.

m0x61h0x64i commented 5 months ago

Alright, I jsut want to see my data usage, If you found a way let me know