Update 20250412: infuse now officially supports mounting Baidu Netdisk, so this workaround is no longer needed.
TL;DR
Use Alist to mount Baidu Netdisk.
In infuse, connect to Alist via WebDAV.
Use Surge to add User-Agent: pan.baidu.com for ^*baidupcs.com.
CONF[Header Rewrite] http-request ^*baidupcs.com header-add User-Agent pan.baidu.com
Intro
infuse currently offers native support for WebDAV, OneDrive, Aliyun Drive, and more, but it doesn't yet support mounting Baidu Netdisk directly.
Aliyun Drive has plenty of resources, but its online playback is throttled, and I didn't want to pay for another membership, so I gave up on it.
Baidu Netdisk has no shortage of resources either, and anything missing can be pulled in via offline downloads. Playback and download speeds are great, too. Most importantly, I'm already paying for a Baidu Netdisk membership, so why not put it to good use?
Pitfalls
After I had this idea, the first thing I did was ask in the official infuse group, but it seems no one else needed to mount Baidu Netdisk in infuse. Maybe the demand was too niche — there was no discussion about it at all, so I dropped it.
Since VidHub already supports direct mounting of Baidu Netdisk, and infuse already supports Aliyun Drive, supporting Baidu Netdisk shouldn't be too hard. So I sent an email to the infuse team and got this reply:

infuse official reply
It looks like official support might be a long way off.
Another Way
I'd long known that you can mount Baidu Netdisk with Alist and plug it into infuse via WebDAV.
For Baidu Netdisk members, Alist officially offers two ways to play online:
- Modify the UA — playback works normally.
- Local proxy — requires a server with plenty of bandwidth and traffic.
As everyone knows, infuse can't modify the UA, so at first I turned to the second option. In practice, speed was an issue, and it also ate up a lot of server traffic, so I had to give up.
A few days later, I mentioned this to another infuse user and learned that you can modify the UA with network tools. I suddenly remembered that I use Surge every day, so I gave it a try.
After adding the following to Surge's configuration file, online playback worked smoothly:
[Header Rewrite]
http-request ^*baidupcs.com header-add User-Agent pan.baidu.com
Outro
- This is actually a very simple thing, but there doesn't seem to be much discussion about it online. A user on the linux.do forum asked exactly the same question and got no answer, so I'm publishing this method to save everyone time.
- For Apple TV users, Surge should also be able to take over infuse's traffic — worth a try.